speice.io/pages/style.css

136 lines
1.9 KiB
CSS
Raw Normal View History

2023-04-16 20:10:40 -04:00
@import "normalize.css";
@import "@fontsource/lato";
@import "@fontsource/jetbrains-mono";
2023-04-21 21:39:53 -04:00
@import "highlight.js/styles/atom-one-dark.css";
:root {
--color-primary: #000;
--color-secondary: #777;
--color-tertiary: #999;
--color-highlight: #f4f4f4;
--color-primary-highlight: #fff;
--color-secondary-highlight: #999;
}
2023-04-16 20:10:40 -04:00
body {
font-family: "Lato", sans-serif;
2023-04-21 21:39:53 -04:00
font-size: 15pt;
line-height: 1.5;
2023-04-16 20:10:40 -04:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0.6em;
margin-bottom: 0;
}
2023-04-21 21:39:53 -04:00
h3 {
color: var(--color-secondary);
}
h4,
h5,
h6 {
color: var(--color-tertiary);
}
a {
color: var(--color-secondary);
}
2023-04-16 20:10:40 -04:00
p,
ul {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
pre {
padding: 1em 0;
}
2023-04-21 21:39:53 -04:00
code {
2023-04-16 20:10:40 -04:00
font-family: "JetBrains Mono", monospace;
2023-04-21 21:39:53 -04:00
font-size: 14pt;
background-color: var(--color-highlight);
}
a,
a > code {
text-decoration: dotted;
border-color: var(--color-secondary);
border-bottom-style: dotted;
border-bottom-width: 1px;
}
a,
a > code {
transition: all ease 0.5s;
}
a:hover,
a:hover > code,
2023-04-21 21:39:53 -04:00
a > code:hover {
color: var(--color-primary-highlight);
background-color: var(--color-secondary-highlight);
border-bottom: none;
2023-04-16 20:10:40 -04:00
}
.gridOffset {
display: grid;
grid-template-columns:
[full-start] minmax(1em, 2fr)
2023-04-21 21:39:53 -04:00
[main-start] minmax(0, 42em) [main-end]
minmax(0, 5fr) [full-end];
}
.gridOffset > * {
grid-column: main;
2023-04-16 20:10:40 -04:00
}
2023-04-21 21:39:53 -04:00
.gridOffset hr {
display: inherit;
2023-04-16 20:10:40 -04:00
grid-column: main;
2023-04-21 21:39:53 -04:00
grid-template-columns: inherit;
border-style: solid;
border-color: var(--color-secondary);
2023-04-16 20:10:40 -04:00
}
2023-04-21 21:39:53 -04:00
.gridOffset > pre {
2023-04-16 20:10:40 -04:00
display: inherit;
grid-column: full;
grid-template-columns: inherit;
}
2023-04-21 21:39:53 -04:00
.gridOffset > pre > code {
2023-04-16 20:10:40 -04:00
grid-column: main;
}
2023-04-21 21:39:53 -04:00
.navbar {
text-align: right;
2023-04-21 22:23:19 -04:00
margin-top: 0.5em;
margin-bottom: 0.5em;
2023-04-16 20:10:40 -04:00
}
2023-04-21 22:23:19 -04:00
.navbar :not(.icon) {
padding-left: 0.25em;
padding-right: 0.25em;
2023-04-21 21:39:53 -04:00
text-decoration: none;
border-bottom-style: none;
2023-04-16 20:10:40 -04:00
}
2023-04-21 21:50:43 -04:00
2023-04-21 22:23:19 -04:00
.icon {
vertical-align: middle;
margin-right: 0.3em;
}
.icon-post {
vertical-align: text-top;
2023-04-21 21:50:43 -04:00
}