260 lines
3.8 KiB
CSS
260 lines
3.8 KiB
CSS
@font-face {
|
|
font-family: CrimsonText;
|
|
src: url(./fonts/CrimsonText-Regular.ttf) format('truetype');
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: JetBrainsMono;
|
|
src: url(./fonts/JetBrainsMono-VariableFont_wght.ttf) format('truetype');
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
:root {
|
|
--blue: #3274ce;
|
|
--red: #ce3446;
|
|
--orange: #e56045;
|
|
--text: #444444;
|
|
--background: #fffef5;
|
|
--flat-bg: white;
|
|
--radius: 5px;
|
|
--shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
--border: 1px solid #7f7f7f;
|
|
}
|
|
|
|
* {
|
|
/* font-family: 'CrimsonText', serif; */
|
|
font-family: 'CrimsonText', serif;
|
|
font-size: 1.2rem;
|
|
color: var(--text);
|
|
letter-spacing: 0.03rem;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background);
|
|
margin: 0;
|
|
}
|
|
|
|
main {
|
|
padding: 1rem 3rem;
|
|
max-width: 800px;
|
|
margin: auto;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
}
|
|
|
|
/* Typography */
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
font-weight: bold;
|
|
}
|
|
|
|
p {
|
|
line-height: 1.8rem;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 3px solid;
|
|
border-color: var(--text);
|
|
margin-left: 0;
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
hr {
|
|
border-top: 1px solid var(--text);
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
kbd {
|
|
padding: 2px 8px;
|
|
font-size: 0.8rem;
|
|
font-family: sans-serif;
|
|
border: var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--flat-bg);
|
|
box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
|
|
rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
|
|
}
|
|
|
|
/* Links */
|
|
|
|
a {
|
|
color: var(--blue);
|
|
text-decoration: underline;
|
|
text-decoration-style: dotted;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
filter: saturate(120%);
|
|
}
|
|
|
|
pre code,
|
|
code {
|
|
color: var(--orange);
|
|
font-family: 'JetBrainsMono', monospace;
|
|
font-size: 1rem;
|
|
padding: 2px 4px;
|
|
border-radius: var(--radius);
|
|
background: rgba(155, 155, 155, 0.2);
|
|
}
|
|
|
|
/* List Styles */
|
|
|
|
ul,
|
|
ol {
|
|
list-style: none;
|
|
}
|
|
|
|
ol li {
|
|
counter-increment: li;
|
|
}
|
|
|
|
ul li::before {
|
|
content: '‣';
|
|
color: var(--orange);
|
|
display: inline-block;
|
|
width: 1em;
|
|
margin-left: -1em;
|
|
}
|
|
|
|
ol li::before {
|
|
content: '.' counter(li);
|
|
color: var(--orange);
|
|
display: inline-block;
|
|
width: 1em;
|
|
margin-left: -1.5em;
|
|
margin-right: 0.5em;
|
|
text-align: right;
|
|
direction: rtl;
|
|
}
|
|
|
|
li {
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
/* Input Styles */
|
|
button,
|
|
.link-button {
|
|
background-color: gray;
|
|
color: white;
|
|
font-size: 1rem;
|
|
padding: 0.6rem 1.2rem;
|
|
outline: none;
|
|
border: none;
|
|
border-radius: 5px;
|
|
transition: filter 0.15s;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button:hover,
|
|
.link-button:hover {
|
|
text-decoration: none;
|
|
filter: saturate(120%);
|
|
}
|
|
|
|
button:active,
|
|
.link-button:active {
|
|
opacity: 0.9;
|
|
scale: 0.98;
|
|
}
|
|
|
|
select {
|
|
font-size: 0.9rem;
|
|
background: var(--background);
|
|
}
|
|
|
|
/* .select-container {
|
|
position: relative;
|
|
width: max-content;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.select-container::before {
|
|
position: absolute;
|
|
content: "▾";
|
|
top: 0px;
|
|
right: 0px;
|
|
height: 10px;
|
|
width: 10px;
|
|
color: white;
|
|
font-size: 1rem;
|
|
height: 100%;
|
|
width: 30px;
|
|
background-color: var(--blue);
|
|
text-align: center;
|
|
} */
|
|
|
|
/* Text Inputs */
|
|
|
|
input,
|
|
textarea {
|
|
appearance: none;
|
|
outline: none;
|
|
background-color: #e6e6e6;
|
|
color: --text;
|
|
border: 2px solid #dadada;
|
|
font-size: 1rem;
|
|
padding: 0.6rem;
|
|
border-radius: 5px;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
input:hover,
|
|
textarea:hover {
|
|
background-color: #eaeaea;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus {
|
|
background-color: #eaeaea;
|
|
box-shadow: 0px 0px 2px 1px var(--blue);
|
|
}
|
|
|
|
dialog {
|
|
border: none;
|
|
border-radius: 5px;
|
|
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
|
|
padding: 1.4rem;
|
|
text-align: center;
|
|
max-width: 900px;
|
|
}
|
|
|
|
/* Classes */
|
|
|
|
.width-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.blue-btn {
|
|
background-color: var(--blue);
|
|
}
|
|
|
|
.red-btn {
|
|
background-color: var(--red);
|
|
}
|
|
|
|
.post-preview {
|
|
padding: 0.1rem 0rem 2rem;
|
|
margin: 0 0 1.5rem 0;
|
|
}
|
|
|
|
.post-preview:not(:last-of-type) {
|
|
border-bottom: var(--border);
|
|
margin: 0;
|
|
}
|
|
|
|
svg {
|
|
color: var(--text);
|
|
}
|