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

132 lines
3.6 KiB
SCSS
Raw Normal View History

2014-12-13 12:53:59 +00:00
@import "button";
/*******
! OSD *
********/
2014-12-28 14:54:48 +00:00
@include exports("osd") {
GtkOverlay.osd { background-color: transparent; }
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
.osd {
&.background {
2015-08-06 23:10:35 +00:00
background-color: alpha($osd_bg, .8);
2014-12-28 14:54:48 +00:00
color: $osd_fg;
}
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&.frame {
background-clip: border-box;
background-origin: border-box;
}
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&.button, .button { @include button($osd_bg, $osd_fg); }
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&.toolbar {
-GtkToolbar-button-relief: normal;
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
padding: $spacing;
border: 1px solid border_normal($osd_bg);
border-radius: $roundness;
background-color: $osd_bg;
background-image: none;
color: $osd_fg;
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
.separator { color: shade($osd_bg, ($contrast + .1)); }
}
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
/* used by gnome-settings-daemon's media-keys OSD */
2015-08-06 23:10:35 +00:00
&.trough { background-color: shade($osd_bg, .8); }
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&.progressbar { background-color: $osd_fg; }
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
.scale {
&.slider {
@include linear-gradient(shade($osd_bg, 1.08));
@include border($osd_bg);
2014-12-13 12:53:59 +00:00
2015-08-06 23:10:35 +00:00
&:insensitive { @include linear-gradient(shade($osd_bg, .9)); }
2014-12-13 12:53:59 +00:00
}
2014-12-28 14:54:48 +00:00
&.trough {
2015-08-06 23:10:35 +00:00
border-color: shade($osd_bg, .8);
2014-12-28 14:54:48 +00:00
background-color: shade($osd_bg, 1.08);
2014-12-13 12:53:59 +00:00
background-image: none;
2014-12-28 14:54:48 +00:00
&.highlight {
border-color: $selected_bg_color;
background-color: $selected_bg_color;
background-image: none;
}
&:insensitive, &.highlight:insensitive {
2015-08-06 23:10:35 +00:00
border-color: shade($osd_bg, .85);
background-color: shade($osd_bg, .9);
2014-12-28 14:54:48 +00:00
background-image: none;
}
2014-12-13 12:53:59 +00:00
}
}
2014-12-28 14:54:48 +00:00
&.view, .view { background-color: $osd_bg; }
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
.scrollbar {
.trough { background-color: $osd_bg; }
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
.slider {
2015-08-06 23:10:35 +00:00
border: 1px solid mix(shade($osd_bg, .87), $osd_fg, .21);
2014-12-28 14:54:48 +00:00
border-radius: 0;
2015-08-06 23:10:35 +00:00
background-color: mix($osd_bg, $osd_fg, .21);
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&:hover {
2015-08-06 23:10:35 +00:00
border-color: mix(shade($osd_bg, .87), $osd_fg, .31);
background-color: mix($osd_bg, $osd_fg, .31);
2014-12-28 14:54:48 +00:00
}
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&:active {
2015-08-06 23:10:35 +00:00
border-color: shade($selected_bg_color, .9);
2014-12-28 14:54:48 +00:00
background-color: $selected_bg_color;
}
2014-12-13 12:53:59 +00:00
}
}
2014-12-28 14:54:48 +00:00
GtkIconView.cell {
&:selected, &:selected:focus {
background-color: transparent;
2015-08-06 23:10:35 +00:00
border: 3px solid mix(shade($osd_bg, .87), $osd_fg, .21);
2014-12-28 14:54:48 +00:00
border-radius: $roundness;
outline-color: transparent;
}
2014-12-13 12:53:59 +00:00
}
2014-12-28 14:54:48 +00:00
/* used by Documents */
.page-thumbnail {
2015-08-06 23:10:35 +00:00
border: 1px solid shade($osd_bg, .9);
2014-12-28 14:54:48 +00:00
/* when there's no pixbuf yet */
background-color: $osd_bg;
}
2014-12-13 12:53:59 +00:00
}
2014-12-28 14:54:48 +00:00
.osd GtkProgressBar, GtkProgressBar.osd {
-GtkProgressBar-xspacing: 0;
-GtkProgressBar-yspacing: 2px;
-GtkProgressBar-min-horizontal-bar-height: 2px;
2014-12-13 12:53:59 +00:00
padding: 0;
2014-12-28 14:54:48 +00:00
&.trough {
padding: 0;
border-style: none;
border-radius: 0;
background-image: none;
background-color: transparent;
}
&.progressbar {
border-style: none;
border-radius: 0;
background-color: $selected_bg_color;
background-image: none;
}
2014-12-13 12:53:59 +00:00
}
}