aboutsummaryrefslogtreecommitdiff
path: root/themes/classic/sass/default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/classic/sass/default')
-rw-r--r--themes/classic/sass/default/core/_theme.scss1
-rw-r--r--themes/classic/sass/default/core/_utilities.scss8
-rw-r--r--themes/classic/sass/default/partials/_navigation.scss7
-rw-r--r--themes/classic/sass/default/partials/_syntax.scss99
4 files changed, 80 insertions, 35 deletions
diff --git a/themes/classic/sass/default/core/_theme.scss b/themes/classic/sass/default/core/_theme.scss
index 5b95175a..6d73f2e0 100644
--- a/themes/classic/sass/default/core/_theme.scss
+++ b/themes/classic/sass/default/core/_theme.scss
@@ -50,3 +50,4 @@ $textinput-border-focus: #989898;
#articles a, #articles + aside a {
@include link-colors($link-color, $hover: saturate(darken($link_color, 15), 20), $focus: saturate(darken($link_color, 15), 20), $visited: darken(adjust_hue($link_color, 70), 10));
}
+a { @include transition(color, .5s); }
diff --git a/themes/classic/sass/default/core/_utilities.scss b/themes/classic/sass/default/core/_utilities.scss
index 992c7750..8b718cdc 100644
--- a/themes/classic/sass/default/core/_utilities.scss
+++ b/themes/classic/sass/default/core/_utilities.scss
@@ -5,11 +5,11 @@
height: image-height($img);
}
-@mixin selection($bg: #b4d5fe, $color: inherit){
+@mixin selection($bg, $color: inherit, $text-shadow: none){
* {
- &::-moz-selection { background: $bg; color: $color; text-shadow: darken($bg, 20) 0 1px 1px; }
- &::-webkit-selection { background: $bg; color: $color; text-shadow: darken($bg, 20) 0 1px 1px;}
- &::selection { background: $bg; color: $color; text-shadow: darken($bg, 20) 0 1px 1px; }
+ &::-moz-selection { background: $bg; color: $color; text-shadow: $text-shadow; }
+ &::-webkit-selection { background: $bg; color: $color; text-shadow: $text-shadow; }
+ &::selection { background: $bg; color: $color; text-shadow: $text-shadow; }
}
}
diff --git a/themes/classic/sass/default/partials/_navigation.scss b/themes/classic/sass/default/partials/_navigation.scss
index 3d34c3c7..3d5ee8fb 100644
--- a/themes/classic/sass/default/partials/_navigation.scss
+++ b/themes/classic/sass/default/partials/_navigation.scss
@@ -14,6 +14,7 @@ body > nav {
.search {
padding: .3em .5em 0;
font-size: .85em;
+ @extend .sans;
line-height: 1.1em;
width: 95%;
@include border-radius(.5em);
@@ -58,7 +59,7 @@ body > nav {
text-shadow: lighten($nav-bg, 12) 0 1px;
float: left;
text-decoration: none;
- font-size: .9em;
+ font-size: 1em;
padding: .1em 0;
line-height: 1.5em;
}
@@ -82,7 +83,7 @@ body > nav {
}
}
ul[data-subscription$=email] + form {
- width: $sidebar-width-medium - $pad-medium*2 - $sidebar-pad-medium - 48px;
+ width: $sidebar-width-medium - $pad-medium*2 - $sidebar-pad-medium - 58px;
.search { width: 91%; }
}
fieldset[role=mobile-nav] { display: none; }
@@ -94,7 +95,7 @@ body > nav {
width: $sidebar-width-wide - $pad-wide - $sidebar-pad-wide*2 + 5px;
}
ul[data-subscription$=email] + form {
- width: $sidebar-width-wide - $pad-wide - $sidebar-pad-wide*2 - 48px;
+ width: $sidebar-width-wide - $pad-wide - $sidebar-pad-wide*2 - 58px;
}
}
}
diff --git a/themes/classic/sass/default/partials/_syntax.scss b/themes/classic/sass/default/partials/_syntax.scss
index 5797c28f..2258ac46 100644
--- a/themes/classic/sass/default/partials/_syntax.scss
+++ b/themes/classic/sass/default/partials/_syntax.scss
@@ -25,51 +25,73 @@ $green: #859900;
//$base2: $base02;
//$base3: $base03;
-.gutter {
- .line-numbers {
+.highlight, html .gist .gist-file .gist-syntax .gist-highlight {
+ pre.line-numbers {
text-align: right;
background: $base02 !important;
- border-right: 1px solid darken($base03, 2);
+ 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; }
+ padding-left: .8em !important;
+ padding-right: .8em !important;
}
}
html .gist .gist-file {
margin-bottom: 1.5em;
+ position: relative;
border: none;
+ padding-top: image-height("code_bg.png") !important;
.gist-syntax {
- border-bottom: 1px solid #515151 !important;
+ border-bottom: 1px solid darken($base03, 2) !important;
.gist-highlight{
background: $base03 !important;
pre {
@extend .pre;
- overflow-y: hidden;
- overflow-x: auto;
+ }
+ pre.line-numbers {
+
}
}
}
.gist-meta {
- @include background(linear-gradient(#b0b0b0, #a7a7a7));
- padding: 0.5em;
- background-color: #bababa !important;
- border: 1px solid #9c9c9c;
- border-top: 1px solid #d0d0d0;
- border-bottom: 1px solid #777777;
- font-size: .7em !important;
- font-family: "Helvetica Neue", Arial, sans-serif !important;
- color: #464646 !important;
- line-height: 1.4em;
+ padding: .6em 0.8em;
+ border: 1px solid lighten($base02, 2) !important;
+ color: $base01;
+ font-size: .7em !important;
+ background: $base02;
+ @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;
+ }
}
}
pre { @extend .pre; }
.pre {
@extend .mono;
+ @include selection(adjust-color($base03, $lightness: 23%, $saturation: -65%), $text-shadow: $base03 0 1px);
font-size: .8em;
+ overflow: scroll;
+ overflow-y: hidden;
+ overflow-x: auto;
line-height: 1.45em;
padding: 1em 1.2em !important;
background: $base03 !important;
+ code { background: $base03 !important; overflow: hidden; }
color: $base1 !important;
span { color: $base1 !important; }
span { font-style: normal !important; font-weight: normal !important; }
@@ -84,13 +106,13 @@ pre { @extend .pre; }
.o { color: $base1 !important; font-weight: bold !important; } /* Operator */
.p { color: $base1 !important; } /* Operator */
.ow { color: $cyan !important; font-weight: bold !important; } /* Operator.Word */
- .gd { color: $base1 !important; background-color: mix($red, $base03, 25%) !important; display: block; } /* Generic.Deleted */
- .gd .x { color: $base1 !important; background-color: mix($red, $base03, 35%) !important; display: block; } /* Generic.Deleted.Specific */
+ .gd { color: $base1 !important; background-color: mix($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 */
.ge { color: $base1 !important; font-style: italic !important; } /* Generic.Emph */
//.gr { color: #aa0000 } /* Generic.Error */
.gh { color: $base01 !important; } /* Generic.Heading */
- .gi { color: $base1 !important; background-color: mix($green, $base03, 20%) !important; display: block; } /* Generic.Inserted */
- .gi .x { color: $base1 !important; background-color: mix($green, $base03, 40%) !important; display: block; } /* Generic.Inserted.Specific */
+ .gi { color: $base1 !important; background-color: mix($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 */
//.go { color: #888888 } /* Generic.Output */
//.gp { color: #555555 } /* Generic.Prompt */
.gs { color: $base1 !important; font-weight: bold !important; } /* Generic.Strong */
@@ -136,28 +158,37 @@ pre { @extend .pre; }
.s1 { color: $cyan !important; } /* Literal.String.Single */
//.ss { color: #990073 } /* Literal.String.Symbol */
//.il { color: #009999 } /* Literal.Number.Integer.Long */
+ div { .gd, .gd .x, .gi, .gi .x { display: block; }}
}
-.highlight {
+.highlight, .gist-highlight {
margin-bottom: 1.5em;
+ background: $base03;
overflow-y: hidden;
- .gutter pre {
- padding-left: .8em !important;
- padding-right: .8em !important;
+ overflow-x: auto;
+ pre { overflow: visible; }
+}
+figure {
+ margin-bottom: 1.5em;
+ figcaption {
+ position: relative;
+ @extend .code-title;
+ a { @extend .download-source; }
}
+ .highlight { margin-bottom: 0; border-bottom: 1px solid darken($base03, 2) !important; }
}
-
-h3.filename {
+h3.filename { @extend .code-title; }
+.code-title {
+ text-align: center;
font-size: 13px;
line-height: 2em;
- text-align: center;
text-shadow: #cbcccc 0 1px 0;
color: #474747;
font-style: normal;
margin-bottom: 0;
@include border-top-radius(5px);
- font-family: "Helvetica Neue",Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
+ font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
background: #aaaaaa image-url("code_bg.png") top repeat-x;
border: 1px solid #565656;
border-top-color: #cbcbcb;
@@ -165,3 +196,15 @@ h3.filename {
border-right-color: #a5a5a5;
border-bottom: 0;
}
+
+.download-source {
+ position: absolute; right: .8em;
+ @include hover-link;
+ color: #666 !important;
+ &:hover { color: $link-color !important; }
+ z-index: 1;
+ font-size: 13px;
+ text-shadow: #cbcccc 0 1px 0;
+ padding-left: 3em;
+}
+