From 25c6cbd29aff90f694d72afe28ab56b0113fb16a Mon Sep 17 00:00:00 2001 From: Guille Cura Date: Thu, 5 Jul 2018 02:37:43 -0300 Subject: Update stylesheets and added darkMode variable and toggle. --- src/styles/services.scss | 60 ++++++++++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 25 deletions(-) (limited to 'src/styles/services.scss') diff --git a/src/styles/services.scss b/src/styles/services.scss index 9f6cfc772..0e559501c 100644 --- a/src/styles/services.scss +++ b/src/styles/services.scss @@ -1,30 +1,46 @@ @import './config.scss'; +.theme__dark .services { + background: $dark-theme-gray-darkest; + + .services__webview-wrapper { background: $dark-theme-gray-darkest; } + + .services__webview, + .services__info-layer { + webview { background: $dark-theme-gray-darkest; } + } + + .services__no-service, + .services__info-layer { + background: $dark-theme-gray-darkest; + + h1 { color: $dark-theme-gray-lightest; } + } +} + .services { + background: #FFF; flex: 1; height: 100%; - position: relative; - overflow: hidden; - background: #FFF; order: 5; + overflow: hidden; + position: relative; - .services__webview-wrapper { - background: $theme-gray-lighter; - } + .services__webview-wrapper { background: $theme-gray-lighter; } - .services__webview, + .services__webview, .services__info-layer { + left: 0; position: absolute; - width: 100%; top: 0; - left: 0; + width: 100%; z-index: 0; webview { - display: inline-flex; - width: 0px; - height: 0px; background: $theme-gray-lighter; + display: inline-flex; + height: 0; + width: 0; } &.is-active { @@ -32,36 +48,30 @@ webview { flex: 0 1; - width: 100%; height: 100%; + width: 100%; } } - &--force-repaint { - webview { - z-index: 5; - } - } + &--force-repaint webview { z-index: 5; } } - .services__no-service, + .services__no-service, .services__info-layer { + align-items: center; + background: $theme-gray-lighter; display: flex; flex-direction: column; justify-content: center; - align-items: center; text-align: center; - background: $theme-gray-lighter; h1 { - margin: 25px 0 40px; color: $theme-gray-dark; + margin: 25px 0 40px; } a.button, - button { - margin: 40px 0 20px; - } + button { margin: 40px 0 20px; } } .services__info-layer { -- cgit v1.2.3-54-g00ecf