218 lines
3.0 KiB
Stylus
218 lines
3.0 KiB
Stylus
@require 'variables.styl'
|
|
|
|
.markdown-body {
|
|
|
|
blockquote {
|
|
border-left: 5px solid var(--third-text-color);
|
|
margin: 20px 0;
|
|
padding: 0 0 0 10px;
|
|
color: var(--third-text-color);
|
|
}
|
|
|
|
p {
|
|
line-height: 2em;
|
|
}
|
|
|
|
a {
|
|
position: relative;
|
|
outline: 0;
|
|
text-decoration: none;
|
|
overflow-wrap: break-word;
|
|
cursor: pointer;
|
|
|
|
.fa {
|
|
margin-left: 5px;
|
|
position: relative;
|
|
transform: translateY(10%);
|
|
}
|
|
|
|
&:hover {
|
|
&::after {
|
|
background: var(--primary-color);
|
|
}
|
|
}
|
|
|
|
&::after {
|
|
position: absolute;
|
|
content: '';
|
|
width: 100%;
|
|
height: 1px;
|
|
top: 108%;
|
|
left: 0;
|
|
background: var(--second-text-color);
|
|
}
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
ul > li, ol > li {
|
|
margin-left: 16px;
|
|
line-height: 2em;
|
|
}
|
|
|
|
ul {
|
|
|
|
li {
|
|
list-style: disc;
|
|
|
|
ul {
|
|
|
|
li {
|
|
list-style: circle;
|
|
|
|
ul {
|
|
li {
|
|
list-style: square;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
ol {
|
|
|
|
li {
|
|
list-style: upper-roman;
|
|
|
|
ol {
|
|
|
|
li {
|
|
list-style: lower-roman;
|
|
|
|
ol {
|
|
li {
|
|
list-style: lower-alpha;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: var(--second-text-color);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.8em;
|
|
font-weight: 600;
|
|
line-height: 1.2em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.7em;
|
|
line-height: 1.1em;
|
|
}
|
|
}
|
|
|
|
|
|
h2 {
|
|
font-size: 1.7em;
|
|
font-weight: 600;
|
|
line-height: 1.2em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.6em;
|
|
line-height: 1.1em;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.6em;
|
|
font-weight: 550;
|
|
line-height: 1.16em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.5em;
|
|
line-height: 1.06em;
|
|
}
|
|
}
|
|
|
|
|
|
h4 {
|
|
font-size: 1.5em;
|
|
font-weight: 550;
|
|
line-height: 1.16em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.4em;
|
|
line-height: 1.06em;
|
|
}
|
|
}
|
|
|
|
h5 {
|
|
font-size: 1.28em;
|
|
font-weight: 500;
|
|
line-height: 1.12em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.18em;
|
|
line-height: 1.02em;
|
|
}
|
|
}
|
|
|
|
h6 {
|
|
font-size: 1.2em;
|
|
font-weight: 500;
|
|
line-height: 1.12em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.1em;
|
|
line-height: 1.02em;
|
|
}
|
|
}
|
|
|
|
|
|
img {
|
|
box-sizing: initial;
|
|
padding: 2px;
|
|
max-width: 100%;
|
|
border: 1px solid var(--border-color);
|
|
cursor: pointer;
|
|
display: block;
|
|
|
|
if (hexo-config('style.img_position') == 'center') {
|
|
margin: 2px auto;
|
|
} else {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
}
|
|
|
|
& > table {
|
|
border-spacing: 0;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
overflow: auto;
|
|
|
|
td,
|
|
th {
|
|
padding: 0;
|
|
}
|
|
|
|
th {
|
|
font-weight: 600;
|
|
}
|
|
|
|
td,
|
|
th {
|
|
padding: 6px 13px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
tr {
|
|
background-color: var(--background-color);
|
|
border: 1px solid var(--fourth-text-color);
|
|
}
|
|
|
|
tr:nth-child(2n) {
|
|
background-color: var(--second-background-color);
|
|
}
|
|
}
|
|
}
|
|
|