Merge pull request #18 from sweeneytr/master

Modifed sass files to parametrize colors in style sheet. First step t…
This commit is contained in:
Ben Balter 2017-12-11 17:46:48 -06:00 committed by GitHub
commit 4e226cb540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 110 additions and 82 deletions

View File

@ -0,0 +1,15 @@
$apple-blossom: #ac4142;
$alto: #d0d0d0;
$bouquet: #aa759f;
$chelsea-cucumber: #90a959;
$cod-grey: #151515;
$conifer: #b5e853;
$dove-grey: #666;
$gallery: #eaeaea;
$grey: #888;
$gulf-stream: #75b5aa;
$hippie-blue: #6a9fb5;
$potters-clay: #8f5536;
$rajah: #f4bf75;
$raw-sienna: #d28445;
$silver-chalice: #aaa;

View File

@ -1,10 +1,17 @@
@import "rouge-base16-dark"; @import "rouge-base16-dark";
@import "default_colors";
$body-background: $cod-grey !default;
$body-foreground: $gallery !default;
$header: $conifer !default;
$blockquote-color: $silver-chalice !default;
$blockquote-border: $dove-grey !default;
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background: #151515 url("../images/bkg.png") 0 0; background: $body-background url("../images/bkg.png") 0 0;
color: #eaeaea; color: $body-foreground;
font-size: 16px; font-size: 16px;
line-height: 1.5; line-height: 1.5;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
@ -40,7 +47,7 @@ li {
header { header {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
width: 100%; width: 100%;
border-bottom: 1px dashed #b5e853; border-bottom: 1px dashed $conifer; //header;
padding: 20px 0; padding: 20px 0;
margin: 0 0 40px 0; margin: 0 0 40px 0;
} }
@ -51,7 +58,7 @@ header h1 {
margin: 0 0 0 -40px; margin: 0 0 0 -40px;
font-weight: bold; font-weight: bold;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #b5e853; color: $conifer;//$header;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1), 0 0 5px rgba(181, 232, 83, 0.1),
0 0 10px rgba(181, 232, 83, 0.1); 0 0 10px rgba(181, 232, 83, 0.1);
@ -90,7 +97,7 @@ section img {
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: normal; font-weight: normal;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #b5e853; color: $header;
letter-spacing: -0.03em; letter-spacing: -0.03em;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1), 0 0 5px rgba(181, 232, 83, 0.1),
@ -136,9 +143,9 @@ ul li {
} }
blockquote { blockquote {
color: #aaa; color: $blockquote-color;
padding-left: 10px; padding-left: 10px;
border-left: 1px dotted #666; border-left: 1px dotted $blockquote-border;
} }
pre { pre {

View File

@ -3,79 +3,85 @@
original base16 by Chris Kempson (https://github.com/chriskempson/base16) original base16 by Chris Kempson (https://github.com/chriskempson/base16)
*/ */
.highlight table td { padding: 5px; } @import "default_colors";
.highlight table pre { margin: 0; }
.highlight, .highlight .w { .highlight {
color: #d0d0d0;
} $plaintext: $alto !default;
.highlight .err { $string: $chelsea-cucumber !default;
color: #151515; $literal: $chelsea-cucumber !default;
background-color: #ac4142; $keyword: $bouquet !default;
} $error-foreground: $cod-grey !default;
.highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs { $error-background: $apple-blossom !default;
color: #888; $comment: $grey !default;
} $preprocessor: $rajah !default;
.highlight .cp { $name-space: $rajah !default;
color: #f4bf75; $name-attribute: $hippie-blue !default;
} $operator: $rajah !default;
.highlight .nt { $keyword-type: $raw-sienna !default;
color: #f4bf75; $regex: $gulf-stream !default;
} $string-escape: $potters-clay !default;
.highlight .o, .highlight .ow { $deleted: $apple-blossom !default;
color: #d0d0d0; $header: $hippie-blue !default;
}
.highlight .p, .highlight .pi { color: $plaintext;
color: #d0d0d0;
} table td { padding: 5px; }
.highlight .gi { table pre { margin: 0; }
color: #90a959; .w {
} color: $plaintext;
.highlight .gd { }
color: #ac4142; .err {
} color: $error-foreground;
.highlight .gh { background-color: $error-background;
color: #6a9fb5; }
font-weight: bold; .c, .cd, .cm, .c1, .cs {
} color: $comment;
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { }
color: #aa759f; .cp {
} color: $preprocessor;
.highlight .kc { }
color: #d28445; .o, .ow {
} color: $operator;
.highlight .kt { }
color: #d28445; .p, .pi {
} color: $plaintext;
.highlight .kd { }
color: #d28445; .gi {
} color: $string;
.highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 { }
color: #90a959; .gd {
} color: $deleted;
.highlight .sr { }
color: #75b5aa; .gh {
} color: $header;
.highlight .si { font-weight: bold;
color: #8f5536; }
} .k, .kn, .kp, .kr, .kv {
.highlight .se { color: $keyword;
color: #8f5536; }
} .kc, .kt, .kd {
.highlight .nn { color: $keyword-type;
color: #f4bf75; }
} .s, .sb, .sc, .sd, .s2, .sh, .sx, .s1 {
.highlight .nc { color: $string;
color: #f4bf75; }
} .sr {
.highlight .no { color: $regex;
color: #f4bf75; }
} .si, .se {
.highlight .na { color: $string-escape;
color: #6a9fb5; }
} .nt, .nn, .nc, .no{
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx { color: $name-space;
color: #90a959; }
} .na {
.highlight .ss { color: $name-attribute;
color: #90a959; }
.m, .mf, .mh, .mi, .il, .mo, .mb, .mx {
color: $literal;
}
.ss {
color: $string;
}
} }