hexo-theme-mengd
Version:
A clean and lightweight Hexo theme
236 lines (194 loc) • 3.77 kB
text/stylus
figure {
display: flex;
flex-direction: column;
table {
all: unset;
}
tr {
display: flex;
align-items: center;
}
td {
line-height: unset;
min-width: unset;
border: unset;
}
.gutter {
position: sticky;
left: 0;
z-index: 1;
padding: 1rem 0;
box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
// border-right: 1px solid var(--main-color-border);
// border-right: 1px solid rgba(35, 38, 44,.6);
pre {
padding: 0 1rem;
}
}
pre {
margin: 0;
line-height: unset;
}
}
h1, h2, h3, h4, h5, h6 {
margin-top: -4rem;
margin-bottom: 10px;
padding-top: 6rem;
padding-bottom: 5px;
border-bottom: 1px solid var(--main-color-border);
}
h1 {
font-size: 24px;
line-height: 38px;
margin-bottom: 5px;
}
h2 {
font-size: 22px;
line-height: 34px;
}
h3 {
font-size: 20px;
line-height: 28px;
}
h4 {
font-size: 18px;
line-height: 26px;
}
h5 {
font-size: 17px;
line-height: 24px;
}
h6 {
font-size: 16px;
line-height: 24px;
}
p {
line-height: inherit;
margin-top: 22px;
margin-bottom: 22px;
}
img {
display: block;
max-width: 100%;
margin: 0.8rem auto;
border-radius: 4px;
}
hr {
border: none;
border-top: 1px solid #ddd;
margin-top: 32px;
margin-bottom: 32px;
}
code {
word-break: break-word;
border-radius: 2px;
overflow-x: auto;
background-color: #fff5f5;
color: #ff502c;
font-size: 0.87em;
padding: 0.065em 0.4em;
}
code, pre {
font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
pre {
overflow: auto;
position: relative;
line-height: 1.75;
}
pre>code {
font-size: 12px;
padding: 15px 12px;
margin: 0;
word-break: normal;
display: block;
overflow-x: auto;
color: #333;
background: var(--font-color-3);
}
a {
text-decoration: none;
color: #0269c8;
border-bottom: 1px solid #349dff;
}
a:active, a:hover {
color: #0085ff;
}
table {
font-size: 12px;
display: table;
width: 100%;
border-spacing: 0;
border-collapse: collapse;
empty-cells: show;
}
thead {
background: rgba(142, 152, 164, 0.1);
text-align: left;
}
td, th {
padding: 12px 7px;
line-height: 24px;
border: 1px solid #eee;
}
td {
min-width: 120px;
}
blockquote {
padding: 1px 23px;
margin: 22px 0;
border-radius: 4px;
border-left: 4px solid #cbcbcb;
background-color: rgba(123, 177, 245, 0.1);
}
blockquote::after {
display: block;
content: '';
}
blockquote>p {
margin: 10px 0;
}
ol, ul {
padding-left: 28px;
}
ol li, ul li {
margin-bottom: 0;
list-style: inherit;
}
ol li .task-list-item, ul li .task-list-item {
list-style: none;
}
ol li .task-list-item ol, ol li .task-list-item ul, ul li .task-list-item ol, ul li .task-list-item ul {
margin-top: 0;
}
ol ol, ol ul, ul ol, ul ul {
margin-top: 3px;
}
ol li {
padding-left: 6px;
}
kbd {
padding: 2px 4px;
font-size: 0.8rem;
color: #fff;
background-color: #666;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #000;
}
.contains-task-list {
padding-left: 0;
}
.task-list-item {
list-style: none;
}
@media (max-width: 720px) {
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
}