website/assets/scss/extend.scss

123 lines
1.7 KiB
SCSS
Raw Normal View History

2020-11-05 04:34:37 +00:00
:root {
2020-11-06 11:44:15 +00:00
--accented-border-style: var(--base0C) solid 1px;
color: var(--base05);
2019-09-28 12:15:00 +00:00
}
2020-11-06 22:16:12 +00:00
// Base
footer {
margin-bottom: 1.5em;
> * {
margin-top: 1em;
margin-bottom: 0;
}
}
// Layouts
.site__socials {
margin-top: 1em;
}
2020-11-05 04:34:37 +00:00
.post__meta--single {
p > span:first-child {
white-space: nowrap;
}
2019-09-28 12:15:00 +00:00
}
#TableOfContents {
> ul {
padding-left: 0;
list-style: none;
}
ul ul {
list-style: none;
padding-left: 1.5em;
}
}
2020-11-05 04:34:37 +00:00
// Prism CSS
code[class*="language-"], pre[class*="language-"] {
color: var(--base05);
font-size: 0.9em;
2019-09-28 12:15:00 +00:00
}
2020-11-05 04:34:37 +00:00
// Asciidoctor-specific styles
.anchor {
&::before {
content: "§";
display: inline-block;
margin-right: 0.25em;
}
}
.conum {
color: var(--base05) !important;
background-color: var(--base02);
user-select: none;
}
2020-11-05 04:34:37 +00:00
.quoteblock {
blockquote {
border: var(--accented-border-style);
margin: auto;
padding: 1em 0.5em;
}
}
2019-09-28 12:15:00 +00:00
2020-11-05 04:34:37 +00:00
@keyframes target-fade {
0% {
background: var(--base0D);
color: unset;
}
100% {
background-color: transparent;
}
2019-09-28 12:15:00 +00:00
}
2020-11-05 04:34:37 +00:00
#footnotes > *:not(hr) {
2020-11-05 07:30:02 +00:00
line-height: 1.45;
2020-11-05 04:34:37 +00:00
margin: 1em;
}
*:not(.listingblock) {
> *.attribution,
> *.title {
2020-11-06 11:44:15 +00:00
background: var(--base0C);
2020-11-05 04:34:37 +00:00
color: var(--base00);
font-size: 0.9em;
padding: 0.5em;
2020-11-06 22:16:12 +00:00
&::selection {
background: var(--base07);
}
2020-11-05 04:34:37 +00:00
}
> *.content {
border: var(--accented-border-style);
padding: 0.5em;
}
}
2019-09-28 12:15:00 +00:00
2020-11-05 04:34:37 +00:00
.admonitionblock {
.icon {
2020-11-06 11:44:15 +00:00
background: var(--base0C);
2020-11-05 04:34:37 +00:00
border: var(--accented-border-style);
vertical-align: middle;
}
2019-09-28 12:15:00 +00:00
}
2020-11-05 04:34:37 +00:00
.imageblock {
> .content {
2019-09-28 12:15:00 +00:00
display: flex;
justify-content: center;
2020-11-05 04:34:37 +00:00
}
2019-09-28 12:15:00 +00:00
}
2020-11-06 22:16:12 +00:00
@media all and (max-width: 860px) {
.imageblock {
> .content {
width: 100% !important;
}
}
}