refactor: slash as division code in sass #58

refactor: slash as division code in sass #58
This commit is contained in:
Sivan 2021-09-16 11:15:16 +08:00 committed by GitHub
commit c58ee4a39e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 5469 additions and 34 deletions

View file

@ -21,12 +21,12 @@
// 定义块级元素样式
blockquote {
margin-block-start: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
margin-block-end: $std-block-unit;
margin-inline-start: $std-inline-unit * 2;
margin-inline-end: $std-inline-unit * 2;
padding-block-start: $std-block-unit / 2;
padding-block-end: $std-block-unit / 2;
padding-block-start: $std-block-unit * 0.5;
padding-block-end: $std-block-unit * 0.5;
padding-inline-start: $std-inline-unit;
padding-inline-end: $std-inline-unit;
//border-radius: 4px;
@ -64,7 +64,7 @@
}
p {
margin-block-start: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
margin-block-end: $std-block-unit;
text-align: justify;
@ -77,12 +77,12 @@
@if $format_pre_code {
pre {
margin-block-start: $std-block-unit / 2;
margin-block-end: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
margin-block-end: $std-block-unit * 0.5;
margin-inline-start: 0;
margin-inline-end: 0;
padding-block-start: $std-block-unit / 2;
padding-block-end: $std-block-unit / 2;
padding-block-start: $std-block-unit * 0.5;
padding-block-end: $std-block-unit * 0.5;
padding-inline-start: $std-inline-unit;
padding-inline-end: $std-inline-unit;
overflow: auto;

View file

@ -15,7 +15,7 @@
// 底边距考虑到亲密性默认为半行间距
margin: 0;
margin-block-start: $std-block-unit;
margin-block-end: $std-block-unit / 2;
margin-block-end: $std-block-unit * 0.5;
font-weight: $font-weight-bold;
}
@ -68,6 +68,6 @@
h3 + h4,
h4 + h5,
h5 + h6 {
margin-block-start: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
}
}

View file

@ -7,7 +7,7 @@
ul,
ol,
dl {
margin-block-start: $line-height-size-normal / 2;
margin-block-start: $line-height-size-normal * 0.5;
margin-block-end: $line-height-size-normal;
}

View file

@ -6,7 +6,7 @@
table {
box-sizing: border-box;
table-layout: fixed;
margin-block-start: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
margin-block-end: $std-block-unit;
margin-inline-start: auto;
margin-inline-end: auto;
@ -23,10 +23,10 @@
th,
td {
padding-block-start: $std-block-unit / 4;
padding-block-end: $std-block-unit / 4;
padding-inline-start: $std-inline-unit / 2;
padding-inline-end: $std-inline-unit / 2;
padding-block-start: $std-block-unit * 0.25;
padding-block-end: $std-block-unit * 0.25;
padding-inline-start: $std-inline-unit * 0.5;
padding-inline-end: $std-inline-unit * 0.5;
border-width: 1px;
border-style: solid;
border-color: hsl(0, 0%, 80%);

View file

@ -81,7 +81,7 @@
}
ol {
margin-block-start: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
margin-block-end: 0;
}

View file

@ -25,7 +25,7 @@
// 元信息保持间距
#{$root-selector}-meta {
margin-block-start: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5;
margin-block-end: $std-block-unit;
}

View file

@ -13,8 +13,8 @@
// 多栏排版时减半段间距
p {
margin-block-start: $std-block-unit / 2 / 2;
margin-block-end: $std-block-unit / 2;
margin-block-start: $std-block-unit * 0.5 * 0.5;
margin-block-end: $std-block-unit * 0.5;
text-indent: $text-indent-length;
}
}

5463
package-lock.json generated

File diff suppressed because it is too large Load diff