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

145 lines
3.3 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;
--c-php: #4f5b93;
--c-html: #dc4a20;
--c-zig: #f7a41d;
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
2024-11-23 23:35:32 +00:00
[x-cloak] { display: none !important; }
2023-06-25 12:59:18 +00:00
:root {
2025-01-12 16:52:31 +00:00
--c-bg: var(--c-bg-dark);
--c-text: var(--c-text-dark);
--c-border-1: var(--c-border-1-dark);
--c-text-2: var(--c-text-2-dark);
--c-primary: var(--c-primary-dark);
--c-purple: var(--c-purple-dark);
--c-purple-dark: var(--c-purple-light-dark);
--c-box-shadow: var(--c-box-shadow-dark);
--c-pink: var(--c-pink-dark);
--c-link: var(--c-link-dark);
--c-nav-bg: var(--c-nav-bg-dark);
--c-secondary: var(--c-secondary-dark);
2023-06-25 12:59:18 +00:00
}
@media (prefers-color-scheme: light) {
2024-11-23 21:45:31 +00:00
:root {
2025-01-12 16:52:31 +00:00
--c-bg: var(--c-bg-light);
--c-text: var(--c-text-light);
--c-text-2: var(--c-text-2-light);
--c-purple: var(--c-purple-light);
--c-purple-light: var(--c-purple-light-light);
--c-box-shadow: var(--c-box-shadow-light);
--c-primary: var(--c-primary-light);
--c-pink: var(--c-pink-light);
--c-link: var(--c-link-light);
--c-border-1: var(--c-border-1-light);
--c-nav-bg: var(--c-nav-bg-light);
--c-secondary: var(--c-secondary-light);
2024-11-23 21:45:31 +00:00
}
2023-06-25 12:59:18 +00:00
}
2025-01-12 16:52:31 +00:00
body.dark {
--c-bg: var(--c-bg-dark);
--c-text: var(--c-text-dark);
--c-border-1: var(--c-border-1-dark);
--c-text-2: var(--c-text-2-dark);
--c-primary: var(--c-primary-dark);
--c-purple: var(--c-purple-dark);
--c-purple-dark: var(--c-purple-light-dark);
--c-box-shadow: var(--c-box-shadow-dark);
--c-pink: var(--c-pink-dark);
--c-link: var(--c-link-dark);
--c-nav-bg: var(--c-nav-bg-dark);
--c-secondary: var(--c-secondary-dark);
}
body.light {
--c-bg: var(--c-bg-light);
--c-text: var(--c-text-light);
--c-text-2: var(--c-text-2-light);
--c-purple: var(--c-purple-light);
--c-purple-light: var(--c-purple-light-light);
--c-box-shadow: var(--c-box-shadow-light);
--c-primary: var(--c-primary-light);
--c-pink: var(--c-pink-light);
--c-link: var(--c-link-light);
--c-border-1: var(--c-border-1-light);
--c-nav-bg: var(--c-nav-bg-light);
--c-secondary: var(--c-secondary-light);
}
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);
}