在管理
--设置
--页面定制CSS代码
中添加
h1,h2,h3,h4,h5,h6 {
border-bottom: 2px solid;
}
.wiz-editor-body .wiz-code-container {
position: relative;
padding: 8px 0;
margin: 5px 25px 5px 5px;
text-indent: 0;
text-align: left;
}
.CodeMirror {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
color: black;
font-size: 10.5pt;
font-size: 0.875rem
}
.wiz-editor-body .wiz-code-container .CodeMirror div {
margin-top: 0;
margin-bottom: 0;
}
.CodeMirror-lines {
padding: 4px 0;
}
.CodeMirror pre {
padding: 0 4px;
}
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: white;
}
.CodeMirror-gutters {
border-right: 1px solid #ddd;
background-color: #f7f7f7;
white-space: nowrap;
}
.CodeMirror-linenumbers {
}
.CodeMirror-linenumber {
padding: 0 3px 0 5px;
min- 20px;
text-align: right;
color: #999;
white-space: nowrap;
}
.CodeMirror-guttermarker {
color: black;
}
.CodeMirror-guttermarker-subtle {
color: #999;
}
.CodeMirror-cursor {
border-left: 1px solid black;
border-right: none;
0;
}
.CodeMirror div.CodeMirror-secondarycursor {
border-left: 1px solid silver;
}
.cm-fat-cursor .CodeMirror-cursor {
auto;
border: 0 !important;
background: #7e7;
}
.cm-fat-cursor div.CodeMirror-cursors {
z-index: 1;
}
.cm-animate-fat-cursor {
auto;
border: 0;
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
background-color: #7e7;
}
@-moz-keyframes blink {
0% {
}
50% {
background-color: transparent;
}
100% {
}
}
@-webkit-keyframes blink {
0% {
}
50% {
background-color: transparent;
}
100% {
}
}
@keyframes blink {
0% {
}
50% {
background-color: transparent;
}
100% {
}
}
.CodeMirror-overwrite .CodeMirror-cursor {
}
.cm-tab {
display: inline-block;
text-decoration: inherit;
}
.CodeMirror-rulers {
position: absolute;
left: 0;
right: 0;
top: -50px;
bottom: -20px;
overflow: hidden;
}
.CodeMirror-ruler {
border-left: 1px solid #ccc;
top: 0;
bottom: 0;
position: absolute;
}
.cm-s-default .cm-header {
color: blue;
}
.cm-s-default .cm-quote {
color: #090;
}
.cm-negative {
color: #d44;
}
.cm-positive {
color: #292;
}
.cm-header, .cm-strong {
font-weight: bold;
}
.cm-em {
font-style: italic;
}
.cm-link {
text-decoration: underline;
}
.cm-strikethrough {
text-decoration: line-through;
}
.cm-s-default .cm-keyword {
color: #708;
}
.cm-s-default .cm-atom {
color: #219;
}
.cm-s-default .cm-number {
color: #164;
}
.cm-s-default .cm-def {
color: #00f;
}
.cm-s-default .cm-variable,.cm-s-default .cm-punctuation,.cm-s-default .cm-property,.cm-s-default .cm-operator {
}
.cm-s-default .cm-variable-2 {
color: #05a;
}
.cm-s-default .cm-variable-3 {
color: #085;
}
.cm-s-default .cm-comment {
color: #a50;
}
.cm-s-default .cm-string {
color: #a11;
}
.cm-s-default .cm-string-2 {
color: #f50;
}
.cm-s-default .cm-meta {
color: #555;
}
.cm-s-default .cm-qualifier {
color: #555;
}
.cm-s-default .cm-builtin {
color: #30a;
}
.cm-s-default .cm-bracket {
color: #997;
}
.cm-s-default .cm-tag {
color: #170;
}
.cm-s-default .cm-attribute {
color: #00c;
}
.cm-s-default .cm-hr {
color: #999;
}
.cm-s-default .cm-link {
color: #00c;
}
.cm-s-default .cm-error {
color: #f00;
}
.cm-invalidchar {
color: #f00;
}
.CodeMirror-composing {
border-bottom: 2px solid;
}
div.CodeMirror span.CodeMirror-matchingbracket {
color: #0f0;
}
div.CodeMirror span.CodeMirror-nonmatchingbracket {
color: #f22;
}
.CodeMirror-matchingtag {
background: rgba(255, 150, 0, .3);
}
.CodeMirror-activeline-background {
background: #e8f2ff;
}
.CodeMirror {
position: relative;
background: #f5f5f5;
}
.CodeMirror-scroll {
overflow: hidden !important;
margin-bottom: 0;
margin-right: -30px;
padding: 16px 30px 16px 0;
outline: none;
position: relative;
}
.CodeMirror-sizer {
position: relative;
border-right: 30px solid transparent;
}
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
position: absolute;
z-index: 6;
display: none;
}
.CodeMirror-vscrollbar {
right: 0;
top: 0;
overflow-x: hidden;
overflow-y: scroll;
}
.CodeMirror-hscrollbar {
bottom: 0;
left: 0 !important;
overflow-y: hidden;
overflow-x: scroll;
}
.CodeMirror-scrollbar-filler {
right: 0;
bottom: 0;
}
.CodeMirror-gutter-filler {
left: 0;
bottom: 0;
}
.CodeMirror-gutters {
position: absolute;
left: 0;
top: -5px;
min-height: 100%;
z-index: 3;
}
.CodeMirror-gutter {
white-space: normal;
height: inherit;
display: inline-block;
vertical-align: top;
margin-bottom: -30px;
}
.CodeMirror-gutter-wrapper {
position: absolute;
z-index: 4;
background: none !important;
border: none !important;
}
.CodeMirror-gutter-background {
position: absolute;
top: 0;
bottom: 0;
z-index: 4;
}
.CodeMirror-gutter-elt {
position: absolute;
cursor: default;
z-index: 4;
text-align: center;
}
.CodeMirror-gutter-wrapper ::selection {
background-color: transparent
}
.CodeMirror-gutter-wrapper ::-moz-selection {
background-color: transparent
}
.CodeMirror-lines {
cursor: text;
min-height: 1px;
}
.CodeMirror pre {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
border- 0;
background: transparent;
font-family: inherit;
font-size: inherit;
margin: 0;
white-space: pre;
word-wrap: normal;
line-height: inherit;
color: inherit;
z-index: 2;
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
.CodeMirror-wrap pre {
word-wrap: break-word;
white-space: pre-wrap;
word-break: normal;
}
.CodeMirror-linebackground {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 0;
}
.CodeMirror-linewidget {
position: relative;
z-index: 2;
overflow: auto;
}
.CodeMirror-widget {
}
.CodeMirror-rtl pre {
direction: rtl;
}
.CodeMirror-code {
outline: none;
}
.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber {
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.CodeMirror-measure {
position: absolute;
100%;
height: 0;
overflow: hidden;
visibility: hidden;
}
.CodeMirror-cursor {
position: absolute;
pointer-events: none;
}
.CodeMirror-measure pre {
position: static;
}
div.CodeMirror-cursors {
visibility: hidden;
position: relative;
z-index: 3;
}
div.CodeMirror-dragcursors {
visibility: visible;
}
.CodeMirror-focused div.CodeMirror-cursors {
visibility: visible;
}
.CodeMirror-selected {
background: #d9d9d9;
}
.CodeMirror-focused .CodeMirror-selected {
background: #d7d4f0;
}
.CodeMirror-crosshair {
cursor: crosshair;
}
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection {
background: #d7d4f0;
}
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection {
background: #d7d4f0;
}
.cm-searching {
background: #ffa;
background: rgba(255, 255, 0, .4);
}
.cm-force-border {
padding-right: .1px;
}
@media print {
.CodeMirror div.CodeMirror-cursors {
visibility: hidden;
}
}
.cm-tab-wrap-hack:after {
content: "";
}
span.CodeMirror-selectedtext {
background: none;
}
.CodeMirror-activeline-background, .CodeMirror-selected {
transition: visibility 0ms 100ms;
}
.CodeMirror-blur .CodeMirror-activeline-background, .CodeMirror-blur .CodeMirror-selected {
visibility: hidden;
}
.CodeMirror-blur .CodeMirror-matchingbracket {
color: inherit !important;
outline: none !important;
text-decoration: none !important;
}
.CodeMirror-sizer {
min-height: auto !important;
}
.cm-s-eclipse span.cm-meta {
color: #FF1717;
}
.cm-s-eclipse span.cm-keyword {
line-height: 1em;
font-weight: bold;
color: #7F0055;
}
.cm-s-eclipse span.cm-atom {
color: #219;
}
.cm-s-eclipse span.cm-number {
color: #164;
}
.cm-s-eclipse span.cm-def {
color: #00f;
}
.cm-s-eclipse span.cm-variable {
color: black;
}
.cm-s-eclipse span.cm-variable-2 {
color: #0000C0;
}
.cm-s-eclipse span.cm-variable-3 {
color: #0000C0;
}
.cm-s-eclipse span.cm-property {
color: black;
}
.cm-s-eclipse span.cm-operator {
color: black;
}
.cm-s-eclipse span.cm-comment {
color: #3F7F5F;
}
.cm-s-eclipse span.cm-string {
color: #2A00FF;
}
.cm-s-eclipse span.cm-string-2 {
color: #f50;
}
.cm-s-eclipse span.cm-qualifier {
color: #555;
}
.cm-s-eclipse span.cm-builtin {
color: #30a;
}
.cm-s-eclipse span.cm-bracket {
color: #cc7;
}
.cm-s-eclipse span.cm-tag {
color: #170;
}
.cm-s-eclipse span.cm-attribute {
color: #00c;
}
.cm-s-eclipse span.cm-link {
color: #219;
}
.cm-s-eclipse span.cm-error {
color: #f00;
}
.cm-s-eclipse .CodeMirror-activeline-background {
background: #e8f2ff;
}
.cm-s-eclipse .CodeMirror-matchingbracket {
outline: 1px solid grey;
color: black !important;
}
html, .wiz-editor-body {
font-size: 12pt;
}
.wiz-editor-body {
font-family: Helvetica, 'Hiragino Sans GB', '寰�蒋闆呴粦', 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif;
line-height: 1.7;
margin: 0 auto;
padding: 20px 16px;
padding: 1.25rem 1rem;
}
.wiz-editor-body h1,.wiz-editor-body h2,.wiz-editor-body h3,.wiz-editor-body h4,.wiz-editor-body h5,.wiz-editor-body h6 {
margin: 20px 0 10px;
margin: 1.25rem 0 0.625rem;
padding: 0;
font-weight: bold;
}
.wiz-editor-body h1 {
font-size: 20pt;
font-size: 1.67rem;
}
.wiz-editor-body h2 {
font-size: 18pt;
font-size: 1.5rem;
}
.wiz-editor-body h3 {
font-size: 15pt;
font-size: 1.25rem;
}
.wiz-editor-body h4 {
font-size: 14pt;
font-size: 1.17rem;
}
.wiz-editor-body h5 {
font-size: 12pt;
font-size: 1rem;
}
.wiz-editor-body h6 {
font-size: 12pt;
font-size: 1rem;
color: #777777;
margin: 1rem 0;
}
.wiz-editor-body div,.wiz-editor-body p,.wiz-editor-body ul,.wiz-editor-body ol,.wiz-editor-body dl,.wiz-editor-body li {
margin: 8px 0;
}
.wiz-editor-body blockquote,.wiz-editor-body table,.wiz-editor-body pre,.wiz-editor-body code {
margin: 8px 0;
}
.wiz-editor-body .CodeMirror pre {
margin: 0;
}
.wiz-editor-body ul,.wiz-editor-body ol {
padding-left: 32px;
padding-left: 2rem;
}
.wiz-editor-body ol.wiz-list-level1 > li {
list-style-type: decimal;
}
.wiz-editor-body ol.wiz-list-level2 > li {
list-style-type: lower-latin;
}
.wiz-editor-body ol.wiz-list-level3 > li {
list-style-type: lower-roman;
}
.wiz-editor-body blockquote {
padding: 0 12px;
}
.wiz-editor-body blockquote > :first-child {
margin-top: 0;
}
.wiz-editor-body blockquote > :last-child {
margin-bottom: 0;
}
.wiz-editor-body img {
border: 0;
max- 100%;
height: auto !important;
margin: 2px 0;
}
.wiz-editor-body table {
border-collapse: collapse;
border: 1px solid #bbbbbb;
}
.wiz-editor-body td,.wiz-editor-body th {
padding: 4px 8px;
border-collapse: collapse;
border: 1px solid #bbbbbb;
min-height: 28px;
word-break: break-word;
box-sizing: border-box;
}
.wiz-hide {
display: none !important;
}
.hljs {
display: block;
padding: 0.5em;
background: #F0F0F0;
}
.hljs,
.hljs-subst,
.hljs-tag .hljs-title,
.lisp .hljs-title,
.clojure .hljs-built_in,
.nginx .hljs-title {
color: black;
}
.hljs-string,
.hljs-title,
.hljs-constant,
.hljs-parent,
.hljs-tag .hljs-value,
.hljs-rules .hljs-value,
.hljs-rules .hljs-value .hljs-number,
.hljs-preprocessor,
.hljs-pragma,
.haml .hljs-symbol,
.ruby .hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.hljs-aggregate,
.hljs-template_tag,
.django .hljs-variable,
.smalltalk .hljs-class,
.hljs-addition,
.hljs-flow,
.hljs-stream,
.bash .hljs-variable,
.apache .hljs-tag,
.apache .hljs-cbracket,
.tex .hljs-command,
.tex .hljs-special,
.erlang_repl .hljs-function_or_atom,
.asciidoc .hljs-header,
.markdown .hljs-header,
.coffeescript .hljs-attribute {
color: #800;
}
.smartquote,
.hljs-comment,
.hljs-annotation,
.hljs-template_comment,
.diff .hljs-header,
.hljs-chunk,
.asciidoc .hljs-blockquote,
.markdown .hljs-blockquote {
color: #888;
}
.hljs-number,
.hljs-date,
.hljs-regexp,
.hljs-literal,
.hljs-hexcolor,
.smalltalk .hljs-symbol,
.smalltalk .hljs-char,
.go .hljs-constant,
.hljs-change,
.lasso .hljs-variable,
.makefile .hljs-variable,
.asciidoc .hljs-bullet,
.markdown .hljs-bullet,
.asciidoc .hljs-link_url,
.markdown .hljs-link_url {
color: #080;
}
.hljs-label,
.hljs-javadoc,
.ruby .hljs-string,
.hljs-decorator,
.hljs-filter .hljs-argument,
.hljs-localvars,
.hljs-array,
.hljs-attr_selector,
.hljs-important,
.hljs-pseudo,
.hljs-pi,
.haml .hljs-bullet,
.hljs-doctype,
.hljs-deletion,
.hljs-envvar,
.hljs-shebang,
.apache .hljs-sqbracket,
.nginx .hljs-built_in,
.tex .hljs-formula,
.erlang_repl .hljs-reserved,
.hljs-prompt,
.asciidoc .hljs-link_label,
.markdown .hljs-link_label,
.vhdl .hljs-attribute,
.clojure .hljs-attribute,
.asciidoc .hljs-attribute,
.lasso .hljs-attribute,
.coffeescript .hljs-property,
.hljs-phony {
color: #88F
}
.hljs-keyword,
.hljs-id,
.hljs-title,
.hljs-built_in,
.hljs-aggregate,
.css .hljs-tag,
.hljs-javadoctag,
.hljs-phpdoc,
.hljs-yardoctag,
.smalltalk .hljs-class,
.hljs-winutils,
.bash .hljs-variable,
.apache .hljs-tag,
.go .hljs-typename,
.tex .hljs-command,
.asciidoc .hljs-strong,
.markdown .hljs-strong,
.hljs-request,
.hljs-status {
font-weight: bold;
}
.asciidoc .hljs-emphasis,
.markdown .hljs-emphasis {
font-style: italic;
}
.nginx .hljs-built_in {
font-weight: normal;
}
.coffeescript .javascript,
.javascript .xml,
.lasso .markup,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
opacity: 0.5;
}
pre {
font-size: 13px;
}
pre, code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
word-wrap: break-word;
display: block;
/* 1px; */
}
.pln {
color: #48484C;
}
.str {
color: #DD1144;
}
.kwd {
color: #1E347B;
}
.com {
color: #93A1A1;
}
.typ {
color: teal;
}
.lit {
color: #195F91;
}
.pun {
color: #93A1A1;
}
.opn {
color: #93A1A1;
}
.clo {
color: #93A1A1;
}
.tag {
color: #008;
}
.atn {
color: teal;
}
.atv {
color: #DD1144;
}
.dec {
color: teal;
}
.var {
color: teal;
}
.fun {
color: #DC322F;
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
background-color: #F7F7F9;
padding: 0px;
border: 1px solid #E1E1E8;
tab-size: 4;
}
pre.prettyprint.linenums {
overflow: auto;
-webkit-overflow-scrolling: touch;
}
/* Specify class=linenums on a pre to get line numbering */
pre.prettyprint.linenums ol.linenums {
box-shadow: 40px 0 0 #FBFBFC inset, 41px 0 0 #ECECF0 inset;
color: #1E347B;
padding: 10px 10px 10px 40px !important;
margin-top: 0;
margin-bottom: 0;
}
pre.prettyprint.linenums ol.linenums li {
color: #BEBEC5;
line-height: 18px;
padding-left: 12px !important;
}
pre.prettyprint.linenums ol.linenums li.L0,
pre.prettyprint.linenums ol.linenums li.L1,
pre.prettyprint.linenums ol.linenums li.L2,
pre.prettyprint.linenums ol.linenums li.L3,
pre.prettyprint.linenums ol.linenums li.L4,
pre.prettyprint.linenums ol.linenums li.L5,
pre.prettyprint.linenums ol.linenums li.L6,
pre.prettyprint.linenums ol.linenums li.L7,
pre.prettyprint.linenums ol.linenums li.L8,
pre.prettyprint.linenums ol.linenums li.L9 {
list-style-type: decimal !important;
}
/*生成博客目录的CSS*/
#uprightsideBar{
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
text-align:left;
position:fixed;/*将div的位置固定到距离top:50px,right:0px的位置,这样div就会处在最右边的位置,距离顶部50px*/
top:50px;
right:0px;
auto;
height: auto;
}
#sideBarTab{
float:left;
30px;
border:1px solid #e5e5e5;
border-right:none;
text-align:center;
background:#ffffff;
}
#sideBarContents{
float:left;
overflow:auto;
overflow-x:hidden;!important;
200px;
min-height:108px;
max-height:460px;
border:1px solid #e5e5e5;
border-right:none;
background:#ffffff;
}
#sideBarContents dl{
margin:0;
padding:0;
}
#sideBarContents dt{
margin-top:5px;
margin-left:5px;
}
#sideBarContents dd, dt {
cursor: pointer;
}
#sideBarContents dd:hover, dt:hover {
color:#A7995A;
}
#sideBarContents dd{
margin-left:20px;
}
.blogpost-body pre code{
height: 1px;
overflow: hidden;
}
.blogpost-body pre .hljs{
height: auto;
}
.cnblogs_code pre {
overflow: auto;
height: auto;
}