James Prado 9cac0298a2 Improve accessibility (a11y) (#1267)
* 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
2018-03-08 13:28:43 -06:00

128 lines
2.0 KiB
SCSS

@import 'common/sass/variables';
@import 'common/sass/mixins';
$speed: 500ms;
@keyframes decrypt-enter {
0% {
opacity: 0;
transform: translateY(8px);
}
100% {
opacity: 1;
transform: translateY(0px);
}
}
@mixin decrypt-title {
text-align: center;
line-height: 1;
margin: 0 0 30px;
font-weight: normal;
animation: decrypt-enter $speed ease 1;
}
.WalletDecrypt {
position: relative;
&-wallets {
&-title {
@include decrypt-title;
}
&-row {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 10px;
@media screen and (max-width: $screen-xs) {
margin: 0;
}
&:last-child {
margin: 0;
}
}
&-generate {
text-align: center;
font-weight: 300;
margin-top: $space;
}
}
&-decrypt {
position: relative;
text-align: center;
padding-bottom: $space;
&-back {
@include reset-button;
position: absolute;
top: 0;
left: 0;
line-height: $font-size-large;
opacity: 0.4;
transition: opacity 120ms ease, transform 120ms ease;
@media (max-width: $screen-md) {
top: auto;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}
&:hover,
&:focus {
opacity: 0.8;
}
&:active {
opacity: 1;
}
.fa {
position: relative;
top: -2px;
font-size: 11px;
}
}
&-title {
@include decrypt-title;
}
&-form {
max-width: 360px;
margin: 0 auto;
}
}
}
// Animation between two slides
.DecryptContent {
&-enter {
opacity: 0;
transition: opacity $speed * 0.25 ease $speed * 0.125;
&-active {
opacity: 1;
}
}
&-exit {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 1;
transition: opacity $speed * 0.25 ease;
pointer-events: none;
&-active {
opacity: 0;
}
}
}