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-06 23:10:35 +00:00
|
|
|
border: 1px solid alpha($black, .1);
|
2015-08-06 19:39:22 +00:00
|
|
|
border-radius: $roundness - 1px;
|
|
|
|
background-color: transparent;
|
|
|
|
background-clip: border-box;
|
|
|
|
|
2015-08-06 23:10:35 +00:00
|
|
|
&:hover { border-color: alpha($black, .3); }
|
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-06 23:10:35 +00:00
|
|
|
border-color: alpha($black, .3);
|
2015-08-06 19:39:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
GtkColorChooserWidget #add-color-button {
|
|
|
|
background-clip: padding-box;
|
2015-08-06 23:10:35 +00:00
|
|
|
border-color: alpha($black, .1);
|
|
|
|
background-color: shade($bg_color, .95);
|
2015-08-06 19:39:22 +00:00
|
|
|
color: $fg_color;
|
|
|
|
|
|
|
|
&:hover {
|
2015-08-06 23:10:35 +00:00
|
|
|
border-color: alpha($black, .3);
|
|
|
|
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-06 23:10:35 +00:00
|
|
|
border-color: alpha($black, .3);
|
|
|
|
color: alpha($black, .3);
|
2015-08-06 19:39:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.color-dark {
|
|
|
|
&, &:hover {
|
2015-08-06 23:10:35 +00:00
|
|
|
border-color: alpha($white, .3);
|
|
|
|
color: alpha($white, .3);
|
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-08-06 23:10:35 +00:00
|
|
|
GtkLabel:last-child { color: alpha(currentColor, .7); }
|
2015-08-06 19:39:22 +00:00
|
|
|
|
2015-08-06 23:10:35 +00:00
|
|
|
GtkImage:last-child { color: alpha(currentColor, .7); }
|
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
|
|
|
}
|