Created
August 27, 2019 02:08
-
-
Save jony4/fe8ee88991e54cce558c33c0b70c35d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*自定义样式,实时生效*/ | |
/* 全局属性 | |
* 页边距 padding:30px; | |
* 全文字体 font-family:ptima-Regular; | |
* 英文换行 word-break:break-all; | |
*/ | |
.layout { | |
font-family:PingFangSC-Light; | |
} | |
/* 段落,下方未标注标签参数均同此处 | |
* 上边距 margin-top:5px; | |
* 下边距 margin-bottom:5px; | |
* 行高 line-height:26px; | |
* 词间距 word-spacing:3px; | |
* 字间距 letter-spacing:3px; | |
* 对齐 text-align:left; | |
* 颜色 color:#3e3e3e; | |
* 字体大小 font-size:16px; | |
* 首行缩进 text-indent:2em; | |
*/ | |
p { | |
margin:10px 10px; | |
line-height:1.75; | |
letter-spacing:0.2em; | |
font-size:14px; | |
word-spacing:0.1em; | |
} | |
/* 一级标题 */ | |
h1 { | |
border-bottom:2px solid rgb(248,57,41); | |
font-size:1.3em; | |
} | |
/* 一级标题内容 */ | |
h1 span { | |
display:inline-block; | |
font-weight:normal; | |
background:rgb(248,57,41); | |
color:#ffffff; | |
padding:3px 10px 1px; | |
border-top-right-radius:3px; | |
border-top-left-radius:3px; | |
margin-right:3px; | |
} | |
/* 一级标题修饰 请参考有实例的主题 */ | |
h1:after { | |
} | |
/* 二级标题 */ | |
h2 { | |
text-align:left; | |
margin:20px 10px 0px 0px; | |
} | |
/* 二级标题内容 */ | |
h2 span { | |
font-family:STHeitiSC-Light; | |
font-size:18px; | |
font-weight:bolder; | |
display:inline-block; | |
padding-left:10px; | |
border-left:5px solid rgb(248,57,41); | |
} | |
/* 二级标题修饰 请参考有实例的主题 */ | |
h2:after { | |
} | |
/* 三级标题 */ | |
h3 { | |
} | |
/* 三级标题内容 */ | |
h3 span { | |
font-family:STHeitiSC-Light; | |
font-size:16px; | |
font-weight:bolder; | |
display:inline-block; | |
padding-left:10px; | |
border-left:3px solid rgb(248,57,41); | |
} | |
/* 三级标题修饰 请参考有实例的主题 */ | |
h3:after { | |
} | |
/* 列表内容 */ | |
li { | |
font-size:13px; | |
} | |
/* 引用 | |
* 左边缘颜色 border-left-color: black; | |
* 背景色 background: gray; | |
*/ | |
blockquote { | |
font-style: normal; | |
padding: 10px; | |
position: relative; | |
line-height: 1.8; | |
text-indent: 0; | |
border: none; | |
color: #888; | |
} | |
blockquote:before { | |
content: "“"; | |
display: inline; | |
color: #555555; | |
font-size: 2em; | |
font-family: Arial, serif; | |
line-height: 1em; | |
font-weight: 700; | |
} | |
/* 引用文字 */ | |
blockquote p { | |
display: inline; | |
} | |
/* 链接 */ | |
a { | |
color:rgb(248,57,41); | |
border-bottom: 1px solid #ff3502; | |
font-family:STHeitiSC-Light; | |
} | |
/* 加粗 */ | |
strong { | |
font-weight:border; | |
color:rgb(248,57,41); | |
} | |
/* 斜体 */ | |
em { | |
color:rgb(248,57,41); | |
letter-spacing:0.3em; | |
} | |
/* 加粗斜体 */ | |
strong em { | |
color:rgb(248,57,41); | |
letter-spacing:0.3em; | |
} | |
/* 删除线 */ | |
del { | |
} | |
/* 分隔线 | |
* 粗细、样式和颜色 | |
* border-top:1px solid #3e3e3e; | |
*/ | |
hr { | |
height:1px; | |
padding:0; | |
border:none; | |
border-top:medium solidid #333; | |
text-align:center; | |
background-image:linear-gradient(to right,rgba(248,57,41,0),rgba(248,57,41,0.75),rgba(248,57,41,0)); | |
} | |
/* 图片 | |
* 宽度 width:80%; | |
* 居中 margin:0 auto; | |
* 居左 margin:0 0; | |
*/ | |
img { | |
border-radius:0px 0px 5px 5px; | |
display:block; | |
margin:20px auto; | |
width:85%; | |
height:100%; | |
object-fit:contain; | |
box-shadow:#84A1A8 0px 10px 15px; | |
} | |
/* 图片描述文字 */ | |
figcaption { | |
display:block; | |
font-size:12px; | |
font-family:PingFangSC-Light; | |
} | |
/* 行内代码 */ | |
p code,li code { | |
color:rgb(271,93,108); | |
} | |
/* 非微信代码块 | |
* 代码块不换行 display:-webkit-box !important; | |
* 代码块换行 display:block; | |
*/ | |
pre code { | |
} | |
/* | |
* 表格内的单元格 | |
* 字体大小 font-size: 16px; | |
* 边框 border: 1px solid #ccc; | |
* 内边距 padding: 5px 10px; | |
*/ | |
table tr th, | |
table tr td { | |
font-size: 14px; | |
} | |
/* 脚注文字 */ | |
.footnote-word { | |
color:rgb(248,57,41); | |
} | |
/* 脚注上标 */ | |
.footnote-ref { | |
color:rgb(248,57,41); | |
} | |
/*脚注链接样式*/ | |
.footnote-item em { | |
color:#6E1E51; | |
font-size:12px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment