Commit 085321d6 by 段启岩

修改博客代码样式

parent 00a8a6ab
...@@ -92,84 +92,104 @@ $index5:500; ...@@ -92,84 +92,104 @@ $index5:500;
} }
%markdown{ %markdown{
/** /*
* GitHub Gist Theme
* Author : Anthony Attard - https://github.com/AnthonyAttard github.com style (c) Vasily Polovnyov <vast@whiteants.net>
* Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro
*/ */
.hljs { .hljs {
display: block; display: block;
background: white;
padding: 0.5em;
color: #333333;
overflow-x: auto; overflow-x: auto;
padding: 0.5em;
color: #333;
background: #fcfcfc;
} }
.hljs-comment, .hljs-comment,
.hljs-meta {
color: #969896;
}
.hljs-variable,
.hljs-template-variable,
.hljs-strong,
.hljs-emphasis,
.hljs-quote { .hljs-quote {
color: #df5000; color: #998;
font-style: italic;
} }
.hljs-keyword, .hljs-keyword,
.hljs-selector-tag, .hljs-selector-tag,
.hljs-type { .hljs-subst {
color: #d73a49; color: #333;
font-weight: bold;
} }
.hljs-number,
.hljs-literal, .hljs-literal,
.hljs-symbol, .hljs-variable,
.hljs-bullet, .hljs-template-variable,
.hljs-attribute { .hljs-tag .hljs-attr {
color: #0086b3; color: #008080;
}
.hljs-string,
.hljs-doctag {
color: #d14;
} }
.hljs-title,
.hljs-section, .hljs-section,
.hljs-name { .hljs-selector-id {
color: #63a35c; color: #900;
font-weight: bold;
} }
.hljs-tag { .hljs-subst {
color: #333333; font-weight: normal;
} }
.hljs-title, .hljs-type,
.hljs-attr, .hljs-class .hljs-title {
.hljs-selector-id, color: #458;
.hljs-selector-class, font-weight: bold;
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #6f42c1;
} }
.hljs-addition { .hljs-tag,
color: #55a532; .hljs-name,
background-color: #eaffea; .hljs-attribute {
color: #000080;
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}
.hljs-meta {
color: #999;
font-weight: bold;
} }
.hljs-deletion { .hljs-deletion {
color: #bd2c00; background: #fdd;
background-color: #ffecec;
} }
.hljs-link { .hljs-addition {
text-decoration: underline; background: #dfd;
} }
.hljs-number { .hljs-emphasis {
color: #005cc5; font-style: italic;
} }
.hljs-string { .hljs-strong {
color: #032f62; font-weight: bold;
} }
...@@ -179,14 +199,14 @@ $index5:500; ...@@ -179,14 +199,14 @@ $index5:500;
margin-bottom: 24px; margin-bottom: 24px;
border-radius: 2px; border-radius: 2px;
border: 1px solid #f6f6f6; border: 1px solid #f6f6f6;
//background: #FFF; background: #FFF;
overflow: hidden; overflow: hidden;
} }
code { code {
display: block; display: block;
padding: 12px 24px; padding: 6px 12px;
overflow-y: auto; overflow-y: auto;
font-weight: 400; font-weight: 300;
font-family: Menlo, monospace; font-family: Menlo, monospace;
font-size: 14px; font-size: 14px;
} }
......
...@@ -424,7 +424,6 @@ ...@@ -424,7 +424,6 @@
pre{ pre{
line-height: 1.5; line-height: 1.5;
padding: 15px; padding: 15px;
background-color: #f1f1f1;
border-radius: 5px; border-radius: 5px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment