text balance & ol p
This commit is contained in:
parent
d97e8b05dc
commit
8c08a6807f
4 changed files with 15 additions and 7 deletions
|
|
@ -205,7 +205,7 @@ ol[type="1"] {
|
|||
-moz-column-break-after: avoid;
|
||||
break-after: avoid;
|
||||
position: absolute;
|
||||
left: calc(var(--indent) * -3);
|
||||
left: calc(var(--indent) * -2);
|
||||
}
|
||||
ol[type="1"]::before {
|
||||
content: attr(start);
|
||||
|
|
@ -214,7 +214,7 @@ ol[type="1"]::before {
|
|||
color: #999;
|
||||
display: block;
|
||||
padding: 0px 2px;
|
||||
border: 1px solid #efefef;
|
||||
border: 1px solid #cfcfcf;
|
||||
min-width: 1.5ch;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
@ -222,7 +222,7 @@ ol[type="1"]::before {
|
|||
|
||||
.pagedjs_left_page ol[type="1"] {
|
||||
left: inherit;
|
||||
right: calc(var(--indent) * -3);
|
||||
right: calc(var(--indent) * -2);
|
||||
}
|
||||
|
||||
p + p,
|
||||
|
|
@ -255,9 +255,15 @@ blockquote + ol + p {
|
|||
border-left: 4px solid #efefef;
|
||||
}
|
||||
|
||||
#section__content h1, #section__content h2, #section__content h3 {
|
||||
text-wrap: balance;
|
||||
}
|
||||
#section__content h1::before, #section__content h2::before, #section__content h3::before {
|
||||
content: attr(data-counter);
|
||||
}
|
||||
#section__content h4, #section__content h5, #section__content h6 {
|
||||
text-wrap: balance;
|
||||
}
|
||||
#section__content h4::before, #section__content h5::before, #section__content h6::before {
|
||||
content: attr(data-counter) ". ";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue