Adwaita: colorswatch on selected elements style fix

This commit is contained in:
Lapo Calamandrei 2014-10-21 16:34:42 +02:00
parent 01e6811776
commit 298974b9da
3 changed files with 17 additions and 1 deletions

View File

@ -2902,7 +2902,6 @@ GtkColorSwatch {
}
// nth-child works just on the custom colors row
// hover effect
&:hover {
background-image: linear-gradient(135deg, transparentize(white, 0.3),
@ -2952,6 +2951,15 @@ GtkColorSwatch {
&:backdrop { @include button(backdrop); }
.overlay { @include button(undecorated); } // reset the overlay to not cover the button style underneat
}
// take care of colorswatches on selected elements
:selected & {
box-shadow: none;
&.overlay {
border-color: $selected_fg_color;
}
}
}

View File

@ -4312,6 +4312,10 @@ GtkColorSwatch {
box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
text-shadow: none;
icon-shadow: none; }
:selected GtkColorSwatch {
box-shadow: none; }
:selected GtkColorSwatch.overlay {
border-color: #ffffff; }
/********
* Misc *

View File

@ -4473,6 +4473,10 @@ GtkColorSwatch {
box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0);
text-shadow: none;
icon-shadow: none; }
:selected GtkColorSwatch {
box-shadow: none; }
:selected GtkColorSwatch.overlay {
border-color: #ffffff; }
/********
* Misc *