mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +00:00
5ec8e6063a
Yay! Created my logo now.
167 lines
2.5 KiB
SCSS
167 lines
2.5 KiB
SCSS
:root {
|
|
--accented-border-style: var(--base0C) solid .1vw;
|
|
color: var(--base05);
|
|
}
|
|
|
|
footer {
|
|
> * {
|
|
margin-top: 1em;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
// Layouts
|
|
.site__socials {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.post__meta--single {
|
|
p > span:first-child {
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
#TableOfContents {
|
|
> ul {
|
|
padding-left: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
ul ul {
|
|
list-style: none;
|
|
padding-left: 1.5em;
|
|
}
|
|
}
|
|
|
|
// Custom layouts
|
|
#logo {
|
|
svg {
|
|
--size: 4em;
|
|
height: var(--size);
|
|
width: var(--size);
|
|
fill: var(--base0C);
|
|
|
|
&:hover {
|
|
fill: var(--base08);
|
|
animation: rainbow 2s ease infinite;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes rainbow {
|
|
@for $i from 0 through 8 {
|
|
#{$i * 10}% { fill: var(--base#{decToHex($i + 7)}); }
|
|
}
|
|
}
|
|
|
|
[data-tooltip] {
|
|
&::before {
|
|
--scale: 0;
|
|
|
|
background: var(--base01);
|
|
content: attr(data-tooltip);
|
|
font-size: 0.8em;
|
|
padding: 0.5em;
|
|
position: absolute;
|
|
transform: translateY(var(--translate-y, -50%)) scale(var(--scale));
|
|
transform-origin: bottom center;
|
|
width: max-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
&:hover::before {
|
|
--scale: 1;
|
|
}
|
|
}
|
|
|
|
// Prism CSS
|
|
code[class*="language-"], pre[class*="language-"] {
|
|
color: var(--base05);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
// Asciidoctor-specific styles
|
|
.anchor {
|
|
border-bottom: unset;
|
|
&:hover {
|
|
border-bottom: unset;
|
|
}
|
|
|
|
&::before {
|
|
content: "§";
|
|
display: inline-block;
|
|
margin-right: 0.25em;
|
|
}
|
|
}
|
|
|
|
.conum {
|
|
color: var(--base05) !important;
|
|
background-color: var(--base02);
|
|
user-select: none;
|
|
}
|
|
|
|
.quoteblock {
|
|
blockquote {
|
|
border: var(--accented-border-style);
|
|
margin: auto;
|
|
padding: 1em 0.5em;
|
|
}
|
|
}
|
|
|
|
@keyframes target-fade {
|
|
0% {
|
|
background: var(--base0D);
|
|
color: unset;
|
|
}
|
|
100% {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
#footnotes > *:not(hr) {
|
|
line-height: 1.45;
|
|
margin: 1em;
|
|
}
|
|
|
|
*:not(.listingblock) {
|
|
> *.attribution,
|
|
> *.title {
|
|
background: var(--base0C);
|
|
color: var(--base00);
|
|
font-size: 0.9em;
|
|
padding: 0.5em;
|
|
|
|
&::selection {
|
|
background: var(--base07);
|
|
}
|
|
}
|
|
|
|
> *.content {
|
|
border: var(--accented-border-style);
|
|
padding: 0.5em;
|
|
}
|
|
}
|
|
|
|
.admonitionblock {
|
|
.icon {
|
|
background: var(--base0C);
|
|
border: var(--accented-border-style);
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.imageblock {
|
|
> .content {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media all and (max-width: 860px) {
|
|
.imageblock {
|
|
> .content {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
}
|