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 {
background-color: alpha($osd_bg, 0.8);
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 */
&.trough { background-color: shade($osd_bg, 0.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
2014-12-28 14:54:48 +00:00
&:insensitive { @include linear-gradient(shade($osd_bg, 0.9)); }
2014-12-13 12:53:59 +00:00
}
2014-12-28 14:54:48 +00:00
&.trough {
border-color: shade($osd_bg, 0.8);
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 {
border-color: shade($osd_bg, 0.85);
background-color: shade($osd_bg, 0.9);
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 {
border: 1px solid mix(shade($osd_bg, 0.87), $osd_fg, 0.21);
border-radius: 0;
background-color: mix($osd_bg, $osd_fg, 0.21);
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&:hover {
border-color: mix(shade($osd_bg, 0.87), $osd_fg, 0.31);
background-color: mix($osd_bg, $osd_fg, 0.31);
}
2014-12-13 12:53:59 +00:00
2014-12-28 14:54:48 +00:00
&:active {
border-color: shade($selected_bg_color, 0.9);
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;
border: 3px solid mix(shade($osd_bg, 0.87), $osd_fg, 0.21);
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 {
border: 1px solid shade($osd_bg, 0.9);
/* 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
}
}