This repository has been archived on 2023-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
undefined-pelican-theme/static/css/undef.css

203 lines
3.3 KiB
CSS
Raw Normal View History

2022-08-28 20:24:55 +02:00
@font-face {
font-family: 'ubuntu';
font-style: normal;
font-weight: normal;
font-display: swap;
src: url('../fonts/Ubuntu-R.ttf') format('truetype');
}
2022-08-28 14:58:11 +02:00
:root
{
--teal: #008080;
--maroon: #800000;
2022-11-05 14:02:07 +01:00
--img-border: #FFFFFF;
2022-08-28 14:58:11 +02:00
--gradient: linear-gradient(45deg, #800000 10%, #008080 90%);
}
2022-11-05 14:08:42 +01:00
@media (prefers-color-scheme: dark) {
:root {
2022-11-05 14:02:07 +01:00
--teal: #7acccc;
--maroon: #cc7a7a;
--img-border: hsl(0, 1%, 25%);
--gradient: linear-gradient(45deg, #cc7a7a 10%, #7acccc 90%);
}
}
2022-08-28 14:58:11 +02:00
/* overwrite latex.css colors */
a,
a:visited {
color: var(--teal);
text-decoration: none;
}
a:hover {
color: var(--maroon);
}
video {
max-width: 100%;
height: auto;
display: block;
}
/* don't use superscript text for references */
2022-11-05 14:08:42 +01:00
sup {
2022-08-28 14:58:11 +02:00
vertical-align: inherit;
font-size: 1rem;
}
/* main navigation */
2022-11-05 14:08:42 +01:00
nav.navigation {
2022-08-28 14:58:11 +02:00
border-right-color: var(--teal);
border-right-style: solid;
border-right-width: 4px;
font-family: "ubuntu";
margin-bottom: 1em;
margin-left: -20vw;
min-width: 15vw;
padding-right: 4px;
padding-left: 4px;
position: fixed;
text-align: right;
}
2022-11-05 14:08:42 +01:00
nav.navigation h1 {
2022-08-28 14:58:11 +02:00
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: var(--teal);
text-align: right;
}
2022-11-05 14:08:42 +01:00
nav.navigation a {
2022-08-28 14:58:11 +02:00
color: var(--teal);
padding-right: 4px
text-align: right;
}
2022-11-05 14:08:42 +01:00
nav.navigation a:hover {
2022-08-28 14:58:11 +02:00
text-decoration: underline;
}
2022-11-05 14:08:42 +01:00
nav.navigation footer {
2022-08-28 14:58:11 +02:00
color: var(--maroon);
font-size: 0.8rem;
}
nav.navigation footer a,
2022-11-05 14:08:42 +01:00
nav.navigation footer a:hover {
2022-08-28 14:58:11 +02:00
color: var(--maroon);
}
/* support small screens */
2022-11-05 14:08:42 +01:00
@media (max-width: 1080px) {
nav.navigation {
2022-08-28 14:58:11 +02:00
position: relative;
border-right-style: none;
margin-left: 0px;
display: flex;
align-items: center;
justify-content: center;
}
2022-11-05 14:08:42 +01:00
nav.navigation h1 {
2022-08-28 14:58:11 +02:00
display: block;
border-right-color: var(--teal);
border-right-style: solid;
border-right-width: 4px;
margin-bottom: 0px;
padding-right: 4px;
}
2022-11-05 14:08:42 +01:00
nav.navigation div {
2022-08-28 14:58:11 +02:00
display: block;
padding-left: 4px;
text-align: left;
}
}
/* Figure couter + lightbox for images */
2022-11-05 14:08:42 +01:00
body::before {
2022-08-28 14:58:11 +02:00
counter-reset: figure-counter;
}
2022-11-05 14:08:42 +01:00
figure {
2022-08-28 14:58:11 +02:00
counter-increment: figure-counter;
padding-top: 0 0.25em 0.25em;
}
2022-11-05 14:08:42 +01:00
figcaption {
2022-08-28 14:58:11 +02:00
font-size: 0.923em;
}
2022-11-05 14:08:42 +01:00
figcaption::before {
2022-08-28 14:58:11 +02:00
content: 'Figure ' counter(figure-counter) '. ';
font-weight: bold;
}
2022-11-05 14:08:42 +01:00
.lightbox {
2022-08-28 14:58:11 +02:00
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100vh;
2022-11-05 14:02:07 +01:00
background-color: var(--body-bg-color);
2022-08-28 14:58:11 +02:00
text-align: center;
z-index: 666;
visibility: hidden;
}
2022-11-05 14:08:42 +01:00
figure:target .lightbox {
2022-08-28 14:58:11 +02:00
visibility: visible;
}
2022-11-05 14:08:42 +01:00
.lightbox-wrapper {
2022-08-28 14:58:11 +02:00
display: inline-flex;
flex-direction: column;
max-width: 95%;
2023-02-28 19:54:09 +01:00
width: 95vw;
2022-08-28 14:58:11 +02:00
height: 100%;
}
2022-11-05 14:08:42 +01:00
.lightbox a {
2022-08-28 14:58:11 +02:00
font-size: 1.25rem;
align-self: end;
margin-bottom: auto;
}
2022-11-05 14:08:42 +01:00
.lightbox img {
2022-08-28 14:58:11 +02:00
width: auto;
height: auto;
max-width: 100%;
max-height: 90vh;
margin-bottom: auto;
object-fit: contain;
}
2023-02-28 19:54:09 +01:00
dl dd {
text-align: left;
padding-left: 2rem;
}
2022-08-28 14:58:11 +02:00
/* footnotes */
2022-11-05 14:08:42 +01:00
.footnote-ref::before {
2022-08-28 14:58:11 +02:00
content: '[';
}
2022-11-05 14:08:42 +01:00
.footnote-ref::after {
2022-08-28 14:58:11 +02:00
content: ']';
}
.footnote ol {
counter-reset: fn-counter;
padding-left: 2rem;
}
2022-11-05 14:08:42 +01:00
.footnote li {
2022-08-28 14:58:11 +02:00
counter-increment: fn-counter;
}
2022-11-05 14:08:42 +01:00
.footnote li::marker {
2022-08-28 14:58:11 +02:00
content: '[' counter(fn-counter) '] ';
}