diff options
author | Horst3180 | 2015-09-20 16:46:14 +0200 |
---|---|---|
committer | Horst3180 | 2015-09-20 16:46:14 +0200 |
commit | e6d9055657ba65d657814e2ea59fe5ccef08e384 (patch) | |
tree | da1514aa1d171dab70bfe42c8bac879fd7fe61fc /common/gtk-3.0/3.14/sass | |
parent | a96d6ad4e27cda870192e050890c30309cdc6319 (diff) | |
download | solarc-theme-e6d9055657ba65d657814e2ea59fe5ccef08e384.tar.gz solarc-theme-e6d9055657ba65d657814e2ea59fe5ccef08e384.tar.xz solarc-theme-e6d9055657ba65d657814e2ea59fe5ccef08e384.zip |
refactor error and warning entries
Diffstat (limited to 'common/gtk-3.0/3.14/sass')
-rw-r--r-- | common/gtk-3.0/3.14/sass/_common.scss | 59 |
1 files changed, 33 insertions, 26 deletions
diff --git a/common/gtk-3.0/3.14/sass/_common.scss b/common/gtk-3.0/3.14/sass/_common.scss index cbf1fdd..808502a 100644 --- a/common/gtk-3.0/3.14/sass/_common.scss +++ b/common/gtk-3.0/3.14/sass/_common.scss @@ -270,38 +270,27 @@ GtkFlowBox .grid-child { } } - &.error { - color: white; - border-color: $error_color; - background-image: linear-gradient(to bottom, mix($error_color, $base_color, 80%)); - &:focus { - background-image: linear-gradient(to bottom, $error_color); - color: white; - } - &:selected, &:selected:focus { - background-color: white; - color: $error_color; - } - } + @each $e_type, $e_color in (warning, $warning_color), + (error, $error_color) { + &.#{$e_type} { + color: $selected_fg_color; + border-color: if($variant=='light', $e_color, $entry_border); + background-image: linear-gradient(to bottom, mix($e_color, $base_color, 60%)); - &.warning { - color: white; - border-color: $warning_color; - background-image: linear-gradient(to bottom, mix($warning_color, $base_color, 80%)); - &:focus { - background-image: linear-gradient(to bottom, $warning_color); - color: white; - } - &:selected, &:selected:focus { - background-color: white; - color: $warning_color; + &:focus { + color: $selected_fg_color; + background-image: linear-gradient(to bottom, $e_color); + box-shadow: none; + } + &:selected, &:selected:focus { + background-color: $selected_fg_color; + color: $e_color; + } } } &.image { // entry icons colors color: mix($fg_color,$base_color,80%); - &:hover { color: $fg_color; } - &:active { color: $selected_bg_color; } } .linked.vertical > & { //FIXME comment stuff and make the whole thing smarter. @@ -1216,6 +1205,24 @@ GtkComboBox { background-image: none; background-color: transparent; } + + @each $e_type, $e_color in (warning, $warning_color), + (error, $error_color) { + &.#{$e_type} { + color: $selected_fg_color; + border-color: if($darker=='false' and $variant=='light', $e_color, $header_entry_border); + background-image: linear-gradient(to bottom, mix($e_color, $header_bg, 60%)); + + &:focus { + color: $selected_fg_color; + background-image: linear-gradient(to bottom, $e_color); + } + &:selected, &:selected:focus { + background-color: $selected_fg_color; + color: $e_color; + } + } + } } // Header-bar Buttons |