decor-6-expe/maquette-tests/assets/css/style.css

503 lines
9.7 KiB
CSS
Raw Normal View History

2026-03-04 08:33:34 +01:00
@charset "UTF-8";
2026-02-23 11:35:07 +01:00
@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 {
2026-02-24 12:40:59 +01:00
--font: 'Routed Gothic', sans-serif;
2026-02-24 14:09:50 +01:00
--font: 'Wagram Slab', serif;
2026-03-04 08:33:34 +01:00
--font: 'Bilzig', serif;
2026-02-24 12:40:59 +01:00
--mono: 'Selectric Mono', monospace;
--mono: 'Ivory Mono', monospace;
--mono: 'Baskemo Sans', monospace;
2026-03-04 08:33:34 +01:00
--font-decor: 'Decor Round Random';
--font-sans: 'Routed Gothic', serif;
2026-02-24 12:40:59 +01:00
--title: 'HNoailles Times Triplex', sans-serif;
2026-02-23 11:35:07 +01:00
--red: #9B0000;
--green:#009B00;
--green-light:#009b0025;
--blue: #00009B;
2026-02-23 22:44:59 +01:00
--indent: 7mm;
2026-03-04 08:33:34 +01:00
--font-size: 18px;
--baseline: 24px;
2026-02-23 11:35:07 +01:00
}
* {
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-family: var(--font);
font-size: var(--font-size);
line-height: var(--baseline);
}
@media print {
@page {
size: 165mm 240mm;
2026-02-24 14:09:50 +01:00
margin-top: 16mm;
2026-02-24 09:11:23 +01:00
margin-bottom: 20mm;
2026-02-23 22:28:14 +01:00
bleed: 6mm;
marks: crop;
2026-02-23 11:35:07 +01:00
}
@page :left {
2026-03-04 08:33:34 +01:00
margin-left: 26mm;
margin-right: 18mm;
2026-02-24 14:09:50 +01:00
@bottom-center {
2026-02-23 11:35:07 +01:00
content: counter(page);
2026-02-24 14:09:50 +01:00
font-family: var(--sans);
2026-02-24 12:40:59 +01:00
font-size: 20px;
2026-02-23 23:30:33 +01:00
vertical-align: bottom;
padding-bottom: 5mm;
2026-02-24 12:40:59 +01:00
width: 10mm;
2026-02-23 11:35:07 +01:00
}
2026-02-24 14:09:50 +01:00
@top-left {
2026-02-23 11:35:07 +01:00
content: string(author);
2026-02-24 14:09:50 +01:00
font-family: var(--mono);
2026-02-24 12:40:59 +01:00
font-size: 12px;
2026-02-23 11:35:07 +01:00
}
2026-02-24 14:09:50 +01:00
@top-center {
2026-02-23 11:35:07 +01:00
content: string(type);
2026-02-24 14:09:50 +01:00
font-family: var(--mono);
2026-02-24 12:40:59 +01:00
font-size: 12px;
2026-02-23 11:35:07 +01:00
}
}
@page :right {
2026-03-04 08:33:34 +01:00
margin-left: 18mm;
margin-right: 26mm;
2026-02-24 14:09:50 +01:00
@bottom-center {
2026-02-23 11:35:07 +01:00
content: counter(page);
2026-02-24 14:09:50 +01:00
font-family: var(--sans);
2026-02-24 12:40:59 +01:00
font-size: 20px;
2026-02-23 23:30:33 +01:00
vertical-align: bottom;
padding-bottom: 5mm;
2026-02-24 12:40:59 +01:00
width: 10mm;
2026-02-23 11:35:07 +01:00
text-align: right;
}
2026-02-24 14:09:50 +01:00
@top-left {
2026-02-23 11:35:07 +01:00
content: string(title);
2026-02-24 14:09:50 +01:00
font-family: var(--mono);
2026-02-24 12:40:59 +01:00
font-size: 12px;
2026-02-23 11:35:07 +01:00
}
}
/*p{
background: salmon;
}*/
.chapter {
-moz-column-break-before: right;
break-before: right;
2026-02-24 14:09:50 +01:00
page: chapter;
}
@page chapter:first {
@top-left {
content: none;
}
2026-02-23 11:35:07 +01:00
}
}
[data-type=ovo] {
font-family: "Ovo", serif;
}
[data-type=literata] {
font-family: "Literata", serif;
}
[data-type=vollkorn] {
2026-02-24 12:40:59 +01:00
font-family: "Vollkorn", serif;
2026-02-23 11:35:07 +01:00
}
[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;
}
2026-02-23 22:28:14 +01:00
[data-type=routed-gothic-wide] {
font-family: "Routed Gothic Wide", sans-serif;
}
[data-type=routed-gothic] {
font-family: "Routed Gothic", sans-serif;
}
[data-type=routed-gothic-narrow] {
font-family: "Routed Gothic Narrow", sans-serif;
}
[data-type=cheltenham] {
font-family: "ITC Cheltenham", serif;
}
[data-type=cheltenham-light] {
font-family: "ITC Cheltenham", serif;
font-weight: 200;
}
2026-02-24 12:40:59 +01:00
[data-type=baskemo-sans] {
font-family: "Baskemo Sans", serif;
}
2026-03-04 08:33:34 +01:00
[data-type=Velvetyne] {
font-family: "Velvetyne";
}
[data-type="Garabosse Perle"] {
font-family: "Garabosse Perle";
}
[data-type="Adelphe Trouble Germinal"] {
font-family: "Adelphe Trouble Germinal";
}
[data-type=Bilzig] {
font-family: "Bilzig";
}
2026-02-23 11:35:07 +01:00
#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;
2026-02-24 12:40:59 +01:00
hyphens: auto;
2026-02-23 11:35:07 +01:00
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;
}
2026-02-23 22:28:14 +01:00
#type-specimen .title-uppercase {
font-weight: normal;
text-transform: uppercase;
letter-spacing: 0.01rem;
}
2026-02-23 11:35:07 +01:00
[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;
}
2026-02-23 22:28:14 +01:00
[data-type=routed-gothic] .title-bold,
[data-type=routed-gothic-narrow] .title-bold,
[data-type=routed-gothic-wide] .title-bold {
font-weight: normal !important;
}
[data-type=cheltenham-light] .title, [data-type=cheltenham-light] p {
font-weight: 200 !important;
}
2026-02-23 11:35:07 +01:00
.chapter p {
2026-02-23 23:30:33 +01:00
text-align: justify;
2026-02-24 12:40:59 +01:00
hyphens: auto;
2026-02-23 23:30:33 +01:00
hyphenate-limit-chars: 8 3;
2026-02-23 11:35:07 +01:00
position: relative;
2026-03-04 08:33:34 +01:00
orphans: 2;
hyphens: 2;
2026-02-23 11:35:07 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter .container-following-note + p,
2026-02-23 11:35:07 +01:00
.chapter p + p {
2026-03-04 08:33:34 +01:00
text-indent: 30%;
}
.chapter h3, .chapter h4 {
-moz-column-break-after: avoid;
break-after: avoid;
2026-02-23 11:35:07 +01:00
}
.chapter h3 {
margin-top: calc(var(--baseline) * 1.5);
margin-bottom: calc(var(--baseline) * 0.5);
text-align: center;
2026-02-23 23:30:33 +01:00
font-weight: normal;
2026-03-04 08:33:34 +01:00
font-family: var(--font-sans);
2026-02-23 11:35:07 +01:00
color: var(--blue);
max-width: 18ch;
2026-02-23 22:44:59 +01:00
letter-spacing: 0.05rem;
2026-02-24 12:40:59 +01:00
color: black;
2026-02-23 11:35:07 +01:00
}
.chapter blockquote {
2026-03-04 08:33:34 +01:00
font-family: "Routed Gothic Wide";
font-size: 14px;
line-height: 17px;
padding-left: 15%;
2026-02-24 14:09:50 +01:00
margin-top: calc(var(--baseline) * 1);
margin-bottom: calc(var(--baseline) * 1);
2026-02-23 11:35:07 +01:00
}
.chapter > :first-child {
margin-top: 0px;
}
.pagedjs_area {
position: relative;
}
2026-03-04 08:33:34 +01:00
.following-note {
font-family: var(--font-sans);
2026-02-24 14:09:50 +01:00
font-size: 12px;
2026-03-04 08:33:34 +01:00
line-height: 14px;
font-weight: 500;
display: block;
margin-top: calc(var(--baseline) * 0.5);
margin-bottom: calc(var(--baseline) * 0.5);
2026-02-23 22:28:14 +01:00
}
2026-02-24 12:40:59 +01:00
2026-03-04 08:33:34 +01:00
.container-following-note {
margin-left: 30%;
2026-02-23 11:35:07 +01:00
}
2026-03-04 08:33:34 +01:00
.wrapper__note-call {
-moz-column-break-inside: avoid;
break-inside: avoid;
2026-02-24 12:40:59 +01:00
}
2026-03-04 08:33:34 +01:00
.following-note_call::before,
.following-note_marker::before {
content: "{";
2026-02-24 12:40:59 +01:00
}
2026-03-04 08:33:34 +01:00
.following-note_call::after,
.following-note_marker::after {
content: "}";
2026-02-24 14:09:50 +01:00
}
2026-03-04 08:33:34 +01:00
.following-note_call,
.following-note_marker {
font-family: var(--font-sans);
font-weight: 500;
font-size: 12px;
2026-02-24 14:09:50 +01:00
}
2026-03-04 08:33:34 +01:00
.following-note_call {
padding-left: 0.25ch;
position: relative;
top: -4px;
}
.following-note_marker {
position: absolute;
left: 0;
2026-02-24 12:40:59 +01:00
}
2026-02-23 11:35:07 +01:00
.chapter-header {
2026-03-04 08:33:34 +01:00
position: relative;
2026-02-24 12:40:59 +01:00
margin-top: calc(var(--baseline) * 2);
2026-02-24 14:09:50 +01:00
margin-bottom: calc(var(--baseline) * 3);
2026-02-24 12:40:59 +01:00
--color: black;
2026-02-23 11:35:07 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter-header p {
text-indent: 0px !important;
}
2026-02-23 11:35:07 +01:00
.chapter-header h2 {
string-set: title content(text);
}
.chapter-header .author {
string-set: author content(text);
}
.chapter-header .type {
string-set: type content(text);
}
2026-03-04 08:33:34 +01:00
.chapter-header .h2-pattern {
font-size: 58px;
line-height: 0.8;
2026-02-23 11:35:07 +01:00
color: var(--blue);
margin-bottom: calc(var(--baseline) * 1);
2026-02-23 23:30:33 +01:00
text-align: left;
2026-02-24 12:40:59 +01:00
font-weight: normal;
color: var(--color);
2026-02-24 14:09:50 +01:00
text-align: center;
2026-03-04 08:33:34 +01:00
font-family: var(--font-decor);
transform: scale(2);
z-index: 0;
position: absolute;
top: 0;
2026-02-23 11:35:07 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter-header h2 {
font-family: "Routed Gothic Wide";
margin-top: calc(var(--baseline) * 4);
text-align: center;
line-height: 1.2;
font-size: 36px;
2026-02-24 12:40:59 +01:00
font-weight: normal;
2026-02-23 11:35:07 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter-header h2 span {
background-color: white;
border: 1px solid red;
box-shadow: 0px 1px 23px 8px rgb(255, 0, 0);
border-radius: 10px;
padding-inline: 0.5ch;
box-decoration-break: clone;
-webkit-box-decoration-break: clone; /* pour Safari */
2026-02-23 22:28:14 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter-header h2 {
z-index: 10;
2026-02-23 22:28:14 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter-header .type {
margin-bottom: calc(var(--baseline) * 1);
display: none;
2026-02-23 22:28:14 +01:00
}
2026-03-04 08:33:34 +01:00
.chapter-header .author {
font-family: "Routed Gothic Wide";
margin-top: calc(var(--baseline) * 1);
text-align: center;
font-size: 28px;
font-weight: normal;
2026-02-23 11:35:07 +01:00
}/*# sourceMappingURL=style.css.map */