RSS订阅悠然探索,悠然索取
你的位置:首页 » 学习收藏 » 正文

markdown里面的css(模仿github)

选择字号: 超大 标准 发布时间:2017-6-26 16:59:13 | 作者:admin | 0个评论 | 人浏览

 

@charset "utf-8";

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body{
    color:#000000;
    font-family:Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
    font-size:13px;
    padding:1em;
    margin:auto;
    max-width:42em;
    background:#fefefe;
 line-height:25px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

h1 {
    color: #0077BB;
    font-size: 28px;
}

h2 {
    border-bottom: 1px solid #CCCCCC;
    color: #000000;
    font-size: 24px;
 padding-top:10px;padding-bottom:10px;
}

h3 {
    border-bottom: 1px solid #CCCCCC;
    font-size: 18px;
 padding-top:8px;padding-bottom:8px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

h6 {
    color: #777777;
    background-color: inherit;
    font-size: 14px;
}

hr {
    height: 0.2em;
    border: 0;
    color: #CCCCCC;
    background-color: #CCCCCC;
}

p, blockquote, ul, ol, dl, li, table, pre {
    margin: 5px 0;
 
}

p{
    margin:1em 0; 
}

pre {
    
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    overflow: auto;
    padding: 10px;
 padding-top:10px;padding-bottom:10px;
 background-color:#ff0000;
 background:#F2F3F1;
}

pre code {
    background-color: #F8F8F8;
    border: none;   
 
}
.md-fences {
 background-color: #dadada;
 padding-left: 0ch;
 padding-right: 0ch;
 padding:10px;
}
.md-fences {
 margin-left: 0em;
 margin-bottom: 0em;
}
code {
    font-family: Consolas, Monaco, Andale Mono, monospace;
    background-color:#F8F8F8;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    padding: 0 0.2em;
    line-height: 1;
 
}

pre > code {
    border: 0;
    margin: 0;
    padding: 0;
}


a{ color: #0645ad; text-decoration:none;}
a:visited{ color: #0b0080; }
a:hover{ color: #06e; }
a:active{ color:#faa700; }
a:focus{ outline: thin dotted; }
a:hover, a:active{ outline: 0; }

::-moz-selection{background:rgba(255,255,0,0.3);color:#000}
::selection{background:rgba(255,255,0,0.3);color:#000}

a::-moz-selection{background:rgba(255,255,0,0.3);color:#0645ad}
a::selection{background:rgba(255,255,0,0.3);color:#0645ad}

blockquote{
    color:#111111;
    margin:0;
 padding:10px;
    padding-left: 10px;
    border-left: 10px #D6DBDF solid;
 background:#F2F3F1;
 line-height:20px;
 
 
}

ul, ol { }
li p:last-child { }
dd { margin: 0 0 0 2em; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; max-width:100%;}

.md-table-edit {
 background: #ededed;
    padding-top: 4px;
}

table {
 width: 100%;
 font-size: 1.125rem;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td,
table > tfoot > tr > th,
table > tfoot > tr > td {
 padding: 12px;
 line-height: 1.2;
 vertical-align: top;
 border-top: 1px solid #333;
}
table > thead > tr > th {
 vertical-align: bottom;
 border-bottom: 2px solid #333;
}
table > caption + thead > tr:first-child > th,
table > caption + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > th,
table > colgroup + thead > tr:first-child > td,
table > thead:first-child > tr:first-child > th,
table > thead:first-child > tr:first-child > td {
 border-top: 0;
}
table > tbody + tbody {
 border-top: 2px solid #333;
}

@media only screen and (min-width: 480px) {
    body{font-size:14px;}
}

@media only screen and (min-width: 768px) {
    body{font-size:16px;}
}

标签:markdown  github  

猜你喜欢

发表评论

必填

选填

选填

必填,不填不让过哦,嘻嘻。

记住我,下次回复时不用重新输入个人信息

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。