Browse Source

update highlight code style

pull/1496/head
afc163 9 years ago
parent
commit
49f0833674
  1. 14
      site/common/styles/highlight.less
  2. 3
      site/common/styles/markdown.less

14
site/common/styles/highlight.less

@ -4,6 +4,18 @@
* @author Lea Verou
*/
pre code {
display: block;
background: white;
color: #666;
line-height: 1.5;
border: 1px solid #e9e9e9;
padding: 10px 15px;
border-radius: 6px;
font-size: 13px;
white-space: pre;
}
code[class*="language-"],
pre[class*="language-"] {
color: black;
@ -28,6 +40,8 @@ pre[class*="language-"] {
hyphens: none;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,

3
site/common/styles/markdown.less

@ -89,15 +89,16 @@
.markdown pre {
border-radius: 6px;
background: #f7f7f7;
padding: 1em 2em;
}
.markdown pre code {
border: none;
padding: 1em 2em;
background: #f7f7f7;
margin: 0;
}
.markdown strong,
.markdown b {
font-weight: 600;

Loading…
Cancel
Save