vuepress-theme-qblog
Version:
一款多配置、贼强大的 VuePress 主题.
128 lines (108 loc) • 2.41 kB
text/stylus
@import '~prismjs/themes/prism-tomorrow.css'
.single-content {
line-height: 1.85;
ul, ol {
margin: 0;
}
blockquote {
border-left: 6px solid var(--light-ac-btn) ;
background: var(--light-icon);
margin: 0 ;
padding: 20px 25px ;
p {
margin: 0 ;
}
}
div[class*=language-] {
border-radius: 8px;
margin: 16px 0;
background-color: #e5ede8;
overflow-x: auto;
&::-webkit-scrollbar {
height: 8px;
}
&::-webkit-scrollbar-thumb {
border-radius: 10px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.2);
}
&::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
border-radius: 0;
background: rgba(0, 0, 0, 0.1);
}
code {
display: block;
width: fit-content;
min-width: 100%;
line-height: 1.7 ;
font-size: 14px;
color: #404040;
padding: 0 ;
margin: 0 ;
background: transparent ;
box-shadow: none ;
}
}
div[class*=language-] pre {
margin: 0;
padding: 30px;
background: transparent;
overflow-x: auto;
&::-webkit-scrollbar {
height: 8px;
}
&::-webkit-scrollbar-thumb {
border-radius: 10px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.2);
}
&::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
border-radius: 0;
background: rgba(0, 0, 0, 0.1);
}
}
code {
margin: 0 2px;
padding: 0 5px;
background-color: #e5ede8;
color: #ff7043;
border-radius: 3px;
}
h1, h2, h3, h4, h5, h6 {
color: #333;
margin: 40px 0 20px 0;
cursor: default;
&:first-child {
margin-top: 0;
}
&:hover .header-anchor {
opacity: 1;
color: #ff7043;
}
.header-anchor {
float: right;
opacity: .08;
border-bottom: none;
position: relative;
padding: 0;
border-radius: 8px ;
line-height: 1;
font-size: 1.6rem;
color: #fff;
text-decoration: none;
transition: all .2s;
margin-top: 5px;
}
}
h3 {
font-size: 1.5rem;
line-height: 1.4;
font-weight: 400;
}
p {
color: #404040;
margin: 20px 0;
}
}