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

204 lines
3.7 KiB
CSS
Raw Permalink Normal View History

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