thp-lang.org/public/css/global.css

111 lines
2.1 KiB
CSS
Raw Normal View History

/* Iosevka web */
@font-face {
2024-11-23 21:45:31 +00:00
font-family: "Iosevka Fixed Web";
font-display: swap;
font-weight: 400;
font-stretch: normal;
font-style: normal;
src: url("/Iosevka/Regular.woff2") format("woff2");
}
@font-face {
2024-11-23 21:45:31 +00:00
font-family: "Iosevka Fixed Web";
font-display: swap;
font-weight: 700;
font-stretch: normal;
font-style: normal;
src: url("/Iosevka/Bold.woff2") format("woff2");
}
2024-06-20 22:29:30 +00:00
:root {
2024-11-23 21:45:31 +00:00
--c-thp: #f472b6;
2024-11-23 21:45:31 +00:00
--font-display: "Atkinson Hyperlegible", sans-serif;
--font-body: "Atkinson Hyperlegible", sans-serif;
--font-code: "Iosevka Fixed Web", "Iosevka Nerd Font", Iosevka, monospace;
2024-06-20 22:29:30 +00:00
}
2023-06-25 12:59:18 +00:00
:root {
2024-11-23 21:45:31 +00:00
--c-bg: #121212;
--c-text: rgb(200, 200, 200);
--c-text-2: white;
--c-primary: #884b6a;
--c-purple: #7f669d;
--c-purple-light: #ba94d1;
--c-box-shadow: #fbfacd;
--c-pink: #ae508d;
--c-link: #38bdf8;
--c-nav-bg: rgb(18, 18, 18, 0.5);
--c-secondary: rgba(136, 75, 106, 0.5);
2023-06-25 12:59:18 +00:00
}
@media (prefers-color-scheme: light) {
2024-11-23 21:45:31 +00:00
:root {
--c-bg: rgb(255, 253, 255);
--c-text: #121212;
--c-text-2: black;
--c-purple: #374259;
--c-purple-light: #ba94d1;
--c-box-shadow: #374259;
--c-primary: rgb(255, 180, 180);
--c-pink: #374259;
--c-link: #0284c7;
--c-border-1: #909090;
--c-nav-bg: rgb(255, 247, 255, 0.5);
--c-secondary: rgba(255, 255, 240, 0.5);
}
2023-06-25 12:59:18 +00:00
}
2024-01-14 00:08:57 +00:00
html {
2024-11-23 21:45:31 +00:00
font-size: 16px;
2024-01-14 00:08:57 +00:00
}
2024-04-05 14:09:06 +00:00
@media screen and (min-width: 1600px) {
2024-11-23 21:45:31 +00:00
html {
font-size: 17px;
}
2024-04-05 14:09:06 +00:00
}
2024-05-29 02:12:04 +00:00
2023-06-25 12:59:18 +00:00
body {
2024-11-23 21:45:31 +00:00
font-family: var(--font-body);
2023-06-25 12:59:18 +00:00
}
2024-04-23 21:25:10 +00:00
@media only screen and (max-width: 600px) {
2024-11-23 21:45:31 +00:00
#editor {
font-size: 0.9em;
}
2024-04-23 21:25:10 +00:00
}
2024-05-29 02:12:04 +00:00
pre,
code {
2024-11-23 21:45:31 +00:00
font-family: var(--font-code);
2023-06-25 12:59:18 +00:00
}
.button-effect-receiver {
2024-11-23 21:45:31 +00:00
transition: transform 150ms;
}
.button-effect:hover .button-effect-receiver {
2024-11-23 21:45:31 +00:00
transform: translateX(-3px) translateY(-3px);
}
2023-09-15 03:15:35 +00:00
.markdown p {
2024-11-23 21:45:31 +00:00
margin: 0.75rem 0;
2023-09-15 03:15:35 +00:00
}
2023-07-01 01:55:29 +00:00
/* Used by headers generated from markdown */
2024-05-29 02:12:04 +00:00
.heading-linked :hover::after {
2024-11-23 21:45:31 +00:00
color: var(--c-primary);
content: "#";
display: inline-block;
font-size: 1em;
line-height: 1;
margin-left: 0.5rem;
2023-07-01 01:55:29 +00:00
}
2024-05-29 02:12:04 +00:00
2023-07-01 01:55:29 +00:00
.heading-linked :hover {
2024-11-23 21:45:31 +00:00
text-decoration: underline var(--c-primary);
}