hugo-theme-minima/static/css/main.css

258 lines
3.3 KiB
CSS
Raw Normal View History

2021-07-18 10:34:01 +02:00
:root {
--pm: #0fa0ce;
--bd: #e1e1e1;
--bg: #fff;
--ft: #222;
--tag: #333;
--w-mobile: 640px;
}
html.dark {
--bg: #262d33;
--ft: #eee;
--bd: #555;
--tag: #999;
2021-08-04 04:25:53 +02:00
--ovo-ft: var(--ft);
--ovo-bdr: var(--bd);
--ovo-bg: var(--bg);
--ovo-bg-hvr: #555;
--ovo-tag: #30363d;
2021-07-18 10:34:01 +02:00
}
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);
}
2021-07-21 06:12:51 +02:00
pre,
code {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 13px;
}
2021-07-18 10:34:01 +02:00
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;
}
2021-08-04 03:49:55 +02:00
a.icon:hover {
2021-07-18 10:34:01 +02:00
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;
2021-07-18 12:54:56 +02:00
row-gap: 1rem;
2021-07-18 10:34:01 +02:00
}
.gap-2 {
gap: 2rem;
2021-07-18 12:54:56 +02:00
row-gap: 2rem;
2021-07-18 10:34:01 +02:00
}
.gap-3 {
gap: 3rem;
2021-07-18 12:54:56 +02:00
row-gap: 3rem;
2021-07-18 10:34:01 +02:00
}
.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;
}
2021-08-04 02:02:27 +02:00
.mw-6 {
min-width: 6em;
}
.c-tag {
color: var(--tag);
}
2021-07-18 10:34:01 +02:00
.btn {
cursor: pointer;
}
.hidden {
display: none;
}
2021-07-20 16:24:19 +02:00
.tag-pm {
2021-07-18 10:34:01 +02:00
font-size: .7em;
font-weight: bold;
line-height: 1;
color: #fff;
background-color: var(--pm);
border-radius: 20px;
padding: 2px 8px;
}
2021-08-04 03:49:55 +02:00
details.toc ul {
list-style-type: none;
padding-inline-start: 1em;
margin: 0;
}
details.toc ul>li {
margin: 1em 0;
}
2021-07-18 10:34:01 +02:00
@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;
2021-07-18 12:54:56 +02:00
row-gap: 0;
2021-07-18 10:34:01 +02:00
}
.al-c-mob {
align-items: center;
}
.col-rev-mob {
flex-direction: column-reverse;
}
.sm-2-mob {
2021-08-04 02:02:27 +02:00
font-size: .9em;
2021-07-18 10:34:01 +02:00
}
.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%);
2021-08-04 03:49:55 +02:00
}