walter-boente_book-collection/css/modules/_titles.scss

193 lines
3.5 KiB
SCSS
Raw Normal View History

2026-01-19 22:14:03 +01:00
#section__content{
2026-04-09 19:37:52 +02:00
// margin-left: 28mm;
2026-01-19 22:14:03 +01:00
2026-04-09 19:37:52 +02:00
h1{
column-span: all;
height: $content-h;
}
2026-01-20 21:31:42 +01:00
2026-04-09 21:52:21 +02:00
h2, h3, h4, h5, h6 {
2026-01-20 21:31:42 +01:00
&::before{
2026-04-09 21:52:21 +02:00
content: attr(data-counter);
2026-01-20 21:31:42 +01:00
}
}
2026-01-19 22:14:03 +01:00
2026-04-09 19:37:52 +02:00
h2, h3 , h4{
2026-01-19 22:14:03 +01:00
break-inside: avoid;
break-after: avoid;
2026-01-20 21:12:05 +01:00
text-wrap: balance;
2026-01-19 22:14:03 +01:00
/* hack for avoiding break-after */
margin-bottom: calc(var(--baseline)*-3);
&::after{
content: '';
display: block;
height: calc(var(--baseline)*3);
2026-01-20 19:05:58 +01:00
}
}
h5, h6 {
break-inside: avoid;
break-after: avoid;
2026-01-20 21:12:05 +01:00
text-wrap: balance;
2026-01-20 19:05:58 +01:00
/* hack for avoiding break-after */
margin-bottom: calc(var(--baseline)*-2);
&::after{
content: '';
display: block;
height: calc(var(--baseline)*2);
2026-01-19 22:14:03 +01:00
// background-color: rgba(255, 255, 0, 0.595);
}
}
h1 + ol + p,
h2 + ol + p,
h3 + ol + p,
h4 + ol + p,
h5 + ol + p,
h6 + ol + p{
text-indent: 0;
}
2026-01-20 21:14:47 +01:00
2026-01-19 22:14:03 +01:00
2026-04-09 19:37:52 +02:00
h1{
font-weight: 200;
2026-04-09 21:52:21 +02:00
font-size: 115px;
line-height: 0.9;
2026-04-09 19:37:52 +02:00
hyphens: auto;
break-inside: avoid;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: center;
2026-04-09 21:52:21 +02:00
2026-04-09 19:37:52 +02:00
span{
display: block;
}
}
2026-01-19 22:14:03 +01:00
h2{
2026-04-09 21:52:21 +02:00
font-size: 22px;
font-weight: 200;
2026-01-19 23:14:58 +01:00
text-transform: uppercase;
2026-04-09 21:52:21 +02:00
text-align: center;
line-height: calc(var(--baseline)*1.4);
margin-top: 4mm;
padding-bottom: 4mm;
2026-04-09 22:03:28 +02:00
hyphens: auto;
2026-04-09 21:52:21 +02:00
2026-01-19 22:14:03 +01:00
&::before{
2026-04-09 21:52:21 +02:00
display: block;
2026-01-19 22:14:03 +01:00
}
2026-04-09 21:52:21 +02:00
// &::after{
// content: '';
// display: block;
// width: 100%;
// border-bottom: 1px solid currentColor;
// position: relative;
// top: calc(var(--baseline)*-2.5);
// opacity: 0.2;
// }
2026-01-19 22:14:03 +01:00
}
2026-01-19 23:14:58 +01:00
2026-01-19 22:14:03 +01:00
h3{
2026-01-19 23:14:58 +01:00
font-weight: 500;
2026-04-09 21:52:21 +02:00
font-size: 1em;
line-height: calc(var(--baseline)*0.75);
2026-01-19 22:14:03 +01:00
position: relative;
2026-04-09 21:52:21 +02:00
margin-top: 4mm;
padding-bottom: 4mm;
padding-left: $indent;
text-align: center;
2026-01-19 22:14:03 +01:00
&::before{
2026-04-09 21:52:21 +02:00
display: block;
2026-01-19 22:14:03 +01:00
}
}
h4{
2026-01-19 23:14:58 +01:00
font-weight: 500;
2026-04-09 21:52:21 +02:00
font-size: 1em;
line-height: calc(var(--baseline)*0.75);
2026-01-19 22:14:03 +01:00
position: relative;
2026-04-09 21:52:21 +02:00
margin-top: calc(var(--baseline)*1);
padding-bottom: calc(var(--baseline)*0.5);
padding-left: $indent*2;
2026-01-20 22:37:15 +01:00
&::before{
2026-04-09 21:52:21 +02:00
display: block;
position: absolute;
left: $indent;
2026-01-20 22:37:15 +01:00
}
2026-01-19 22:14:03 +01:00
}
2026-01-19 23:14:58 +01:00
h5{
2026-04-09 21:52:21 +02:00
font-weight: normal;
font-size: 1em;
2026-04-09 22:03:28 +02:00
line-height: calc(var(--baseline)*0.75);
2026-01-19 22:14:03 +01:00
position: relative;
2026-04-09 21:52:21 +02:00
margin-top: calc(var(--baseline)*1);
2026-01-19 23:14:58 +01:00
padding-bottom: calc(var(--baseline)*0.25);
2026-04-09 21:52:21 +02:00
padding-left: $indent;
text-indent: $indent;
&::before{
display: block;
position: absolute;
left: 0;
}
2026-01-19 22:14:03 +01:00
}
2026-01-20 19:05:58 +01:00
h6{
2026-04-09 21:52:21 +02:00
font-weight: normal;
font-size: 1em;
2026-04-09 22:03:28 +02:00
line-height: calc(var(--baseline)*0.75);
2026-04-09 21:52:21 +02:00
position: relative;
margin-top: calc(var(--baseline)*1);
padding-left: $indent;
text-indent: $indent;
&::before{
display: block;
position: absolute;
left: 0;
}
2026-01-20 19:05:58 +01:00
}
2026-01-19 23:14:58 +01:00
2026-01-19 22:14:03 +01:00
}
[data-id="section__content"][data-split-from] > :first-child {
margin-top: 0;
2026-01-20 21:14:47 +01:00
}