This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
forked from blockscout/blockscout
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[blockscout] apply celo theme (1) (blockscout#13)
* Theme modifications for Celo theme * Added theme variable file * apply celo theme and images * add integration and betanet
- Loading branch information
1 parent
11335ed
commit 79af100
Showing
11 changed files
with
163 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
apps/block_scout_web/assets/css/theme/_celo_variables-non-critical.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// general | ||
$primary: #2b9f7a; | ||
$secondary: #20745a; | ||
$tertiary: #fff; | ||
$additional-font: #fff; | ||
|
||
$btn-line-color: $secondary; // button border and font color && hover bg color |
97 changes: 97 additions & 0 deletions
97
apps/block_scout_web/assets/css/theme/_celo_variables.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// general | ||
$primary: #35D07F; | ||
$secondary: #FBCC5C; | ||
$tertiary: #fff; | ||
$additional-font: #fff; | ||
|
||
$tile-body-a-color: $primary; | ||
$tile-type-block-color: $primary; | ||
$tile-type-progress-bar-color: $primary; | ||
a.tile-title { color: $primary !important; } | ||
|
||
// footer | ||
$footer-background-color: #282d31; | ||
$footer-title-color: #fff; | ||
$footer-text-color: $additional-font; | ||
$footer-item-disc-color: $secondary; | ||
$footer-social-icon-color: $secondary; | ||
|
||
// dashboard | ||
$dashboard-line-color-price: #fff; // price left border | ||
|
||
$dashboard-banner-chart-legend-label-color: #fff; | ||
$dashboard-stats-item-label-color: $dashboard-banner-chart-legend-label-color; | ||
$dashboard-banner-chart-legend-value-color: #fff; // chart labels | ||
$dashboard-stats-item-value-color: #fff; // stat values | ||
|
||
$dashboard-stats-item-border-color: $secondary; // stat border | ||
|
||
$dashboard-banner-gradient-start: $primary; // gradient begin | ||
|
||
$dashboard-banner-gradient-end: #289371; // gradient end | ||
|
||
$dashboard-banner-network-plain-container-background-color: #2ea780; // stats bg | ||
|
||
|
||
// navigation | ||
.navbar { box-shadow: 0px 0px 30px 0px rgba(21, 53, 80, 0.12); } // header shadow | ||
$dropdown-menu-item-hover-color: $primary !default; | ||
$dropdown-menu-item-hover-background: rgba($primary, .1) !default; | ||
$header-icon-color-hover: $primary; | ||
$header-icon-border-color-hover: $primary; | ||
|
||
// buttons | ||
$btn-line-bg: #fff; // button bg | ||
$btn-line-color: $primary; // button border and font color && hover bg color | ||
$btn-copy-color: $primary; // btn copy | ||
$btn-qr-color: $primary; // btn qr-code | ||
$btn-address-card-icon-color: $primary; // btn address color | ||
|
||
//links & tile | ||
$tile-body-a-color: $primary; | ||
$tile-type-block-color: $primary; | ||
$tile-type-progress-bar-color: $primary; | ||
a.tile-title { color: $primary !important; } | ||
|
||
// card | ||
$card-background-1: $primary; | ||
$card-tab-active: $primary; | ||
|
||
.layout-container { | ||
.dashboard-banner-container { | ||
background-image: linear-gradient( | ||
to bottom, | ||
$dashboard-banner-gradient-start, | ||
$dashboard-banner-gradient-end | ||
); | ||
} | ||
} | ||
|
||
// Badges | ||
$badge-neutral-color: $primary; | ||
$badge-neutral-background-color: rgba($primary, .1); | ||
$api-text-monospace-color: $primary; | ||
|
||
// Tokens dropdown | ||
.token-balance-dropdown[aria-labelledby="dropdown-tokens"] { | ||
.dropdown-items .dropdown-item:hover { | ||
color: $primary !important; | ||
} | ||
} | ||
|
||
// Dark theme | ||
$dark-primary: #2b9f7a; | ||
$dark-secondary: #20745a; | ||
$dark-primary-alternate: #2b9f7a; | ||
|
||
.dark-theme-applied .dashboard-banner-chart-legend .dashboard-banner-chart-legend-item:nth-child(1)::before { | ||
background-color: white!important; | ||
} | ||
|
||
.dark-theme-applied .dashboard-banner-chart-legend .dashboard-banner-chart-legend-item:nth-child(2)::before { | ||
background-color: $primary!important; | ||
} | ||
|
||
.dark-theme-applied .tile .tile-body a, .dark-theme-applied .tile span[data-address-hash] { | ||
color: #2b9f7a; | ||
} |
1 change: 1 addition & 0 deletions
1
apps/block_scout_web/assets/css/theme/_variables-non-critical.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
apps/block_scout_web/assets/static/images/network-selector-icons/alfajores.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
apps/block_scout_web/assets/static/images/network-selector-icons/celo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters