araozu.dev/public/blog.css

162 lines
2.8 KiB
CSS
Raw Normal View History

2024-05-26 01:44:27 +00:00
:not(pre)>code {
2024-05-21 01:05:51 +00:00
font-family: "Iosevka Fixed Web", Iosevka, monospace;
2024-05-26 01:44:27 +00:00
border: solid 1px var(--c-border-2);
2024-05-21 01:05:51 +00:00
padding: 0 0.25rem;
border-radius: 0.25rem;
}
2024-05-26 01:44:27 +00:00
pre.astro-code {
padding-top: 1rem;
2024-05-26 01:44:27 +00:00
border-radius: 0.5rem;
border: solid 1px var(--c-border-1);
2024-07-15 18:34:47 +00:00
font-size: 0.8rem;
2024-05-26 01:44:27 +00:00
}
pre.astro-code>code {
counter-reset: step;
counter-increment: step 0;
}
pre.astro-code>code .line::before {
content: counter(step);
counter-increment: step;
width: 1rem;
margin-right: 1.5rem;
display: inline-block;
text-align: right;
color: rgba(115, 138, 148, .4)
}
2024-05-21 01:05:51 +00:00
#blog p {
margin: 1rem 0;
}
#blog h2 {
font-size: 1.5rem;
font-family: "Iosevka Etoile Web", serif;
font-weight: 900;
margin-top: 3rem;
margin-bottom: 1.5rem;
}
2024-07-26 01:18:44 +00:00
#blog h3 {
font-size: 1.25rem;
font-family: "Iosevka Etoile Web", serif;
font-weight: 900;
margin-top: 2.25rem;
margin-bottom: 1.5rem;
}
2024-05-21 01:05:51 +00:00
#blog li {
list-style-type: circle;
margin: 0.5rem 0;
}
#blog a {
text-decoration: underline;
color: #3b82f6;
}
2024-05-26 01:44:27 +00:00
2024-07-15 18:34:47 +00:00
#blog img {
max-height: 400px;
2024-07-26 01:18:44 +00:00
display: inline-block;
}
#blog p:has(> img) {
text-align: center;
2024-07-15 18:34:47 +00:00
}
#blog blockquote {
border-left: 5px solid var(--c-border-1);
padding-left: 1rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
2024-05-26 01:44:27 +00:00
@media (prefers-color-scheme: dark) {
.astro-code {
background-color: var(--shiki-dark-bg) !important;
}
2024-05-26 01:44:27 +00:00
.astro-code,
.astro-code span {
color: var(--shiki-dark) !important;
}
2024-08-19 22:16:08 +00:00
}
/* isso */
#isso-thread textarea {
color: black;
}
#isso-thread input {
color: black;
}
/* Shiki transformers */
.astro-code {
--shiki-highlight-color: #cccccc;
2024-08-20 01:08:34 +00:00
--shiki-highlight-word-color: #aaaaaa;
--shiki-error-bg-color: rgba(244, 63, 63, 0.25);
}
@media (prefers-color-scheme: dark) {
.astro-code {
--shiki-highlight-color: #343434;
2024-08-20 01:08:34 +00:00
--shiki-highlight-word-color: #3a3a3a;
--shiki-error-bg-color: rgba(244, 63, 94, 0.16);
}
}
.line {
display: inline-block;
width: 100%;
}
.line.highlighted:not(.error) {
background-color: var(--shiki-highlight-color) !important;
}
.line.highlighted.error {
background-color: var(--shiki-error-bg-color) !important;
}
2024-08-20 01:08:34 +00:00
.line .highlighted-word {
border: 1px solid var(--shiki-highlight-word-color);
border-radius: 0.25rem;
padding: 1px 3px;
margin: -1px -1px;
}
.line_
.diff {
display: inline-block;
width: 100vw;
margin: 0 -12px;
padding: 0 12px;
}
.diff.add {
background-color: #0505;
}
.diff.remove {
background-color: #8005;
}
.diff:before {
position: absolute;
left: 40px;
}
.has-focused .line:not(.focused) {
filter: blur(0.08rem);
transition: filter linear 250ms;
}
.has-focused:hover .line:not(.focuser) {
filter: none;
}