mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 11:05:47 +00:00
bf6a122e38
* Initial changes to define theme maps, color function, and convert all global styles. * More global styles. * All styles converted, colors uncertain. * Fix tabs, temporary theme toggle button. * Color refinements * Color network selector, introduce shade function * Make palette page * Add theme button and minor styling to nav * Blueify dark theme * A bunch of color adjustments to work better with dark theme * Fix tables * Fix wallet decrypt colors * More misc fixes * Fix up electron colors * Convert web theme to redux state / action * Theme toggle in app, prevent rerenders * Get rid of all variables, fix selects * Fix conf modal, modal close styles * Fix test * Adjust swap colors * Check in breaking out component, changing icons * Check in progress * Theme toggle in footer. New icons * Prevent rerender on theme change * Fix up outstanding merge conflicts * Fix generate colors to be dark mode friendly * Reduce swap color intensity * Make disabled buttons darker in dark mode * Reduce button size by 25%
133 lines
2.3 KiB
SCSS
133 lines
2.3 KiB
SCSS
// A fork of bootstrap's forms to have some custom behavior, and to work with
|
|
// css variables
|
|
@import 'common/sass/variables';
|
|
@import 'common/sass/mixins';
|
|
|
|
// Normalize elements for various browsers
|
|
fieldset {
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
legend {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0;
|
|
margin-bottom: $line-height-computed;
|
|
font-size: ($font-size-base * 1.5);
|
|
line-height: inherit;
|
|
color: $legend-color;
|
|
border: 0;
|
|
border-bottom: 1px solid $legend-border-color;
|
|
}
|
|
|
|
input[type="search"] {
|
|
box-sizing: border-box;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
input[type="file"] {
|
|
display: block;
|
|
}
|
|
|
|
input[type="range"] {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
select[multiple],
|
|
select[size] {
|
|
height: auto;
|
|
}
|
|
|
|
input[type="file"]:focus,
|
|
input[type="radio"]:focus,
|
|
input[type="checkbox"]:focus {
|
|
@include tab-focus;
|
|
}
|
|
|
|
// Labels
|
|
label {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
margin-bottom: $space-xs;
|
|
font-weight: bold;
|
|
|
|
&.is-required:after {
|
|
content: '*';
|
|
padding-left: 2px;
|
|
color: color(brand-warning);
|
|
}
|
|
}
|
|
|
|
// Checkbox / radio
|
|
.radio,
|
|
.checkbox {
|
|
position: relative;
|
|
display: block;
|
|
margin: 15px 0;
|
|
font-weight: 500;
|
|
|
|
label {
|
|
min-height: $line-height-computed;
|
|
padding-left: 20px;
|
|
margin-bottom: 0;
|
|
font-weight: normal;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.radio input[type="radio"],
|
|
.radio-inline input[type="radio"],
|
|
.checkbox input[type="checkbox"],
|
|
.checkbox-inline input[type="checkbox"] {
|
|
position: absolute;
|
|
margin-left: -20px;
|
|
margin-top: 4px \9;
|
|
}
|
|
|
|
.radio + .radio,
|
|
.checkbox + .checkbox {
|
|
margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
|
|
}
|
|
|
|
input[type='radio'],
|
|
input[type='checkbox'] {
|
|
margin: 3px 0 0;
|
|
line-height: normal;
|
|
}
|
|
|
|
// Misc
|
|
input[readonly] {
|
|
background-color: color(control-disabled-bg);
|
|
color: color(control-disabled-color);
|
|
border-color: color(control-disabled-border);
|
|
cursor: text !important;
|
|
}
|
|
|
|
.form-group {
|
|
display: block;
|
|
margin-bottom: $form-group-margin-bottom;
|
|
}
|
|
|
|
.help-block {
|
|
display: block;
|
|
margin-top: $space-xs;
|
|
margin-bottom: $space-sm;
|
|
opacity: 0.8;
|
|
|
|
&.is-valid {
|
|
color: color(brand-success);
|
|
}
|
|
|
|
&.is-invalid {
|
|
color: color(brand-danger);
|
|
}
|
|
|
|
&.is-semivalid {
|
|
color: color(brand-warning);
|
|
}
|
|
}
|