148 lines
No EOL
2.1 KiB
SCSS
148 lines
No EOL
2.1 KiB
SCSS
@import "atom.scss";
|
|
@import "markdown.scss";
|
|
@import "syntax.scss";
|
|
@import "toc.scss";
|
|
|
|
:root {
|
|
--prime: #0fa0ce;
|
|
--grid: #e1e1e1;
|
|
--back: #fff;
|
|
--text: #222;
|
|
--tag: #333;
|
|
|
|
--mobile-w: 640px;
|
|
|
|
--global-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
}
|
|
|
|
html.dark {
|
|
--back: #181818;
|
|
--text: silver;
|
|
--grid: #555;
|
|
--tag: #999;
|
|
|
|
--ovo-ft: var(--text);
|
|
--ovo-bdr: var(--grid);
|
|
--ovo-bg: var(--back);
|
|
--ovo-bg-hvr: #555;
|
|
--ovo-tag: #30363d;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--global-font-family);
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
color: var(--text);
|
|
background-color: var(--back);
|
|
transition-property: background-color, border-color, color;
|
|
transition-duration: 0.5s;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5 {
|
|
line-height: 1.5;
|
|
}
|
|
|
|
p {
|
|
line-height: 1.6;
|
|
text-align: justify;
|
|
}
|
|
|
|
hr {
|
|
border-width: 0;
|
|
border-top: 1px solid var(--grid);
|
|
}
|
|
|
|
a {
|
|
line-height: 1.5;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--prime);
|
|
}
|
|
|
|
main {
|
|
animation: showup 0.7s;
|
|
}
|
|
|
|
p a {
|
|
// font-style: italic;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
footer a {
|
|
font-style: unset;
|
|
text-decoration: none;
|
|
}
|
|
|
|
header nav {
|
|
color: var(--tag);
|
|
}
|
|
|
|
header ul {
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
pre,
|
|
code {
|
|
overflow: auto hidden;
|
|
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.minima-tag,
|
|
p code {
|
|
background-color: var(--grid);
|
|
padding: 0.2em 0.4em;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
height: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(128, 128, 128, 0.7);
|
|
}
|
|
::-webkit-scrollbar-thumb:window-inactive {
|
|
background: rgba(128, 128, 128, 0.2);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:active {
|
|
background-color: rgb(128, 128, 128);
|
|
}
|
|
|
|
h1::-webkit-scrollbar,
|
|
nav::-webkit-scrollbar {
|
|
display: none;
|
|
width: 0;
|
|
}
|
|
|
|
@keyframes showup {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.home-intro {
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.container {
|
|
max-width: var(--mobile-w);
|
|
margin: 0 auto;
|
|
} |