use scss and short hash file names

This commit is contained in:
mivinci 2021-08-05 16:30:29 +08:00
parent bdf104dc9b
commit f7e504ff27
6 changed files with 276 additions and 270 deletions

View file

@ -1,267 +0,0 @@
:root {
--pm: #0fa0ce;
--bd: #e1e1e1;
--bg: #fff;
--ft: #222;
--tag: #333;
--w-mobile: 640px;
}
html.dark {
--bg: #262d33;
--ft: #c5c4c4;
--bd: #555;
--tag: #999;
--ovo-ft: var(--ft);
--ovo-bdr: var(--bd);
--ovo-bg: var(--bg);
--ovo-bg-hvr: #555;
--ovo-tag: #30363d;
}
body {
font-family: Helvetica, sans-serif;
max-width: var(--w-mobile);
margin: 50px auto 0;
font-size: 16px;
font-weight: 400;
color: var(--ft);
background-color: var(--bg);
transition-property: background-color, border-color, color;
transition-duration: .5s;
}
h1,h2,h3,h4,h5 {
font-family: 'Noto Serif SC', 'Times New Roman', sans-serif;
font-weight: 700;
line-height: 1.5;
}
p {
margin-top: 0;
line-height: 1.5;
text-align: left;
}
hr {
margin: 30px 0;
border-width: 0;
border-top: 1px solid var(--bd);
}
pre,
code {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 13px;
}
a {
text-decoration: none;
}
a:not(.icon) {
color: inherit;
text-decoration: underline;
text-decoration-color: var(--pm);
background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0) 50%, var(--pm) 50% );
background-size: 100% 200%;
transition: background-position .2s ease-in-out;
}
a:not(.icon):hover,
a:not(.icon):focus {
background-position: 0 100%;
color: #fff;
}
a.icon:hover {
transform: translateY(-5px);
transition: transform .3s ease-in-out;
}
main {
animation: showup 0.7s;
}
.row {
display: flex;
align-items: center;
}
.col {
display: flex;
flex-direction: column;
}
.jc-bt {
justify-content: space-between;
}
.as-s {
align-self: start;
}
.ai-c {
align-items: center;
}
.gap-0_5 {
gap: .8rem;
}
.gap-1 {
gap: 1rem;
row-gap: 1rem;
}
.gap-2 {
gap: 2rem;
row-gap: 2rem;
}
.gap-3 {
gap: 3rem;
row-gap: 3rem;
}
.lg-1 {
font-size: 1.2em;
}
.sm-1 {
font-size: .8em;
}
.mtb-1 {
margin: 1em 0;
}
.mtb-2 {
margin: 2em 0;
}
.mb-1 {
margin-bottom: 1em;
}
.mb-0 {
margin-bottom: 0;
}
.mt-2 {
margin-top: 2em;
}
.ml-1 {
margin-left: 1em;
}
.mw-6 {
min-width: 6em;
}
.c-tag {
color: var(--tag);
}
.btn {
cursor: pointer;
}
.hidden {
display: none;
}
.tag-pm {
font-size: .7em;
font-weight: bold;
line-height: 1;
color: #fff;
background-color: var(--pm);
border-radius: 20px;
padding: 2px 8px;
}
details.toc ul {
list-style-type: none;
padding-inline-start: 1em;
margin: 0;
}
details.toc ul>li {
margin: 1em 0;
}
.nowrap {
white-space: nowrap;
overflow: auto;
}
@keyframes showup {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: none;
}
}
@media (max-width: 640px) {
body {
margin: 1em 2em;
}
.row-mob {
flex-direction: column;
align-items: flex-start;
gap: 0;
row-gap: 0;
}
.al-c-mob {
align-items: center;
}
.col-rev-mob {
flex-direction: column-reverse;
}
.sm-2-mob {
font-size: .9em;
}
.mb-0_5-mob {
margin-bottom: .5em;
}
.mb-1_5-mob {
margin-bottom: 1.5em;
}
}
/* Scroll bar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: rgb(128 128 128 / 70%);
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgb(128 128 128 / 20%);
}
::-webkit-scrollbar-thumb:active {
background-color: rgb(128 128 128 / 100%);
}
.nowrap::-webkit-scrollbar {
display: none;
width: 0;
}

View file

@ -1,40 +0,0 @@
.md blockquote {
font-family: 'Inter';
background-color: rgba(148, 148, 149, 0.08) ;
margin: 1.5em 0px;
padding: 1.1em 20px 1px 20px;
border-left: 8px solid var(--pm);
font-style: italic;
}
.md table {
border-collapse: collapse;
border-spacing: 0;
display: block;
max-width: 100%;
width: 100%;
margin: 1em 0;
overflow: auto;
}
.md table th {
background-color: var(--bg);
}
.md table th, table td {
padding: 10px 20px;
border: 1px solid var(--bd);
}
.md img {
width: 100%;
max-width: 100%;
}
.md li {
margin-top: .5em;
}
.md .katex {
overflow: auto hidden;
}

View file

@ -1,122 +0,0 @@
pre[class*="language-"],
code[class*="language-"] {
color: #d4d4d4;
font-size: 13px;
text-shadow: none;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
line-height: 1.5;
color: #d4d4d4;
}
.chroma {
background-color: #292929;
margin: .5em 0;
}
/* LineTableTD */
.chroma .lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
.chroma .lntable {
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
width: auto;
overflow: auto;
display: block;
}
/* LineNumbersTable */
.chroma .lnt {
color: #999;
display: block;
padding-left: .5em;
padding-right: 1em;
text-align: right;
line-height: 1.5;
font-size: 13px;
}
/* Keyword */
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kt,
.chroma .k,
.chroma .si {
color: #569cd6;
}
.chroma .na {
color: #9cdcfe;
}
.chroma .n,
.chroma .nb,
.chroma .bp,
.chroma .nc,
.chroma .no,
.chroma .nd,
.chroma .ni,
.chroma .ne,
.chroma .nf,
.chroma .fm,
.chroma .nl,
.chroma .nn {
color: #3f4c50;
}
/* NameProperty */
.chroma .py,
.chroma .nt,
.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi,
.chroma .vm {
color: #569cd6;
}
/* LiteralString */
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .sx,
.chroma .sr,
.chroma .s1,
.chroma .ss {
color: #ce9178;
}
/* LiteralNumber */
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
color: #b5cea8;
}
/* Comment */
.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs {
color: #517043;
}