MyCrypto/common/sass/styles/alerts.scss
William O'Beirne bf6a122e38 Night Mode Theme (#1896)
* 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%
2018-06-26 23:51:42 -05:00

75 lines
1.1 KiB
SCSS

// Fork of Bootstrap's alert component
@import 'common/sass/variables';
@import 'common/sass/mixins';
/************/
/* Defaults */
/************/
.alert {
padding: 1rem;
margin-bottom: 1rem;
color: color(text-color-inverted);
@include theme(dark) {
border-radius: 2px;
background-color: shade-dark(0.1);
color: color(text-color);
}
a {
color: #FFF;
font-weight: normal;
text-decoration: underline;
&:hover {
color: #FFF;
opacity: 0.8;
}
}
> p,
> ul {
margin-bottom: 0;
}
> p + p {
margin-top: 5px;
}
.btn {
@extend .btn-default;
text-decoration: none;
margin-right: $space-xs;
}
}
/*******************/
/* Colors Variants */
/*******************/
@mixin alert-variant($background) {
background-color: $background;
@include theme(dark) {
border-bottom: 2px solid $background;
}
}
.alert,
.alert-info {
@include alert-variant(color(brand-info));
}
.alert-success {
@include alert-variant(color(brand-success));
}
.alert-warning {
@include alert-variant(color(brand-warning));
}
.alert-danger {
@include alert-variant(color(brand-danger));
}