Modify CSS

This commit is contained in:
Ethan Yoo 2024-05-12 12:51:30 -04:00
parent c06f121cd7
commit 05c210821a
Signed by: ethan
GPG Key ID: 70596474C5D20F85
1 changed files with 50 additions and 21 deletions

View File

@ -1,7 +1,25 @@
/* Body */ /* Body */
a { a,
a:link {
text-decoration: none; text-decoration: none;
color: #ace;
} }
a:hover {
background: #2b5278;
text-decoration: underline dotted;
border: 1px solid;
}
header a:link,
header a:visited,
footer a:link,
footer a:visited,
aside a:visited,
main a:visited {
color: #FFF;
}
body { body {
background: #10151a; background: #10151a;
color: #d3dae3; color: #d3dae3;
@ -10,49 +28,42 @@ body {
max-width: 50em; max-width: 50em;
padding: 0 2em; padding: 0 2em;
} }
footer a:link,
header a:link {
color: #FFF;
}
a:link {
color: #ace;
}
a:hover {
background: #2b5278;
text-decoration: underline dotted;
border: 1px solid;
}
a:visited {
color: #FFF;
}
h2, h2,
main h1 { main h1 {
text-align: center; text-align: center;
} }
h1 { h1 {
font-size: 2.1em; font-size: 2.1em;
} }
h2 { h2 {
font-size: 1.8em; font-size: 1.8em;
} }
h3 { h3 {
font-size: 1.5em; font-size: 1.5em;
} }
article, article,
main { main {
padding: 4px 2px; padding: 4px 2px;
} }
blockquote { blockquote {
padding: 0.5em 1.5em; padding: 0.5em 1.5em;
background: #EEE; background: #EEE;
color: #000; color: #000;
border-radius: 4px; border-radius: 4px;
} }
code { code {
background: #000; background: #000;
font: 1em/1.5 monospace, monospace; font: 1em/1.5 monospace, monospace;
padding: 2px; padding: 2px;
} }
img[src$='#center'] { img[src$='#center'] {
display: block; display: block;
margin-left: auto; margin-left: auto;
@ -60,29 +71,41 @@ img[src$='#center'] {
} }
/* Light theme */ /* Light theme */
@media(prefers-color-scheme:light) { @media (prefers-color-scheme: light) {
body { body {
background: #f2f2f2; background: #f2f2f2;
color: #000; color: #000;
} }
header a:link,
header a:visited,
footer a:link, footer a:link,
header a:link { footer a:visited,
color: #000;
}
aside a:link { aside a:link {
color: #000; color: #000;
} }
a:hover { a:hover {
background: #cae6ef; background: #cae6ef;
text-decoration: underline dotted; text-decoration: underline dotted;
border: 1px solid; border: 1px solid;
} }
main a:link { main a:link {
color: #004962; color: #004962;
} }
main a:visited {
main a:visited,
aside a:visited {
color: #542baa; color: #542baa;
} }
code {
background: #ccc;
color: #000;
font: 1em/1.5 monospace, monospace;
padding: 2px;
}
} }
/* Classes */ /* Classes */
@ -92,6 +115,7 @@ img[src$='#center'] {
margin-right: auto; margin-right: auto;
text-align: center; text-align: center;
} }
.nextcloud { .nextcloud {
width: 50px; width: 50px;
height: 30px; height: 30px;
@ -102,16 +126,20 @@ img[src$='#center'] {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center center; background-position: center center;
} }
.post-title { .post-title {
line-height: 1.8; line-height: 1.8;
} }
.subtitle { .subtitle {
float: right; float: right;
} }
a.link-000 { a.link-000 {
background: #000; background: #000;
border: none; border: none;
} }
a.link-001 { a.link-001 {
padding: 10px; padding: 10px;
background-color: #0082c9; background-color: #0082c9;
@ -119,6 +147,7 @@ a.link-001 {
border-radius: 3px; border-radius: 3px;
padding-left: 4px; padding-left: 4px;
} }
html { html {
overflow-y: scroll; overflow-y: scroll;
visibility: visible; visibility: visible;