mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Update the site styling
This commit is contained in:
parent
9313cf3abb
commit
2a240ba6a3
@ -9,10 +9,22 @@ $line-height: 1.45;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Base styles.
|
// Base styles.
|
||||||
|
ul, ol {
|
||||||
|
margin: 1em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: var(--base0B);
|
color: var(--base0B);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border: var(--border-style);
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-color: var(--foreground);
|
border-color: var(--foreground);
|
||||||
}
|
}
|
||||||
@ -33,6 +45,11 @@ main > article {
|
|||||||
line-height: unset;
|
line-height: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site__socials {
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.site__links--content,
|
.site__links--content,
|
||||||
.site__socials--content {
|
.site__socials--content {
|
||||||
margin: 1em 0 0;
|
margin: 1em 0 0;
|
||||||
@ -40,6 +57,7 @@ main > article {
|
|||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
flex-flow: row wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site__links--content > * { flex-basis: 20; }
|
.site__links--content > * { flex-basis: 20; }
|
||||||
@ -152,17 +170,21 @@ sup.footnote {
|
|||||||
|
|
||||||
.conum {
|
.conum {
|
||||||
color: var(--base05) !important;
|
color: var(--base05) !important;
|
||||||
background-color: var(--base02);
|
background-color: var(--base03);
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quoteblock {
|
.quoteblock {
|
||||||
blockquote {
|
|
||||||
border: var(--border-style);
|
border: var(--border-style);
|
||||||
margin: auto;
|
border-left: 0.5em var(--base05) solid;
|
||||||
padding: 1em 0.5em;
|
|
||||||
|
|
||||||
& > .paragraph:first-child p {
|
blockquote {
|
||||||
|
margin: auto;
|
||||||
|
padding: 0.5em;
|
||||||
|
max-height: var(--code-block-size);
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
& > :first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -183,12 +205,16 @@ sup.footnote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[class$="block"],
|
[class$="block"],
|
||||||
:is(.admonitionblock) {
|
:is(.admonitionblock, .dialogblock) {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0 0;
|
||||||
|
|
||||||
.title > code {
|
.title > code {
|
||||||
background: unset;
|
background: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content > :first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p.tableblock {
|
p.tableblock {
|
||||||
@ -202,6 +228,7 @@ p.tableblock {
|
|||||||
color: var(--base00);
|
color: var(--base00);
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .content {
|
> .content {
|
||||||
@ -291,9 +318,11 @@ p.tableblock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.admonitionblock {
|
.admonitionblock {
|
||||||
table {
|
> table {
|
||||||
border: unset;
|
border: unset;
|
||||||
margin: unset;
|
margin: unset;
|
||||||
|
table-layout: fixed;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
tbody {
|
tbody {
|
||||||
tr + tr,
|
tr + tr,
|
||||||
@ -303,25 +332,30 @@ p.tableblock {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.content {
|
||||||
|
background: var(--base01);
|
||||||
|
border: unset;
|
||||||
|
max-height: var(--code-block-size);
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
td.icon {
|
td.icon {
|
||||||
|
--size: 6ch;
|
||||||
background: var(--foreground);
|
background: var(--foreground);
|
||||||
|
color: var(--background);
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 12%;
|
width: var(--size);
|
||||||
|
|
||||||
> .title {
|
> .title {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
> svg.icon {
|
||||||
background: var(--base01);
|
width: 100%;
|
||||||
border: unset;
|
height: var(--size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.content > .paragraph:first-child > p:first-child {
|
|
||||||
margin-top: unset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageblock {
|
.imageblock {
|
||||||
@ -356,6 +390,52 @@ p {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Custom Asciidoctor components.
|
||||||
|
.dialogblock {
|
||||||
|
&__box {
|
||||||
|
align-items: center;
|
||||||
|
border: var(--border-style);
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row nowrap;
|
||||||
|
gap: 1em;
|
||||||
|
padding: 0.5em;
|
||||||
|
max-width: 55ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__avatar {
|
||||||
|
--size: 4em;
|
||||||
|
width: var(--size);
|
||||||
|
flex-basis: var(--size);
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.imageblock {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.content {
|
||||||
|
border: unset;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__text {
|
||||||
|
display: block;
|
||||||
|
max-width: 50ch;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
> :first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Roles/modifiers.
|
||||||
|
&.reversed {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// This setup will use asciidoctor-rouge.
|
// This setup will use asciidoctor-rouge.
|
||||||
.rouge.highlight,
|
.rouge.highlight,
|
||||||
code[data-lang] {
|
code[data-lang] {
|
||||||
|
Loading…
Reference in New Issue
Block a user