197 lines
No EOL
3.3 KiB
SCSS
197 lines
No EOL
3.3 KiB
SCSS
:root {
|
|
--font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Cantarell, Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
|
|
|
|
--accent-color-dark: #1971c2;
|
|
--accent-color-light: #d0ebff;
|
|
|
|
--text-color: #212529;
|
|
--border-color: rgba(0,0,0,0.1);
|
|
--hover-color: rgba(0,0,0,0.05);
|
|
|
|
--background-color: #f8f9fa;
|
|
--well-color: #e9ecef;
|
|
|
|
--accent-color: var(--accent-color-dark);
|
|
--accent-color-back: var(--accent-color-light);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--text-color: #e9ecef;
|
|
--background-color: #212529;
|
|
--well-color: #343a40;
|
|
--accent-color: var(--accent-color-light);
|
|
--accent-color-back: var(--accent-color-dark);
|
|
|
|
--border-color: rgba(255,255,255,0.2);
|
|
--hover-color: rgba(255,255,255,0.1);
|
|
}
|
|
}
|
|
|
|
// Don't change this one, it's just to
|
|
// make code more readable
|
|
$lineheight: 1rem;
|
|
|
|
html {
|
|
font-family: var(--font-family);
|
|
text-align: left;
|
|
font-size: 17px;
|
|
background-color: var(--background-color);
|
|
accent-color: var(--accent-color);
|
|
line-height: 1.6rem;
|
|
}
|
|
|
|
body {
|
|
color: var(--text-color);
|
|
font-weight: 400;
|
|
max-width: 800px;
|
|
padding:1rem;
|
|
margin: auto;
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
padding: .5rem 0;
|
|
border-top: 1px solid var(--border-color);
|
|
border-bottom: 1px solid var(--border-color);
|
|
li {
|
|
list-style-type: none;
|
|
margin:0;
|
|
a, span {
|
|
padding: .5rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Typography
|
|
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
ul,
|
|
ol,
|
|
hr,
|
|
table,
|
|
.tabs,
|
|
details
|
|
main,
|
|
article {
|
|
padding: 0;
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
|
|
p {
|
|
&:last-child {
|
|
margin-bottom:0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-color);
|
|
text-decoration:none;
|
|
border-radius: 3px;
|
|
padding: 1px;
|
|
&:hover {
|
|
background-color: var(--hover-color);
|
|
}
|
|
}
|
|
|
|
:is(ul, ol) > :is(ul, ol) {
|
|
margin-bottom:0;
|
|
}
|
|
|
|
|
|
li {
|
|
margin-left: $lineheight;
|
|
}
|
|
|
|
::selection, ::-moz-selection {
|
|
background: var(--accent-color-back);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
hr {
|
|
border:0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* ------------------ TITLES ------------------- */
|
|
|
|
@mixin title($size, $weight) {
|
|
font-size: $size;
|
|
font-weight: $weight;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
text-align: left;
|
|
line-height: 1;
|
|
font-weight:400;
|
|
}
|
|
|
|
h1 {
|
|
@include title(2.3333333rem, 700);
|
|
}
|
|
|
|
h2 {
|
|
@include title(2rem, 700);
|
|
}
|
|
|
|
h3 {
|
|
@include title(1.5rem, 700);
|
|
}
|
|
|
|
h4 {
|
|
@include title(1.5rem, 600);
|
|
}
|
|
|
|
h5 {
|
|
@include title(1.333333rem, 600);
|
|
}
|
|
|
|
h6 {
|
|
@include title(1.1rem, 600);
|
|
}
|
|
|
|
/* ------------------ HR ------------------- */
|
|
|
|
/* ------------------ QUOTE ------------------- */
|
|
|
|
blockquote,
|
|
pre,
|
|
details {
|
|
border: 0;
|
|
border-radius: 6px;
|
|
margin: 0 0 1rem 0;
|
|
padding: .75rem;
|
|
max-width: 100%;
|
|
background-color: var(--well-color);
|
|
border: 0;
|
|
border-left: 6px solid var(--accent-color);
|
|
}
|
|
|
|
pre, code {
|
|
font-family: var(--font-family-monospace);
|
|
}
|
|
|
|
code {
|
|
background-color:var(--well-color);
|
|
padding: 5px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
|
|
/* ------------------ SPECIAL STYLING ------------------- */
|
|
|
|
mark {
|
|
border-radius: 0.2em;
|
|
padding:0 $lineheight/4 0 $lineheight/4;
|
|
|
|
background-color: var(--accent-color-back);
|
|
color: inherit;
|
|
} |