add these style
This commit is contained in:
parent
7239fa838b
commit
fb365c2f05
7 changed files with 113 additions and 30 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#section__content{
|
||||
|
||||
|
||||
h1, h2, h3 {
|
||||
h1, h2, h3 , h4{
|
||||
break-inside: avoid;
|
||||
break-after: avoid;
|
||||
|
||||
|
|
@ -12,6 +12,19 @@
|
|||
content: '';
|
||||
display: block;
|
||||
height: calc(var(--baseline)*3);
|
||||
}
|
||||
}
|
||||
|
||||
h5, h6 {
|
||||
break-inside: avoid;
|
||||
break-after: avoid;
|
||||
|
||||
/* hack for avoiding break-after */
|
||||
margin-bottom: calc(var(--baseline)*-2);
|
||||
&::after{
|
||||
content: '';
|
||||
display: block;
|
||||
height: calc(var(--baseline)*2);
|
||||
// background-color: rgba(255, 255, 0, 0.595);
|
||||
}
|
||||
}
|
||||
|
|
@ -102,6 +115,8 @@
|
|||
position: relative;
|
||||
margin-top: calc(var(--baseline)*1 + 4px);
|
||||
padding-bottom: calc(var(--baseline)*0.75);
|
||||
text-decoration: underline 1px #cfcfcf;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -117,6 +132,15 @@
|
|||
padding-bottom: calc(var(--baseline)*0.25);
|
||||
}
|
||||
|
||||
h6{
|
||||
font-family: var(--font-title);
|
||||
font-weight: 500;
|
||||
font-size: 0.8rem;
|
||||
margin-top: calc(var(--baseline)*0.5);
|
||||
padding-bottom: calc(var(--baseline)*0.25);
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue