mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 03:26:14 +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
97 lines
1.5 KiB
SCSS
97 lines
1.5 KiB
SCSS
// Form overrides
|
|
@import 'common/sass/variables';
|
|
|
|
label {
|
|
margin-bottom: $space-xs;
|
|
|
|
&.is-required:after {
|
|
content: '*';
|
|
padding-left: 2px;
|
|
color: $brand-warning;
|
|
}
|
|
}
|
|
|
|
label + .form-control,
|
|
label + input,
|
|
label + textarea {
|
|
margin-top: 0;
|
|
}
|
|
|
|
input[type='radio'],
|
|
input[type='checkbox'] {
|
|
margin: 3px 0 0;
|
|
line-height: normal;
|
|
}
|
|
|
|
input[readonly] {
|
|
background-color: #fafafa;
|
|
cursor: text !important;
|
|
}
|
|
|
|
.form-control {
|
|
margin-bottom: $space-sm;
|
|
transition: $transition;
|
|
padding: $input-padding;
|
|
|
|
&:focus {
|
|
border-color: $input-border-focus;
|
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 1px rgba($brand-primary, 0.5);
|
|
}
|
|
}
|
|
|
|
input.form-control,
|
|
select.form-control {
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.form-group {
|
|
display: block;
|
|
margin-bottom: $form-group-margin-bottom;
|
|
}
|
|
|
|
.radio,
|
|
.checkbox {
|
|
margin: 15px 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
// Custom feedback classes
|
|
@mixin form-control-state($color) {
|
|
border-color: lighten($color, 20%);
|
|
@include input-shadow($color);
|
|
|
|
&:focus {
|
|
border-color: lighten($color, 5%);
|
|
@include input-focus-shadow($color);
|
|
}
|
|
}
|
|
|
|
.form-control {
|
|
&.is-valid {
|
|
@include form-control-state($brand-success);
|
|
}
|
|
|
|
&.is-invalid {
|
|
@include form-control-state($brand-danger);
|
|
}
|
|
|
|
&.is-semivalid {
|
|
@include form-control-state($brand-warning);
|
|
}
|
|
}
|
|
|
|
.help-block {
|
|
&.is-valid {
|
|
color: $brand-success;
|
|
}
|
|
|
|
&.is-invalid {
|
|
color: $brand-danger;
|
|
}
|
|
|
|
&.is-semivalid {
|
|
color: $brand-warning;
|
|
}
|
|
}
|