Adwaita: avoid colorswatch growing when drop targets

This commit is contained in:
Lapo Calamandrei 2016-01-09 15:30:20 +01:00
parent 239303b3f8
commit 44e0e1359c
3 changed files with 7 additions and 1 deletions

View File

@ -3411,6 +3411,8 @@ colorswatch {
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
// applied to the overlay box.
&, &:drop(active) { border-style: none; } // FIXME: implement a proper drop(active) state
$_colorswatch_radius: 5px;
$_colorswatch_overlay_shadow: if($variant == 'light', inset 0 2px 2px -3px transparentize(black, 0.3),
inset 0 3px 2px -2px transparentize(black, 0.5));
@ -3715,7 +3717,7 @@ frame.keycap {
}
*:drop(active):focus,
*:drop(active) { border: 1px solid black; }
*:drop(active) { border: 1px solid black; } // FIXME this makes boxes grow and looks pretty bad, needs to be handled differently
stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons

View File

@ -4432,6 +4432,8 @@ tooltip {
/*****************
* Color Chooser *
*****************/
colorswatch, colorswatch:drop(active) {
border-style: none; }
colorswatch.top {
border-top-left-radius: 5.5px;
border-top-right-radius: 5.5px; }

View File

@ -4608,6 +4608,8 @@ tooltip {
/*****************
* Color Chooser *
*****************/
colorswatch, colorswatch:drop(active) {
border-style: none; }
colorswatch.top {
border-top-left-radius: 5.5px;
border-top-right-radius: 5.5px; }