1902674a8b
Update default theme for more semantic bone
343 lines
No EOL
5.7 KiB
CSS
343 lines
No EOL
5.7 KiB
CSS
/* RESET CSS BY Piccalil.li */
|
|
/* https://piccalil.li/blog/a-more-modern-css-reset/ */
|
|
/* License https://creativecommons.org/licenses/by/3.0/ */
|
|
|
|
|
|
/* Box sizing rules */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Prevent font size inflation */
|
|
html {
|
|
-moz-text-size-adjust: none;
|
|
-webkit-text-size-adjust: none;
|
|
text-size-adjust: none;
|
|
}
|
|
|
|
/* Remove default margin in favour of better control in authored CSS */
|
|
body,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
p,
|
|
figure,
|
|
blockquote,
|
|
dl,
|
|
dd {
|
|
margin-block-end: 0;
|
|
}
|
|
|
|
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
|
|
ul[role='list'],
|
|
ol[role='list'] {
|
|
list-style: none;
|
|
}
|
|
|
|
/* Set core body defaults */
|
|
body {
|
|
min-height: 100vh;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Set shorter line heights on headings and interactive elements */
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
button,
|
|
input,
|
|
label {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
/* Balance text wrapping on headings */
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
text-wrap: balance;
|
|
margin: calc(var(--default-space)*2) 0;
|
|
}
|
|
|
|
/* Make images easier to work with */
|
|
/*img,
|
|
picture {
|
|
max-width: 100%;
|
|
display: block;
|
|
}*/
|
|
|
|
/* Inherit fonts for inputs and buttons */
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
/* Make sure textareas without a rows attribute are not tiny */
|
|
textarea:not([rows]) {
|
|
min-height: 10em;
|
|
}
|
|
|
|
/* Anything that has been anchored to should have extra scroll margin */
|
|
:target {
|
|
scroll-margin-block: 5ex;
|
|
}
|
|
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
width: 80vw;
|
|
margin: 0 auto;
|
|
min-height: 100dvh;
|
|
text-rendering: optimizeSpeed;
|
|
font-size: var(--font-size);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
header {
|
|
background-color: transparent;
|
|
|
|
h1 {
|
|
font-size: calc(var(--font-size) * 1.6);
|
|
margin: 0;
|
|
}
|
|
|
|
h1 a {
|
|
color: var(--primary);
|
|
text-decoration: underline transparent;
|
|
text-decoration-thickness: var(--default-space);
|
|
transition: 0.4s;
|
|
}
|
|
|
|
h1 a:hover {
|
|
color: var(--primary-lighten);
|
|
text-decoration: underline var(--primary);
|
|
text-decoration-thickness: var(--default-space);
|
|
}
|
|
}
|
|
|
|
nav {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
padding: 0;
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
gap: calc(var(--default-space) * 2);
|
|
flex-wrap: wrap;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
a {
|
|
color: var(--primary-lighten);
|
|
font-weight: normal;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
nav li {
|
|
margin: var(--default-space);
|
|
list-style: none;
|
|
font-size: calc(var(--font-size) * 1.2);
|
|
}
|
|
|
|
.breadcrumb {
|
|
li {
|
|
margin: auto 0;
|
|
}
|
|
|
|
& li:not(:last-child)::after {
|
|
content: " > ";
|
|
}
|
|
|
|
ul {
|
|
gap: 0;
|
|
}
|
|
}
|
|
|
|
#toggleDarkMode {
|
|
fill: var(--primary);
|
|
height: var(--font-size);
|
|
transition: 0.4s;
|
|
}
|
|
|
|
#toggleDarkMode:hover {
|
|
fill: var(--primary-lighten);
|
|
}
|
|
|
|
a {
|
|
color: var(--primary);
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
text-decoration: underline transparent;
|
|
text-decoration-thickness: var(--default-space);
|
|
transition: 0.4s;
|
|
}
|
|
|
|
a:not(.card-content):hover {
|
|
color: var(--primary-lighten);
|
|
text-decoration: underline var(--primary);
|
|
text-decoration-thickness: var(--default-space);
|
|
}
|
|
|
|
p,
|
|
.gslide-description p {
|
|
margin: calc(var(--default-space) /1.5) 0;
|
|
}
|
|
|
|
#logo-border-color {
|
|
fill: var(--primary) !important;
|
|
stroke: none !important;
|
|
}
|
|
|
|
#logo-background-color {
|
|
fill: #fff;
|
|
stroke: none;
|
|
}
|
|
|
|
.logo {
|
|
height: 120px;
|
|
vertical-align: middle;
|
|
stroke: #000 !important;
|
|
}
|
|
|
|
main,
|
|
.message {
|
|
max-width: 100%;
|
|
margin: 0px auto;
|
|
}
|
|
|
|
.message {
|
|
background-color: var(--success);
|
|
color: var(--success-text-contrast);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.message>div {
|
|
padding: 1rem;
|
|
}
|
|
|
|
img {
|
|
transition: all .2s ease-in;
|
|
border: none;
|
|
}
|
|
|
|
article,
|
|
section {
|
|
color: var(--light-text-color);
|
|
background-color: var(--light-background-color);
|
|
padding: calc(var(--default-space) * 2);
|
|
border: 1px solid var(--background-color-darken);
|
|
border-radius: calc(var(--default-space) * 1.2);
|
|
margin: calc(var(--default-space) *5) 0;
|
|
box-shadow: var(--box-shadow-light);
|
|
}
|
|
|
|
section {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
gap: var(--default-space);
|
|
}
|
|
|
|
figure {
|
|
background-color: var(--light-background-color);
|
|
display: grid;
|
|
grid-template-columns: repeat(1, 1fr);
|
|
margin: 0;
|
|
padding: 0;
|
|
transition: all .2s ease-in;
|
|
position: relative;
|
|
width: min-content;
|
|
}
|
|
|
|
figure a {
|
|
display: flex;
|
|
}
|
|
|
|
figcaption {
|
|
color: var(--header-text-color);
|
|
margin: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
footer {
|
|
padding-top: 1em;
|
|
text-align: center;
|
|
}
|
|
|
|
footer a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.buildTime {
|
|
font-size: 1.1rem;
|
|
margin: 0;
|
|
}
|
|
|
|
#backtop {
|
|
bottom: 0;
|
|
border-radius: 4px;
|
|
background-color: var(--primary);
|
|
color: var(--text-color-secondary);
|
|
display: block;
|
|
margin: .5%;
|
|
padding: 1rem 4rem;
|
|
position: fixed;
|
|
right: 0;
|
|
}
|
|
|
|
#legend {
|
|
background-color: var(--header-background-color);
|
|
flex: none;
|
|
max-width: 90%;
|
|
width: 100%;
|
|
}
|
|
|
|
.lightbox-container__media {
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
|
|
p {
|
|
background-color: var(--header-background-color);
|
|
width: 100%;
|
|
max-width: 90%;
|
|
}
|
|
}
|
|
|
|
.gdesc-inner {
|
|
color: var(--text-color-inverse);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.gdesc-inner ul {
|
|
padding: 0 0 0 1.8em;
|
|
}
|
|
|
|
.glightbox-container .gslide,
|
|
.gslide-image img {
|
|
user-select: auto;
|
|
} |