numix-gtk-theme/gtk-3.20/scss/widgets/_window.scss

57 lines
1.9 KiB
SCSS
Raw Normal View History

2016-04-23 14:49:46 +00:00
/**************
! Window frame
***************/
2016-04-09 04:30:09 +00:00
@include exports("window") {
decoration {
2016-04-23 15:02:29 +00:00
$_wm_border: if($variant == 'light', transparentize($black, .77), transparentize($borders_color, .1));
2016-04-09 04:30:09 +00:00
border-radius: $roundness $roundness 0 0;
// lamefun trick to get rounded borders regardless of CSD use
2016-04-22 21:20:57 +00:00
border-width: 0;
2016-04-22 21:30:02 +00:00
box-shadow: 0 3px 9px 1px transparentize($black, .3), 0 0 0 1px $wm_border_focused; //doing borders with box-shadow
2016-04-09 04:30:09 +00:00
/* this is used for the resize cursor area */
margin: $spacing * 3;
2016-04-22 21:20:57 +00:00
&:backdrop {
2016-04-22 21:30:02 +00:00
box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px transparentize($black, .6), 0 0 0 1px $wm_border_unfocused;
2016-04-22 21:20:57 +00:00
transition: 200ms ease-out;
}
.maximized &, .fullscreen &, .tiled & { border-radius: 0; }
2016-04-09 04:30:09 +00:00
.popup & { box-shadow: none; }
// this needs to be transparent
// see bug #722563
// server-side decorations as used by mutter
2016-04-23 14:28:31 +00:00
// Fixed gtk-3.18 Unity bug (https://github.com/numixproject/numix-gtk-theme/issues/270)
.ssd & { box-shadow: 0 0 0 1px $wm_border_focused; } //just doing borders, wm draws actual shadows
.solid-csd & {
2016-04-09 04:30:09 +00:00
border-radius: 0;
margin: 1px;
2016-04-22 21:20:57 +00:00
background-color: $bg_color;
2016-04-23 08:05:32 +00:00
// Unity/compiz regression: Issue: https://github.com/numixproject/numix-gtk-theme/issues/206
box-shadow: none;
2016-04-09 04:30:09 +00:00
}
.csd.popup & {
border-radius: 0;
2016-04-23 15:02:29 +00:00
box-shadow: 0 1px 2px transparentize($black, .8), 0 0 0 1px transparentize($_wm_border, .1);
}
2016-04-09 04:30:09 +00:00
tooltip.csd & {
border-radius: $roundness;
box-shadow: none;
2016-04-09 04:30:09 +00:00
}
messagedialog.csd & {
border-radius: $roundness;
2016-04-23 15:02:29 +00:00
box-shadow: 0 1px 2px transparentize($black, .8), 0 0 0 1px transparentize($_wm_border, .1);
2016-04-09 04:30:09 +00:00
}
}
}