hexo-theme-keep/source/css/layout/common/markdown.styl

105 lines
1.4 KiB
Stylus
Raw Normal View History

2020-04-01 12:09:06 +08:00
@require 'variables.styl'
2020-03-26 22:31:12 +08:00
.markdown {
blockquote {
border-left: 5px solid var(--normal-text-color);;
2020-03-26 22:31:12 +08:00
margin: 0;
padding: 0 0 0 10px;
background: $border-color;
}
a {
2020-04-01 22:42:24 +08:00
color: $primary-color;
2020-03-26 22:31:12 +08:00
}
a:hover {
text-decoration: underline;
}
h1 {
color: var(--second-text-color);;
2020-03-26 22:31:12 +08:00
font-size: 2.2em;
font-weight: 700;
}
h2 {
color: var(--second-text-color);;
2020-03-26 22:31:12 +08:00
font-size: 2em;
font-weight: 650;
}
h3 {
color: var(--second-text-color);;
2020-03-26 22:31:12 +08:00
font-size: 1.8em;
font-weight: 600;
}
h4 {
color: var(--second-text-color);;
2020-03-26 22:31:12 +08:00
font-size: 1.6em;
font-weight: 550;
}
h5 {
color: var(--second-text-color);;
2020-03-26 22:31:12 +08:00
font-size: 1.4em;
font-weight: 500;
}
h6 {
color: var(--second-text-color);;
2020-03-26 22:31:12 +08:00
font-size: 1.2em;
font-weight: 500;
}
img {
2020-03-27 21:38:48 +08:00
padding: 2px;
margin: 2px 0;
2020-03-26 22:31:12 +08:00
width: 100%;
border: 1px solid $border-color;
}
table:not(figure.highlight) {
2020-03-26 22:31:12 +08:00
border: solid $border-color;
border-width: 1px 0 0 1px;
thead {
background: $border-color;
tr {
th {
margin: 0;
padding: 4px;
border: solid $border-color;
border-width: 0 1px 1px 0;
}
}
}
tbody {
tr {
margin: 0;
2020-03-26 22:31:12 +08:00
td {
padding: 4px;
border: solid $border-color;
border-width: 0 1px 1px 0;
}
}
}
}
}