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

61 lines
1.5 KiB
SCSS
Raw Normal View History

2014-11-23 17:06:45 +00:00
/**************
! Window frame
***************/
@include exports("window") {
2015-08-06 19:39:22 +00:00
%window {
2015-08-06 23:10:35 +00:00
box-shadow: 0 19px 38px rgba(0, 0, 0, .3), 0 15px 12px rgba(0, 0, 0, .22),
2015-08-06 19:39:22 +00:00
0 0 0 1px $wm_border_focused;
2015-01-23 18:54:03 +00:00
2015-08-06 19:39:22 +00:00
&:backdrop {
2015-08-06 23:10:35 +00:00
box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23),
2015-08-06 19:39:22 +00:00
0 0 0 1px $wm_border_unfocused;
}
}
2015-01-23 18:54:03 +00:00
2015-08-06 19:39:22 +00:00
.window-frame {
@extend %window;
2015-01-23 18:54:03 +00:00
2015-08-06 23:10:35 +00:00
border: 0;
2015-08-06 19:39:22 +00:00
border-radius: $roundness $roundness 0 0;
background-color: mix(shade($titlebar_bg_color, 0.7), $titlebar_fg_color, 0.21);
2015-08-06 19:39:22 +00:00
/* this is used for the resize cursor area */
margin: $spacing * 3;
2015-08-06 19:39:22 +00:00
&.tiled { border-radius: 0; }
2015-08-06 21:53:14 +00:00
&.solid-csd {
border-radius: $roundness $roundness 0 0;
2015-08-06 21:53:14 +00:00
margin: 1px;
background-color: mix(shade($titlebar_bg_color, 0.7), $titlebar_fg_color, 0.21);
2015-08-06 21:53:14 +00:00
box-shadow: none;
}
2015-08-06 19:39:22 +00:00
&.csd {
&.popup {
@extend %window;
2015-01-23 18:54:03 +00:00
2015-08-06 19:39:22 +00:00
border-radius: 0;
}
2015-08-06 19:39:22 +00:00
&.tooltip {
border-radius: $roundness;
box-shadow: none;
}
2015-08-06 19:39:22 +00:00
&.message-dialog {
@extend %window;
2015-01-23 18:54:03 +00:00
2015-08-06 19:39:22 +00:00
border-radius: $roundness;
}
}
2015-08-06 21:53:14 +00:00
&.ssd {
2016-04-23 14:34:30 +00:00
// Fixed gtk-3.18 Unity bug (https://github.com/numixproject/numix-gtk-theme/issues/270)
2016-04-23 14:58:19 +00:00
box-shadow: 0 0 0 1px $wm_border_focused;
2015-08-06 21:53:14 +00:00
&.maximized { border-radius: 0; }
}
2015-08-06 19:39:22 +00:00
}
}