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

134 lines
2.5 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;
}
2026-01-19 23:37:32 +01:00
2026-01-19 22:14:03 +01:00
p + p,
ol[type="1"] + p{
text-indent: calc(var(--indent)*0.5);
}
blockquote{
2026-01-19 23:37:32 +01:00
padding-left: calc(var(--indent)*1);
2026-01-20 21:12:05 +01:00
font-size: var(--fs-small);
// line-height: calc(var(--baseline)*0.75);
2026-01-19 23:37:32 +01:00
margin-top: calc(var(--baseline)*0.5);
margin-bottom: calc(var(--baseline)*0.5);
2026-01-19 22:14:03 +01:00
}
2026-01-20 19:05:58 +01:00
.these + ol + p,
blockquote + ol + p{
text-indent: 0px;
}
2026-01-19 22:14:03 +01:00
.these{
2026-01-20 21:12:05 +01:00
font-family: var(--font-title);
2026-01-20 19:05:58 +01:00
margin-bottom: calc(var(--baseline)*1);
2026-01-19 23:37:32 +01:00
}
2026-01-20 13:32:39 +01:00
ol[type="1"]{
list-style-type: none;
position: relative;
break-after: avoid;
position: absolute;
left: calc(var(--indent)*-1.5 - 0.5ch);
&::before{
content: attr(start);
// font-family: var(--font-title);
// font-weight: 500;
font-size: 0.6rem;
color: #999;
display: block;
height: var(--baseline);
padding-right: 1ch;
border-right: 1px solid #efefef;
}
}
// GRADATIONS
2026-01-19 23:37:32 +01:00
2026-01-20 13:32:39 +01:00
/*
2026-01-19 23:37:32 +01:00
ol[type="1"]{
list-style-type: none;
position: relative;
break-after: avoid;
position: absolute;
left: calc(var(--indent)*-1.5 - 0.5ch);
&::before{
content: attr(start);
font-family: var(--font-title);
font-weight: 500;
font-size: 0.6rem;
color: #999;
display: block;
padding: 0px 2px;
// border: 1px solid #efefef;
min-width: 20px;
justify-content: center;
}
}
.pagedjs_page_content::before{
--color: #efefef;
--size: 20px;
content: "";
display: block;
height: 100%;
width: var(--size);
position: absolute;
2026-01-20 13:32:39 +01:00
left: calc(var(--indent)*-1 - var(--size));
2026-01-19 23:37:32 +01:00
background: linear-gradient(transparent 0%, transparent calc(var(--baseline) - 1px), var(--color) calc(var(--baseline) - 1px), var(--color) var(--baseline)), transparent;
background-size: 100% var(--baseline);
background-repeat: repeat-y;
2026-01-20 13:32:39 +01:00
}
2026-01-19 23:37:32 +01:00
2026-01-20 13:32:39 +01:00
*/