2011-06-15 22:50:01 -04:00
|
|
|
.highlight, html .gist .gist-file .gist-syntax .gist-highlight {
|
2011-09-27 01:57:45 -04:00
|
|
|
table td.code { width: 100%; }
|
2011-06-17 22:24:48 -04:00
|
|
|
.line-numbers {
|
2011-06-07 16:12:46 -04:00
|
|
|
text-align: right;
|
2011-07-12 19:40:57 -04:00
|
|
|
font-size: 13px;
|
2011-06-17 22:24:48 -04:00
|
|
|
line-height: 1.45em;
|
2011-07-26 12:08:07 -04:00
|
|
|
@if $solarized == light {
|
|
|
|
background: lighten($base03, 1) $noise-bg !important;
|
|
|
|
border-right: 1px solid darken($base02, 2) !important;
|
|
|
|
@include box-shadow(lighten($base03, 2) -1px 0 inset);
|
|
|
|
text-shadow: lighten($base02, 2) 0 -1px;
|
|
|
|
} @else {
|
|
|
|
background: $base02 $noise-bg !important;
|
|
|
|
border-right: 1px solid darken($base03, 2) !important;
|
|
|
|
@include box-shadow(lighten($base02, 2) -1px 0 inset);
|
|
|
|
text-shadow: darken($base02, 10) 0 -1px;
|
|
|
|
}
|
2011-06-07 16:12:46 -04:00
|
|
|
span { color: $base01 !important; }
|
2011-06-17 22:24:48 -04:00
|
|
|
padding: .8em !important;
|
2011-06-27 15:59:21 -04:00
|
|
|
@include border-radius(0);
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
2011-07-26 12:08:07 -04:00
|
|
|
border: 1px solid $pre-border !important;
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
|
|
|
html .gist .gist-file {
|
2011-07-20 12:20:29 -04:00
|
|
|
margin-bottom: 1.8em;
|
2011-06-15 22:50:01 -04:00
|
|
|
position: relative;
|
2011-06-07 16:12:46 -04:00
|
|
|
border: none;
|
2011-06-15 22:50:01 -04:00
|
|
|
padding-top: image-height("code_bg.png") !important;
|
2011-06-07 16:12:46 -04:00
|
|
|
.gist-syntax {
|
2011-07-26 12:08:07 -04:00
|
|
|
@if $solarized == dark {
|
|
|
|
border-bottom: 1px solid $base03 !important;
|
|
|
|
} @else if $solarized == light {
|
|
|
|
border-bottom: 0px;
|
|
|
|
}
|
2011-06-07 16:12:46 -04:00
|
|
|
.gist-highlight{
|
|
|
|
background: $base03 !important;
|
|
|
|
pre {
|
2011-06-17 22:24:48 -04:00
|
|
|
@extend .pre-code;
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.gist-meta {
|
2011-06-15 22:50:01 -04:00
|
|
|
padding: .6em 0.8em;
|
|
|
|
border: 1px solid lighten($base02, 2) !important;
|
|
|
|
color: $base01;
|
|
|
|
font-size: .7em !important;
|
2011-07-26 12:08:07 -04:00
|
|
|
@if $solarized == light {
|
|
|
|
background: lighten($base03, 2) $noise-bg;
|
|
|
|
border-top: 1px solid lighten($base03, 2) !important;
|
|
|
|
} @else {
|
|
|
|
background: $base02 $noise-bg;
|
|
|
|
}
|
2011-06-15 22:50:01 -04:00
|
|
|
@extend .sans;
|
|
|
|
line-height: 1.5em;
|
|
|
|
a {
|
|
|
|
color: mix($base1, $base01) !important;
|
|
|
|
@include hover-link;
|
|
|
|
&:hover { color: $base1 !important; }
|
|
|
|
}
|
|
|
|
a[href*='#file'] {
|
|
|
|
position: absolute; top: 0; left:0; right:-10px;
|
|
|
|
color: #474747 !important;
|
|
|
|
@extend .code-title;
|
|
|
|
&:hover { color: $link-color !important; }
|
|
|
|
}
|
|
|
|
a[href*=raw]{
|
|
|
|
@extend .download-source;
|
|
|
|
top: .4em;
|
|
|
|
}
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
|
|
|
}
|
2011-06-17 22:24:48 -04:00
|
|
|
pre {
|
2011-07-03 18:11:54 -04:00
|
|
|
background: $pre-bg $noise-bg;
|
2011-06-17 22:24:48 -04:00
|
|
|
@include border-radius(.4em);
|
|
|
|
@extend .mono;
|
2011-07-03 18:11:54 -04:00
|
|
|
border: 1px solid $pre-border;
|
2011-06-17 22:24:48 -04:00
|
|
|
line-height: 1.45em;
|
2011-07-12 19:40:57 -04:00
|
|
|
font-size: 13px;
|
2011-07-23 00:32:19 -04:00
|
|
|
margin-bottom: 2.1em;
|
2011-06-22 18:53:17 -04:00
|
|
|
padding: .8em 1em;
|
2011-07-03 18:11:54 -04:00
|
|
|
color: $pre-color;
|
2011-06-19 15:14:01 -04:00
|
|
|
overflow: auto;
|
2011-06-17 22:24:48 -04:00
|
|
|
}
|
2011-06-24 17:17:35 -04:00
|
|
|
h3.filename {
|
|
|
|
@extend .code-title;
|
|
|
|
+ pre { @include border-top-radius(0px); }
|
|
|
|
}
|
2011-06-07 16:12:46 -04:00
|
|
|
|
2011-09-27 01:57:45 -04:00
|
|
|
p, li {
|
|
|
|
code {
|
|
|
|
@extend .mono;
|
|
|
|
display: inline-block;
|
|
|
|
white-space: no-wrap;
|
|
|
|
background: #fff;
|
|
|
|
font-size: .8em;
|
|
|
|
line-height: 1.5em;
|
|
|
|
color: #555;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
@include border-radius(.4em);
|
|
|
|
padding: 0 .3em;
|
|
|
|
margin: -1px 0;
|
|
|
|
}
|
|
|
|
pre code { font-size: 1em !important; background: none; border: none; }
|
2011-06-17 22:24:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.pre-code {
|
2011-06-15 22:50:01 -04:00
|
|
|
@include selection(adjust-color($base03, $lightness: 23%, $saturation: -65%), $text-shadow: $base03 0 1px);
|
2011-07-17 20:28:02 -04:00
|
|
|
font-family: $mono !important;
|
2011-06-15 22:50:01 -04:00
|
|
|
overflow: scroll;
|
|
|
|
overflow-y: hidden;
|
2011-06-17 22:24:48 -04:00
|
|
|
display: block;
|
|
|
|
padding: .8em !important;
|
2011-06-15 22:50:01 -04:00
|
|
|
overflow-x: auto;
|
2011-06-07 16:12:46 -04:00
|
|
|
line-height: 1.45em;
|
2011-07-03 18:11:54 -04:00
|
|
|
background: $base03 $noise-bg !important;
|
2011-06-07 16:12:46 -04:00
|
|
|
color: $base1 !important;
|
|
|
|
span { color: $base1 !important; }
|
|
|
|
span { font-style: normal !important; font-weight: normal !important; }
|
|
|
|
|
|
|
|
.c { color: $base01 !important; font-style: italic !important; } /* Comment */
|
|
|
|
.cm { color: $base01 !important; font-style: italic !important; } /* Comment.Multiline */
|
|
|
|
.cp { color: $base01 !important; font-style: italic !important; } /* Comment.Preproc */
|
|
|
|
.c1 { color: $base01 !important; font-style: italic !important; } /* Comment.Single */
|
|
|
|
.cs { color: $base01 !important; font-weight: bold !important; font-style: italic !important; } /* Comment.Special */
|
2011-07-26 12:08:07 -04:00
|
|
|
.err { color: $solar-red !important; background: none !important; } /* Error */
|
|
|
|
.k { color: $solar-orange !important; } /* Keyword */
|
2011-06-07 16:12:46 -04:00
|
|
|
.o { color: $base1 !important; font-weight: bold !important; } /* Operator */
|
|
|
|
.p { color: $base1 !important; } /* Operator */
|
2011-07-26 12:08:07 -04:00
|
|
|
.ow { color: $solar-cyan !important; font-weight: bold !important; } /* Operator.Word */
|
|
|
|
.gd { color: $base1 !important; background-color: mix($solar-red, $base03, 25%) !important; display: inline-block; } /* Generic.Deleted */
|
|
|
|
.gd .x { color: $base1 !important; background-color: mix($solar-red, $base03, 35%) !important; display: inline-block; } /* Generic.Deleted.Specific */
|
2011-06-07 16:12:46 -04:00
|
|
|
.ge { color: $base1 !important; font-style: italic !important; } /* Generic.Emph */
|
|
|
|
//.gr { color: #aa0000 } /* Generic.Error */
|
|
|
|
.gh { color: $base01 !important; } /* Generic.Heading */
|
2011-07-26 12:08:07 -04:00
|
|
|
.gi { color: $base1 !important; background-color: mix($solar-green, $base03, 20%) !important; display: inline-block; } /* Generic.Inserted */
|
|
|
|
.gi .x { color: $base1 !important; background-color: mix($solar-green, $base03, 40%) !important; display: inline-block; } /* Generic.Inserted.Specific */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.go { color: #888888 } /* Generic.Output */
|
|
|
|
//.gp { color: #555555 } /* Generic.Prompt */
|
|
|
|
.gs { color: $base1 !important; font-weight: bold !important; } /* Generic.Strong */
|
2011-07-26 12:08:07 -04:00
|
|
|
.gu { color: $solar-violet !important; } /* Generic.Subheading */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.gt { color: #aa0000 } /* Generic.Traceback */
|
2011-07-26 12:08:07 -04:00
|
|
|
.kc { color: $solar-green !important; font-weight: bold !important; } /* Keyword.Constant */
|
|
|
|
.kd { color: $solar-blue !important; } /* Keyword.Declaration */
|
|
|
|
.kp { color: $solar-orange !important; font-weight: bold !important; } /* Keyword.Pseudo */
|
|
|
|
.kr { color: $solar-magenta !important; font-weight: bold !important; } /* Keyword.Reserved */
|
|
|
|
.kt { color: $solar-cyan !important; } /* Keyword.Type */
|
|
|
|
.n { color: $solar-blue !important; }
|
|
|
|
.na { color: $solar-blue !important; } /* Name.Attribute */
|
|
|
|
.nb { color: $solar-green !important; } /* Name.Builtin */
|
|
|
|
.nc { color: $solar-magenta !important;} /* Name.Class */
|
|
|
|
.no { color: $solar-yellow !important; } /* Name.Constant */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.ni { color: #800080 } /* Name.Entity */
|
2011-07-26 12:08:07 -04:00
|
|
|
.nl { color: $solar-green !important; }
|
|
|
|
.ne { color: $solar-blue !important; font-weight: bold !important; } /* Name.Exception */
|
|
|
|
.nf { color: $solar-blue !important; font-weight: bold !important; } /* Name.Function */
|
|
|
|
.nn { color: $solar-yellow !important; } /* Name.Namespace */
|
|
|
|
.nt { color: $solar-blue !important; font-weight: bold !important; } /* Name.Tag */
|
|
|
|
.nx { color: $solar-yellow !Important; }
|
2011-06-07 16:12:46 -04:00
|
|
|
//.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
|
|
|
//.vc { color: #008080 } /* Name.Variable.Class */
|
2011-07-26 12:08:07 -04:00
|
|
|
.vg { color: $solar-blue !important; } /* Name.Variable.Global */
|
|
|
|
.vi { color: $solar-blue !important; } /* Name.Variable.Instance */
|
|
|
|
.nv { color: $solar-blue !important; } /* Name.Variable */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.w { color: #bbbbbb } /* Text.Whitespace */
|
2011-07-26 12:08:07 -04:00
|
|
|
.mf { color: $solar-cyan !important; } /* Literal.Number.Float */
|
|
|
|
.m { color: $solar-cyan !important; } /* Literal.Number */
|
|
|
|
.mh { color: $solar-cyan !important; } /* Literal.Number.Hex */
|
|
|
|
.mi { color: $solar-cyan !important; } /* Literal.Number.Integer */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.mo { color: #009999 } /* Literal.Number.Oct */
|
2011-07-26 12:08:07 -04:00
|
|
|
.s { color: $solar-cyan !important; } /* Literal.String */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.sb { color: #d14 } /* Literal.String.Backtick */
|
|
|
|
//.sc { color: #d14 } /* Literal.String.Char */
|
2011-07-26 12:08:07 -04:00
|
|
|
.sd { color: $solar-cyan !important; } /* Literal.String.Doc */
|
|
|
|
.s2 { color: $solar-cyan !important; } /* Literal.String.Double */
|
|
|
|
.se { color: $solar-red !important; } /* Literal.String.Escape */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.sh { color: #d14 } /* Literal.String.Heredoc */
|
2011-07-26 12:08:07 -04:00
|
|
|
.si { color: $solar-blue !important; } /* Literal.String.Interpol */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.sx { color: #d14 } /* Literal.String.Other */
|
2011-07-26 12:08:07 -04:00
|
|
|
.sr { color: $solar-cyan !important; } /* Literal.String.Regex */
|
|
|
|
.s1 { color: $solar-cyan !important; } /* Literal.String.Single */
|
2011-06-07 16:12:46 -04:00
|
|
|
//.ss { color: #990073 } /* Literal.String.Symbol */
|
|
|
|
//.il { color: #009999 } /* Literal.Number.Integer.Long */
|
2011-08-30 23:11:32 -04:00
|
|
|
div { .gd, .gd .x, .gi, .gi .x { display: inline-block; width: 100%; }}
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
|
|
|
|
2011-06-15 22:50:01 -04:00
|
|
|
.highlight, .gist-highlight {
|
2011-06-17 22:24:48 -04:00
|
|
|
pre { background: none; @include border-radius(none); border: none; padding: 0; margin-bottom: 0; }
|
2011-07-23 00:32:19 -04:00
|
|
|
margin-bottom: 1.8em;
|
2011-06-15 22:50:01 -04:00
|
|
|
background: $base03;
|
2011-06-07 16:12:46 -04:00
|
|
|
overflow-y: hidden;
|
2011-06-15 22:50:01 -04:00
|
|
|
overflow-x: auto;
|
|
|
|
}
|
2011-07-26 12:08:07 -04:00
|
|
|
|
|
|
|
$solar-scroll-bg: rgba(#fff, .15);
|
|
|
|
$solar-scroll-thumb: rgba(#fff, .2);
|
|
|
|
@if $solarized == light {
|
|
|
|
$solar-scroll-bg: rgba(#000, .15);
|
|
|
|
$solar-scroll-thumb: rgba(#000, .15);
|
|
|
|
}
|
|
|
|
|
2011-07-15 15:50:48 -04:00
|
|
|
pre, .highlight, .gist-highlight {
|
2011-07-26 12:08:07 -04:00
|
|
|
&::-webkit-scrollbar { height: .5em; background: $solar-scroll-bg; }
|
|
|
|
&::-webkit-scrollbar-thumb:horizontal { background: $solar-scroll-thumb; -webkit-border-radius: 4px; border-radius: 4px }
|
2011-07-15 15:50:48 -04:00
|
|
|
}
|
|
|
|
|
2011-06-17 22:24:48 -04:00
|
|
|
.highlight code { @extend .pre-code; background: #000;}
|
2011-09-18 07:55:35 -04:00
|
|
|
figure.code {
|
2011-07-18 15:33:11 -04:00
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2011-07-23 00:32:19 -04:00
|
|
|
margin-bottom: 1.5em;
|
|
|
|
pre { margin-bottom: 0; }
|
2011-06-15 22:50:01 -04:00
|
|
|
figcaption {
|
|
|
|
position: relative;
|
|
|
|
@extend .code-title;
|
|
|
|
a { @extend .download-source; }
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
2011-07-26 12:08:07 -04:00
|
|
|
.highlight {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2011-06-07 16:12:46 -04:00
|
|
|
}
|
2011-09-27 01:57:45 -04:00
|
|
|
|
2011-06-15 22:50:01 -04:00
|
|
|
.code-title {
|
|
|
|
text-align: center;
|
2011-06-07 16:12:46 -04:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 2em;
|
|
|
|
text-shadow: #cbcccc 0 1px 0;
|
|
|
|
color: #474747;
|
2011-06-24 17:17:35 -04:00
|
|
|
font-weight: normal;
|
2011-06-07 16:12:46 -04:00
|
|
|
margin-bottom: 0;
|
|
|
|
@include border-top-radius(5px);
|
2011-06-15 22:50:01 -04:00
|
|
|
font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
|
2011-06-07 16:12:46 -04:00
|
|
|
background: #aaaaaa image-url("code_bg.png") top repeat-x;
|
|
|
|
border: 1px solid #565656;
|
|
|
|
border-top-color: #cbcbcb;
|
|
|
|
border-left-color: #a5a5a5;
|
|
|
|
border-right-color: #a5a5a5;
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2011-06-15 22:50:01 -04:00
|
|
|
|
|
|
|
.download-source {
|
|
|
|
position: absolute; right: .8em;
|
|
|
|
@include hover-link;
|
|
|
|
color: #666 !important;
|
|
|
|
z-index: 1;
|
|
|
|
font-size: 13px;
|
|
|
|
text-shadow: #cbcccc 0 1px 0;
|
|
|
|
padding-left: 3em;
|
|
|
|
}
|
2011-09-27 01:57:45 -04:00
|
|
|
|