From 91a7fc1380de9a9402dc175a61e0294cdb583f3a Mon Sep 17 00:00:00 2001 From: maxgrapps <50101080+maxgrapps@users.noreply.github.com> Date: Fri, 10 May 2019 14:54:36 +0300 Subject: [PATCH 1/3] Update _dai_variables.scss --- .../assets/css/theme/_dai_variables.scss | 111 ++++++++---------- 1 file changed, 50 insertions(+), 61 deletions(-) diff --git a/apps/block_scout_web/assets/css/theme/_dai_variables.scss b/apps/block_scout_web/assets/css/theme/_dai_variables.scss index e331dc725c..8746489faa 100644 --- a/apps/block_scout_web/assets/css/theme/_dai_variables.scss +++ b/apps/block_scout_web/assets/css/theme/_dai_variables.scss @@ -1,61 +1,50 @@ -$primary: #fec042; -$secondary: #53546a; -$tertiary: #1755e4; - -.navbar.navbar-primary { - background-color: #f2f6f8; - - &.navbar-dark .navbar-nav .nav-link { - color: $secondary; - - &:hover, - &:focus { - color: rgba($secondary, 0.75); - } - } - - .form-control { - color: $secondary; - - &::-webkit-input-placeholder { - /* Chrome/Opera/Safari */ - color: transparentize($secondary, 0.5); - } - &::-moz-placeholder { - /* Firefox 19+ */ - color: transparentize($secondary, 0.5); - } - &:-ms-input-placeholder { - /* IE 10+ */ - color: transparentize($secondary, 0.5); - } - &:-moz-placeholder { - /* Firefox 18- */ - color: transparentize($secondary, 0.5); - } - } -} - -.navbar-logo { - height: 1.75em; -} - -.navbar.navbar-dark .navbar-toggler { - color: $secondary; - border-color: $secondary; - - .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{transparentize($secondary, 0.5)}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); - } -} - -.button.button-secondary { - color: $secondary; - border-color: $secondary; - - &:hover, - &:focus { - background-color: $secondary; - border-color: $secondary; - } -} +// general +$primary: #2b2b2b; +$secondary: #ffb045; +$tertiary: #929292; +$additional-font: #ffffff; + +// footer +$footer-background-color: $primary; +$footer-title-color: #fff; +$footer-text-color: #7e7e7e; +$footer-item-disc-color: $secondary; +.footer-logo { filter: brightness(0) invert(1); } + +// dashboard +$dashboard-line-color-price: $tertiary; // price left border + +$dashboard-banner-chart-legend-value-color: $additional-font; // chart labels + +$dashboard-stats-item-value-color: $additional-font; // stat values + +$dashboard-stats-item-border-color: $secondary; // stat border + +$dashboard-banner-gradient-start: $primary; // gradient begin + +$dashboard-banner-gradient-end: lighten($primary, 5); // gradient end + +$dashboard-banner-network-plain-container-background-color: #424242; // stats bg + + +// navigation +.navbar { box-shadow: 0px 0px 30px 0px rgba(21, 53, 80, 0.12); } // header shadow +$header-icon-border-color-hover: $secondary; // top border on hover +$header-icon-color-hover: $secondary; // nav icon on hover +.dropdown-item:hover, .dropdown-item:focus { background-color: $secondary !important; } // dropdown item on hover + +// buttons +$btn-line-bg: #fff; // button bg +$btn-line-color: #424242; // button border and font color && hover bg color +$btn-copy-color: #424242; // btn copy +$btn-qr-color: #424242; // btn qr-code + +//links & tile +.tile a { color: #4b89fb !important; } // links color for badges +.tile-type-block { + border-left: 4px solid $secondary; +} // tab active bg + +// card +$card-background-1: $secondary; +$card-tab-active: $secondary; From d2376612901b9a86f3d5a3630e697b7bcbba0b58 Mon Sep 17 00:00:00 2001 From: maxgrapps <50101080+maxgrapps@users.noreply.github.com> Date: Fri, 10 May 2019 14:56:00 +0300 Subject: [PATCH 2/3] Update dai_logo.svg --- .../assets/static/images/dai_logo.svg | 50 +------------------ 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/apps/block_scout_web/assets/static/images/dai_logo.svg b/apps/block_scout_web/assets/static/images/dai_logo.svg index 1eb9630359..582cb97f2e 100644 --- a/apps/block_scout_web/assets/static/images/dai_logo.svg +++ b/apps/block_scout_web/assets/static/images/dai_logo.svg @@ -1,49 +1 @@ - - - - - - - - - - - - - - - - - - - - - - dai_logo - - - - - - - - - - - - - - + From 0297a2e5204e955994899d85ecc8ce8e251a1a2f Mon Sep 17 00:00:00 2001 From: maxgrapps <50101080+maxgrapps@users.noreply.github.com> Date: Fri, 10 May 2019 14:57:46 +0300 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d08868c29..9004dde9b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Current ### Features +- [#1925](https://github.com/poanetwork/blockscout/pull/1925) - added dai theme and logo - [#1922](https://github.com/poanetwork/blockscout/pull/1922) - added ethereum classic theme and logo - [#1907](https://github.com/poanetwork/blockscout/pull/1907) - dropdown color bug fix (lukso theme) and tooltip color bug fix - [#1903](https://github.com/poanetwork/blockscout/pull/1903) - added rsk theme and rsk logo