202 lines
3.4 KiB
CSS
202 lines
3.4 KiB
CSS
:root {
|
|
--anchor-background: #bbb;
|
|
--anchor-text: #f00;
|
|
--banner-background: #ccf;
|
|
--body-background: #fff;
|
|
--body-text: #000;
|
|
--header-background: #ccc;
|
|
--item-even: #ddd;
|
|
--item-odd: #eee;
|
|
--org-background: #afa;
|
|
--qrcode-background: ;
|
|
--ruler-border: #888;
|
|
}
|
|
@media screen {
|
|
.dark {
|
|
--anchor-background: #222;
|
|
--anchor-text: #f88;
|
|
--banner-background: #558;
|
|
--body-background: #000;
|
|
--body-text: #aaa;
|
|
--header-background: #444;
|
|
--item-even: #222;
|
|
--item-odd: #111;
|
|
--org-background: #030;
|
|
--qrcode-background: #aaa;
|
|
--ruler-border: #444;
|
|
}
|
|
}
|
|
|
|
#vcf {
|
|
background-color: var(--qrcode-background);
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: "fa";
|
|
src: url("font/fa.woff2");
|
|
}
|
|
|
|
html {
|
|
font-family: "DejaVu Sans", sans-serif;
|
|
text-align: justify;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--body-background);
|
|
color: var(--body-text);
|
|
margin-block-start: .5em;
|
|
margin-inline: auto;
|
|
max-inline-size: 108ch;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
text-underline-offset: .25em;
|
|
}
|
|
a:hover {
|
|
background: linear-gradient(to top,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
var(--anchor-background) 100%
|
|
);
|
|
color: var(--anchor-text);
|
|
}
|
|
|
|
article.org, header {
|
|
border-radius: .25em;
|
|
padding-block: .25em;
|
|
}
|
|
header {
|
|
padding-inline: .5em;
|
|
background: linear-gradient(to top,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
var(--header-background) 100%
|
|
);
|
|
}
|
|
header.org {
|
|
background: linear-gradient(to top,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
var(--org-background) 100%
|
|
);
|
|
}
|
|
|
|
article header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
div.org {
|
|
display: flex;
|
|
}
|
|
|
|
section.banner {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
}
|
|
.banner {
|
|
margin-block-start: .5em;
|
|
}
|
|
|
|
h1 { font-size: 1.15rem; }
|
|
h2 { font-size: 1.10rem; }
|
|
h3 { font-size: 1.05rem; }
|
|
h1, h2, h3 {
|
|
border-radius: .25em;
|
|
}
|
|
h2 {
|
|
background: linear-gradient(to top,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
var(--banner-background) 100%
|
|
);
|
|
margin-block: .25em;
|
|
padding-block: .5em;
|
|
text-align: center;
|
|
}
|
|
h3 {
|
|
background: linear-gradient(to top,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
var(--header-background) 100%
|
|
);
|
|
padding: .125em .25em;
|
|
}
|
|
|
|
hr {
|
|
border: .1em dashed;
|
|
border-color: var(--ruler-border);
|
|
margin-block: .25em;
|
|
}
|
|
|
|
img.big {
|
|
block-size: 5em;
|
|
}
|
|
img.inline {
|
|
block-size: 1.5em;
|
|
vertical-align: middle;
|
|
}
|
|
img.logo {
|
|
block-size: 1.5em;
|
|
margin-inline: .25em;
|
|
}
|
|
img.org {
|
|
block-size: 2em;
|
|
margin-inline-end: .5em;
|
|
}
|
|
img.photo {
|
|
border-radius: 1em;
|
|
}
|
|
|
|
li:nth-of-type(even) { background-color: var(--item-even); }
|
|
li:nth-of-type(odd) { background-color: var(--item-odd); }
|
|
|
|
table {
|
|
margin-inline: auto;
|
|
}
|
|
table h3 {
|
|
text-align: center;
|
|
}
|
|
td.logo {
|
|
text-align: center;
|
|
}
|
|
th {
|
|
text-align: end;
|
|
}
|
|
|
|
ul {
|
|
padding-inline-start: 1.25em;
|
|
}
|
|
|
|
.columns {
|
|
display: grid;
|
|
gap: 1em;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.banner div {
|
|
text-align: center;
|
|
}
|
|
|
|
.title, .duration.org {
|
|
font-weight: bold;
|
|
}
|
|
.sub, .period {
|
|
font-size: .75em;
|
|
}
|
|
.time {
|
|
text-align: end;
|
|
}
|
|
|
|
@media (width > 66ch) {
|
|
.columns { grid-template-columns: 2fr 1fr; }
|
|
aside { order: 2; }
|
|
main { order: 1; }
|
|
}
|
|
|
|
@media print {
|
|
@page { size: A4; }
|
|
html { font-size: 3mm; }
|
|
.columns { grid-template-columns: 2fr 1fr; }
|
|
aside { order: 2; }
|
|
main { order: 1; }
|
|
}
|