mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 08:28:50 -05:00
imrpoved support for light colored solarized theme
This commit is contained in:
parent
3ebe3e5a0e
commit
38e6772260
@ -1,18 +1,34 @@
|
|||||||
$base03: #002b36 !default; //darkest blue
|
$base03: #002b36 !default; //darkest blue
|
||||||
$base02: #073642 !default; //dark blue
|
$base02: #073642 !default; //dark blue
|
||||||
$base01: #586e75 !default; //darkest gray
|
$base01: #586e75 !default; //darkest gray
|
||||||
$base00: #657b83 !default; //dark gray
|
$base00: #657b83 !default; //dark gray
|
||||||
$base0: #839496 !default; //medium gray
|
$base0: #839496 !default; //medium gray
|
||||||
$base1: #93a1a1 !default; //medium light gray
|
$base1: #93a1a1 !default; //medium light gray
|
||||||
$base2: #eee8d5 !default; //cream
|
$base2: #eee8d5 !default; //cream
|
||||||
$base3: #fdf6e3 !default; //white
|
$base3: #fdf6e3 !default; //white
|
||||||
$yellow: #b58900 !default;
|
$solar-yellow: #b58900 !default;
|
||||||
$orange: #cb4b16 !default;
|
$solar-orange: #cb4b16 !default;
|
||||||
$red: #dc322f !default;
|
$solar-red: #dc322f !default;
|
||||||
$magenta: #d33682 !default;
|
$solar-magenta: #d33682 !default;
|
||||||
$violet: #6c71c4 !default;
|
$solar-violet: #6c71c4 !default;
|
||||||
$blue: #268bd2 !default;
|
$solar-blue: #268bd2 !default;
|
||||||
$cyan: #2aa198 !default;
|
$solar-cyan: #2aa198 !default;
|
||||||
$green: #859900 !default;
|
$solar-green: #859900 !default;
|
||||||
|
|
||||||
|
$solarized: dark !default;
|
||||||
|
|
||||||
|
@if $solarized == light {
|
||||||
|
$base03: #fdf6e3;
|
||||||
|
$base02: #eee8d5;
|
||||||
|
$base01: #93a1a1;
|
||||||
|
$base00: #839496;
|
||||||
|
$base0: #657b83;
|
||||||
|
$base1: #586e75;
|
||||||
|
$base2: #073642;
|
||||||
|
$base3: #002b36;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* non highlighted code colors */
|
||||||
$pre-bg: $base03 !default;
|
$pre-bg: $base03 !default;
|
||||||
|
$pre-border: $base02 !default;
|
||||||
|
$pre-color: $base1 !default;
|
||||||
|
@ -21,11 +21,6 @@ $text-color: #222 !default;
|
|||||||
$text-color-light: #aaa !default;
|
$text-color-light: #aaa !default;
|
||||||
$type-border: #ddd !default;
|
$type-border: #ddd !default;
|
||||||
|
|
||||||
/* non highlighted code colors */
|
|
||||||
$pre-bg: $base03 !default;
|
|
||||||
$pre-border: $base02 !default;
|
|
||||||
$pre-color: $base1 !default;
|
|
||||||
|
|
||||||
/* Navigation */
|
/* Navigation */
|
||||||
$nav-bg: #ccc !default;
|
$nav-bg: #ccc !default;
|
||||||
$nav-color: darken($nav-bg, 38) !default;
|
$nav-color: darken($nav-bg, 38) !default;
|
||||||
@ -85,4 +80,3 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,12 +9,5 @@
|
|||||||
//$sidebar-link-color-hover: darken(#7ab662, 9);
|
//$sidebar-link-color-hover: darken(#7ab662, 9);
|
||||||
|
|
||||||
|
|
||||||
//To use the light Solarized highlighting theme uncomment this block
|
//To use the light Solarized highlighting theme uncomment the following line
|
||||||
//$base03: $base3;
|
//$solarized: light
|
||||||
//$base02: $base2;
|
|
||||||
//$base01: $base1;
|
|
||||||
//$base00: $base0;
|
|
||||||
//$base0: $base00;
|
|
||||||
//$base1: $base01;
|
|
||||||
//$base2: $base02;
|
|
||||||
//$base3: $base03;
|
|
||||||
|
@ -3,14 +3,22 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.45em;
|
line-height: 1.45em;
|
||||||
background: $base02 $noise-bg !important;
|
@if $solarized == light {
|
||||||
border-right: 1px solid darken($base03, 2) !important;
|
background: lighten($base03, 1) $noise-bg !important;
|
||||||
@include box-shadow(lighten($base02, 2) -1px 0 inset);
|
border-right: 1px solid darken($base02, 2) !important;
|
||||||
text-shadow: darken($base02, 10) 0 -1px;
|
@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;
|
||||||
|
}
|
||||||
span { color: $base01 !important; }
|
span { color: $base01 !important; }
|
||||||
padding: .8em !important;
|
padding: .8em !important;
|
||||||
@include border-radius(0);
|
@include border-radius(0);
|
||||||
}
|
}
|
||||||
|
border: 1px solid $pre-border !important;
|
||||||
}
|
}
|
||||||
html .gist .gist-file {
|
html .gist .gist-file {
|
||||||
margin-bottom: 1.8em;
|
margin-bottom: 1.8em;
|
||||||
@ -18,7 +26,11 @@ html .gist .gist-file {
|
|||||||
border: none;
|
border: none;
|
||||||
padding-top: image-height("code_bg.png") !important;
|
padding-top: image-height("code_bg.png") !important;
|
||||||
.gist-syntax {
|
.gist-syntax {
|
||||||
border-bottom: 1px solid darken($base03, 2) !important;
|
@if $solarized == dark {
|
||||||
|
border-bottom: 1px solid $base03 !important;
|
||||||
|
} @else if $solarized == light {
|
||||||
|
border-bottom: 0px;
|
||||||
|
}
|
||||||
.gist-highlight{
|
.gist-highlight{
|
||||||
background: $base03 !important;
|
background: $base03 !important;
|
||||||
pre {
|
pre {
|
||||||
@ -31,7 +43,12 @@ html .gist .gist-file {
|
|||||||
border: 1px solid lighten($base02, 2) !important;
|
border: 1px solid lighten($base02, 2) !important;
|
||||||
color: $base01;
|
color: $base01;
|
||||||
font-size: .7em !important;
|
font-size: .7em !important;
|
||||||
background: $base02 $noise-bg;
|
@if $solarized == light {
|
||||||
|
background: lighten($base03, 2) $noise-bg;
|
||||||
|
border-top: 1px solid lighten($base03, 2) !important;
|
||||||
|
} @else {
|
||||||
|
background: $base02 $noise-bg;
|
||||||
|
}
|
||||||
@extend .sans;
|
@extend .sans;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
a {
|
a {
|
||||||
@ -101,62 +118,62 @@ p code {
|
|||||||
.cp { color: $base01 !important; font-style: italic !important; } /* Comment.Preproc */
|
.cp { color: $base01 !important; font-style: italic !important; } /* Comment.Preproc */
|
||||||
.c1 { color: $base01 !important; font-style: italic !important; } /* Comment.Single */
|
.c1 { color: $base01 !important; font-style: italic !important; } /* Comment.Single */
|
||||||
.cs { color: $base01 !important; font-weight: bold !important; font-style: italic !important; } /* Comment.Special */
|
.cs { color: $base01 !important; font-weight: bold !important; font-style: italic !important; } /* Comment.Special */
|
||||||
.err { color: $red !important; background: none !important; } /* Error */
|
.err { color: $solar-red !important; background: none !important; } /* Error */
|
||||||
.k { color: $orange !important; } /* Keyword */
|
.k { color: $solar-orange !important; } /* Keyword */
|
||||||
.o { color: $base1 !important; font-weight: bold !important; } /* Operator */
|
.o { color: $base1 !important; font-weight: bold !important; } /* Operator */
|
||||||
.p { color: $base1 !important; } /* Operator */
|
.p { color: $base1 !important; } /* Operator */
|
||||||
.ow { color: $cyan !important; font-weight: bold !important; } /* Operator.Word */
|
.ow { color: $solar-cyan !important; font-weight: bold !important; } /* Operator.Word */
|
||||||
.gd { color: $base1 !important; background-color: mix($red, $base03, 25%) !important; display: inline-block; } /* Generic.Deleted */
|
.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($red, $base03, 35%) !important; display: inline-block; } /* Generic.Deleted.Specific */
|
.gd .x { color: $base1 !important; background-color: mix($solar-red, $base03, 35%) !important; display: inline-block; } /* Generic.Deleted.Specific */
|
||||||
.ge { color: $base1 !important; font-style: italic !important; } /* Generic.Emph */
|
.ge { color: $base1 !important; font-style: italic !important; } /* Generic.Emph */
|
||||||
//.gr { color: #aa0000 } /* Generic.Error */
|
//.gr { color: #aa0000 } /* Generic.Error */
|
||||||
.gh { color: $base01 !important; } /* Generic.Heading */
|
.gh { color: $base01 !important; } /* Generic.Heading */
|
||||||
.gi { color: $base1 !important; background-color: mix($green, $base03, 20%) !important; display: inline-block; } /* Generic.Inserted */
|
.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($green, $base03, 40%) !important; display: inline-block; } /* Generic.Inserted.Specific */
|
.gi .x { color: $base1 !important; background-color: mix($solar-green, $base03, 40%) !important; display: inline-block; } /* Generic.Inserted.Specific */
|
||||||
//.go { color: #888888 } /* Generic.Output */
|
//.go { color: #888888 } /* Generic.Output */
|
||||||
//.gp { color: #555555 } /* Generic.Prompt */
|
//.gp { color: #555555 } /* Generic.Prompt */
|
||||||
.gs { color: $base1 !important; font-weight: bold !important; } /* Generic.Strong */
|
.gs { color: $base1 !important; font-weight: bold !important; } /* Generic.Strong */
|
||||||
.gu { color: $violet !important; } /* Generic.Subheading */
|
.gu { color: $solar-violet !important; } /* Generic.Subheading */
|
||||||
//.gt { color: #aa0000 } /* Generic.Traceback */
|
//.gt { color: #aa0000 } /* Generic.Traceback */
|
||||||
.kc { color: $green !important; font-weight: bold !important; } /* Keyword.Constant */
|
.kc { color: $solar-green !important; font-weight: bold !important; } /* Keyword.Constant */
|
||||||
.kd { color: $blue !important; } /* Keyword.Declaration */
|
.kd { color: $solar-blue !important; } /* Keyword.Declaration */
|
||||||
.kp { color: $orange !important; font-weight: bold !important; } /* Keyword.Pseudo */
|
.kp { color: $solar-orange !important; font-weight: bold !important; } /* Keyword.Pseudo */
|
||||||
.kr { color: $magenta !important; font-weight: bold !important; } /* Keyword.Reserved */
|
.kr { color: $solar-magenta !important; font-weight: bold !important; } /* Keyword.Reserved */
|
||||||
.kt { color: $cyan !important; } /* Keyword.Type */
|
.kt { color: $solar-cyan !important; } /* Keyword.Type */
|
||||||
.n { color: $blue !important; }
|
.n { color: $solar-blue !important; }
|
||||||
.na { color: $blue !important; } /* Name.Attribute */
|
.na { color: $solar-blue !important; } /* Name.Attribute */
|
||||||
.nb { color: $green !important; } /* Name.Builtin */
|
.nb { color: $solar-green !important; } /* Name.Builtin */
|
||||||
.nc { color: $magenta !important;} /* Name.Class */
|
.nc { color: $solar-magenta !important;} /* Name.Class */
|
||||||
.no { color: $yellow !important; } /* Name.Constant */
|
.no { color: $solar-yellow !important; } /* Name.Constant */
|
||||||
//.ni { color: #800080 } /* Name.Entity */
|
//.ni { color: #800080 } /* Name.Entity */
|
||||||
.nl { color: $green !important; }
|
.nl { color: $solar-green !important; }
|
||||||
.ne { color: $blue !important; font-weight: bold !important; } /* Name.Exception */
|
.ne { color: $solar-blue !important; font-weight: bold !important; } /* Name.Exception */
|
||||||
.nf { color: $blue !important; font-weight: bold !important; } /* Name.Function */
|
.nf { color: $solar-blue !important; font-weight: bold !important; } /* Name.Function */
|
||||||
.nn { color: $yellow !important; } /* Name.Namespace */
|
.nn { color: $solar-yellow !important; } /* Name.Namespace */
|
||||||
.nt { color: $blue !important; font-weight: bold !important; } /* Name.Tag */
|
.nt { color: $solar-blue !important; font-weight: bold !important; } /* Name.Tag */
|
||||||
.nx { color: $yellow !Important; }
|
.nx { color: $solar-yellow !Important; }
|
||||||
//.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
//.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
||||||
//.vc { color: #008080 } /* Name.Variable.Class */
|
//.vc { color: #008080 } /* Name.Variable.Class */
|
||||||
.vg { color: $blue !important; } /* Name.Variable.Global */
|
.vg { color: $solar-blue !important; } /* Name.Variable.Global */
|
||||||
.vi { color: $blue !important; } /* Name.Variable.Instance */
|
.vi { color: $solar-blue !important; } /* Name.Variable.Instance */
|
||||||
.nv { color: $blue !important; } /* Name.Variable */
|
.nv { color: $solar-blue !important; } /* Name.Variable */
|
||||||
//.w { color: #bbbbbb } /* Text.Whitespace */
|
//.w { color: #bbbbbb } /* Text.Whitespace */
|
||||||
.mf { color: $cyan !important; } /* Literal.Number.Float */
|
.mf { color: $solar-cyan !important; } /* Literal.Number.Float */
|
||||||
.m { color: $cyan !important; } /* Literal.Number */
|
.m { color: $solar-cyan !important; } /* Literal.Number */
|
||||||
.mh { color: $cyan !important; } /* Literal.Number.Hex */
|
.mh { color: $solar-cyan !important; } /* Literal.Number.Hex */
|
||||||
.mi { color: $cyan !important; } /* Literal.Number.Integer */
|
.mi { color: $solar-cyan !important; } /* Literal.Number.Integer */
|
||||||
//.mo { color: #009999 } /* Literal.Number.Oct */
|
//.mo { color: #009999 } /* Literal.Number.Oct */
|
||||||
.s { color: $cyan !important; } /* Literal.String */
|
.s { color: $solar-cyan !important; } /* Literal.String */
|
||||||
//.sb { color: #d14 } /* Literal.String.Backtick */
|
//.sb { color: #d14 } /* Literal.String.Backtick */
|
||||||
//.sc { color: #d14 } /* Literal.String.Char */
|
//.sc { color: #d14 } /* Literal.String.Char */
|
||||||
.sd { color: $cyan !important; } /* Literal.String.Doc */
|
.sd { color: $solar-cyan !important; } /* Literal.String.Doc */
|
||||||
.s2 { color: $cyan !important; } /* Literal.String.Double */
|
.s2 { color: $solar-cyan !important; } /* Literal.String.Double */
|
||||||
.se { color: $red !important; } /* Literal.String.Escape */
|
.se { color: $solar-red !important; } /* Literal.String.Escape */
|
||||||
//.sh { color: #d14 } /* Literal.String.Heredoc */
|
//.sh { color: #d14 } /* Literal.String.Heredoc */
|
||||||
.si { color: $blue !important; } /* Literal.String.Interpol */
|
.si { color: $solar-blue !important; } /* Literal.String.Interpol */
|
||||||
//.sx { color: #d14 } /* Literal.String.Other */
|
//.sx { color: #d14 } /* Literal.String.Other */
|
||||||
.sr { color: $cyan !important; } /* Literal.String.Regex */
|
.sr { color: $solar-cyan !important; } /* Literal.String.Regex */
|
||||||
.s1 { color: $cyan !important; } /* Literal.String.Single */
|
.s1 { color: $solar-cyan !important; } /* Literal.String.Single */
|
||||||
//.ss { color: #990073 } /* Literal.String.Symbol */
|
//.ss { color: #990073 } /* Literal.String.Symbol */
|
||||||
//.il { color: #009999 } /* Literal.Number.Integer.Long */
|
//.il { color: #009999 } /* Literal.Number.Integer.Long */
|
||||||
div { .gd, .gd .x, .gi, .gi .x { display: block; }}
|
div { .gd, .gd .x, .gi, .gi .x { display: block; }}
|
||||||
@ -169,9 +186,17 @@ p code {
|
|||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
|
||||||
pre, .highlight, .gist-highlight {
|
pre, .highlight, .gist-highlight {
|
||||||
&::-webkit-scrollbar { height: .5em; background: rgba(#fff, .15); }
|
&::-webkit-scrollbar { height: .5em; background: $solar-scroll-bg; }
|
||||||
&::-webkit-scrollbar-thumb:horizontal { background: rgba(#fff, .2); -webkit-border-radius: 4px; border-radius: 4px }
|
&::-webkit-scrollbar-thumb:horizontal { background: $solar-scroll-thumb; -webkit-border-radius: 4px; border-radius: 4px }
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight code { @extend .pre-code; background: #000;}
|
.highlight code { @extend .pre-code; background: #000;}
|
||||||
@ -186,7 +211,9 @@ figure[role=code] {
|
|||||||
@extend .code-title;
|
@extend .code-title;
|
||||||
a { @extend .download-source; }
|
a { @extend .download-source; }
|
||||||
}
|
}
|
||||||
.highlight { margin-bottom: 0; border-bottom: 1px solid darken($base03, 2) !important; }
|
.highlight {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.code-title {
|
.code-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -215,5 +242,3 @@ figure[role=code] {
|
|||||||
text-shadow: #cbcccc 0 1px 0;
|
text-shadow: #cbcccc 0 1px 0;
|
||||||
padding-left: 3em;
|
padding-left: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user