style: 标题块 margin padding 与其他块统一、标题文本在块内垂直居中
This commit is contained in:
parent
6d3e28c934
commit
b8b89205ed
2 changed files with 16 additions and 17 deletions
|
@ -146,17 +146,11 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
.h1,
|
||||
h1,
|
||||
.h2,
|
||||
h2,
|
||||
.h3,
|
||||
h3,
|
||||
.h4,
|
||||
h4,
|
||||
.h5,
|
||||
h5,
|
||||
.h6,
|
||||
h6 {
|
||||
padding: 4px;
|
||||
margin: 4px 0;
|
||||
|
@ -165,17 +159,32 @@
|
|||
}
|
||||
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding: .3em 4px;
|
||||
font-size: 1.75em;
|
||||
}
|
||||
|
||||
.h2,
|
||||
.h1 {
|
||||
font-size: 1.75em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding: .3em 4px;
|
||||
font-size: 1.55em;
|
||||
}
|
||||
|
||||
.h2 {
|
||||
font-size: 1.55em;
|
||||
}
|
||||
|
||||
.h3,
|
||||
h3 {
|
||||
font-size: 1.38em;
|
||||
|
|
|
@ -125,16 +125,6 @@
|
|||
align-items: center;
|
||||
word-break: keep-all;
|
||||
|
||||
& ~ .h1,
|
||||
& ~ .h2,
|
||||
& ~ .h3,
|
||||
& ~ .h4,
|
||||
& ~ .h5,
|
||||
& ~ .h6 {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
|
Loading…
Add table
Reference in a new issue