major updates to default stylesheet
This commit is contained in:
parent
e28a206067
commit
faac8f63bb
1 changed files with 59 additions and 8 deletions
|
@ -1,14 +1,17 @@
|
||||||
:root {
|
:root {
|
||||||
--main-text-color: #b4b4b4;
|
--main-text-color: #b4b4b4;
|
||||||
|
--main-text-opaque-color: rgba(180, 180, 180, 0.8);
|
||||||
--main-bg-color: #121212;
|
--main-bg-color: #121212;
|
||||||
--main-link-color: #df6464;
|
--main-link-color: #df6464;
|
||||||
--main-heading-color: #df6464;
|
--main-heading-color: #df6464;
|
||||||
--main-bullet-color: #d87c4a;
|
--main-bullet-color: #d87c4a;
|
||||||
|
--orange-rgb: rgba(216, 124, 74, 0.6);
|
||||||
--main-transparent: rgba(255, 255, 255, 0.15);
|
--main-transparent: rgba(255, 255, 255, 0.15);
|
||||||
--main-small-text-color: rgba(255, 255, 255, 0.45);
|
--main-small-text-color: rgba(255, 255, 255, 0.45);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
margin: 0;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
|
@ -17,6 +20,20 @@ body {
|
||||||
padding-left: calc(100vw - 100%);
|
padding-left: calc(100vw - 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
padding-top: -1rem;
|
||||||
|
margin-top: -1rem;
|
||||||
|
font-family: monospace;
|
||||||
|
text-transform: lowercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-logo {
|
||||||
|
color: inherit;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: none;
|
||||||
|
/* font-size: 1.75rem;*/
|
||||||
|
}
|
||||||
|
|
||||||
.toclink {
|
.toclink {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -128,11 +145,28 @@ li::marker {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--main-link-color);
|
color: var(--main-link-color);
|
||||||
text-decoration: underline;
|
text-decoration: none;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a::after {
|
||||||
background: var(--main-transparent);
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: -2px;
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
background-color: currentColor;
|
||||||
|
transform: scaleX(0);
|
||||||
|
transform-origin: center;
|
||||||
|
transition: transform 0.1s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover::after {
|
||||||
|
transform: scaleX(1);
|
||||||
|
}
|
||||||
|
a:has(> code)::after {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -146,8 +180,8 @@ img {
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
color: var(--main-small-text-color);
|
color: var(--main-text-opaque-color);
|
||||||
border-left: 3px solid var(--main-transparent);
|
border-left: 3px solid var(--orange-rgb);
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -157,6 +191,16 @@ hr {
|
||||||
border: none;
|
border: none;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: var(--main-small-text-color);
|
background: var(--main-small-text-color);
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
time {
|
||||||
|
color: var(--main-bullet-color);
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-list-date {
|
||||||
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
@ -183,7 +227,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
background-color: #151515;
|
background-color: #1d1d1d;
|
||||||
color: #d5d5d5;
|
color: #d5d5d5;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -362,13 +406,20 @@ caption {
|
||||||
|
|
||||||
a > code {
|
a > code {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: var(--main-link-color);
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:has(> code) {
|
a:has(> code) {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
background: none;
|
||||||
|
/* position: static;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover > code {
|
a:hover > code {
|
||||||
background-color: var(--main-transparent);
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover:has(> code) {
|
||||||
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue