markdown-css
来源:互联网 发布:非诚勿扰php程序员 编辑:程序博客网 时间:2024/06/15 22:52
容器的类为epm-md-print,可自行修改
.epm-md-print {
p,
ol,
ul,
pre,
h1,
h2,
h3,
h4,
h5,
h6,
table,
blockquote {
margin-bottom: 1em
}
& blockquote>:first-child {
margin-top: 0;
}
& blockquote>:last-child {
margin-bottom: 0;
}
h1 {
font-size: 32px;
font-weight: 600;
}
h2 {
font-size: 24px;
font-weight: 600;
}
h3 {
font-size: 20px;
font-weight: 600;
}
h4 {
font-size: 16px;
font-weight: 600;
}
h5 {
font-size: 14px;
font-weight: 600;
}
h6 {
font-size: 12px;
font-weight: 600;
}
img {
max-width: 100%;
width: inherit;
background-color: #fff;
}
pre {
border-width: 0;
padding: 10px 15px;
background: rgba(102,128,153,.1);
line-height: 26px;
code {
background: none
}
}
a {
color: #0366d6;
text-decoration: none;
}
a:hover {
color: inherit;
cursor: pointer;
}
code {
padding: 4px;
font-size: 80%;
color: inherit;
background: rgba(102,128,153,.1);
word-wrap: break-word;
}
blockquote {
padding: 10px 15px;
color: #777;
border-left: 4px solid #999;
background: rgba(102,128,153,.1);
}
ol {
list-style-type: decimal;
}
ul {
list-style-type: disc;
}
ol,
ul {
padding-left: 30px;
}
li>p {
margin-top: 16px;
}
li+li {
margin-top: 0.25em;
}
table {
display: block;
width: 100%;
overflow: auto;
border-spacing: 0;
border-collapse: collapse;
}
table th {
font-weight: 600;
}
table th,
table td {
padding: 6px 13px;
border: 1px solid #dfe2e5;
}
table tr {
background-color: #fff;
border-top: 1px solid #c6cbd1;
}
table tr:nth-child(2n) {
background-color: #f6f8fa;
}
dl {
padding: 0;
}
dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: 600;
}
dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
hr {
border: 0;
border-bottom: 1px solid #ddd;
padding: 0;
margin: 24px 0;
}
&>*:first-child {
margin-top: 0 !important;
}
&>*:last-child {
margin-bottom: 0 !important;
}
}
1 0
- markdown-css
- MarkDown CSS样式
- Markdown马克飞象css(代码块优化)
- markdown的css样式(自己写的)
- [NodeJS] Express 处理 markdown——marked+prism+github-markdown-css
- Markdown
- markdown
- Markdown
- markdown
- Markdown
- markdown
- Markdown
- Markdown
- markdown
- markdown
- Markdown
- markdown
- MarkDown
- 分布式架构学习之:005--构建Dubbo服务的可执行jar包
- 【设计模式】工厂模式
- unity本地存储/客户端存储方式
- docker技术入门与实战-镜像、容器、仓库
- mina基础概念
- markdown-css
- 【BJTU+求和+线段树】
- myeclipse 中 svn 更新 提交 同步资源库 详细解释下他们的功能
- 初步理解闭包
- 支付js
- 初学者的卡尔曼滤波——扩展卡尔曼滤波(一)
- 【百度地图API】如何给自定义覆盖物添加事件
- C#中base关键字的几种用法
- java 多线程