lewisdale.dev/src/css/globals.css

191 lines
5.0 KiB
CSS
Raw Normal View History

:root {
--color-primary: var(--color-neutral-200);
--color-secondary: var(--color-neutral-800);
--color-decoration: var(--color-amber-200);
--color-subtle: var(--color-zinc-400);
--color-disabled: var(--color-neutral-400);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-600);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-800);
--color-callout-border: var(--color-coolGray-600);
}
2023-12-30 21:55:36 +00:00
.inverse {
--color-secondary: var(--color-neutral-100);
--color-primary: var(--color-neutral-800);
--color-decoration: var(--color-yellow-400);
--color-subtle: var(--color-zinc-600);
--color-disabled: var(--color-neutral-600);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-400);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-300);
--color-callout-border: var(--color-coolGray-400);
2023-12-30 21:55:36 +00:00
}
@media (prefers-color-scheme: light) {
:root {
--color-secondary: var(--color-neutral-100);
--color-primary: var(--color-neutral-800);
--color-decoration: var(--color-yellow-400);
--color-subtle: var(--color-zinc-600);
--color-disabled: var(--color-neutral-600);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-400);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-300);
--color-callout-border: var(--color-coolGray-400);
}
2023-12-30 21:55:36 +00:00
.inverse {
--color-primary: var(--color-neutral-200);
--color-secondary: var(--color-neutral-800);
--color-decoration: var(--color-amber-200);
--color-subtle: var(--color-zinc-400);
--color-disabled: var(--color-neutral-400);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-600);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-800);
--color-callout-border: var(--color-coolGray-600);
2023-12-30 21:55:36 +00:00
}
}
2023-12-30 21:55:36 +00:00
[data-color-scheme="light"] {
2023-09-26 14:01:55 +00:00
--color-secondary: var(--color-neutral-100);
--color-primary: var(--color-neutral-800);
--color-decoration: var(--color-yellow-400);
--color-subtle: var(--color-zinc-600);
--color-disabled: var(--color-neutral-600);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-600);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-300);
--color-callout-border: var(--color-coolGray-400);
2023-09-26 14:01:55 +00:00
}
2023-12-30 21:55:36 +00:00
[data-color-scheme="light"] .inverse {
--color-primary: var(--color-neutral-200);
--color-secondary: var(--color-neutral-800);
--color-decoration: var(--color-amber-200);
--color-subtle: var(--color-zinc-400);
--color-disabled: var(--color-neutral-400);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-400);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-800);
--color-callout-border: var(--color-coolGray-600);
2023-12-30 21:55:36 +00:00
}
[data-color-scheme="dark"] {
2023-09-26 14:01:55 +00:00
--color-primary: var(--color-neutral-200);
--color-secondary: var(--color-neutral-800);
--color-decoration: var(--color-amber-200);
--color-subtle: var(--color-zinc-400);
--color-disabled: var(--color-neutral-400);
2024-03-01 10:44:51 +00:00
--color-accent: var(--color-zinc-600);
2024-03-02 09:44:48 +00:00
--color-callout-bg: var(--color-slate-800);
--color-callout-border: var(--color-coolGray-600);
2023-09-26 14:01:55 +00:00
}
body {
background-color: var(--color-secondary);
color: var(--color-primary);
font-family: var(--font-family-sans);
font-size: var(--text-size-s);
text-underline-offset: var(--space-size-4xs);
2023-02-05 19:53:49 +00:00
}
2023-02-06 10:22:59 +00:00
h1,
h2,
h3,
h4,
h5 {
font-weight: bold;
line-height: 1.2;
margin: 0;
2023-02-05 19:53:49 +00:00
}
h1 {
font-size: var(--text-size-xl);
word-wrap: normal;
text-underline-offset: var(--space-size-3xs);
text-align: center;
line-height: 1.3;
2023-02-05 20:05:54 +00:00
}
2023-02-05 19:53:49 +00:00
h2 {
font-size: var(--text-size-l);
text-underline-offset: var(--space-size-3xs);
2023-02-05 19:53:49 +00:00
}
2023-02-06 10:22:59 +00:00
h3 {
font-size: var(--text-size-m);
text-underline-offset: var(--space-size-3xs);
2023-02-05 20:05:54 +00:00
}
2023-02-06 10:22:59 +00:00
a {
color: inherit;
text-decoration: underline;
2023-02-06 10:22:59 +00:00
&:hover {
text-decoration-color: var(--color-decoration);
}
2023-02-06 10:22:59 +00:00
&:visited {
color: inherit;
}
&[target="_blank"] {
position: relative;
}
&[target="_blank"]::after {
content: " \f08e";
font-family: "font awesome 6 free";
font-style: normal;
font-variant: normal;
text-rendering: auto;
font-weight: 900;
-webkit-font-smoothing: antialiased;
font-size: var(--text-size-xs);
vertical-align: super;
width: 2ch;
padding: 0 .3ch;
display: inline-block;
}
2023-02-05 19:53:49 +00:00
}
2023-02-06 10:22:59 +00:00
nav {
--vertical-spacing: var(--space-size-m);
font-size: var(--text-size-s);
2023-02-05 20:05:54 +00:00
}
2023-02-06 10:22:59 +00:00
header {
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-between;
padding-top: var(--space-size-s);
padding-bottom: var(--space-size-s);
2023-02-05 19:53:49 +00:00
}
p {
line-height: 1.6;
max-width: 65ch;
}
footer {
padding: var(--space-size-l) 0 var(--space-size-s);
width: 100%;
}
*:focus-visible {
outline: 1px solid var(--color-primary);
2023-10-18 17:44:37 +00:00
border-radius: 5px;
outline-offset: 4px;
2023-12-30 20:10:07 +00:00
}
aside {
width: 100%;
padding: var(--space-size-s);
2023-12-30 21:55:36 +00:00
background-color: var(--color-secondary);
color: var(--color-primary);
2024-03-01 10:44:51 +00:00
}
blockquote {
border-left: 5px solid var(--color-accent);
padding-left: var(--space-size-2xs);
margin-left: var(--space-size-2xs);
}