Adwaita: Fix window shadow size
Ensure that the shadow extents don't change as we go to backdrop, to prevent windows from jumping.
This commit is contained in:
parent
93629325d5
commit
dc836abbb4
@ -3262,7 +3262,11 @@ decoration {
|
||||
margin: 10px;
|
||||
|
||||
&:backdrop {
|
||||
/* the transparent shadow here is to enforce that the shadow extents don't
|
||||
* change when we go to backdrop, to prevent jumping windows
|
||||
*/
|
||||
box-shadow: 0 2px 6px 2px transparentize(black, 0.8),
|
||||
0 3px 9px 1px transparent,
|
||||
0 0 0 1px $_wm_border_backdrop;
|
||||
}
|
||||
.tiled & {
|
||||
|
@ -4409,7 +4409,10 @@ decoration {
|
||||
/* this is used for the resize cursor area */
|
||||
margin: 10px; }
|
||||
decoration:backdrop {
|
||||
box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.9); }
|
||||
/* the transparent shadow here is to enforce that the shadow extents don't
|
||||
* change when we go to backdrop, to prevent jumping windows
|
||||
*/
|
||||
box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 3px 9px 1px transparent, 0 0 0 1px rgba(28, 31, 31, 0.9); }
|
||||
.tiled decoration {
|
||||
border-radius: 0; }
|
||||
.popup decoration {
|
||||
|
@ -4581,7 +4581,10 @@ decoration {
|
||||
/* this is used for the resize cursor area */
|
||||
margin: 10px; }
|
||||
decoration:backdrop {
|
||||
box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.18); }
|
||||
/* the transparent shadow here is to enforce that the shadow extents don't
|
||||
* change when we go to backdrop, to prevent jumping windows
|
||||
*/
|
||||
box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 3px 9px 1px transparent, 0 0 0 1px rgba(0, 0, 0, 0.18); }
|
||||
.tiled decoration {
|
||||
border-radius: 0; }
|
||||
.popup decoration {
|
||||
|
Loading…
Reference in New Issue
Block a user