Updated code's style

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2019-05-03 15:46:15 +04:00
parent 77d055f8ed
commit 44f10af006
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
4 changed files with 178 additions and 186 deletions

View File

@ -1,13 +1,20 @@
$color-01: #1d1f21; $color00: #000000;
$color-02: #373b41; $color01: #000080;
$color-03: #81a2be; $color02: #0000FF;
$color-04: #8abeb7; $color03: #008080;
$color-05: #969896; $color04: #008800;
$color-06: #b294bb; $color05: #555555;
$color-07: #b5bd68; $color06: #800080;
$color-08: #c5c8c6; $color07: #888888;
$color-09: #c66; $color08: #999999;
$color-10: #de935f; $color09: #a61717;
$color-11: #f0c674; $color10: #aa0000;
$color11: #aaaaaa;
$color12: #bbbbbb;
$color13: #ddffdd;
$color14: #e3d2d2;
$color15: #FF0000;
$color16: #ffdddd;
$color17: #ffffcc;
@import 'highlight/main'; @import 'highlight/main';

View File

@ -1,8 +1,8 @@
$color-bg-alt: rgba(0, 0, 0, .09); $color-bg-alt: rgba(0, 0, 0, .09);
$color-bg: #fff; $color-bg: rgba(235, 237, 236, 1);
$color-blossom: #007ea7; $color-blossom: rgba(76, 88, 112, 1);
$color-fade: #003459; $color-fade: rgba(162, 169, 175, 1);
$color-text: #00171f; $color-text: rgba(61, 61, 59, 1);
$font-family-sans-serif: '-apple-system', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Arial', sans-serif; $font-family-sans-serif: '-apple-system', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Arial', sans-serif;
$font-size-base: 1.6rem; $font-size-base: 1.6rem;

View File

@ -1,217 +1,200 @@
$color01: #000; .highlight {
$color02: #000080; .c {
$color03: #00f; color: $color04;
$color04: #008080; font-style: italic;
$color05: #080; }
$color06: #555;
$color07: #800080;
$color08: #888;
$color09: #999;
$color10: #a61717;
$color11: #a00;
$color12: #aaa;
$color13: #bbb;
$color14: #dfd;
$color15: #e3d2d2;
$color16: #f00;
$color17: #fdd;
$color18: #ffc;
.highlight .hll { .c1 {
background-color: $color18; color: $color04;
} font-style: italic;
}
.highlight .c { .cm {
color: $color05; color: $color04;
font-style: italic; font-style: italic;
} }
.highlight .err { .cp {
background-color: $color15; color: $color03;
color: $color10; }
}
.highlight .k { .cs {
color: $color02; color: $color04;
font-weight: bold; font-weight: bold;
} }
.highlight .cm { .err {
color: $color05; background-color: $color14;
font-style: italic; color: $color09;
} }
.highlight .cp { .gd {
color: $color04; background-color: $color16;
} color: $color00;
}
.highlight .c1 { .ge {
color: $color05; font-style: italic;
font-style: italic; }
}
.highlight .cs { .gh {
color: $color05; color: $color08;
font-weight: bold; }
}
.highlight .gd { .gi {
background-color: $color17; background-color: $color13;
color: $color01; color: $color00;
} }
.highlight .ge { .go {
font-style: italic; color: $color07;
} }
.highlight .gr { .gp {
color: $color11; color: $color05;
} }
.highlight .gh { .gr {
color: $color09; color: $color10;
} }
.highlight .gi { .gs {
background-color: $color14; font-weight: bold;
color: $color01; }
}
.highlight .go { .gt {
color: $color08; color: $color10;
} }
.highlight .gp { .gu {
color: $color06; color: $color11;
} }
.highlight .gs { .hll {
font-weight: bold; background-color: $color17;
} }
.highlight .gu { .il {
color: $color12; color: $color02;
} }
.highlight .gt { .k {
color: $color11; color: $color01;
} font-weight: bold;
}
.highlight .kc { .kc {
color: $color02; color: $color01;
font-weight: bold; font-weight: bold;
} }
.highlight .kd { .kd {
color: $color02; color: $color01;
font-weight: bold; font-weight: bold;
} }
.highlight .kn { .kn {
color: $color02; color: $color01;
font-weight: bold; font-weight: bold;
} }
.highlight .kp { .kp {
color: $color02; color: $color01;
font-weight: bold; font-weight: bold;
} }
.highlight .kr { .kr {
color: $color02; color: $color01;
font-weight: bold; font-weight: bold;
} }
.highlight .kt { .kt {
color: $color02; color: $color01;
font-weight: bold; font-weight: bold;
} }
.highlight .m { .m {
color: $color03; color: $color02;
} }
.highlight .s { .mf {
color: $color03; color: $color02;
} }
.highlight .na { .mh {
color: $color16; color: $color02;
} }
.highlight .nt { .mi {
color: $color02; color: $color02;
font-weight: bold; }
}
.highlight .ow { .mo {
font-weight: bold; color: $color02;
} }
.highlight .w { .na {
color: $color13; color: $color15;
} }
.highlight .mf { .nt {
color: $color03; color: $color01;
} font-weight: bold;
}
.highlight .mh { .ow {
color: $color03; font-weight: bold;
} }
.highlight .mi { .s {
color: $color03; color: $color02;
} }
.highlight .mo { .s1 {
color: $color03; color: $color02;
} }
.highlight .sb { .s2 {
color: $color03; color: $color02;
} }
.highlight .sc { .sb {
color: $color07; color: $color02;
} }
.highlight .sd { .sc {
color: $color03; color: $color06;
} }
.highlight .s2 { .sd {
color: $color03; color: $color02;
} }
.highlight .se { .se {
color: $color03; color: $color02;
} }
.highlight .sh { .sh {
color: $color03; color: $color02;
} }
.highlight .si { .si {
color: $color03; color: $color02;
} }
.highlight .sx { .sr {
color: $color03; color: $color02;
} }
.highlight .sr { .ss {
color: $color03; color: $color02;
} }
.highlight .s1 { .sx {
color: $color03; color: $color02;
} }
.highlight .ss { .w {
color: $color03; color: $color12;
} }
.highlight .il {
color: $color03;
} }

View File

@ -111,6 +111,7 @@ img {
pre { pre {
background-color: $color-bg-alt; background-color: $color-bg-alt;
border-radius: 4px;
display: block; display: block;
overflow-x: auto; overflow-x: auto;
padding: 1em; padding: 1em;
@ -118,6 +119,7 @@ pre {
code { code {
background-color: $color-bg-alt; background-color: $color-bg-alt;
border-radius: 4px;
font-size: .9em; font-size: .9em;
padding: 0 .5em; padding: 0 .5em;
white-space: pre-wrap; white-space: pre-wrap;