mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-02 14:23:42 +00:00
9cac0298a2
* Manage modal focus * Add isOpen prop to CustomNodeModal * Remove outline overrides * Update outline style for inputs * Fix modal focus management & Cleanup CustomNodeModal * Add aria-label on modal close button * Fix modal scroll to top * Add aria-live property for notifications * Add aria-busy to Spinner component * Fix border styles for generatewallet password inputs * Update token balances inputs * Remove multiple h1's & Update styles * Add alt text to all img elements * Update swap link from bity to shapeshift * Update aria-labels and alt text * Only show keystore password input when required * Revert "Only show keystore password input when required" This reverts commit 7ec5de52da0982cd3131f365b142f6915638d831. * address changes requested
125 lines
2.0 KiB
SCSS
125 lines
2.0 KiB
SCSS
@import 'common/sass/variables';
|
|
|
|
.SwapDropdown {
|
|
position: relative;
|
|
button {
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
border: 1px solid #ccc;
|
|
padding: 0.4rem 1rem;
|
|
border-radius: 2px;
|
|
height: 2.5rem;
|
|
&:active,
|
|
&:hover {
|
|
opacity: 0.8;
|
|
}
|
|
> li {
|
|
margin: 0;
|
|
&:first-child {
|
|
padding-top: 4px;
|
|
}
|
|
&:last-child {
|
|
padding-bottom: 4px;
|
|
}
|
|
> a {
|
|
font-weight: 300;
|
|
&.active {
|
|
color: $link-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.SwapDropdown-grid {
|
|
position: absolute;
|
|
display: none;
|
|
padding: 0;
|
|
margin-bottom: 0;
|
|
min-width: 500px;
|
|
left: 50%;
|
|
|
|
top: 50px;
|
|
transform: translateX(-50%);
|
|
list-style: none;
|
|
font-size: 0.8rem;
|
|
text-align: left;
|
|
z-index: 500;
|
|
background: white;
|
|
box-shadow: 2px 1px 60px rgba(0, 0, 0, 0.175);
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border-right: 10px solid transparent;
|
|
border-left: 10px solid transparent;
|
|
border-top: 10px solid transparent;
|
|
border-bottom: 10px solid #fff;
|
|
}
|
|
|
|
&.open {
|
|
display: block;
|
|
}
|
|
li {
|
|
display: inline-block;
|
|
width: 33.3%;
|
|
margin-bottom: 0;
|
|
}
|
|
li > a {
|
|
display: block;
|
|
clear: both;
|
|
padding: 5px 20px;
|
|
color: #163151;
|
|
&:hover {
|
|
opacity: 0.8;
|
|
background-color: #163151;
|
|
color: #fff;
|
|
}
|
|
}
|
|
.inactive {
|
|
a {
|
|
color: grey;
|
|
&:hover {
|
|
background-color: #fff;
|
|
color: #163151;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
img {
|
|
filter: grayscale(100%);
|
|
}
|
|
}
|
|
strong {
|
|
margin-left: 5px;
|
|
}
|
|
@media screen and (max-width: 800px) {
|
|
min-width: 300px;
|
|
}
|
|
}
|
|
|
|
.SwapDropdown-desc {
|
|
display: inline-block;
|
|
}
|
|
|
|
.SwapDropdown-item {
|
|
position: relative;
|
|
img {
|
|
padding-right: 1px;
|
|
}
|
|
}
|
|
|
|
.swap-option {
|
|
&-wrapper {
|
|
font-size: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
&-img {
|
|
width: 1rem;
|
|
margin-right: 8px;
|
|
}
|
|
}
|