2020-02-20 21:37:10 +08:00
|
|
|
// Author: Sivan [sun.sivan@gmail.com]
|
|
|
|
// Description: base reset and entry styles.
|
2020-02-11 20:47:29 +08:00
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
@mixin hetiBase {
|
|
|
|
// 清容器浮动
|
|
|
|
@include clear-float();
|
|
|
|
|
|
|
|
// 清容器内首尾元素外边距
|
|
|
|
&,
|
|
|
|
section,
|
|
|
|
td {
|
|
|
|
> *:first-child {
|
|
|
|
margin-block-start: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
> *:last-child {
|
|
|
|
margin-block-end: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> img {
|
|
|
|
display: block;
|
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
width: 30%;
|
|
|
|
height: 1px;
|
|
|
|
margin-block-start: $std-block-unit * 2;
|
|
|
|
margin-block-end: $std-block-unit * 2 - 1px;
|
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: auto;
|
|
|
|
border: 0;
|
2020-05-04 23:29:03 +08:00
|
|
|
background-color: hsl(0, 0%, 80%);
|
|
|
|
|
2020-05-18 00:49:59 +08:00
|
|
|
@include darkmode-style {
|
2020-05-04 23:29:03 +08:00
|
|
|
background-color: hsl(0, 0%, 25%);
|
|
|
|
}
|
2020-02-11 20:47:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2021-09-16 11:09:08 +08:00
|
|
|
margin-block-start: $std-block-unit * 0.5;
|
2020-02-11 20:47:29 +08:00
|
|
|
margin-block-end: $std-block-unit;
|
|
|
|
text-align: justify;
|
|
|
|
|
|
|
|
@include non-cjk-block {
|
2020-02-11 21:01:13 +08:00
|
|
|
text-align: start;
|
2020-02-11 20:47:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-09 00:45:42 +08:00
|
|
|
// 非中文时不加间距
|
|
|
|
letter-spacing: $letter-spacing-medium;
|
|
|
|
@include non-cjk-block {
|
2022-12-19 22:17:58 +08:00
|
|
|
letter-spacing: $letter-spacing-normal;
|
2022-12-09 00:45:42 +08:00
|
|
|
}
|
|
|
|
|
2022-12-19 22:17:58 +08:00
|
|
|
a,
|
|
|
|
abbr,
|
|
|
|
code,
|
|
|
|
heti-spacing,
|
2022-12-09 00:45:42 +08:00
|
|
|
[lang="en-US"] {
|
2022-12-19 22:17:58 +08:00
|
|
|
// There should be no leeter-spacing between English characters.
|
|
|
|
letter-spacing: normal;
|
|
|
|
}
|
2020-02-11 20:47:29 +08:00
|
|
|
}
|