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

105 lines
1.4 KiB
Stylus
Raw Normal View History

2020-03-26 22:31:12 +08:00
@require 'layout/variables.styl'
.markdown {
blockquote {
border-left: 5px solid $default-font-color;
margin: 0;
padding: 0 0 0 10px;
background: $border-color;
}
a {
color: $a-hover-color;
}
a:hover {
text-decoration: underline;
}
h1 {
color: $article-title-color;
font-size: 2.2em;
font-weight: 700;
}
h2 {
color: $article-title-color;
font-size: 2em;
font-weight: 650;
}
h3 {
color: $article-title-color;
font-size: 1.8em;
font-weight: 600;
}
h4 {
color: $article-title-color;
font-size: 1.6em;
font-weight: 550;
}
h5 {
color: $article-title-color;
font-size: 1.4em;
font-weight: 500;
}
h6 {
color: $article-title-color;
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;
}
}
}
}
}