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 * @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-"], code[class*="language-"],
pre[class*="language-"] { pre[class*="language-"] {
color: black; color: black;
@ -28,6 +40,8 @@ pre[class*="language-"] {
hyphens: none; hyphens: none;
} }
pre[class*="language-"]::-moz-selection, pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"]::-moz-selection,

3
site/common/styles/markdown.less

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

Loading…
Cancel
Save