Created
September 19, 2015 23:08
-
-
Save matipan/32cd03275b0d96addce5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.highlight{ | |
code, kbd, pre, samp{ | |
font-family: 'Source Code Pro', ; | |
} | |
pre { | |
counter-reset: line-numbering; | |
border: solid 1px #d9d9d9; | |
border-radius: 0; | |
background: #f5f5f5; | |
padding: 0; | |
line-height: 20px; | |
margin-bottom: 30px; | |
white-space: pre; | |
overflow-x: auto; | |
word-break: inherit; | |
word-wrap: inherit; | |
box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
-webkit-box-sizing:border-box; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
} | |
pre a::before { | |
content: counter(line-numbering); | |
counter-increment: line-numbering; | |
padding-right: .6em; /* space after numbers */ | |
padding-left: .2em; | |
width: 33px; | |
box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
-webkit-box-sizing:border-box; | |
text-align: right; | |
opacity: 0.7; | |
display: inline-block; | |
color: #2b2b2b; | |
background: #e9e9e9; | |
border-right: 1px solid #909090; | |
margin-right: 10px; | |
font-size: 13px; | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
} | |
.highlight .hll { background-color: #ffffcc } | |
.highlight .c { color: #0099FF; font-style: italic } /* Comment */ | |
.highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */ | |
.highlight .k { color: #006699; font-weight: bold } /* Keyword */ | |
.highlight .o { color: #555555 } /* Operator */ | |
.highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */ | |
.highlight .cp { color: #009999 } /* Comment.Preproc */ | |
.highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */ | |
.highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */ | |
.highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */ | |
.highlight .ge { font-style: italic } /* Generic.Emph */ | |
.highlight .gr { color: #FF0000 } /* Generic.Error */ | |
.highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */ | |
.highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */ | |
.highlight .go { color: #AAAAAA } /* Generic.Output */ | |
.highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */ | |
.highlight .gs { font-weight: bold } /* Generic.Strong */ | |
.highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */ | |
.highlight .gt { color: #99CC66 } /* Generic.Traceback */ | |
.highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */ | |
.highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */ | |
.highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */ | |
.highlight .kp { color: #006699 } /* Keyword.Pseudo */ | |
.highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */ | |
.highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */ | |
.highlight .m { color: #FF6600 } /* Literal.Number */ | |
.highlight .s { color: #CC3300 } /* Literal.String */ | |
.highlight .na { color: #330099 } /* Name.Attribute */ | |
.highlight .nb { color: #336666 } /* Name.Builtin */ | |
.highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */ | |
.highlight .no { color:#B8860B } /* Name.Constant */ | |
.highlight .nd { color: #9999FF } /* Name.Decorator */ | |
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */ | |
.highlight .nf { color: #CC00FF } /* Name.Function */ | |
.highlight .nl { color: #9999FF } /* Name.Label */ | |
.highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */ | |
.highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */ | |
.highlight .nv { color: #003333 } /* Name.Variable */ | |
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ | |
.highlight .w { color: #bbbbbb } /* Text.Whitespace */ | |
.highlight .mf { color: #FF6600 } /* Literal.Number.Float */ | |
.highlight .mh { color: #FF6600 } /* Literal.Number.Hex */ | |
.highlight .mi { color: #FF6600 } /* Literal.Number.Integer */ | |
.highlight .mo { color: #FF6600 } /* Literal.Number.Oct */ | |
.highlight .sb { color: #CC3300 } /* Literal.String.Backtick */ | |
.highlight .sc { color: #CC3300 } /* Literal.String.Char */ | |
.highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */ | |
.highlight .s2 { color: #CC3300 } /* Literal.String.Double */ | |
.highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */ | |
.highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */ | |
.highlight .si { color: #AA0000 } /* Literal.String.Interpol */ | |
.highlight .sx { color: #CC3300 } /* Literal.String.Other */ | |
.highlight .sr { color: #33AAAA } /* Literal.String.Regex */ | |
.highlight .s1 { color: #CC3300 } /* Literal.String.Single */ | |
.highlight .ss { color: #9999fa } /* Literal.String.Symbol */ | |
.highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */ | |
.highlight .vc { color: #003333 } /* Name.Variable.Class */ | |
.highlight .vg { color: #003333 } /* Name.Variable.Global */ | |
.highlight .vi { color: #003333 } /* Name.Variable.Instance */ | |
.highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment