Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dai theme and dai logo #1925

Merged
merged 3 commits into from
May 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
111 changes: 50 additions & 61 deletions apps/block_scout_web/assets/css/theme/_dai_variables.scss
Original file line number Diff line number Diff line change
@@ -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;
50 changes: 1 addition & 49 deletions apps/block_scout_web/assets/static/images/dai_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.