mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 10:41:56 +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%
139 lines
2.6 KiB
SCSS
139 lines
2.6 KiB
SCSS
@import 'common/sass/variables';
|
|
@import 'common/sass/mixins';
|
|
|
|
$menu-max-width: 540px;
|
|
$menu-padding: 10px;
|
|
$menu-triangle-size: 14px;
|
|
$menu-offset: 40px;
|
|
$option-width: ($menu-max-width - $menu-padding * 2) / 3;
|
|
$option-width-main: ($menu-max-width - $menu-padding * 2) / 2;
|
|
$option-width-small: $option-width-main;
|
|
$option-width-main-small: 100%;
|
|
|
|
.SwapDropdown {
|
|
position: relative;
|
|
margin-left: $space-xs;
|
|
|
|
&-button {
|
|
height: 3rem;
|
|
padding-left: $space;
|
|
padding-right: $space;
|
|
|
|
&-logo {
|
|
height: 1.4rem;
|
|
margin: -.2rem .3rem 0 -.2rem;
|
|
width: auto;
|
|
}
|
|
|
|
&-label {
|
|
padding-right: .75rem;
|
|
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
right: .75rem;
|
|
@include triangle(8px, color(text-color), down);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: -$menu-offset;
|
|
z-index: $zindex-popover;
|
|
|
|
&-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
width: calc(100vw - 30px);
|
|
max-width: $menu-max-width;
|
|
padding: $menu-padding;
|
|
background: color(control-bg);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
&-triangle {
|
|
position: absolute;
|
|
top: -($menu-triangle-size / 2);
|
|
right: $menu-offset + 40px;
|
|
width: $menu-triangle-size;
|
|
height: $menu-triangle-size;
|
|
background: color(control-bg);
|
|
box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
|
|
transform: rotate(45deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.SwapOption {
|
|
@include reset-button;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: $option-width;
|
|
padding: $space-sm $space-md;
|
|
text-align: left;
|
|
background: transparent;
|
|
color: color(text-color);
|
|
transition: $transition;
|
|
|
|
@media (max-width: $screen-sm) {
|
|
width: 50%;
|
|
max-width: none;
|
|
}
|
|
|
|
&:hover {
|
|
color: color(text-color-inverted);
|
|
background: color(brand-info);
|
|
}
|
|
|
|
&-top {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin-bottom: $space-xs;
|
|
}
|
|
|
|
&-logo {
|
|
height: 1.2rem;
|
|
width: auto;
|
|
margin-right: $space-xs;
|
|
|
|
.is-main > & {
|
|
height: 2.6rem;
|
|
margin-right: $space-md;
|
|
}
|
|
}
|
|
|
|
&-ticker {
|
|
}
|
|
|
|
&-name {
|
|
font-weight: 300;
|
|
}
|
|
|
|
&.is-main {
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
max-width: $option-width-main;
|
|
padding: $space $space-md;
|
|
font-size: 1rem;
|
|
|
|
@media (max-width: $screen-sm) {
|
|
width: 50%;
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
&.is-disabled {
|
|
filter: grayscale(1);
|
|
opacity: 0.3;
|
|
pointer-events: none;
|
|
}
|
|
}
|