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

116 lines
2.1 KiB
SCSS
Raw Normal View History

2026-01-19 22:14:03 +01:00
sup{
line-height: 0;
}
hr{
border: none;
height: var(--baseline);
}
a{
color: currentColor;
text-decoration: none;
}
p{
text-align: justify;
orphans: 2;
widows: 2;
}
p, li{
hyphens: auto;
hyphenate-limit-chars: 7 3 4;
hyphenate-limit-lines: 2;
hyphenate-limit-zone: 8%;
word-spacing: -0.004em;
}
ol[type="1"]{
list-style-type: none;
position: relative;
break-after: avoid;
position: absolute;
2026-01-21 11:15:05 +01:00
left: calc(var(--indent)*-2);
2026-01-19 22:14:03 +01:00
&::before{
content: attr(start);
font-family: var(--font-sans-txt);
2026-01-19 22:14:03 +01:00
// font-weight: 200;
font-size: 9px;
2026-01-19 22:14:03 +01:00
color: #999;
display: block;
padding: 0px 2px;
2026-01-21 11:15:05 +01:00
border: 1px solid #cfcfcf;
2026-01-19 22:14:03 +01:00
min-width: 1.5ch;
display: flex;
justify-content: center;
}
}
.pagedjs_left_page{
ol[type="1"] {
left: inherit;
2026-01-21 11:15:05 +01:00
right: calc(var(--indent)*-2);
2026-01-19 22:14:03 +01:00
}
}
p + p,
ol[type="1"] + p{
text-indent: calc(var(--indent)*0.5);
}
blockquote{
padding-left: var(--indent);
margin-top: calc(var(--baseline)*1);
margin-bottom: calc(var(--baseline)*1);
font-family: var(--font-sans-txt);
2026-01-21 11:04:46 +01:00
font-size: var(--fs-small-q);
line-height: calc(var(--baseline)*0.9);
2026-01-21 09:02:02 +01:00
// font-weight: var(--w-title);
2026-01-19 22:14:03 +01:00
.inline-note::after{
font-family: var(--font);
line-height: 0;
font-size: var(--font-size)!important;
2026-01-19 22:14:03 +01:00
}
// p{
// font-style: italic;
// em{
// font-style: normal;
// }
// }
// u{
// font-variant: small-caps;
// text-decoration: none;
// }
}
.these + ol + p,
blockquote + ol + p{
text-indent: 0px;
2026-01-19 22:14:03 +01:00
}
.these{
// color: red;
margin-bottom: var(--baseline);
padding-left: var(--indent);
border-left: 4px solid #efefef;
2026-01-19 22:14:03 +01:00
}