James Prado 910093b761 Update code blocks & generate / send tx buttons (#1333)
* Update account view routing

* update styles

* Fix WalletDecrypt types

* Replace disabled textareas with code blocks

* Fix broken animation

* Update snapshot

* Make contract interact dropdowns clearable & searchable

* Update node-sass to v4.8.3

* Fix swap inputs incorrectly incorrectly displaying invalid

* Refactor send tx & generate tx button

* Update broadcast tx & add more transaction details in tx confirmation

* Add signing prop to send button

* Update lite send

* Update codeblock styles

* Update snapshot

* Revert renaming Dropdown
2018-03-23 11:41:47 -05:00

99 lines
1.5 KiB
SCSS

// Form overrides
@import 'common/sass/variables';
@import 'common/sass/mixins';
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: $gray-lightest;
cursor: text !important;
}
.form-control {
margin-bottom: $space-sm;
transition: $transition;
padding: $input-padding;
@include mono;
&: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;
}
}