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

126 lines
3.2 KiB
SCSS
Raw Normal View History

2014-12-13 12:06:16 +00:00
/***************
! Color chooser
****************/
@include exports("colorchooser") {
2015-08-06 19:39:22 +00:00
GtkColorSwatch {
&, &:selected {
2015-08-16 13:28:10 +00:00
border: 1px solid fade-out($black, .9);
2015-08-06 19:39:22 +00:00
border-radius: $roundness - 1px;
background-color: transparent;
background-clip: border-box;
2015-08-16 13:28:10 +00:00
&:hover { border-color: fade-out($black, .7); }
2015-08-06 19:39:22 +00:00
}
&.color-light:selected:hover, &.color-dark:selected:hover { background-image: none; }
&.left, &:first-child {
border-top-left-radius: $roundness;
border-bottom-left-radius: $roundness;
}
&.right, &:last-child {
border-top-right-radius: $roundness;
border-bottom-right-radius: $roundness;
}
&:only-child { border-radius: $roundness; }
&.top {
border-top-left-radius: $roundness;
border-top-right-radius: $roundness;
}
&.bottom {
border-bottom-left-radius: $roundness;
border-bottom-right-radius: $roundness;
}
GtkColorEditor & {
border-radius: $roundness;
&.color-dark:hover, &.color-light:hover {
background-image: none;
2015-08-16 13:28:10 +00:00
border-color: fade-out($black, .7);
2015-08-06 19:39:22 +00:00
}
}
}
GtkColorChooserWidget #add-color-button {
background-clip: padding-box;
2015-08-16 13:28:10 +00:00
border-color: fade-out($black, .9);
2015-08-06 23:10:35 +00:00
background-color: shade($bg_color, .95);
2015-08-06 19:39:22 +00:00
color: $fg_color;
&:hover {
2015-08-16 13:28:10 +00:00
border-color: fade-out($black, .7);
2015-08-06 23:10:35 +00:00
background-color: shade($bg_color, .9);
2015-08-06 19:39:22 +00:00
color: $fg_color;
}
}
.color-active-badge {
&, &:selected {
border-width: 2px;
border-style: solid;
background-color: transparent;
}
&.color-light {
&, &:hover {
2015-08-16 13:28:10 +00:00
border-color: fade-out($black, .7);
color: fade-out($black, .7);
2015-08-06 19:39:22 +00:00
}
}
&.color-dark {
&, &:hover {
2015-08-16 13:28:10 +00:00
border-color: fade-out($white, .7);
color: fade-out($white, .7);
2015-08-06 19:39:22 +00:00
}
}
}
GtkColorButton.button { padding: $spacing; }
2014-12-13 12:06:16 +00:00
}
/***********************
! Font and file choosers
************************/
@include exports("miscchoosers") {
2015-08-06 19:39:22 +00:00
GtkFontButton, GtkFileChooserButton {
.separator {
/* always disable separators */
-GtkWidget-wide-separators: true;
-GtkWidget-horizontal-separator: 0;
-GtkWidget-vertical-separator: 0;
}
2015-09-09 18:49:18 +00:00
GtkLabel:last-child { color: currentColor; }
2015-08-06 19:39:22 +00:00
2015-09-09 18:49:18 +00:00
GtkImage:last-child { color: currentColor; }
2015-08-06 19:39:22 +00:00
}
GtkFileChooser {
.pane-separator {
&, &:hover {
border-width: 0 1px 0 0;
border-style: solid;
border-color: currentColor;
background-color: $bg_color;
color: shade($bg_color, ($contrast + .1));
}
}
/* for fallback when header bar not used */
.dialog-action-box {
border-width: 1px 0 0;
border-style: solid;
2015-08-06 23:10:35 +00:00
border-color: shade($bg_color, .7);
2015-08-06 19:39:22 +00:00
}
}
2014-12-13 12:06:16 +00:00
}