diff options
Diffstat (limited to '.themes/classic/sass/base')
-rw-r--r-- | .themes/classic/sass/base/_layout.scss | 60 | ||||
-rw-r--r-- | .themes/classic/sass/base/_theme.scss | 6 |
2 files changed, 43 insertions, 23 deletions
diff --git a/.themes/classic/sass/base/_layout.scss b/.themes/classic/sass/base/_layout.scss index d1545e8c..1154714c 100644 --- a/.themes/classic/sass/base/_layout.scss +++ b/.themes/classic/sass/base/_layout.scss @@ -90,7 +90,7 @@ body { } } .collapse-sidebar & { - margin-right: 10px; + margin-right: 20px; > aside { float: none; clear: left; @@ -114,31 +114,47 @@ body { } .toggle-sidebar { outline: none; - position: absolute; right: -21px; top: 0; - width: 20px; - font-size: 1.2em; - line-height: 1.1em; - padding-bottom: .1em; - text-indent: -1px; - text-decoration: none; - @include link-colors(#ccc, #999); - @include border-bottom-right-radius(.3em); - text-align: center; - background: $main-bg; - border-bottom: 1px solid $sidebar-border; - border-right: 1px solid $sidebar-border; + position: absolute; right: -10px; top: 0; bottom: 0; display: inline-block; + text-decoration: none; + color: mix($text-color-light, $sidebar-bg); + width: 9px; + cursor: pointer; + &:hover { + background: mix($sidebar-border, $sidebar-bg); + @include background(linear-gradient(left, rgba($sidebar-border, .5), rgba($sidebar-border, 0))); + } + &:after { + position: absolute; right: -11px; top: 0; + width: 20px; + font-size: 1.2em; + line-height: 1.1em; + padding-bottom: .15em; + @include border-bottom-right-radius(.3em); + text-align: center; + background: $main-bg $noise-bg; + border-bottom: 1px solid $sidebar-border; + border-right: 1px solid $sidebar-border; + content: "\00BB"; + text-indent: -1px; + } .collapse-sidebar & { - right: -11px; - width: 24px; - bottom: 0; - background-color: $sidebar-bg; - border-right-width: 0; text-indent: 0px; - border-left: 1px solid $sidebar-border; - @include link-colors(#aaa, #888); + right: -20px; + width: 19px; &:hover { - background: $sidebar-border; + background: mix($sidebar-border, $sidebar-bg); + } + &:after { + border-left: 1px solid $sidebar-border; + text-shadow: #fff 0 1px; + content: "\00AB"; + left: 0px; right: 0; + text-align: center; + text-indent: 0; + border: 0; + border-right-width: 0; + background: none; } } } diff --git a/.themes/classic/sass/base/_theme.scss b/.themes/classic/sass/base/_theme.scss index 0afa111e..75ff8e7b 100644 --- a/.themes/classic/sass/base/_theme.scss +++ b/.themes/classic/sass/base/_theme.scss @@ -41,6 +41,7 @@ $nav-border-right: lighten($nav-bg, 7) !default; $sidebar-bg: #f2f2f2 !default; $sidebar-link-color: $link-color !default; $sidebar-link-color-hover: $link-color-hover !default; +$sidebar-link-color-active: $link-color-active !default; $sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default; $sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default; $sidebar-border: darken($sidebar-bg, 7) !default; @@ -61,9 +62,12 @@ $page-border-bottom: darken($footer-bg, 5) !default; /* Core theme application */ -article a, #articles + aside a { +a { @include link-colors($link-color, $hover: $link-color-hover, $focus: $link-color-hover, $visited: $link-color-visited, $active: $link-color-active); } +aside[role=sidebar] a { + @include link-colors($sidebar-link-color, $hover: $sidebar-link-color-hover, $focus: $sidebar-link-color-hover, $active: $sidebar-link-color-active); +} a { @include transition(color, .3s); } |