decor-6-expe/maquette-tests/assets/css/style.css
2026-02-23 11:56:06 +01:00

401 lines
No EOL
7.5 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Ovo&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@0,400..900;1,400..900&display=swap");
:root {
--font: 'Wagram Slab', serif;
--mono: 'Selectric Mono', monospace;
--note: 'HNoailles Times Triplex', serif;
--red: #9B0000;
--green:#009B00;
--green-light:#009b0025;
--blue: #00009B;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
}
a {
color: currentColor;
}
body {
--font-size: 11px;
--baseline: 18px;
font-family: var(--font);
font-size: var(--font-size);
line-height: var(--baseline);
}
@media print {
@page {
size: 165mm 240mm;
margin-top: 10mm;
margin-bottom: 20mm;
}
@page :left {
margin-left: 35mm;
margin-right: 30mm;
@bottom-left-corner {
content: counter(page);
font-family: var(--mono);
font-size: 14px;
text-align: left;
padding-left: 10mm;
}
@bottom-left {
content: string(author);
font-family: var(--mono);
}
@bottom-center {
content: string(type);
font-family: var(--mono);
}
}
@page :right {
margin-left: 40mm;
margin-right: 25mm;
@bottom-right-corner {
content: counter(page);
font-family: var(--mono);
font-size: 14px;
text-align: right;
padding-right: 10mm;
}
@bottom-left {
content: string(title);
font-family: var(--mono);
}
}
/*p{
background: salmon;
}*/
.chapter {
-moz-column-break-before: right;
break-before: right;
}
}
[data-type=ovo] {
font-family: "Ovo", serif;
}
[data-type=literata] {
font-family: "Literata", serif;
}
[data-type=vollkorn] {
font-family: "Literata", serif;
}
[data-type=timezone] {
font-family: "HAL Timezone", serif;
}
[data-type=timezone-mono] {
font-family: "HAL Timezone Mono", monospace;
}
[data-type=selectric] {
font-family: "Selectric", serif;
}
[data-type=selectric-mono] {
font-family: "Selectric Mono", monospace;
}
[data-type=es-face] {
font-family: "ESFace", serif;
}
[data-type=ivory] {
font-family: "Ivory", serif;
}
[data-type=ivory-mono] {
font-family: "Ivory Mono", serif;
}
[data-type=necto-mono] {
font-family: "NectoMono", monospace;
}
[data-type=old-round] {
font-family: "OldRound", serif;
}
[data-type=old-round-hover] {
font-family: "OldRound Hover", serif;
}
[data-type=satoshi] {
font-family: "Satoshi", sans-serif;
}
[data-type=redaction] {
font-family: "Redaction", monospace;
}
[data-type=h-noailles-futura-simplex] {
font-family: "HNoailles Futura Simplex", sans-serif;
}
[data-type=h-noailles-futura-duplex] {
font-family: "HNoailles Futura Duplex", sans-serif;
}
[data-type=h-noailles-futura-triplex] {
font-family: "HNoailles Futura Triplex", sans-serif;
}
[data-type=h-noailles-times-simplex] {
font-family: "HNoailles Times Simplex", serif;
}
[data-type=h-noailles-times-duplex] {
font-family: "HNoailles Times Duplex", serif;
}
[data-type=h-noailles-times-triplex] {
font-family: "HNoailles Times Triplex", serif;
}
[data-type=adelphe-floreal] {
font-family: "Adelphe Floreal", serif;
}
[data-type=Adelphe-fructidor] {
font-family: "Adelphe Fructidor", serif;
}
[data-type=wagram] {
font-family: "Wagram", serif;
}
[data-type=wagram-slab] {
font-family: "Wagram Slab", serif;
}
[data-type=wagram-mono-slab] {
font-family: "Wagram Mono Slab", monospace;
}
#type-specimen {
background-color: #cfcfcf;
}
#type-specimen .type {
font-family: sans-serif;
grid-column: span 2;
font-weight: bold;
}
#type-specimen .specimen {
width: 1200px;
height: 680px;
border: 1px solid #999;
background-color: white;
margin: 30px;
padding: 30px;
overflow: hidden;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}
#type-specimen p:first-of-type {
text-align: justify;
hyphens: auto;
margin-bottom: 1em;
}
#type-specimen p {
font-size: 16px;
}
#type-specimen .title {
font-size: 32px;
line-height: 1.1;
max-width: 22ch;
margin-bottom: 30px;
}
#type-specimen .content {
line-height: 1.3;
}
#type-specimen .title-bold {
font-weight: bold;
}
#type-specimen .title-normal {
font-weight: normal;
}
#type-specimen .title-italic {
font-weight: normal;
font-style: italic;
}
#type-specimen .title-light {
font-weight: 300 !important;
font-style: normal;
}
[data-type=ovo] .title {
font-weight: normal;
line-height: 1.1;
}
[data-type=selectric] .title-bold,
[data-type=selectric-mono] .title-bold,
[data-type=timezone] .title-bold,
[data-type=timezone-mono] .title-bold {
font-weight: normal !important;
}
[data-type=selectric-mono] .content p {
letter-spacing: -0.01 rem;
white-space: 0.2ch;
}
[data-type=es-face] .title-bold {
font-weight: normal !important;
font-style: italic;
}
[data-type=redaction] .title-bold {
font-family: "Redaction 50";
font-weight: normal !important;
font-style: italic;
}
.chapter p {
text-align: justify;
hyphens: auto;
position: relative;
color: var(--blue);
}
.chapter p + p {
left: 14mm;
}
.chapter p + p + p {
left: 7mm;
}
.chapter .inline-note {
color: var(--green);
float: left;
clear: both;
width: 50mm;
text-align: left;
hyphens: none;
margin-right: 1ch;
margin-right: -20mm;
position: relative;
left: -25mm;
text-align: right;
font-family: var(--note);
line-height: 1.2;
}
.chapter .pagedjs_floatnote_marker,
.chapter .pagedjs_floatnote_call {
color: var(--green);
font-weight: bold;
padding-left: 0.25ch;
line-height: 0;
font-size: 9px;
font-family: var(--font);
}
.chapter .pagedjs_floatnote_marker {
text-align: left;
}
.chapter h3 {
margin-top: calc(var(--baseline) * 1.5);
margin-bottom: calc(var(--baseline) * 0.5);
text-align: center;
font-weight: normal;
text-decoration: underline;
font-family: var(--mono);
text-transform: uppercase;
color: var(--blue);
max-width: 18ch;
margin-inline: auto;
}
.chapter blockquote {
position: relative;
left: 14mm;
}
.chapter blockquote p {
font-size: 16px;
line-height: calc(var(--baseline) * 1.25);
font-weight: 300;
}
.chapter > :first-child {
margin-top: 0px;
}
.pagedjs_area {
position: relative;
}
.item-decor {
font-family: var(--font);
font-weight: 400;
font-size: 12px;
position: absolute;
color: var(--green);
}
.pagedjs_left_page .item-decor {
left: -30mm;
}
.pagedjs_right_page .item-decor {
right: -20mm;
}
.chapter-header {
margin-bottom: calc(var(--baseline) * 6);
}
.chapter-header h2 {
string-set: title content(text);
}
.chapter-header .author {
string-set: author content(text);
}
.chapter-header .type {
string-set: type content(text);
}
.chapter-header h2 {
font-size: 38px;
line-height: 1;
font-family: var(--note);
color: var(--blue);
margin-bottom: calc(var(--baseline) * 1);
text-align: center;
}
.chapter-header .type {
margin-bottom: calc(var(--baseline) * 1);
}
.chapter-header .type,
.chapter-header .bio {
font-family: var(--mono);
hyphens: none;
font-size: 9px;
line-height: 1.2;
left: 0px !important;
}
.chapter-header .bio {
margin-top: calc(var(--baseline) * 1);
text-align: left;
}
.chapter-header .author {
left: 0px !important;
font-size: 38px;
line-height: 1;
font-family: var(--note);
font-weight: bold;
text-align: center;
}/*# sourceMappingURL=style.css.map */