bingus-blog/static/style.css

174 lines
2.6 KiB
CSS

/* colors from catppuccin https://github.com/catppuccin/catppuccin
licensed under the MIT license, available in the source tree */
:root {
--base: #1e1e2e;
--text: #cdd6f4;
--crust: #11111b;
--surface0: #313244;
--subtext0: #a6adc8;
--subtext1: #bac2de;
--pink: #f5c2e7;
--rosewater: #f5e0dc;
--blue: #89b4fa;
--mauve: #cba6f7;
}
@media (prefers-color-scheme: light) {
:root {
--base: #eff1f5;
--text: #4c4f69;
--crust: #dce0e8;
--surface0: #ccd0da;
--subtext0: #6c6f85;
--subtext1: #5c5f77;
--pink: #ea76cb;
--rosewater: #dc8a78;
--blue: #1e66f5;
--mauve: #8839ef;
}
}
:root,
code {
/* please have one at least one good monospace font */
font-family: "Hack", "Hack Nerd Font", "JetBrains Mono", "JetBrainsMono Nerd Font", "Ubuntu Mono", monospace, sans-serif;
}
:root {
background-color: var(--base);
color: var(--text);
}
a {
color: var(--pink);
}
a:hover {
color: var(--rosewater);
}
a:active {
color: var(--blue);
}
a:visited {
color: var(--mauve);
}
code {
padding: 0.15em 0.4em;
background-color: var(--surface0);
color: var(--subtext0);
}
.tooltipped {
border-bottom: 1px dotted var(--text);
}
hr {
color: var(--subtext1);
}
footer {
text-align: end;
font-size: small;
color: var(--subtext0);
}
.post-author {
font-size: smaller;
opacity: 0.65;
}
div.post {
margin-bottom: 1em;
}
.table {
display: grid;
/*grid-template-columns: auto auto auto;
grid-template-rows: auto auto;*/
width: max-content;
}
.table > :not(.value)::after {
content: ":";
}
.table > .value {
margin-left: 1em;
grid-column: 2;
}
.table > .created {
grid-row: 1;
}
.table > .modified {
grid-row: 2;
}
.table > .tags {
grid-row: 3;
}
#sort {
display: inline-block;
margin-bottom: 1rem;
}
/* BEGIN cool effect everyone liked */
body {
margin: 0;
padding: 0;
background-color: var(--base);
}
main {
padding: 1em;
background-color: var(--base);
}
body > main > h1:first-child {
margin-top: 0;
}
@media (min-width: 956px) {
:root {
--target-ratio: 0.7; /* 669px - 1344x */
--width: min(100% * var(--target-ratio), 1920px * var(--target-ratio));
--padding: 4em;
--padded-width: calc(var(--width) - var(--padding) * 2);
}
body {
padding: 4em 0;
min-height: calc(100vh - 8em);
background: var(--crust);
background: linear-gradient(
90deg,
var(--base) 0%,
var(--crust) calc((100% - var(--width)) / 2),
var(--crust) calc(50% + var(--width) / 2),
var(--base) 100%
);
}
body > * {
margin: auto;
padding: var(--padding);
width: var(--padded-width);
}
body > footer {
padding: initial;
width: var(--width);
}
}
/* END cool effect everyone liked */