mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
bf6a122e38
* Initial changes to define theme maps, color function, and convert all global styles. * More global styles. * All styles converted, colors uncertain. * Fix tabs, temporary theme toggle button. * Color refinements * Color network selector, introduce shade function * Make palette page * Add theme button and minor styling to nav * Blueify dark theme * A bunch of color adjustments to work better with dark theme * Fix tables * Fix wallet decrypt colors * More misc fixes * Fix up electron colors * Convert web theme to redux state / action * Theme toggle in app, prevent rerenders * Get rid of all variables, fix selects * Fix conf modal, modal close styles * Fix test * Adjust swap colors * Check in breaking out component, changing icons * Check in progress * Theme toggle in footer. New icons * Prevent rerender on theme change * Fix up outstanding merge conflicts * Fix generate colors to be dark mode friendly * Reduce swap color intensity * Make disabled buttons darker in dark mode * Reduce button size by 25%
171 lines
3.1 KiB
SCSS
171 lines
3.1 KiB
SCSS
@import 'common/sass/variables';
|
|
@import 'common/sass/mixins';
|
|
|
|
$small-size: 900px;
|
|
|
|
@mixin small-query {
|
|
@media screen and (max-width: $small-size) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin big-query {
|
|
@media screen and (min-width: $small-size + 1) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@keyframes dropdown-is-flashing {
|
|
0%,
|
|
100% {
|
|
opacity: 0.8;
|
|
}
|
|
50% {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
// Header
|
|
.Header {
|
|
margin-bottom: 2rem;
|
|
|
|
@media screen and (max-width: $screen-sm) {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
&-announcement {
|
|
padding: 4px 10px;
|
|
line-height: 26px;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
font-weight: 300;
|
|
color: #fff;
|
|
transition: background-color 80ms ease;
|
|
background: color(gray-darker);
|
|
|
|
@include theme(dark) {
|
|
background: color(gray-lighter);
|
|
}
|
|
|
|
a {
|
|
color: #fff;
|
|
text-decoration: underline;
|
|
transition: none;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
// Colors
|
|
&.is-primary {
|
|
background: color(brand-primary);
|
|
}
|
|
|
|
&.is-warning {
|
|
background: color(brand-warning);
|
|
}
|
|
|
|
&.is-danger {
|
|
background: color(brand-danger);
|
|
}
|
|
|
|
&.is-success {
|
|
background: color(brand-success);
|
|
}
|
|
|
|
&.is-info {
|
|
background: color(brand-info);
|
|
border-bottom: 1px solid rgba(#fff, 0.4);
|
|
}
|
|
}
|
|
|
|
&-branding {
|
|
color: white;
|
|
padding: 0;
|
|
background: #274e7e;
|
|
background-image: url('~assets/images/header-bg.jpg'), linear-gradient(130deg, #37709e, #274e7e);
|
|
background-size: cover;
|
|
background-position: left;
|
|
|
|
@include small-query {
|
|
text-align: center;
|
|
background-position: center;
|
|
}
|
|
|
|
&-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
@include small-query {
|
|
flex-direction: column;
|
|
padding-left: $cont-padding;
|
|
padding-right: $cont-padding;
|
|
}
|
|
}
|
|
|
|
&-title {
|
|
@include big-query {
|
|
text-align: left;
|
|
}
|
|
|
|
&-logo {
|
|
height: 64px;
|
|
width: auto;
|
|
padding: 8px;
|
|
padding-right: 0;
|
|
filter: drop-shadow(0 1px 0 rgba(#000, 0.12)) drop-shadow(1px 1px 0 rgba(#000, 0.12));
|
|
}
|
|
}
|
|
|
|
&-right {
|
|
font-size: 18px;
|
|
font-weight: 300;
|
|
color: color(text-color-inverted);
|
|
flex: 1 auto;
|
|
text-align: right;
|
|
padding: 0 0 5px;
|
|
|
|
@include small-query {
|
|
text-align: center;
|
|
}
|
|
|
|
> * {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
&-version {
|
|
max-width: 395px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
&-online {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
&-dropdown {
|
|
margin-left: 6px;
|
|
|
|
@media screen and (max-width: $screen-xs) {
|
|
.btn {
|
|
padding: 0.3rem 0.5rem;
|
|
}
|
|
}
|
|
|
|
&-add {
|
|
text-align: center;
|
|
padding-top: $space-sm !important;
|
|
padding-bottom: $space-sm !important;
|
|
}
|
|
|
|
&.is-flashing {
|
|
pointer-events: none;
|
|
animation: dropdown-is-flashing 800ms ease infinite;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|