mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Adwaita: avoid colorswatch growing when drop targets
This commit is contained in:
parent
239303b3f8
commit
44e0e1359c
@ -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
|
||||
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user