From 44b90ba9589a1cc778cc950284239580bc29da16 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 26 May 2016 22:22:32 +0100 Subject: [PATCH] Clean scss --- theme/static/src/scss/footer.scss | 8 +++-- theme/static/src/scss/index.scss | 31 ++++------------ theme/static/src/scss/library-overrides.scss | 37 ++++++++++++++++++++ 3 files changed, 50 insertions(+), 26 deletions(-) create mode 100644 theme/static/src/scss/library-overrides.scss diff --git a/theme/static/src/scss/footer.scss b/theme/static/src/scss/footer.scss index fc98ba7..8d41a7c 100644 --- a/theme/static/src/scss/footer.scss +++ b/theme/static/src/scss/footer.scss @@ -19,8 +19,12 @@ footer { .powered-by p { font-size: $font-size-base; - a:hover { - color: $brand-orange; + a { + color: inherit; + + &:hover { + color: $brand-orange; + } } } diff --git a/theme/static/src/scss/index.scss b/theme/static/src/scss/index.scss index 58c8415..947209f 100644 --- a/theme/static/src/scss/index.scss +++ b/theme/static/src/scss/index.scss @@ -23,36 +23,19 @@ $fa-font-path: "../fonts"; @import "creative/creative"; @import "pygment"; - -/* @end Other Imports */ - - @import "homepage"; @import "footer"; +@import "library-overrides"; - -.panel-green { - @include panel-variant(#139F5B, $white, #139F5B, #139F5B); -} - - -.panel-blue { - @include panel-variant(#337AB7, $white, #337AB7, #337AB7); -} - - -.btn-primary-dark { - @include button-variant($white, $brand-orange-dark, $brand-orange-dark); -} - - -.highlight > pre { - background-color: transparent; - font-size: $font-size-base; -} +/* @end Other Imports */ hr.wide { width: 100%; max-width: initial; } + +p a { + text-decoration: underline; + color: inherit; +} diff --git a/theme/static/src/scss/library-overrides.scss b/theme/static/src/scss/library-overrides.scss new file mode 100644 index 0000000..e2090c9 --- /dev/null +++ b/theme/static/src/scss/library-overrides.scss @@ -0,0 +1,37 @@ +/* @group Bootstrap Panels */ + +.panel-green { + @include panel-variant(#139F5B, $white, #139F5B, #139F5B); +} + + +.panel-blue { + @include panel-variant(#337AB7, $white, #337AB7, #337AB7); +} + + +/* @end Bootstrap Panels */ + + +/* @group Pygments */ + +.highlight > pre { + background-color: transparent; + font-size: $font-size-base; +} + +/* @end Pygments */ + +/* @group backgrounds */ + +.btn-primary-dark { + @include button-variant($white, $brand-orange-dark, $brand-orange-dark); +} + +.bg-primary p { + a:hover { + color: $brand-grey-dark; + } +} + +/* @end backgrounds */