2018-01-02 18:04:50 +00:00
|
|
|
@import 'common/sass/variables';
|
2018-03-23 16:25:44 +00:00
|
|
|
@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%;
|
2018-01-02 18:04:50 +00:00
|
|
|
|
|
|
|
.SwapDropdown {
|
|
|
|
position: relative;
|
2018-03-23 16:25:44 +00:00
|
|
|
margin-left: $space-xs;
|
|
|
|
|
|
|
|
&-button {
|
|
|
|
height: 3rem;
|
|
|
|
padding-left: $space;
|
|
|
|
padding-right: $space;
|
|
|
|
|
|
|
|
&-logo {
|
|
|
|
height: 1.4rem;
|
|
|
|
margin: -.2rem .3rem 0 -.2rem;
|
|
|
|
width: auto;
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
2018-03-23 16:25:44 +00:00
|
|
|
|
|
|
|
&-label {
|
|
|
|
padding-right: .75rem;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: .75rem;
|
2018-06-27 04:51:42 +00:00
|
|
|
@include triangle(8px, color(text-color), down);
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-03-23 16:25:44 +00:00
|
|
|
|
|
|
|
&-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;
|
2018-06-27 04:51:42 +00:00
|
|
|
background: color(control-bg);
|
2018-03-23 16:25:44 +00:00
|
|
|
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;
|
2018-06-27 04:51:42 +00:00
|
|
|
background: color(control-bg);
|
2018-03-23 16:25:44 +00:00
|
|
|
box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
}
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
|
|
|
|
2018-03-23 16:25:44 +00:00
|
|
|
.SwapOption {
|
|
|
|
@include reset-button;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
max-width: $option-width;
|
|
|
|
padding: $space-sm $space-md;
|
2018-01-02 18:04:50 +00:00
|
|
|
text-align: left;
|
2018-06-27 04:51:42 +00:00
|
|
|
background: transparent;
|
|
|
|
color: color(text-color);
|
2018-03-23 16:25:44 +00:00
|
|
|
transition: $transition;
|
2018-01-02 18:04:50 +00:00
|
|
|
|
2018-03-23 16:25:44 +00:00
|
|
|
@media (max-width: $screen-sm) {
|
|
|
|
width: 50%;
|
|
|
|
max-width: none;
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
2018-01-25 03:43:27 +00:00
|
|
|
|
2018-03-23 16:25:44 +00:00
|
|
|
&:hover {
|
2018-06-27 04:51:42 +00:00
|
|
|
color: color(text-color-inverted);
|
|
|
|
background: color(brand-info);
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
2018-03-23 16:25:44 +00:00
|
|
|
|
|
|
|
&-top {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
margin-bottom: $space-xs;
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
2018-03-23 16:25:44 +00:00
|
|
|
|
|
|
|
&-logo {
|
|
|
|
height: 1.2rem;
|
|
|
|
width: auto;
|
|
|
|
margin-right: $space-xs;
|
|
|
|
|
|
|
|
.is-main > & {
|
|
|
|
height: 2.6rem;
|
|
|
|
margin-right: $space-md;
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-23 16:25:44 +00:00
|
|
|
&-ticker {
|
|
|
|
}
|
2018-01-02 18:04:50 +00:00
|
|
|
|
2018-03-23 16:25:44 +00:00
|
|
|
&-name {
|
|
|
|
font-weight: 300;
|
2018-01-02 18:04:50 +00:00
|
|
|
}
|
2018-03-01 17:53:29 +00:00
|
|
|
|
2018-03-23 16:25:44 +00:00
|
|
|
&.is-main {
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
max-width: $option-width-main;
|
|
|
|
padding: $space $space-md;
|
2018-03-01 17:53:29 +00:00
|
|
|
font-size: 1rem;
|
2018-03-23 16:25:44 +00:00
|
|
|
|
|
|
|
@media (max-width: $screen-sm) {
|
|
|
|
width: 50%;
|
|
|
|
max-width: none;
|
|
|
|
}
|
2018-03-01 17:53:29 +00:00
|
|
|
}
|
2018-03-23 16:25:44 +00:00
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
filter: grayscale(1);
|
|
|
|
opacity: 0.3;
|
|
|
|
pointer-events: none;
|
2018-03-01 17:53:29 +00:00
|
|
|
}
|
|
|
|
}
|