2014-06-13 14:32:44 +00:00
|
|
|
@function gtkalpha($c,$a) {
|
|
|
|
@return unquote("alpha(#{$c},#{$a})");
|
|
|
|
}
|
|
|
|
|
2014-10-16 12:36:23 +00:00
|
|
|
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
2015-06-04 17:36:25 +00:00
|
|
|
$asset_suffix: if($variant=='dark', '-dark', '');
|
2014-10-16 12:36:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
-GtkToolButton-icon-spacing: 4;
|
|
|
|
-GtkTextView-error-underline-color: $error_color;
|
|
|
|
|
|
|
|
// The size for scrollbars. The slider is 2px smaller, but we keep it
|
|
|
|
// up so that the whole area is sensitive to button presses for the
|
|
|
|
// slider. The stepper button is larger in both directions, the slider
|
|
|
|
// only in the width
|
|
|
|
|
|
|
|
-GtkScrolledWindow-scrollbar-spacing: 0;
|
|
|
|
|
|
|
|
-GtkToolItemGroup-expander-size: 11;
|
|
|
|
-GtkTreeView-expander-size: 11;
|
|
|
|
|
|
|
|
-GtkTreeView-horizontal-separator: 4;
|
|
|
|
|
2014-11-20 13:19:39 +00:00
|
|
|
-GtkWidget-text-handle-width: 20;
|
2015-06-04 17:36:25 +00:00
|
|
|
-GtkWidget-text-handle-height: 24;
|
2014-11-20 13:19:39 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkDialog-button-spacing: 4;
|
|
|
|
-GtkDialog-action-area-border: 0;
|
|
|
|
|
|
|
|
// We use the outline properties to signal the focus properties
|
|
|
|
// to the adwaita engine: using real CSS properties is faster,
|
|
|
|
// and we don't use any outlines for now.
|
|
|
|
|
|
|
|
outline-color: transparentize($fg_color, 0.7);
|
|
|
|
outline-style: dashed;
|
|
|
|
outline-offset: -3px;
|
|
|
|
outline-width: 1px;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-radius: 2px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***************
|
|
|
|
* Base States *
|
|
|
|
***************/
|
|
|
|
|
|
|
|
.background {
|
2014-10-17 18:09:17 +00:00
|
|
|
color: $fg_color;
|
2015-12-04 17:42:56 +00:00
|
|
|
background-color: $bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-10-17 18:09:17 +00:00
|
|
|
&:backdrop {
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: none;
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
2014-10-17 18:09:17 +00:00
|
|
|
color: $backdrop_fg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $backdrop_bg_color;
|
2014-10-17 18:09:17 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
These wildcard seems unavoidable, need to investigate.
|
|
|
|
Wildcards are bad and troublesome, use them with care,
|
|
|
|
or better, just don't.
|
|
|
|
Everytime a wildcard is used a kitten dies, painfully.
|
|
|
|
*/
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
*:disabled {
|
2015-12-01 21:29:24 +00:00
|
|
|
-gtk-icon-effect: dim;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gtkstyle-fallback {
|
|
|
|
background-color: $bg_color;
|
|
|
|
color: $fg_color;
|
2015-12-24 23:43:03 +00:00
|
|
|
&:hover {
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: lighten($bg_color, 10%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: darken($bg_color, 10%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
}
|
|
|
|
&:selected {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-16 03:15:30 +00:00
|
|
|
.view,
|
|
|
|
%view {
|
2014-10-18 14:57:39 +00:00
|
|
|
color: $text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $base_color;
|
2014-12-17 17:29:02 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
2014-10-18 14:57:39 +00:00
|
|
|
color: $backdrop_text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-14 22:36:35 +00:00
|
|
|
&:selected,
|
|
|
|
&:selected:focus {
|
|
|
|
@extend %selected_items;
|
2016-01-08 00:38:42 +00:00
|
|
|
border-radius: 3px;
|
2015-11-14 22:36:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-16 03:15:30 +00:00
|
|
|
.view,
|
|
|
|
textview {
|
|
|
|
text {
|
|
|
|
@extend %view;
|
2016-01-11 23:16:12 +00:00
|
|
|
|
2016-01-16 03:15:30 +00:00
|
|
|
selection,
|
|
|
|
selection:focus { @extend %selected_items; }
|
|
|
|
}
|
2016-01-11 23:16:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
iconview { @extend .view; }
|
|
|
|
|
2015-11-10 05:28:46 +00:00
|
|
|
.rubberband,
|
|
|
|
rubberband {
|
2015-06-25 17:55:51 +00:00
|
|
|
border: 1px solid darken($selected_bg_color, 10%);
|
|
|
|
background-color: transparentize(darken($selected_bg_color, 10%), 0.8);
|
2014-06-19 17:11:02 +00:00
|
|
|
}
|
|
|
|
|
2015-11-10 05:52:09 +00:00
|
|
|
flowbox {
|
2016-01-09 13:36:05 +00:00
|
|
|
rubberband { @extend rubberband; }
|
|
|
|
|
|
|
|
flowboxchild {
|
2015-11-14 23:25:24 +00:00
|
|
|
padding: 3px;
|
|
|
|
border-radius: 3px;
|
|
|
|
&:selected {
|
|
|
|
@extend %selected_items;
|
|
|
|
outline-offset: -2px;
|
|
|
|
}
|
2015-11-14 22:33:00 +00:00
|
|
|
}
|
2015-11-10 05:52:09 +00:00
|
|
|
}
|
|
|
|
|
2015-10-23 03:25:42 +00:00
|
|
|
label {
|
2014-08-29 13:32:45 +00:00
|
|
|
&.separator {
|
|
|
|
color: $fg_color;
|
|
|
|
@extend .dim-label;
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-07 12:04:43 +00:00
|
|
|
&:selected,
|
2016-01-09 13:36:05 +00:00
|
|
|
selection,
|
|
|
|
selection:focus,
|
|
|
|
selection:hover {
|
2014-08-22 10:55:30 +00:00
|
|
|
@extend %selected_items;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-08-25 12:15:32 +00:00
|
|
|
color: $insensitive_fg_color;
|
2014-08-26 17:24:44 +00:00
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
2014-08-25 12:15:32 +00:00
|
|
|
}
|
2014-06-30 15:35:38 +00:00
|
|
|
}
|
|
|
|
|
2014-07-07 11:30:24 +00:00
|
|
|
.dim-label {
|
2014-07-07 12:04:37 +00:00
|
|
|
opacity: 0.55;
|
|
|
|
text-shadow: none;
|
2014-07-07 11:30:24 +00:00
|
|
|
}
|
|
|
|
|
2015-10-27 18:37:04 +00:00
|
|
|
assistant {
|
2014-08-26 15:51:45 +00:00
|
|
|
.sidebar {
|
2014-08-22 03:07:57 +00:00
|
|
|
background-color: $base_color;
|
2014-08-26 15:51:45 +00:00
|
|
|
border-top: 1px solid $borders_color;
|
2014-08-26 16:02:28 +00:00
|
|
|
&:dir(ltr) { border-right: 1px solid $borders_color; }
|
|
|
|
&:dir(rtl) { border-left: 1px solid $borders_color; }
|
2014-08-26 15:51:45 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2014-08-22 03:07:57 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-08-26 15:51:45 +00:00
|
|
|
&.csd .sidebar { border-top-style: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
.sidebar label { padding: 6px 12px; }
|
|
|
|
|
|
|
|
.sidebar label.highlight { background-color: mix($bg_color, $fg_color, 80%); }
|
2014-08-22 03:07:57 +00:00
|
|
|
}
|
|
|
|
|
2015-10-30 23:55:42 +00:00
|
|
|
textview { // This will get overridden by .view, needed by gedit line numbers
|
2014-08-26 17:54:41 +00:00
|
|
|
background-color: mix($bg_color, $base_color, 50%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:backdrop { background-color: mix($backdrop_bg_color, $backdrop_base_color, 50%); }
|
2014-08-26 17:54:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-26 14:54:19 +00:00
|
|
|
%osd, .osd {
|
2014-08-22 10:55:30 +00:00
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
|
|
|
background-color: $osd_bg_color;
|
2014-10-29 17:10:39 +00:00
|
|
|
background-clip: padding-box;
|
2014-09-04 13:03:09 +00:00
|
|
|
outline-color: transparentize($osd_fg_color, 0.7);
|
2014-08-22 10:55:30 +00:00
|
|
|
text-shadow: 0 1px black;
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-03 18:28:57 +00:00
|
|
|
&:backdrop {
|
|
|
|
text-shadow: none;
|
|
|
|
-gtk-icon-shadow: none;
|
|
|
|
}
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
2014-08-22 03:07:57 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/*********************
|
|
|
|
* Spinner Animation *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
@keyframes spin {
|
2014-08-28 13:42:17 +00:00
|
|
|
to { -gtk-icon-transform: rotate(1turn); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-10-25 19:21:17 +00:00
|
|
|
spinner {
|
2015-11-26 20:01:22 +00:00
|
|
|
background: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
opacity: 0; // non spinning spinner makes no sense
|
|
|
|
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-01 23:39:25 +00:00
|
|
|
&:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
opacity: 1;
|
|
|
|
animation: spin 1s linear infinite;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:disabled { opacity: 0.5; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************
|
|
|
|
* Text Entries *
|
|
|
|
****************/
|
|
|
|
|
2015-10-30 12:17:52 +00:00
|
|
|
entry {
|
2015-12-23 19:35:06 +00:00
|
|
|
min-height: 32px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2015-12-23 19:35:06 +00:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
image { // icons inside the entry
|
2015-10-26 20:51:28 +00:00
|
|
|
&.left { padding-left: 0; padding-right: 6px; }
|
|
|
|
&.right { padding-left: 6px; padding-right: 0; }
|
2014-07-23 13:25:22 +00:00
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2016-01-27 04:33:06 +00:00
|
|
|
undershoot {
|
|
|
|
&.left { @include undershoot(left); }
|
|
|
|
&.right { @include undershoot(right); }
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 3px;
|
2014-10-16 12:36:23 +00:00
|
|
|
transition: all 200ms $ease-out-quad;
|
2014-06-13 14:32:44 +00:00
|
|
|
@include entry(normal);
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&.flat,
|
|
|
|
&.flat:focus {
|
2014-06-27 12:24:53 +00:00
|
|
|
padding: 2px;
|
2014-09-03 11:18:39 +00:00
|
|
|
@include entry(normal, $edge:none);
|
2014-06-27 12:24:53 +00:00
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:focus { @include entry(focus); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include entry(insensitive); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop { @include entry(backdrop); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled { @include entry(backdrop-insensitive); }
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
selection,
|
|
|
|
selection:focus {
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %selected_items;
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
progress {
|
2014-06-13 14:32:44 +00:00
|
|
|
margin: 1px;
|
|
|
|
border-radius: 0;
|
|
|
|
border-width: 0 0 2px;
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
border-style: solid;
|
|
|
|
background-image: none;
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
&:backdrop { background-color: transparent; }
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2016-01-16 18:24:56 +00:00
|
|
|
&:focus progress {
|
|
|
|
border-bottom-width: 3px;
|
|
|
|
}
|
|
|
|
|
2015-06-25 18:04:32 +00:00
|
|
|
.linked:not(.vertical) > & { @extend %linked; }
|
2015-10-23 18:52:27 +00:00
|
|
|
.linked:not(.vertical) > &:focus + entry,
|
2015-10-30 03:17:41 +00:00
|
|
|
.linked:not(.vertical) > &:focus + button,
|
2016-01-09 13:36:05 +00:00
|
|
|
.linked:not(.vertical) > &:focus + combobox > button.combo { border-left-color: entry_focus_border(); }
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2015-04-22 15:43:37 +00:00
|
|
|
// entry error and warning style
|
|
|
|
@each $e_type, $e_color in (error, $error_color),
|
|
|
|
(warning, $warning_color) {
|
|
|
|
&.#{$e_type} {
|
|
|
|
color: $e_color;
|
|
|
|
border-color: entry_focus_border($e_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-04-22 15:43:37 +00:00
|
|
|
&:focus { @include entry(focus, $e_color); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-04-22 15:43:37 +00:00
|
|
|
&:selected, &:selected:focus { background-color: $e_color; }
|
2014-07-03 10:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2015-10-23 19:41:05 +00:00
|
|
|
& image { // entry icons colors
|
2014-12-01 09:14:47 +00:00
|
|
|
color: mix($fg_color, $base_color, 80%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-23 15:53:31 +00:00
|
|
|
&:hover { color: $fg_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-23 15:53:31 +00:00
|
|
|
&:active { color: $selected_bg_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-12-01 09:14:47 +00:00
|
|
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
|
2014-07-23 15:53:31 +00:00
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
.osd & {
|
|
|
|
@include entry(osd);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:focus { @include entry(osd-focus); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:backdrop { @include entry(osd-backdrop); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include entry(osd-insensitive); }
|
2014-10-29 17:10:39 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-04-22 12:42:58 +00:00
|
|
|
// Vertically linked entries
|
|
|
|
// FIXME: take care of "colored" entries
|
|
|
|
.linked.vertical {
|
2015-10-23 18:52:27 +00:00
|
|
|
> entry { @extend %linked_vertical; }
|
2015-04-22 12:42:58 +00:00
|
|
|
|
2015-04-22 14:09:29 +00:00
|
|
|
// remove the edge hilight and the focus shadow (unfortunatelly)
|
2015-10-23 18:52:27 +00:00
|
|
|
> entry:not(:last-child) { box-shadow: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-04-22 14:09:29 +00:00
|
|
|
// add back the focus shadow
|
2015-10-23 18:52:27 +00:00
|
|
|
> entry:focus:not(:last-child) { box-shadow: entry_focus_shadow(); }
|
2015-04-22 12:42:58 +00:00
|
|
|
|
|
|
|
// brighter border between linked entries
|
2015-12-24 23:43:03 +00:00
|
|
|
> entry:not(:disabled) + entry:not(:disabled) {
|
2015-04-22 12:42:58 +00:00
|
|
|
border-top-color: mix($borders_color, $base_color, 30%);
|
|
|
|
background-image: linear-gradient(to bottom, $base_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-04-22 12:42:58 +00:00
|
|
|
&:backdrop {
|
|
|
|
border-top-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
|
|
|
|
background-image: linear-gradient(to bottom, $backdrop_base_color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-02 16:02:58 +00:00
|
|
|
// brighter border between linked insensitive entries
|
2016-01-09 13:36:05 +00:00
|
|
|
> entry:disabled + entry:disabled { border-top-color: mix($borders_color, $base_color, 30%); }
|
2015-12-02 16:02:58 +00:00
|
|
|
|
2015-04-22 12:42:58 +00:00
|
|
|
// color back the top border of a linked focused entry following another entry and add back the focus shadow.
|
2015-10-23 18:52:27 +00:00
|
|
|
> entry + entry:focus:not(:last-child) {
|
2015-04-22 12:42:58 +00:00
|
|
|
border-top-color: entry_focus_border();
|
|
|
|
box-shadow: entry_focus_shadow();
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-04-22 14:09:29 +00:00
|
|
|
// just recolor the top border on the last focused entry, since we don't reset the shadow here letting that be
|
|
|
|
// inherited by the entry styling.
|
2015-10-23 18:52:27 +00:00
|
|
|
> entry + entry:focus:last-child {
|
2015-04-22 14:09:29 +00:00
|
|
|
border-top-color: entry_focus_border();
|
|
|
|
}
|
2015-04-22 12:42:58 +00:00
|
|
|
|
2015-04-22 14:09:29 +00:00
|
|
|
// this takes care of coloring the top border of the focused entry subsequent widget.
|
|
|
|
// :not(:only-child) is a specificity bump hack.
|
2015-10-23 18:52:27 +00:00
|
|
|
> entry:focus:not(:only-child) + entry,
|
2015-10-30 03:17:41 +00:00
|
|
|
> entry:focus:not(:only-child) + button,
|
2016-01-09 13:36:05 +00:00
|
|
|
> entry:focus:not(:only-child) + combobox > button.combo { border-top-color: entry_focus_border(); }
|
2015-04-22 12:42:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/***********
|
|
|
|
* Buttons *
|
|
|
|
***********/
|
|
|
|
|
2014-07-22 17:50:15 +00:00
|
|
|
// stuff for .needs-attention
|
|
|
|
$_dot_color: if($variant=='light', $selected_bg_color,
|
|
|
|
lighten($selected_bg_color,15%));
|
2014-07-16 17:42:17 +00:00
|
|
|
@keyframes needs_attention {
|
|
|
|
from {
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.01,
|
2014-07-22 17:50:15 +00:00
|
|
|
to($_dot_color),
|
2014-07-16 17:42:17 +00:00
|
|
|
to(transparent));
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-16 17:42:17 +00:00
|
|
|
to {
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to($selected_bg_color),
|
|
|
|
to(transparent));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
button {
|
2014-10-16 10:46:58 +00:00
|
|
|
|
2014-10-16 12:36:23 +00:00
|
|
|
$_button_transition: all 200ms $ease-out-quad;
|
2014-10-16 10:46:58 +00:00
|
|
|
|
2015-12-23 19:35:06 +00:00
|
|
|
min-height: 24px;
|
|
|
|
min-width: 16px;
|
|
|
|
padding: 4px 8px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 3px;
|
2014-10-16 10:46:58 +00:00
|
|
|
transition: $_button_transition;
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(normal);
|
2014-10-16 10:46:58 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated);
|
|
|
|
// to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
|
|
|
|
// to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
|
|
|
|
// it won't fade out when the pointer leave the button allocation area. To make the transition more evident
|
|
|
|
// in this case the duration is increased.
|
|
|
|
transition: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-16 10:46:58 +00:00
|
|
|
&:hover {
|
|
|
|
transition: $_button_transition;
|
|
|
|
transition-duration: 500ms;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-16 10:46:58 +00:00
|
|
|
&:active { transition: $_button_transition; }
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&:hover {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(hover);
|
2015-12-01 21:29:24 +00:00
|
|
|
-gtk-icon-effect: highlight;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-12 17:09:53 +00:00
|
|
|
&:active, &:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(active);
|
2014-07-01 15:46:24 +00:00
|
|
|
transition-duration: 50ms;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&:backdrop, &.flat:backdrop {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(backdrop);
|
2015-12-01 21:29:24 +00:00
|
|
|
-gtk-icon-effect: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active, &:checked { @include button(backdrop-active); }
|
|
|
|
|
|
|
|
&:disabled { @include button(backdrop-insensitive); }
|
|
|
|
|
|
|
|
&:disabled:active,
|
|
|
|
&:disabled:checked { @include button(backdrop-insensitive-active); }
|
2014-09-04 13:03:09 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&.flat:backdrop,
|
|
|
|
&.flat:disabled,
|
|
|
|
&.flat:backdrop:disabled { @include button(undecorated); }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(insensitive);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(insensitive-active); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
// big standalone buttons like in Documents pager
|
|
|
|
&.osd {
|
2015-12-23 19:35:06 +00:00
|
|
|
&.image-button {
|
|
|
|
min-height: 48px;
|
|
|
|
min-width: 48px;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-07 11:26:09 +00:00
|
|
|
color: $osd_fg_color;
|
2014-10-30 12:18:48 +00:00
|
|
|
border-radius: 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
outline-color: transparentize($osd_fg_color, 0.7); //FIXME: define a color var?
|
2014-07-07 11:26:09 +00:00
|
|
|
@include button(osd);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
box-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
&:hover {
|
|
|
|
@include button(osd-hover);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
2014-08-22 10:55:30 +00:00
|
|
|
@include button(osd-active);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-10-29 17:10:39 +00:00
|
|
|
box-shadow: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&:backdrop:disabled {
|
2014-08-22 10:55:30 +00:00
|
|
|
@include button(osd-insensitive);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
&:backdrop {
|
|
|
|
@include button(osd-backdrop);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
//overlay / OSD style
|
2015-12-03 18:28:57 +00:00
|
|
|
@at-root %osd_button,
|
2014-06-13 14:32:44 +00:00
|
|
|
.osd & {
|
|
|
|
@include button(osd);
|
2016-01-09 13:36:05 +00:00
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked,
|
|
|
|
&:backdrop:active,
|
|
|
|
&:backdrop:checked { @include button(osd-active); }
|
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&:backdrop:disabled { @include button(osd-insensitive); }
|
|
|
|
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated);
|
|
|
|
box-shadow: none; //FIXME respect no edge on the button mixin
|
|
|
|
text-shadow: 0 1px black;
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-10-29 17:10:39 +00:00
|
|
|
@include button(osd-insensitive);
|
|
|
|
background-image: none;
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:backdrop { @include button(undecorated); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(osd-active); }
|
2014-10-29 17:10:39 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
// Suggested and Destructive Action buttons
|
|
|
|
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
2015-06-04 14:19:05 +00:00
|
|
|
(destructive-action, $destructive_color) {
|
2014-06-13 14:32:44 +00:00
|
|
|
&.#{$b_type} {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(normal, $b_color, white);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 17:13:29 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $b_color; //FIXME: does it work on the dark variant?
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&:hover { @include button(hover, $b_color, white); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(active, $b_color, white); }
|
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
&.flat:backdrop {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(backdrop, $b_color, white);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(backdrop-active, $b_color, white); }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-04 17:02:13 +00:00
|
|
|
@include button(backdrop-insensitive);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active, &:checked { @include button(backdrop-insensitive-active, $b_color, white); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&.flat:backdrop,
|
|
|
|
&.flat:disabled,
|
|
|
|
&.flat:backdrop:disabled {
|
2014-09-04 17:13:29 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
color: transparentize($b_color, 0.2);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-04 17:02:13 +00:00
|
|
|
@include button(insensitive);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(insensitive-active, $b_color, white); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
.osd & {
|
|
|
|
@include button(osd, $b_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:hover { @include button(osd-hover, $b_color); }
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked,
|
|
|
|
&:backdrop:active,
|
|
|
|
&:backdrop:checked { @include button(osd-active, $b_color); }
|
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&:backdrop:disabled { @include button(osd-insensitive, $b_color); }
|
|
|
|
|
|
|
|
&:backdrop { @include button(osd-backdrop, $b_color); }
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
|
2014-07-21 16:49:15 +00:00
|
|
|
&.text-button {
|
|
|
|
padding-left: 16px;
|
|
|
|
padding-right: 16px;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-09-13 10:25:46 +00:00
|
|
|
&.text-button.image-button {
|
|
|
|
// those buttons needs uneven horizontal padding, we want the icon side
|
|
|
|
// to have the image-button padding, while the text side the text-button
|
|
|
|
// one, so we're adding the missing padding to the label depending on
|
|
|
|
// its position inside the button
|
2016-01-09 13:36:05 +00:00
|
|
|
label:first-child { padding-left: 8px; }
|
|
|
|
label:last-child { padding-right: 8px; }
|
2014-09-13 10:25:46 +00:00
|
|
|
}
|
|
|
|
|
2014-07-16 17:42:17 +00:00
|
|
|
.stack-switcher > & {
|
2014-09-12 11:46:17 +00:00
|
|
|
// to position the needs attention dot, padding is added to the button
|
|
|
|
// child, a label needs just lateral padding while an icon needs vertical
|
|
|
|
// padding added too.
|
2014-10-16 18:04:04 +00:00
|
|
|
|
|
|
|
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
|
|
|
|
|
2015-10-23 03:25:42 +00:00
|
|
|
> label {
|
2014-07-16 17:42:17 +00:00
|
|
|
padding-left: 6px; // label padding
|
|
|
|
padding-right: 6px; //
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 04:05:18 +00:00
|
|
|
> image {
|
2014-09-12 11:46:17 +00:00
|
|
|
padding-left: 6px; // image padding
|
|
|
|
padding-right: 6px; //
|
|
|
|
padding-top: 3px; //
|
|
|
|
padding-bottom: 3px; //
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-12 11:46:17 +00:00
|
|
|
&.text-button {
|
2015-12-23 19:35:06 +00:00
|
|
|
// compensate text-button paddings
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2014-09-12 11:46:17 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-12 11:46:17 +00:00
|
|
|
&.image-button {
|
|
|
|
// we want image buttons to have a 1:1 aspect ratio, so compensation
|
|
|
|
// of the padding added to the GtkImage is needed
|
2015-12-23 19:35:06 +00:00
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
2014-07-16 17:42:17 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 03:25:42 +00:00
|
|
|
&.needs-attention > label,
|
2015-10-23 04:05:18 +00:00
|
|
|
&.needs-attention > image { @extend %needs_attention; }
|
2015-10-23 03:25:42 +00:00
|
|
|
&.needs-attention:active > label,
|
2015-10-23 04:05:18 +00:00
|
|
|
&.needs-attention:active > image,
|
2015-10-23 03:25:42 +00:00
|
|
|
&.needs-attention:checked > label,
|
2015-10-23 04:05:18 +00:00
|
|
|
&.needs-attention:checked > image {
|
2014-07-22 07:42:22 +00:00
|
|
|
animation: none;
|
|
|
|
background-image: none;
|
|
|
|
}
|
2014-07-16 17:42:17 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
//inline-toolbar buttons
|
|
|
|
.inline-toolbar &, .inline-toolbar &:backdrop {
|
|
|
|
border-radius: 2px;
|
|
|
|
border-width: 1px;
|
2014-08-06 11:20:45 +00:00
|
|
|
@extend %linked;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 01:30:54 +00:00
|
|
|
.primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need shadows
|
2014-09-04 13:03:09 +00:00
|
|
|
|
2014-12-03 10:29:12 +00:00
|
|
|
.linked > &,
|
|
|
|
.linked > &:hover,
|
|
|
|
.linked > &:active,
|
|
|
|
.linked > &:checked,
|
|
|
|
.linked > &:backdrop { @extend %linked; }
|
|
|
|
|
|
|
|
.linked.vertical > &,
|
|
|
|
.linked.vertical > &:hover,
|
|
|
|
.linked.vertical > &:active,
|
|
|
|
.linked.vertical > &:checked,
|
|
|
|
.linked.vertical > &:backdrop { @extend %linked_vertical; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
%needs_attention {
|
|
|
|
animation: needs_attention 150ms ease-in;
|
|
|
|
$_dot_shadow: _text_shadow_color();
|
|
|
|
$_dot_shadow_r: if($variant=='light',0.5,0.45);
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to($_dot_color),
|
|
|
|
to(transparent)),
|
|
|
|
-gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, $_dot_shadow_r,
|
|
|
|
to($_dot_shadow),
|
|
|
|
to(transparent));
|
|
|
|
background-size: 6px 6px, 6px 6px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
@if $variant == 'light' { background-position: right 3px, right 4px; }
|
|
|
|
@else { background-position: right 3px, right 2px; }
|
|
|
|
&:backdrop { background-size: 6px 6px, 0 0;}
|
|
|
|
&:dir(rtl) {
|
|
|
|
@if $variant == 'light' { background-position: left 3px, left 4px; }
|
|
|
|
@else { background-position: left 3px, left 2px; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-09-04 22:07:54 +00:00
|
|
|
// all the following is for the +|- buttons on inline toolbars, that way
|
|
|
|
// should really be deprecated...
|
2015-11-01 00:52:41 +00:00
|
|
|
.inline-toolbar toolbutton > button { // redefining the button look is
|
2014-09-05 13:05:25 +00:00
|
|
|
// needed since those are flat...
|
2014-09-04 22:07:54 +00:00
|
|
|
@include button(normal);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 22:07:54 +00:00
|
|
|
&:hover { @include button(hover); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-05 13:05:25 +00:00
|
|
|
&:active,
|
2014-09-04 22:07:54 +00:00
|
|
|
&:checked{ @include button(active); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button(insensitive); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled:active,
|
|
|
|
&:disabled:checked { @include button(insensitive-active); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 22:07:54 +00:00
|
|
|
&:backdrop { @include button(backdrop); };
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-05 13:05:25 +00:00
|
|
|
&:backdrop:active,
|
2014-09-04 22:07:54 +00:00
|
|
|
&:backdrop:checked { @include button(backdrop-active); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled { @include button(backdrop-insensitive); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled:active,
|
2016-01-09 13:36:05 +00:00
|
|
|
&:backdrop:disabled:checked { @include button(backdrop-insensitive-active); }
|
2014-09-04 22:07:54 +00:00
|
|
|
}
|
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
// More inline toolbar buttons
|
2015-11-01 00:52:41 +00:00
|
|
|
toolbar.inline-toolbar toolbutton,
|
|
|
|
toolbar.inline-toolbar toolbutton:backdrop {
|
2015-10-30 03:17:41 +00:00
|
|
|
& > button.flat { @extend %linked_middle; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
&:first-child > button.flat { @extend %linked:first-child; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
&:last-child > button.flat { @extend %linked:last-child; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
&:only-child > button.flat { @extend %linked:only-child; }
|
2014-06-28 13:05:06 +00:00
|
|
|
}
|
|
|
|
|
2014-08-06 11:20:45 +00:00
|
|
|
%linked_middle {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0;
|
2015-06-04 14:19:05 +00:00
|
|
|
border-right-style: none;
|
2014-08-06 11:20:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
%linked {
|
|
|
|
@extend %linked_middle;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:first-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-bottom-left-radius: 3px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:last-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-top-right-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
border-right-style: solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:only-child {
|
|
|
|
border-radius: 3px;
|
|
|
|
border-style: solid;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-04 22:56:48 +00:00
|
|
|
%linked_vertical_middle {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-style: solid solid none solid;
|
2014-10-04 22:56:48 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
%linked_vertical{
|
|
|
|
@extend %linked_vertical_middle;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-09 17:37:41 +00:00
|
|
|
&:first-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-top-right-radius: 3px;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-09 17:37:41 +00:00
|
|
|
&:last-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
2015-04-22 12:42:58 +00:00
|
|
|
border-style: solid;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-09 17:37:41 +00:00
|
|
|
&:only-child {
|
|
|
|
border-radius: 3px;
|
|
|
|
border-style: solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%undecorated_button {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
2014-08-28 16:38:46 +00:00
|
|
|
box-shadow: inset 0 1px transparentize(white,1),
|
|
|
|
0 1px transparentize(white, 1);
|
2014-07-02 15:27:12 +00:00
|
|
|
text-shadow: none;
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* menu buttons */
|
2015-10-30 04:31:02 +00:00
|
|
|
modelbutton.flat,
|
2014-07-02 15:27:12 +00:00
|
|
|
.menuitem.button.flat {
|
2016-01-07 17:27:11 +00:00
|
|
|
min-height: 26px;
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
outline-offset: -2px;
|
|
|
|
|
2014-07-02 15:27:12 +00:00
|
|
|
@extend %undecorated_button;
|
2016-01-12 00:03:47 +00:00
|
|
|
&:hover { background-color: $base_hover_color; } // FIXME
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-02 15:27:12 +00:00
|
|
|
&:selected { @extend %selected_items; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
&:backdrop:hover { @extend %undecorated_button; }
|
2016-01-07 17:27:11 +00:00
|
|
|
|
|
|
|
// FIXME: remove the following when the checks/radios rewrite lands
|
|
|
|
check:last-child,
|
|
|
|
radio:last-child { margin-left: 8px; }
|
|
|
|
|
|
|
|
check:first-child,
|
|
|
|
radio:first-child { margin-right: 8px; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-12-20 01:46:26 +00:00
|
|
|
modelbutton.flat arrow {
|
2015-12-19 19:53:57 +00:00
|
|
|
background: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-20 01:46:26 +00:00
|
|
|
&:hover { background: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-19 19:53:57 +00:00
|
|
|
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-19 19:53:57 +00:00
|
|
|
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
|
|
|
}
|
2015-04-15 19:43:59 +00:00
|
|
|
|
2015-10-30 05:16:26 +00:00
|
|
|
button.color {
|
2016-01-08 15:31:30 +00:00
|
|
|
padding: 4px;
|
|
|
|
colorswatch:only-child {
|
|
|
|
&, overlay { border-radius: 0; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
box-shadow: 0 1px _text_shadow_color();
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:disabled,
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
}
|
2014-07-18 21:48:33 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-21 03:17:53 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/*********
|
|
|
|
* Links *
|
|
|
|
*********/
|
|
|
|
|
2014-06-18 14:07:59 +00:00
|
|
|
*:link {
|
2014-09-26 15:05:17 +00:00
|
|
|
color: $link_color;
|
|
|
|
&:visited {
|
|
|
|
color: $link_visited_color;
|
|
|
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 60%); }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-26 15:05:17 +00:00
|
|
|
&:hover {
|
|
|
|
color: lighten($link_color,10%);
|
|
|
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 90%); }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-26 15:05:17 +00:00
|
|
|
&:active {
|
|
|
|
color: $link_color;
|
2014-09-01 17:10:50 +00:00
|
|
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
|
2014-06-18 14:07:59 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-01 17:10:50 +00:00
|
|
|
&:backdrop, &:backdrop:hover, &:backdrop:hover:selected {
|
2014-06-18 14:07:59 +00:00
|
|
|
color: $selected_bg_color;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:selected,
|
|
|
|
*:selected & {
|
2014-09-26 15:05:17 +00:00
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 80%);
|
|
|
|
}
|
2014-06-18 14:07:59 +00:00
|
|
|
}
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
button:link,
|
|
|
|
button:visited {
|
|
|
|
// FIXME: aggregate with buttons
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %undecorated_button;
|
2014-09-01 17:10:50 +00:00
|
|
|
@extend *:link;
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
@extend %undecorated_button; //This shouldn't be needed but avoids
|
|
|
|
//a weird transition which for some reason
|
|
|
|
//makes borders blink on hover
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
> label { text-decoration-line: underline; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* GtkSpinButton *
|
|
|
|
*****************/
|
|
|
|
|
2015-10-29 01:55:07 +00:00
|
|
|
spinbutton {
|
2015-10-08 15:18:50 +00:00
|
|
|
&:not(.vertical) {
|
2016-01-27 11:25:49 +00:00
|
|
|
// in this horizontal configuration, the whole spinbutton
|
|
|
|
// behaves as the entry, so we extend the entry styling
|
|
|
|
// and nuke the style on the internal entry
|
|
|
|
@extend entry;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
entry {
|
2016-02-03 17:32:51 +00:00
|
|
|
margin: 0;
|
2016-01-27 11:25:49 +00:00
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2015-10-29 01:55:07 +00:00
|
|
|
button {
|
2016-02-03 17:32:51 +00:00
|
|
|
margin: 0;
|
2014-06-18 11:26:35 +00:00
|
|
|
background-image: none;
|
2015-10-08 15:18:50 +00:00
|
|
|
border-style: none none none solid;
|
|
|
|
border-color: transparentize($borders_color, 0.7);
|
|
|
|
color: mix($fg_color, $base_color, 90%);
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
2016-01-27 11:25:49 +00:00
|
|
|
min-height: 16px;
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-08-28 13:42:17 +00:00
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-08 15:18:50 +00:00
|
|
|
&:hover {
|
|
|
|
color: $fg_color;
|
2016-01-12 00:03:47 +00:00
|
|
|
background-color: $base_hover_color;
|
2015-10-08 15:18:50 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:disabled { color: transparentize($insensitive_fg_color, 0.7); }
|
|
|
|
|
2015-10-08 15:18:50 +00:00
|
|
|
&:active {
|
|
|
|
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
|
|
|
background-color: transparentize(black, 0.9);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-08 15:18:50 +00:00
|
|
|
&:backdrop {
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
|
|
|
|
border-color: transparentize($backdrop_borders_color, 0.7);
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled {
|
2015-10-08 15:18:50 +00:00
|
|
|
background-image: none;
|
|
|
|
color: transparentize($backdrop_insensitive_color,0.7);
|
|
|
|
border-style: none none none solid; // It is needed or it gets overridden
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-08 15:18:50 +00:00
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-10 15:42:40 +00:00
|
|
|
|
|
|
|
// OSD horizontal
|
|
|
|
.osd &:not(.vertical) {
|
2016-01-09 13:36:05 +00:00
|
|
|
button {
|
2014-10-29 17:10:39 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_fg_color;
|
|
|
|
border-style: none none none solid;
|
|
|
|
border-color: transparentize($osd_borders_color, 0.3);
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:hover {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2014-10-29 17:10:39 +00:00
|
|
|
background-color: transparentize($osd_fg_color, 0.9);
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2014-10-29 17:10:39 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:backdrop {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
2014-10-29 17:10:39 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-10-29 17:10:39 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_insensitive_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
2014-10-29 17:10:39 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:last-child { border-radius: 0 3px 3px 0; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&:dir(rtl):first-child { border-radius: 3px 0 0 3px; }
|
|
|
|
}
|
|
|
|
}
|
2015-10-10 15:42:40 +00:00
|
|
|
|
|
|
|
// Vertical
|
2015-10-08 15:18:50 +00:00
|
|
|
&.vertical {
|
2016-01-27 11:25:49 +00:00
|
|
|
// in the vertical configuration, we treat the spinbutton
|
|
|
|
// as a box, and tweak the style of the entry in the middle
|
|
|
|
// so that it's linked
|
2016-02-03 14:03:39 +00:00
|
|
|
|
|
|
|
// FIXME: this should not be set at all, but otherwise it gets the wrong
|
|
|
|
// color
|
|
|
|
&:disabled { color: $insensitive_fg_color; }
|
|
|
|
&:backdrop:disabled { color: $backdrop_insensitive_color; }
|
|
|
|
|
2016-01-27 11:25:49 +00:00
|
|
|
entry {
|
2016-02-03 14:03:39 +00:00
|
|
|
min-height: 32px;
|
|
|
|
min-width: 32px;
|
|
|
|
padding: 0;
|
2016-01-27 11:25:49 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-29 01:55:07 +00:00
|
|
|
button {
|
2016-02-03 14:03:39 +00:00
|
|
|
min-height: 32px;
|
|
|
|
min-width: 32px;
|
|
|
|
padding: 0;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-27 11:25:49 +00:00
|
|
|
&.up {
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $edge:none);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:active {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-18 11:16:21 +00:00
|
|
|
&:backdrop {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $edge:none);
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button(backdrop-insensitive, $edge:none); }
|
2014-06-18 11:16:21 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-27 11:25:49 +00:00
|
|
|
&.down { @extend %bottom_button; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
%top_button {
|
|
|
|
border-radius: 3px 3px 0 0;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: solid solid none solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
%bottom_button {
|
|
|
|
border-radius: 0 0 3px 3px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none solid solid solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-10 15:42:40 +00:00
|
|
|
|
|
|
|
// OSD vertical
|
2015-10-29 01:55:07 +00:00
|
|
|
.osd &.vertical button:first-child {
|
2015-10-10 15:42:40 +00:00
|
|
|
@include button(osd);
|
|
|
|
&:hover { @include button(osd-hover);}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-10 15:42:40 +00:00
|
|
|
&:active { @include button(osd-active); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button(osd-insensitive); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-10 15:42:40 +00:00
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
}
|
|
|
|
|
|
|
|
// Misc
|
2015-10-30 21:37:32 +00:00
|
|
|
treeview & {
|
2016-01-09 13:36:05 +00:00
|
|
|
entry,
|
|
|
|
entry:focus {
|
2014-12-17 17:29:02 +00:00
|
|
|
padding: 1px;
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************
|
|
|
|
* ComboBoxes *
|
|
|
|
**************/
|
2015-11-02 19:22:49 +00:00
|
|
|
combobox {
|
2016-01-09 13:36:05 +00:00
|
|
|
arrow {
|
2015-12-21 22:45:58 +00:00
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
|
|
|
min-height: 16px;
|
|
|
|
min-width: 16px;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-15 23:55:59 +00:00
|
|
|
&.linked {
|
|
|
|
button:nth-child(2) {
|
|
|
|
&:dir(ltr) { @extend %linked:last-child; }
|
|
|
|
&:dir(rtl) { @extend %linked:first-child; }
|
2015-06-04 14:19:05 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-02 19:22:49 +00:00
|
|
|
.linked > combobox > button.combo {
|
2016-01-15 23:55:59 +00:00
|
|
|
// the combo is a composite widget so the way we do button linking doesn't
|
2014-08-06 10:23:47 +00:00
|
|
|
// work, special case needed. See
|
|
|
|
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-06-04 14:19:05 +00:00
|
|
|
&:dir(ltr),
|
|
|
|
&:dir(rtl) { @extend %linked_middle; } // specificity bump
|
2014-08-06 10:23:47 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-15 23:55:59 +00:00
|
|
|
.linked:not(.vertical) > combobox:first-child > button.combo { @extend %linked:first-child; }
|
|
|
|
.linked:not(.vertical) > combobox:last-child > button.combo { @extend %linked:last-child; }
|
|
|
|
.linked:not(.vertical) > combobox:only-child > button.combo { @extend %linked:only-child; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
.linked.vertical > combobox > button.combo { @extend %linked_vertical_middle; }
|
|
|
|
.linked.vertical > combobox:first-child > button.combo { @extend %linked_vertical:first-child;}
|
|
|
|
.linked.vertical > combobox:last-child > button.combo { @extend %linked_vertical:last-child; }
|
|
|
|
.linked.vertical > combobox:only-child > button.combo { @extend %linked_vertical:only-child; }
|
2014-08-06 10:23:47 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/************
|
|
|
|
* Toolbars *
|
|
|
|
************/
|
2015-11-01 00:42:41 +00:00
|
|
|
toolbar {
|
2014-08-19 17:06:42 +00:00
|
|
|
-GtkWidget-window-dragging: true;
|
2014-08-19 10:51:49 +00:00
|
|
|
padding: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $bg_color;
|
2015-12-03 18:28:57 +00:00
|
|
|
// on OSD
|
|
|
|
.osd & { background-color: transparent; }
|
|
|
|
|
|
|
|
// stand-alone OSD toolbars
|
|
|
|
&.osd {
|
2014-08-22 10:55:30 +00:00
|
|
|
padding: 13px;
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-10-30 12:18:48 +00:00
|
|
|
border-radius: 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
background-color: $osd_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-12-03 18:28:57 +00:00
|
|
|
|
|
|
|
&.osd.left,
|
|
|
|
&.osd.right,
|
|
|
|
&.osd.top,
|
|
|
|
&.osd.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
|
2015-12-29 20:34:16 +00:00
|
|
|
|
|
|
|
// toolbar separators
|
2016-01-09 11:38:49 +00:00
|
|
|
&.horizontal separator { margin: 0 6px; }
|
|
|
|
&.vertical separator { margin: 6px 0; }
|
2014-07-08 09:22:59 +00:00
|
|
|
}
|
|
|
|
|
2014-08-25 17:20:49 +00:00
|
|
|
//searchbar, location-bar & inline-toolbar
|
2014-07-08 09:22:59 +00:00
|
|
|
.inline-toolbar {
|
2015-11-01 00:42:41 +00:00
|
|
|
@extend toolbar;
|
2014-07-08 09:22:59 +00:00
|
|
|
@extend %inset-bar;
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
padding: 3px;
|
2014-10-30 12:18:48 +00:00
|
|
|
border-radius: 0 0 5px 5px;
|
2014-07-08 09:22:59 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 12:44:29 +00:00
|
|
|
searchbar,
|
|
|
|
.location-bar {
|
2015-11-01 00:42:41 +00:00
|
|
|
@extend toolbar;
|
2014-07-08 09:22:59 +00:00
|
|
|
@extend %inset-bar;
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
padding: 3px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
%inset-bar {
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
|
|
|
$_bg: mix($bg_color, $borders_color, 70%);
|
|
|
|
background-color: $_bg;
|
2014-08-13 12:27:31 +00:00
|
|
|
box-shadow: inset 0 2px 3px -1px mix($borders_color, $_bg, 60%),
|
2014-09-03 12:27:07 +00:00
|
|
|
_widget_edge();
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
background-color: $backdrop_dark_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************
|
|
|
|
* Header bars *
|
|
|
|
***************/
|
|
|
|
|
2015-12-21 15:18:04 +00:00
|
|
|
%titlebar,
|
|
|
|
headerbar {
|
2016-01-08 19:56:40 +00:00
|
|
|
padding: 0 6px;
|
|
|
|
min-height: 46px;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-width: 0 0 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
2015-12-22 10:53:27 +00:00
|
|
|
border-radius: 0;
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: transparent;
|
2014-09-01 15:31:36 +00:00
|
|
|
|
|
|
|
@include headerbar_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $bg_color;
|
|
|
|
background-image: none;
|
2014-07-07 18:32:16 +00:00
|
|
|
box-shadow: inset 0 1px $top_hilight;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2014-08-28 10:17:10 +00:00
|
|
|
font-weight: bold;
|
2015-04-28 14:52:46 +00:00
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.subtitle {
|
2014-09-03 15:01:43 +00:00
|
|
|
font-size: smaller;
|
2015-04-28 14:52:46 +00:00
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
2014-07-07 12:17:51 +00:00
|
|
|
@extend .dim-label;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.selection-mode {
|
2014-09-04 17:41:47 +00:00
|
|
|
$_hc: mix($top_hilight,$selected_bg_color, 50%); // hilight color
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-08-25 13:24:44 +00:00
|
|
|
color: $selected_fg_color;
|
2014-08-29 14:52:21 +00:00
|
|
|
text-shadow: 0 -1px transparentize(black, 0.5);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-image: linear-gradient(to bottom,
|
2014-07-07 18:32:16 +00:00
|
|
|
lighten($selected_bg_color,5%),
|
2014-07-08 10:52:25 +00:00
|
|
|
$selected_bg_color);
|
2014-10-31 15:53:23 +00:00
|
|
|
box-shadow: inset 0 -1px mix($selected_borders_color, $selected_bg_color, 35%), //bottom shade
|
2014-09-04 17:41:47 +00:00
|
|
|
inset 0 1px $_hc;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-image: linear-gradient(to bottom, $selected_bg_color);
|
2014-12-01 09:14:47 +00:00
|
|
|
box-shadow: inset 0 1px mix($top_hilight, $selected_bg_color, 60%);
|
2014-07-07 18:32:16 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-09-01 17:10:50 +00:00
|
|
|
.subtitle:link { @extend *:link:selected; }
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
button {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&.flat { @include button(undecorated); }
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color, $_hc); }
|
|
|
|
|
|
|
|
&:active, &:checked { @include button(active, $selected_bg_color, $selected_fg_color, $_hc); }
|
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
&.flat:backdrop {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(backdrop, $selected_bg_color, $selected_fg_color, $_hc);
|
2015-12-01 21:29:24 +00:00
|
|
|
-gtk-icon-effect: none;
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
|
|
|
@include button(backdrop-active, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-10-31 15:53:23 +00:00
|
|
|
@include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled:active,
|
|
|
|
&:disabled:checked {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(backdrop-insensitive-active, $selected_bg_color,
|
2014-09-04 17:41:47 +00:00
|
|
|
$selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-07-07 18:32:16 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&.flat:backdrop,
|
2015-12-24 23:43:03 +00:00
|
|
|
&.flat:disabled,
|
|
|
|
&.flat:disabled:backdrop {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-10-31 15:53:23 +00:00
|
|
|
@include button(insensitive, $selected_bg_color, $selected_fg_color, $_hc);
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&:active,
|
|
|
|
&:checked { @include button(insensitive-active, $selected_bg_color, $selected_fg_color, $_hc); }
|
2014-06-17 13:55:58 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.suggested-action {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(normal, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:hover {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(hover, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:active {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(active, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(insensitive, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:backdrop {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(backdrop, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-03 10:37:48 +00:00
|
|
|
.selection-menu {
|
2014-10-31 15:53:23 +00:00
|
|
|
border-color: transparentize($selected_bg_color, 1);
|
|
|
|
background-image: linear-gradient(to bottom, transparentize($selected_bg_color, 1));
|
2014-07-03 10:37:48 +00:00
|
|
|
box-shadow: none;
|
2014-07-08 10:52:25 +00:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-08 10:52:25 +00:00
|
|
|
GtkArrow { -GtkArrow-arrow-scaling: 1; }
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-08 10:52:25 +00:00
|
|
|
.arrow {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
|
|
|
color: transparentize($selected_fg_color,0.5);
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
2014-07-08 08:46:39 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-08 10:52:25 +00:00
|
|
|
&:backdrop { @extend .selection-menu };
|
2014-07-03 10:37:48 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
.tiled &,
|
|
|
|
.maximized & { border-radius: 0; } // squared corners when the window is max'd or tile
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&.default-decoration {
|
2016-01-08 19:56:40 +00:00
|
|
|
padding: 0 4px;
|
|
|
|
min-height: 36px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 19:56:40 +00:00
|
|
|
button {
|
|
|
|
min-height: 26px;
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
}
|
2016-01-09 09:19:47 +00:00
|
|
|
|
2016-01-09 10:25:08 +00:00
|
|
|
// add vertical margins to headerbar entries, buttons and separators to avoid them spanning the whole height
|
|
|
|
entry,
|
2016-02-03 17:32:51 +00:00
|
|
|
spinbutton,
|
2016-01-09 10:25:08 +00:00
|
|
|
separator,
|
2016-01-09 09:19:47 +00:00
|
|
|
button {
|
|
|
|
margin-top: 6px;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-12-22 10:53:27 +00:00
|
|
|
.titlebar {
|
|
|
|
&, &:backdrop {
|
|
|
|
border-top-left-radius: 7px;
|
|
|
|
border-top-right-radius: 7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
headerbar {
|
|
|
|
separator:first-child + &, // tackles the paned container case
|
|
|
|
&:first-child { &, &:backdrop { border-top-left-radius: 7px; }}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-22 10:53:27 +00:00
|
|
|
&:last-child { &, &:backdrop { border-top-right-radius: 7px; }}
|
|
|
|
}
|
|
|
|
|
2015-12-21 15:18:04 +00:00
|
|
|
.titlebar:not(headerbar) {
|
|
|
|
window.csd > & {
|
|
|
|
// in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
|
|
|
|
padding: 0;
|
2015-12-22 10:53:27 +00:00
|
|
|
background-color: transparent;
|
2015-12-21 15:18:04 +00:00
|
|
|
background-image: none;
|
2015-12-22 10:53:27 +00:00
|
|
|
border-style: none;
|
2015-12-21 15:18:04 +00:00
|
|
|
border-color: transparent;
|
2015-12-22 10:53:27 +00:00
|
|
|
box-shadow: none;
|
2015-12-21 15:18:04 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-21 15:18:04 +00:00
|
|
|
@extend %titlebar;
|
|
|
|
}
|
|
|
|
|
2014-07-22 12:33:44 +00:00
|
|
|
/************
|
|
|
|
* Pathbars *
|
|
|
|
************/
|
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
.path-bar button {
|
2014-07-22 12:33:44 +00:00
|
|
|
&:only-child {
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
2014-09-26 15:05:17 +00:00
|
|
|
|
2014-09-12 10:57:52 +00:00
|
|
|
// the following is for spacing the icon and the label inside the home button
|
2015-10-23 03:25:42 +00:00
|
|
|
& label:last-child { padding-left: 2px; }
|
|
|
|
& label:first-child { padding-right: 2px; }
|
|
|
|
& label:only-child { padding-right: 0; padding-left: 0; }
|
2014-07-22 12:33:44 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**************
|
|
|
|
* Tree Views *
|
|
|
|
**************/
|
2015-10-30 21:37:32 +00:00
|
|
|
treeview.view {
|
2014-07-10 11:53:37 +00:00
|
|
|
-GtkTreeView-grid-line-width: 1;
|
|
|
|
-GtkTreeView-grid-line-pattern: '';
|
2014-07-10 12:59:08 +00:00
|
|
|
-GtkTreeView-tree-line-width: 1;
|
|
|
|
-GtkTreeView-tree-line-pattern: '';
|
|
|
|
-GtkTreeView-expander-size: 16;
|
2014-10-15 18:41:19 +00:00
|
|
|
|
2014-12-01 09:05:42 +00:00
|
|
|
border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color,
|
2014-10-15 18:41:19 +00:00
|
|
|
border-top-color: $bg_color; // while this is the grid lines color, better then nothing
|
|
|
|
|
2015-11-10 12:30:29 +00:00
|
|
|
& rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
|
2015-06-25 17:55:51 +00:00
|
|
|
|
2016-01-11 23:16:12 +00:00
|
|
|
&:selected,
|
|
|
|
&:selected:focus {
|
2015-11-13 12:07:19 +00:00
|
|
|
border-radius: 0;
|
|
|
|
@extend %selected_items;
|
|
|
|
}
|
2014-11-15 18:08:13 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&:selected,
|
|
|
|
&:backdrop:selected {
|
2014-12-01 09:05:42 +00:00
|
|
|
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
|
2014-10-15 18:41:19 +00:00
|
|
|
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
|
|
|
|
}
|
2014-11-28 16:03:53 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-11-28 16:03:53 +00:00
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:selected {
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 40%);
|
|
|
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
|
|
|
}
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
|
|
|
|
2015-12-30 18:36:28 +00:00
|
|
|
&.separator {
|
|
|
|
min-height: 2px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:backdrop { color: transparentize(black, 0.9); }
|
2015-01-10 18:04:10 +00:00
|
|
|
}
|
|
|
|
|
2014-07-10 11:53:37 +00:00
|
|
|
&:backdrop {
|
2014-12-01 09:05:42 +00:00
|
|
|
border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
2014-10-15 18:41:19 +00:00
|
|
|
border-top: $backdrop_bg_color;
|
2014-07-10 12:59:08 +00:00
|
|
|
}
|
2014-11-28 16:03:53 +00:00
|
|
|
|
2014-12-11 05:18:32 +00:00
|
|
|
&.dnd {
|
2014-12-11 14:35:38 +00:00
|
|
|
border-style: solid none;
|
|
|
|
border-width: 1px;
|
|
|
|
border-color: mix($fg_color, $selected_bg_color, 50%);
|
2014-12-11 05:18:32 +00:00
|
|
|
}
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
&.expander {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
color: mix($fg_color, $base_color, 70%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
&:selected {
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 70%);
|
|
|
|
&:hover { color: $selected_fg_color; }
|
2014-11-15 14:54:20 +00:00
|
|
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 70%); }
|
2014-07-10 12:59:08 +00:00
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
|
2014-07-10 11:53:37 +00:00
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&.progressbar { // progress bar in treeviews
|
|
|
|
@if $variant == light { color: $base_color; }
|
2014-12-17 17:29:02 +00:00
|
|
|
|
|
|
|
border: 1px solid $selected_borders_color;
|
2014-09-29 18:11:49 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
$selected_bg_color,
|
|
|
|
darken($selected_bg_color,10%));
|
|
|
|
box-shadow: inset 0 1px if($variant=='light', transparentize(white,0.7),
|
|
|
|
transparentize(white,0.85)),
|
|
|
|
0 1px if($variant=='light', transparentize(black, 0.8),
|
|
|
|
transparentize(black,0.9));
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:selected {
|
|
|
|
@if $variant == 'light' {
|
|
|
|
color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
@else { box-shadow: inset 0 1px transparentize(white, 0.95); }
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
$base_color,
|
|
|
|
darken($base_color,10%));
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:backdrop {
|
2014-12-17 17:29:02 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
color: $selected_bg_color;
|
|
|
|
border-color: $selected_borders_color; // otherwise it gets inherited by .view(?!?)
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
@else { border-color: $backdrop_base_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:backdrop {
|
|
|
|
@if $variant == 'light' { color: $backdrop_base_color; }
|
|
|
|
@else { border-color: $backdrop_base_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
background-image: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&.trough { // progress bar trough in treeviews
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
border-radius: 4px;
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:selected {
|
|
|
|
background-color: if($variant == 'light',
|
|
|
|
transparentize($selected_fg_color, 0.7),
|
|
|
|
darken($selected_bg_color, 10%));
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-10 11:53:37 +00:00
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
header {
|
|
|
|
button {
|
2014-06-16 14:45:24 +00:00
|
|
|
@extend %column_header_button;
|
2015-10-30 21:37:32 +00:00
|
|
|
$_column_header_color: mix($fg_color, $base_color, 50%);
|
|
|
|
color: $_column_header_color;
|
|
|
|
background-color: $base_color;
|
|
|
|
font-weight: bold;
|
|
|
|
text-shadow: none;
|
2014-06-16 14:45:24 +00:00
|
|
|
box-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
&:hover {
|
|
|
|
@extend %column_header_button;
|
|
|
|
color: mix($_column_header_color, $fg_color, 50%);
|
|
|
|
box-shadow: none;
|
|
|
|
transition: none; //I shouldn't need this
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
&:active {
|
|
|
|
@extend %column_header_button;
|
|
|
|
color: $fg_color;
|
|
|
|
transition: none; //I shouldn't need this
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&.dnd { @extend header.button.dnd; }
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
button:last-child,
|
|
|
|
button:last-child:backdrop { border-right-style: none; }
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
header.button.dnd { // for treeview-like derive widgets
|
|
|
|
transition: none;
|
|
|
|
color: $selected_bg_color;
|
|
|
|
box-shadow: inset 1px 1px 0 1px $selected_bg_color,
|
|
|
|
inset -1px 0 0 1px $selected_bg_color,
|
|
|
|
inset 1px 1px $base_color, inset -1px 0 $base_color;;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
&:active { @extend header.button.dnd; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
&:selected { @extend header.button.dnd; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
&:hover { @extend header.button.dnd; }
|
|
|
|
}
|
2014-07-08 12:35:06 +00:00
|
|
|
}
|
|
|
|
|
2014-06-16 14:45:24 +00:00
|
|
|
%column_header_button {
|
2014-07-22 07:58:58 +00:00
|
|
|
padding: 3px 6px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none solid solid none;
|
2014-06-16 14:45:24 +00:00
|
|
|
border-radius: 0;
|
|
|
|
background-image: none;
|
|
|
|
border-color: $bg_color;
|
|
|
|
text-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-16 14:45:24 +00:00
|
|
|
border-color: $bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-image: none;
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-16 14:45:24 +00:00
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_bg_color;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none solid solid none;
|
2014-12-01 09:14:47 +00:00
|
|
|
color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
2014-06-16 14:45:24 +00:00
|
|
|
background-image: none;
|
2014-07-15 15:58:13 +00:00
|
|
|
background-color: $backdrop_base_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-16 14:45:24 +00:00
|
|
|
border-color: $backdrop_bg_color;
|
|
|
|
background-image: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-29 18:11:49 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*********
|
|
|
|
* Menus *
|
|
|
|
*********/
|
2015-11-03 04:49:38 +00:00
|
|
|
menubar,
|
2014-06-13 14:32:44 +00:00
|
|
|
.menubar {
|
2014-08-19 17:06:42 +00:00
|
|
|
-GtkWidget-window-dragging: true;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 0px;
|
2014-08-13 14:19:14 +00:00
|
|
|
box-shadow: inset 0 -1px transparentize(black, 0.9);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop { background-color: $backdrop_bg_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
> menuitem {
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 4px 8px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover { //Seems like it :hover even with keyboard focus
|
|
|
|
box-shadow: inset 0 -3px $selected_bg_color;
|
2014-09-26 15:05:17 +00:00
|
|
|
color: $link_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-13 14:32:44 +00:00
|
|
|
color: $insensitive_fg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-03 01:47:04 +00:00
|
|
|
menu,
|
2014-06-13 14:32:44 +00:00
|
|
|
.menu {
|
2014-07-16 11:25:22 +00:00
|
|
|
margin: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 0px;
|
2015-12-09 17:56:38 +00:00
|
|
|
background-color: $menu_color;
|
2014-10-22 18:46:54 +00:00
|
|
|
border: 1px solid $borders_color; // adds borders in a non composited env
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-22 18:46:54 +00:00
|
|
|
.csd & { border: none; } // axes borders in a composited env
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-09 17:56:38 +00:00
|
|
|
&:backdrop { background-color: $backdrop_menu_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
menuitem {
|
2014-07-08 19:33:48 +00:00
|
|
|
text-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 4px;
|
2015-12-18 03:24:24 +00:00
|
|
|
min-width: 40px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover {
|
|
|
|
color: $selected_fg_color;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-06-13 14:32:44 +00:00
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
&:backdrop:hover {
|
2014-06-13 14:32:44 +00:00
|
|
|
color: $backdrop_fg_color;
|
2015-12-09 17:56:38 +00:00
|
|
|
background-color: transparent;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
//submenu indicators
|
2016-01-09 13:36:05 +00:00
|
|
|
arrow {
|
2015-12-18 05:54:46 +00:00
|
|
|
min-height: 16px;
|
|
|
|
min-width: 16px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:dir(ltr) {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2015-12-18 05:41:40 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
arrow { // overlow buttons
|
2014-10-10 11:53:42 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 0;
|
2015-12-21 01:30:52 +00:00
|
|
|
min-height: 16px;
|
|
|
|
min-width: 16px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-21 01:30:52 +00:00
|
|
|
&.top {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
|
|
|
|
border-bottom: 1px solid mix($fg_color, $base_color, 10%);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-21 01:30:52 +00:00
|
|
|
&.bottom {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
|
|
|
border-top: 1px solid mix($fg_color, $base_color, 10%);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-10 11:53:42 +00:00
|
|
|
&:hover { background-color: mix($fg_color, $base_color, 10%); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-10-10 11:53:42 +00:00
|
|
|
color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent ;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-12-19 01:52:16 +00:00
|
|
|
menuitem {
|
2016-01-09 13:36:05 +00:00
|
|
|
accelerator { color: gtkalpha(currentColor,0.55); }
|
|
|
|
|
|
|
|
check,
|
|
|
|
radio {
|
2015-12-19 01:59:34 +00:00
|
|
|
min-height: 16px;
|
|
|
|
min-width: 16px;
|
2015-12-19 01:52:16 +00:00
|
|
|
&:dir(ltr) { margin-right: 7px; }
|
|
|
|
&:dir(rtl) { margin-left: 7px; }
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/***************
|
|
|
|
* Popovers *
|
|
|
|
***************/
|
|
|
|
|
2015-12-09 13:52:03 +00:00
|
|
|
popover.background {
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 2px;
|
|
|
|
border-radius: 5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&, .csd & { border: 1px solid $borders_color; }
|
|
|
|
|
2015-05-07 08:16:46 +00:00
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.7);
|
2014-11-14 18:34:09 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&:backdrop { box-shadow: none; }
|
2014-11-14 18:34:09 +00:00
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
> list,
|
2014-11-14 18:34:09 +00:00
|
|
|
> .view,
|
2015-12-03 18:28:57 +00:00
|
|
|
> toolbar {
|
2014-07-13 18:38:43 +00:00
|
|
|
border-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
2014-11-14 18:34:09 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&, .csd & {
|
2015-12-09 13:52:03 +00:00
|
|
|
&.touch-selection,
|
|
|
|
&.magnifier {
|
|
|
|
@extend %osd;
|
|
|
|
border: 1px solid transparentize(white, 0.9);
|
|
|
|
button { @extend %osd_button };
|
|
|
|
}
|
|
|
|
|
|
|
|
&.osd { @extend %osd; }
|
|
|
|
}
|
2016-01-07 17:27:11 +00:00
|
|
|
|
2016-01-12 00:03:47 +00:00
|
|
|
separator { margin: 3px; }
|
|
|
|
|
2016-01-11 06:02:41 +00:00
|
|
|
list separator { margin: 0px; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-08 20:01:09 +00:00
|
|
|
/*************
|
|
|
|
* Notebooks *
|
|
|
|
*************/
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2015-10-27 02:11:56 +00:00
|
|
|
notebook {
|
2016-01-29 15:32:43 +00:00
|
|
|
> header {
|
|
|
|
border-color: $borders_color;
|
|
|
|
border-width: 1px;
|
|
|
|
background-color: $dark_fill;
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $backdrop_dark_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.top {
|
2016-01-29 15:32:43 +00:00
|
|
|
border-bottom-style: solid;
|
|
|
|
> tabs {
|
|
|
|
margin-bottom: -1px;
|
|
|
|
> tab {
|
|
|
|
&:hover { box-shadow: inset 0 -3px $borders_color; }
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
&:active { box-shadow: inset 0 -3px $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.bottom {
|
2016-01-29 15:32:43 +00:00
|
|
|
border-top-style: solid;
|
|
|
|
> tabs {
|
|
|
|
margin-top: -1px;
|
|
|
|
> tab {
|
|
|
|
&:hover { box-shadow: inset 0 3px $borders_color; }
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
&:active { box-shadow: inset 0 3px $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
|
|
|
&.left {
|
|
|
|
border-right-style: solid;
|
|
|
|
> tabs {
|
|
|
|
margin-right: -1px;
|
|
|
|
> tab {
|
|
|
|
&:hover { box-shadow: inset -3px 0 $borders_color; }
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
&:active { box-shadow: inset -3px 0 $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
|
|
|
&.right {
|
|
|
|
border-left-style: solid;
|
|
|
|
> tabs {
|
|
|
|
margin-left: -1px;
|
|
|
|
> tab {
|
|
|
|
&:hover { box-shadow: inset 3px 0 $borders_color; }
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
&:active { box-shadow: inset 3px 0 $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
tab {
|
|
|
|
font-weight: bold;
|
|
|
|
min-height: 36px;
|
|
|
|
min-width: 36px;
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
border-width: 1px; // for reorderable tabs
|
|
|
|
border-color: transparent; //
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:hover {
|
|
|
|
color: mix($insensitive_fg_color, $fg_color, 50%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.reorderable-page {
|
|
|
|
border-color: transparentize($borders_color, 0.7);
|
|
|
|
background-color: transparentize($bg_color, 0.8);
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:backdrop {
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_bg_color, 60%);
|
2015-10-31 14:25:50 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.reorderable-page {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 14:25:50 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:active {
|
|
|
|
color: $fg_color;
|
|
|
|
&.reorderable-page {
|
|
|
|
border-color: transparentize($borders_color, 0.5);
|
|
|
|
background-color: transparentize($bg_color, 0.5);
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:hover { background-color: transparentize($bg_color, 0.3); }
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:backdrop:active {
|
|
|
|
color: $backdrop_fg_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.reorderable-page {
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
// colors the button like the label, overridden otherwise
|
|
|
|
button.flat {
|
|
|
|
&:hover { color: currentColor; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&, &:backdrop { color: gtkalpha(currentColor, 0.3); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 17:09:28 +00:00
|
|
|
padding: 0;
|
2016-01-29 15:32:43 +00:00
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
// FIXME: generalize .small-button?
|
|
|
|
min-width: 18px;
|
|
|
|
min-height: 18px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: -4px;
|
2014-06-24 12:04:26 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-left: -4px;
|
|
|
|
margin-right: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-18 10:08:04 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.top,
|
|
|
|
&.bottom {
|
|
|
|
tabs {
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
tab {
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.reorderable-page { border-style: none solid; }
|
|
|
|
}
|
|
|
|
}
|
2014-07-02 15:52:36 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.left,
|
|
|
|
&.right {
|
|
|
|
tabs {
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
tab {
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&.reorderable-page { border-style: solid none; }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-02-03 14:23:17 +00:00
|
|
|
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
|
2016-01-29 15:32:43 +00:00
|
|
|
background-color: $base_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
&:backdrop { background-color: $backdrop_base_color; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-11-08 20:01:09 +00:00
|
|
|
}
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**************
|
|
|
|
* Scrollbars *
|
|
|
|
**************/
|
|
|
|
|
2015-11-05 05:20:50 +00:00
|
|
|
scrollbar {
|
2015-12-21 15:58:03 +00:00
|
|
|
@at-root * {
|
|
|
|
-GtkRange-slider-width: 13;
|
|
|
|
-GtkRange-trough-border: 0;
|
|
|
|
-GtkScrollbar-has-backward-stepper: false;
|
|
|
|
-GtkScrollbar-has-forward-stepper: false;
|
|
|
|
-GtkScrollbar-min-slider-length: 42; // minimum size for the slider.
|
|
|
|
// sadly can't be in '.slider'
|
|
|
|
// where it belongs
|
|
|
|
-GtkRange-stepper-spacing: 0;
|
|
|
|
-GtkRange-trough-under-steppers: 1;
|
|
|
|
}
|
2014-11-06 22:57:40 +00:00
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
$_slider_margin: 3px;
|
|
|
|
$_slider_fine_tune_margin: 4px;
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
button { border: none; }
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
&.overlay-indicator {
|
|
|
|
&:not(.dragging):not(.hovering) { // Overlay scrolling indicator
|
2015-04-17 13:33:04 +00:00
|
|
|
opacity: 0.4;
|
2015-01-16 17:32:16 +00:00
|
|
|
|
|
|
|
-GtkRange-slider-width: 5px;
|
|
|
|
|
2015-11-04 04:12:54 +00:00
|
|
|
slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin: 0;
|
|
|
|
background-color: $fg_color;
|
|
|
|
border: 1px solid if($variant==light, white, black);
|
|
|
|
background-clip: padding-box;
|
|
|
|
}
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
trough {
|
2015-11-05 05:20:50 +00:00
|
|
|
border-style: none;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
// w/o the following margin tweaks the slider shrinks when hovering/dragging
|
2015-11-04 04:12:54 +00:00
|
|
|
&.vertical slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-top: $_slider_margin - 1px;
|
|
|
|
margin-bottom: $_slider_margin - 1px;
|
|
|
|
}
|
|
|
|
|
2015-11-04 04:12:54 +00:00
|
|
|
&.horizontal slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-left: $_slider_margin - 1px;
|
|
|
|
margin-right: $_slider_margin - 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dragging,
|
|
|
|
&.hovering { opacity: 0.7; }
|
|
|
|
}
|
|
|
|
|
2014-11-06 22:57:40 +00:00
|
|
|
// trough coloring
|
2015-11-05 05:20:50 +00:00
|
|
|
trough {
|
|
|
|
background-color: $scrollbar_bg_color;
|
|
|
|
border: 1px none $borders_color;
|
2014-11-06 22:57:40 +00:00
|
|
|
|
2015-11-05 05:20:50 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_scrollbar_bg_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
}
|
|
|
|
|
2014-11-06 22:57:40 +00:00
|
|
|
// slider coloring
|
2015-11-04 04:12:54 +00:00
|
|
|
slider {
|
2015-04-17 13:33:04 +00:00
|
|
|
background-color: mix($fg_color, $bg_color, 60%);
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2015-04-17 13:33:04 +00:00
|
|
|
&:hover { background-color: mix($fg_color, $bg_color, 80%); }
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:hover:active { background-color: if($variant=='light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 10%));}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2014-11-08 16:35:52 +00:00
|
|
|
&:backdrop { background-color: mix($backdrop_fg_color, $backdrop_bg_color, 40%); }
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&:disabled { background-color: transparent; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
// sizing
|
2015-11-04 04:12:54 +00:00
|
|
|
slider {
|
2014-11-13 10:26:40 +00:00
|
|
|
border-radius: 100px;
|
2015-01-16 17:32:16 +00:00
|
|
|
margin: $_slider_margin;
|
2014-11-13 10:26:40 +00:00
|
|
|
}
|
|
|
|
|
2015-11-04 04:12:54 +00:00
|
|
|
&.fine-tune slider { margin: $_slider_fine_tune_margin; }
|
2014-11-13 10:26:40 +00:00
|
|
|
|
2014-11-06 22:57:40 +00:00
|
|
|
&.vertical {
|
2015-11-04 04:12:54 +00:00
|
|
|
slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-left: 1px + $_slider_margin;
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
margin-left: $_slider_margin;
|
|
|
|
margin-right: 1px + $_slider_margin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-04 04:12:54 +00:00
|
|
|
&.fine-tune slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-left: 1px + $_slider_fine_tune_margin;
|
2014-11-06 22:57:40 +00:00
|
|
|
|
|
|
|
&:dir(rtl) {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-left: $_slider_fine_tune_margin;
|
|
|
|
margin-right: 1px + $_slider_fine_tune_margin;
|
2014-11-06 22:57:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-05 05:20:50 +00:00
|
|
|
trough {
|
|
|
|
border-left-style: solid;
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-left-style: none;
|
|
|
|
border-right-style: solid;
|
|
|
|
}
|
2014-11-06 22:57:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.horizontal {
|
2015-11-04 04:12:54 +00:00
|
|
|
slider { margin-top: 1px + $_slider_margin; }
|
2015-01-16 17:32:16 +00:00
|
|
|
|
2015-11-04 04:12:54 +00:00
|
|
|
&.fine-tune slider { margin-top: 1px + $_slider_fine_tune_margin; }
|
2014-11-06 22:57:40 +00:00
|
|
|
|
2015-11-05 05:20:50 +00:00
|
|
|
trough { border-top-style: solid; }
|
2014-11-06 22:57:40 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-11 12:31:08 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**********
|
|
|
|
* Switch *
|
|
|
|
**********/
|
|
|
|
|
2015-10-23 01:42:20 +00:00
|
|
|
switch {
|
2014-08-28 10:48:32 +00:00
|
|
|
font-weight: bold;
|
2014-09-03 15:01:43 +00:00
|
|
|
font-size: smaller;
|
2014-07-08 16:24:28 +00:00
|
|
|
outline-offset: -4px;
|
2014-07-18 21:30:16 +00:00
|
|
|
box-shadow: inset 0 1px transparentize(black, 0.9), // needs to be set here
|
2014-09-03 12:27:07 +00:00
|
|
|
_widget_edge(); // otherwise it gets
|
2014-07-18 21:30:16 +00:00
|
|
|
// clipped
|
2015-10-23 01:42:20 +00:00
|
|
|
// similar to the .scale
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
border-radius: 3px;
|
|
|
|
color: $fg_color;
|
|
|
|
background-image: linear-gradient(to bottom, mix($bg_color, $borders_color, 60%));
|
|
|
|
text-shadow: 0 1px transparentize(black, 0.9);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 01:42:20 +00:00
|
|
|
&:active {
|
2016-01-09 13:36:05 +00:00
|
|
|
color: white;
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: _widget_edge();
|
|
|
|
text-shadow: 0 1px transparentize($selected_borders_color, 0.5),
|
|
|
|
0 0 2px transparentize(white, 0.4);
|
2015-10-23 01:42:20 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2016-01-09 13:36:05 +00:00
|
|
|
color: $insensitive_fg_color;
|
|
|
|
border-color: $borders_color;
|
|
|
|
background-image: none;
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
box-shadow: _widget_edge();
|
|
|
|
text-shadow: none;
|
2015-10-23 01:42:20 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 01:42:20 +00:00
|
|
|
&:backdrop {
|
2016-01-09 13:36:05 +00:00
|
|
|
color: $backdrop_fg_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-image: linear-gradient(to bottom, $backdrop_dark_fill);
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
@if $variant == 'light' { color: $backdrop_bg_color; }
|
|
|
|
border-color: if($variant == 'light', $selected_bg_color,
|
|
|
|
$selected_borders_color);
|
|
|
|
background-image: linear-gradient(to bottom, $selected_bg_color);
|
2014-07-08 16:24:28 +00:00
|
|
|
box-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
}
|
2015-10-23 01:42:20 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2016-01-09 13:36:05 +00:00
|
|
|
color: $backdrop_insensitive_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-image: none;
|
|
|
|
background-color: $insensitive_bg_color;
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 15:12:01 +00:00
|
|
|
slider {
|
2015-12-23 17:57:04 +00:00
|
|
|
margin: -1px;
|
2015-12-20 04:24:27 +00:00
|
|
|
min-width: 45px;
|
|
|
|
min-height: 27px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-07-08 16:24:28 +00:00
|
|
|
border-radius: 3px;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal);
|
2014-07-08 16:24:28 +00:00
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
2014-12-01 09:14:47 +00:00
|
|
|
transparentize(white, 0.85)),
|
|
|
|
inset 0 -2px transparentize($bg_color, 0.4),
|
|
|
|
inset 0 -1px mix($bg_color, $borders_color, 50%);
|
2015-10-23 15:12:01 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 15:12:01 +00:00
|
|
|
&:hover slider {
|
|
|
|
@include button(hover);
|
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
|
|
|
transparentize(white, 0.85)),
|
|
|
|
inset 0 -2px transparentize($bg_color, 0.4),
|
|
|
|
inset 0 -1px mix($bg_color, $borders_color, 50%);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 15:12:01 +00:00
|
|
|
&:active slider { border: 1px solid $selected_borders_color; }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled slider { @include button(insensitive, $edge:none); }
|
2015-10-23 15:12:01 +00:00
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
slider {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop);
|
|
|
|
box-shadow: none;
|
2015-10-23 15:12:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active slider { border-color: if($variant == 'light', $selected_bg_color, $selected_borders_color); }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled slider {
|
2015-10-23 15:12:01 +00:00
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
box-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
row:selected & {
|
2014-09-06 15:02:20 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
box-shadow: none;
|
|
|
|
border-color: $selected_borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-06 15:02:20 +00:00
|
|
|
&:backdrop { border-color: $selected_borders_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-06 15:02:20 +00:00
|
|
|
&.slider:dir(rtl) { border-left-color: $borders_color; }
|
|
|
|
&.slider:dir(ltr) { border-right-color: $borders_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-06 15:02:20 +00:00
|
|
|
&.slider,
|
|
|
|
&.slider:active { border-color: $selected_borders_color; }
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
* Check and Radio items *
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
// draw regular check and radio items using our PNG assets
|
|
|
|
// all assets are rendered from assets.svg. never add pngs directly
|
|
|
|
|
|
|
|
@each $w,$a in ('check', 'checkbox'),
|
|
|
|
('radio','radio') {
|
2014-06-24 08:25:49 +00:00
|
|
|
|
|
|
|
//standard checks and radios
|
2014-06-13 14:32:44 +00:00
|
|
|
@each $s,$as in ('','-unchecked'),
|
|
|
|
(':hover', '-unchecked-hover'),
|
2014-08-14 02:34:30 +00:00
|
|
|
(':active', '-unchecked-active'),
|
2015-12-24 23:43:03 +00:00
|
|
|
(':disabled','-unchecked-insensitive'),
|
2014-06-13 14:32:44 +00:00
|
|
|
(':backdrop', '-unchecked-backdrop'),
|
2015-12-24 23:43:03 +00:00
|
|
|
(':backdrop:disabled', '-unchecked-backdrop-insensitive'),
|
|
|
|
(':indeterminate', '-mixed'),
|
|
|
|
(':indeterminate:hover', '-mixed-hover'),
|
|
|
|
(':indeterminate:selected', '-mixed-active'),
|
|
|
|
(':indeterminate:backdrop', '-mixed-backdrop'),
|
|
|
|
(':indeterminate:disabled', '-mixed-insensitive'),
|
|
|
|
(':indeterminate:disabled:backdrop', '-mixed-backdrop-insensitive'),
|
2014-08-14 02:34:30 +00:00
|
|
|
(':checked', '-checked'),
|
2015-12-24 23:43:03 +00:00
|
|
|
(':checked:disabled','-checked-insensitive'),
|
2014-08-14 02:34:30 +00:00
|
|
|
(':checked:hover', '-checked-hover'),
|
|
|
|
(':checked:active', '-checked-active'),
|
|
|
|
(':backdrop:checked', '-checked-backdrop'),
|
2015-12-24 23:43:03 +00:00
|
|
|
(':backdrop:checked:disabled', '-checked-backdrop-insensitive') {
|
2016-01-21 02:12:10 +00:00
|
|
|
treeview.#{$w}#{$s} {
|
2014-08-07 13:42:42 +00:00
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/#{$a}#{$as}#{$asset_suffix}.png"),
|
2014-06-13 14:32:44 +00:00
|
|
|
url("assets/#{$a}#{$as}#{$asset_suffix}@2.png"));
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: if(str-index($s,"backdrop"), none, 0 1px 0 $borders_edge); //no edge highlight for :backdrop
|
|
|
|
& button.flat { -gtk-icon-shadow: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-08-30 12:27:10 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
// the borders of the light variant versions of checks and radios are
|
|
|
|
// too similar in luminosity to the selected background color, hence
|
|
|
|
// we need special casing.
|
2016-01-22 12:29:35 +00:00
|
|
|
.view treeview.#{$w}#{$s}:selected {
|
2014-08-30 12:27:10 +00:00
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/selected-#{$a}#{$as}#{$asset_suffix}.png"),
|
|
|
|
url("assets/selected-#{$a}#{$as}#{$asset_suffix}@2.png"));
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
//treeview and rows
|
2014-10-02 18:40:18 +00:00
|
|
|
.view.check, .view.radio,
|
2015-11-05 18:53:43 +00:00
|
|
|
row .check, row .radio {
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
|
|
|
&:selected, &:hover { -gtk-icon-shadow: none; }
|
2014-08-21 12:32:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-19 16:45:15 +00:00
|
|
|
//selection-mode
|
|
|
|
@each $s,$as in ('','-selectionmode'),
|
|
|
|
(':hover', '-hover-selectionmode'),
|
|
|
|
(':active', '-active-selectionmode'),
|
|
|
|
(':backdrop', '-backdrop-selectionmode'),
|
|
|
|
(':checked', '-checked-selectionmode'),
|
|
|
|
(':checked:hover', '-checked-hover-selectionmode'),
|
|
|
|
(':checked:active', '-checked-active-selectionmode'),
|
|
|
|
(':backdrop:checked', '-checked-backdrop-selectionmode') {
|
2015-11-05 18:53:43 +00:00
|
|
|
.view.content-view.check#{$s}:not(list) {
|
2015-11-21 01:30:54 +00:00
|
|
|
-gtk-icon-shadow: none;
|
2014-08-19 16:45:15 +00:00
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/checkbox#{$as}.png"),
|
|
|
|
url("assets/checkbox#{$as}@2.png"));
|
2014-09-10 18:03:26 +00:00
|
|
|
background-color: transparent;
|
2014-08-19 16:45:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-30 04:31:02 +00:00
|
|
|
checkbutton.text-button, radiobutton.text-button {
|
2014-06-18 08:11:11 +00:00
|
|
|
// this is for a nice focus on check and radios text
|
2014-07-21 16:49:15 +00:00
|
|
|
padding: 1px 2px 4px;
|
2014-06-18 08:11:11 +00:00
|
|
|
outline-offset: 0;
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled,
|
|
|
|
&:disabled:active,
|
|
|
|
&:disabled:indeterminate {
|
2014-07-22 18:09:18 +00:00
|
|
|
// set insensitive color, which is overriden otherwise
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
2014-06-18 08:11:11 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2016-01-21 02:12:10 +00:00
|
|
|
check,
|
|
|
|
radio {
|
|
|
|
margin: 0 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
&:only-child { margin: 0; }
|
2016-01-21 02:12:10 +00:00
|
|
|
|
|
|
|
min-height: 14px;
|
|
|
|
min-width: 14px;
|
|
|
|
border: 1px solid;
|
|
|
|
-gtk-icon-source: none;
|
|
|
|
@include button(normal);
|
|
|
|
&:hover { @include button(hover); }
|
|
|
|
&:active { @include button(active); }
|
|
|
|
&:disabled { @include button(insensitive); }
|
|
|
|
&:backdrop {
|
|
|
|
@include button(backdrop);
|
|
|
|
&:disabled { @include button(backdrop-insensitive); }
|
|
|
|
}
|
|
|
|
|
|
|
|
@if $variant == 'light' {
|
|
|
|
// the borders of the light variant versions of checks and radios are too similar in luminosity to the selected background
|
|
|
|
// color, hence we need special casing.
|
|
|
|
row:selected & { border-color: $selected_borders_color; }
|
|
|
|
}
|
|
|
|
|
|
|
|
menu menuitem & {
|
|
|
|
&, &:hover, &:disabled {
|
|
|
|
min-height: 14px;
|
|
|
|
min-width: 14px;
|
|
|
|
background-image: none;
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
-gtk-icon-shadow: none;
|
|
|
|
color: inherit;
|
|
|
|
border-color: currentColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
check {
|
|
|
|
border-radius: 3px;
|
2016-01-30 04:40:58 +00:00
|
|
|
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/check-symbolic.svg")),
|
|
|
|
-gtk-recolor(url("assets/check-symbolic.symbolic.png"))); }
|
|
|
|
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/dash-symbolic.svg")),
|
|
|
|
-gtk-recolor(url("assets/dash-symbolic.symbolic.png"))); }
|
2015-12-16 17:27:53 +00:00
|
|
|
}
|
|
|
|
|
2016-01-21 02:12:10 +00:00
|
|
|
radio {
|
|
|
|
border-radius: 100%;
|
2016-01-30 04:40:58 +00:00
|
|
|
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/bullet-symbolic.svg")),
|
|
|
|
-gtk-recolor(url("assets/bullet-symbolic.symbolic.png"))); }
|
|
|
|
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/dash-symbolic.svg")),
|
|
|
|
-gtk-recolor(url("assets/dash-symbolic.symbolic.png"))); }
|
2016-01-21 02:12:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/************
|
|
|
|
* GtkScale *
|
|
|
|
************/
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
%scale_trough {
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
border-radius: 3px;
|
|
|
|
background-color: $dark_fill;
|
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9),
|
|
|
|
_widget_edge();
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2015-12-03 11:18:17 +00:00
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
box-shadow: _widget_edge();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_dark_fill;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
box-shadow: none;
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { background-color: $insensitive_bg_color; }
|
2015-12-03 11:18:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ...on selected list rows
|
|
|
|
row:selected & {
|
|
|
|
box-shadow: none;
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&, &:disabled { border-color: $selected_borders_color; }
|
2015-12-03 11:18:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
.osd & {
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
background-color: transparentize($osd_borders_color, 0.2);
|
|
|
|
box-shadow: none;
|
|
|
|
outline-color: transparentize($osd_fg_color, 0.8);
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { background-color: $osd_insensitive_bg_color; }
|
2015-12-03 11:18:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%scale_highlight {
|
|
|
|
border: 1px solid $selected_borders_color;
|
|
|
|
border-radius: 3px;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2015-12-03 11:18:17 +00:00
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
border-color: if($variant=='light', $selected_bg_color,
|
|
|
|
$selected_borders_color);
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2015-12-03 11:18:17 +00:00
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ...on selected list rows
|
2015-12-24 23:43:03 +00:00
|
|
|
row:selected & { &, &:disabled { border-color: $selected_borders_color; } }
|
2015-12-03 11:18:17 +00:00
|
|
|
|
|
|
|
// OSD
|
|
|
|
.osd & {
|
|
|
|
border-color: $osd_borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { border-color: transparent; }
|
2015-12-03 11:18:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-06 12:04:14 +00:00
|
|
|
scale {
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkScale-slider-length: 20;
|
2015-12-03 17:39:19 +00:00
|
|
|
-GtkRange-slider-width: 26;
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkRange-trough-border: 2;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 17:39:19 +00:00
|
|
|
outline-offset: -10px;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-radius: 6px;
|
2014-11-12 16:30:59 +00:00
|
|
|
|
2014-06-14 12:49:20 +00:00
|
|
|
&.fine-tune {
|
2015-12-03 17:39:19 +00:00
|
|
|
outline-offset: -8px;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-radius: 8px;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 17:39:19 +00:00
|
|
|
trough {
|
|
|
|
margin: 11px;
|
|
|
|
&, fill, highlight { border-radius: 4px; }
|
2015-11-07 00:28:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-03 17:39:19 +00:00
|
|
|
trough { margin: 13px; }
|
2014-11-12 16:30:59 +00:00
|
|
|
|
2015-12-21 10:50:56 +00:00
|
|
|
&.horizontal slider { margin: 3px 0; }
|
2015-12-03 17:39:19 +00:00
|
|
|
&.vertical slider { margin: 0 3px; }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
// the backing bit
|
2015-12-03 10:43:53 +00:00
|
|
|
trough { @extend %scale_trough; }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
// the colored part of the backing bit
|
2015-12-03 10:43:53 +00:00
|
|
|
highlight { @extend %scale_highlight; }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
// this is another differently styled part of the backing bit, the most relevant use case is for example
|
|
|
|
// in media player to indicate how much video stream as been cached
|
|
|
|
fill {
|
|
|
|
@extend %scale_trough;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
&, &:backdrop {
|
|
|
|
background-color: $borders_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2015-12-03 11:18:17 +00:00
|
|
|
&, &:backdrop {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
.osd & {
|
|
|
|
background-color: mix($osd_fg_color, $osd_borders_color, 25%);
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2015-12-03 11:18:17 +00:00
|
|
|
&, &:backdrop {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
slider {
|
|
|
|
// FIXME: scale-has-marks-* missing
|
|
|
|
$_slider_edge_color: transparentize(black, 0.9);
|
|
|
|
@include button(normal, $edge: $_slider_edge_color);
|
|
|
|
border: 1px solid darken($borders_color, 3%);
|
|
|
|
border-radius: 100%;
|
|
|
|
|
|
|
|
&:hover { @include button(hover, $edge: $_slider_edge_color); }
|
|
|
|
|
|
|
|
&:active { border-color: $selected_borders_color; }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button (insensitive); }
|
2015-11-06 12:04:14 +00:00
|
|
|
|
2015-11-04 04:12:54 +00:00
|
|
|
&:backdrop {
|
2015-12-02 20:03:03 +00:00
|
|
|
@include button(backdrop);
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button(backdrop-insensitive); }
|
2015-11-05 05:20:50 +00:00
|
|
|
}
|
|
|
|
|
2015-12-03 10:38:50 +00:00
|
|
|
// ...on selected list rows
|
2015-12-24 23:43:03 +00:00
|
|
|
row:selected & { &, &:disabled { border-color: $selected_borders_color; } }
|
2015-12-03 10:38:50 +00:00
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
// OSD
|
2015-11-05 05:20:50 +00:00
|
|
|
.osd & {
|
2015-12-02 20:03:03 +00:00
|
|
|
@include button(osd);
|
|
|
|
border-color: darken($osd_borders_color, 3%);
|
|
|
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button(osd-insensitive); }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-11-05 05:20:50 +00:00
|
|
|
&:backdrop {
|
2015-12-02 20:03:03 +00:00
|
|
|
@include button(osd-backdrop);
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { @include button(osd-backdrop-insensitive); }
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-03 15:18:12 +00:00
|
|
|
|
|
|
|
marks { color: gtkalpha(currentColor, 0.4); }
|
2015-12-03 17:39:19 +00:00
|
|
|
|
|
|
|
// *WARNING* scale with marks madness following
|
|
|
|
|
|
|
|
// FIXME: OSD and selected list rows missing, I don't feel like adding the other 144 assets needed for those...
|
2015-12-04 17:47:28 +00:00
|
|
|
$suffix: if($variant == 'light', '', '-dark');
|
2015-12-03 17:39:19 +00:00
|
|
|
|
|
|
|
@each $dir_class, $dir_infix in ('', 'horz'),
|
|
|
|
('.vertical', 'vert') {
|
|
|
|
@each $marks_infix, $nth_child in ('scale-has-marks-above', ':last-child:not(:only-child)'),
|
|
|
|
('scale-has-marks-below', ':first-child:not(:only-child)') {
|
|
|
|
|
|
|
|
&#{$dir_class} {
|
2015-12-04 17:47:28 +00:00
|
|
|
@each $state, $state_infix in ('', ''),
|
2015-12-03 17:39:19 +00:00
|
|
|
(':hover', '-hover'),
|
|
|
|
(':active', '-active'),
|
2015-12-24 23:43:03 +00:00
|
|
|
(':disabled', '-insensitive'),
|
2015-12-03 17:39:19 +00:00
|
|
|
(':backdrop', '-backdrop'),
|
2015-12-24 23:43:03 +00:00
|
|
|
(':backdrop:disabled', '-backdrop-insensitive') {
|
2015-12-03 17:39:19 +00:00
|
|
|
|
|
|
|
&.fine-tune trough#{$nth_child} {}
|
|
|
|
|
|
|
|
trough#{$nth_child} {
|
2016-01-16 03:15:30 +00:00
|
|
|
slider {
|
2015-12-03 17:39:19 +00:00
|
|
|
margin: 0;
|
|
|
|
&#{$state} {
|
2015-12-04 17:47:28 +00:00
|
|
|
$_scale_asset: 'assets/slider-#{$dir_infix}-#{$marks_infix}#{$state_infix}#{$suffix}';
|
2015-12-03 17:39:19 +00:00
|
|
|
// @warn $_file_name; // uncomment for debuggin purpose...
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png'));
|
|
|
|
|
|
|
|
$_scale_slider_bg_pos: bottom;
|
2016-01-16 03:15:30 +00:00
|
|
|
@if $dir_infix == 'horz' { @if $marks_infix == 'scale-has-marks-above' { $_scale_slider_bg_pos: top; }}
|
2015-12-03 17:39:19 +00:00
|
|
|
@else {
|
|
|
|
@if $marks_infix == 'scale-has-marks-above' { $_scale_slider_bg_pos: left; }
|
|
|
|
@else { $_scale_slider_bg_pos: right; }
|
|
|
|
}
|
|
|
|
|
|
|
|
background-position: $_scale_slider_bg_pos;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
/*****************
|
|
|
|
* Progress bars *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
progressbar {
|
2015-12-21 10:28:45 +00:00
|
|
|
// sizing
|
|
|
|
&.horizontal {
|
|
|
|
trough,
|
2015-12-23 19:35:06 +00:00
|
|
|
progress { min-height: 2px; }
|
2015-12-21 10:28:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.vertical {
|
|
|
|
trough,
|
2016-01-09 17:03:26 +00:00
|
|
|
progress { min-width: 2px; }
|
2015-12-21 10:28:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.horizontal progress { margin: 0 -1px; } // the progress node is positioned after the trough border
|
|
|
|
&.vertical progress { margin: -1px 0; } // this moves it over it.
|
|
|
|
|
|
|
|
|
2015-12-03 10:38:50 +00:00
|
|
|
// FIXME: insensitive state missing and some other state should be set probably
|
2015-12-02 20:03:03 +00:00
|
|
|
font-size: smaller;
|
|
|
|
color: transparentize($fg_color, 0.6);
|
|
|
|
|
|
|
|
box-shadow: _widget_edge(); // needs to be set here;
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
trough { @extend %scale_trough; }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
2015-12-03 10:43:53 +00:00
|
|
|
&:backdrop trough { @extend %scale_trough:backdrop; } // looks like states are not passed to the trough component here
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
|
|
progress {
|
2015-12-03 10:43:53 +00:00
|
|
|
@extend %scale_highlight;
|
2015-12-02 20:03:03 +00:00
|
|
|
border-radius: 1.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
&.left {
|
2015-12-21 10:50:56 +00:00
|
|
|
border-top-left-radius: 2px;
|
|
|
|
border-bottom-left-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
&.right {
|
2015-12-21 10:50:56 +00:00
|
|
|
border-top-right-radius: 2px;
|
|
|
|
border-bottom-right-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
&.top {
|
2015-12-21 10:50:56 +00:00
|
|
|
border-top-right-radius: 2px;
|
|
|
|
border-top-left-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
&.bottom {
|
2015-12-21 10:50:56 +00:00
|
|
|
border-bottom-right-radius: 2px;
|
|
|
|
border-bottom-left-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-03 10:43:53 +00:00
|
|
|
&:backdrop progress { @extend %scale_highlight:backdrop; } // states not passed here as well
|
2015-12-04 18:04:17 +00:00
|
|
|
|
2016-01-09 19:05:41 +00:00
|
|
|
&.osd { // progressbar.osd used for epiphany page loading progress
|
2015-12-20 04:24:27 +00:00
|
|
|
min-width: 3px;
|
|
|
|
min-height: 3px;
|
2016-01-09 19:05:41 +00:00
|
|
|
background-color: transparent;
|
|
|
|
|
2015-12-04 18:04:17 +00:00
|
|
|
trough {
|
|
|
|
border-style: none;
|
2015-12-04 21:02:36 +00:00
|
|
|
border-radius: 0;
|
2015-12-04 18:04:17 +00:00
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
progress {
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-12-02 20:03:03 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*************
|
|
|
|
* Level Bar *
|
|
|
|
*************/
|
|
|
|
|
2015-11-11 05:26:32 +00:00
|
|
|
levelbar {
|
2014-10-02 18:40:18 +00:00
|
|
|
box-shadow: _widget_edge(); // needs to be set here to avoid clipping
|
2016-01-09 13:36:05 +00:00
|
|
|
block {
|
2016-01-03 02:03:50 +00:00
|
|
|
min-width: 32px;
|
|
|
|
min-height: 1px;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-03 02:03:50 +00:00
|
|
|
&.vertical block {
|
|
|
|
min-width: 1px;
|
|
|
|
min-height: 32px;
|
2014-10-02 18:40:18 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
trough {
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 2px;
|
|
|
|
border-radius: 3px;
|
|
|
|
@include entry(normal);
|
|
|
|
&:backdrop {
|
|
|
|
@include entry(backdrop);
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-13 05:56:54 +00:00
|
|
|
&.horizontal.discrete block { margin: 0 1px; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-13 05:56:54 +00:00
|
|
|
&.vertical.discrete block { margin: 1px 0; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
block:not(.empty) {
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid if($variant=='light', darken($selected_bg_color,10%),
|
2015-11-11 05:26:32 +00:00
|
|
|
darken($selected_bg_color,5%));
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $selected_bg_color;
|
|
|
|
box-shadow: 0 1px transparentize(black, 0.9);
|
|
|
|
border-radius: 1px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2015-11-11 05:26:32 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
block {
|
|
|
|
&.low {
|
|
|
|
border-color: darken($warning_color,10%);
|
|
|
|
background-color: $warning_color;
|
|
|
|
|
|
|
|
&:backdrop { border-color: $warning_color; };
|
|
|
|
}
|
|
|
|
|
|
|
|
&.high {
|
|
|
|
border-color: darken($selected_bg_color,10%);
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
|
|
|
&:backdrop { border-color: $selected_bg_color; }
|
|
|
|
}
|
|
|
|
|
|
|
|
&.full {
|
|
|
|
border-color: darken($success_color,10%);
|
|
|
|
background-color: $success_color;
|
|
|
|
|
|
|
|
&:backdrop { border-color: $success_color; };
|
|
|
|
}
|
|
|
|
|
|
|
|
&.empty {
|
|
|
|
border: 1px solid if($variant=='light', darken($selected_bg_color,10%),
|
2015-11-11 05:26:32 +00:00
|
|
|
darken($selected_bg_color,5%));
|
2016-01-09 13:36:05 +00:00
|
|
|
border-radius: 1px;
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: if($variant=='light', transparentize($fg_color,0.8),
|
|
|
|
transparentize($fg_color,0.9));
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-29 03:10:02 +00:00
|
|
|
/****************
|
|
|
|
* Print dialog *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
printdialog {
|
|
|
|
paper {
|
2016-02-03 15:06:05 +00:00
|
|
|
color: $fg_color;
|
2016-01-29 03:10:02 +00:00
|
|
|
border: 1px solid $borders_color;
|
|
|
|
background: white;
|
|
|
|
padding: 0;
|
|
|
|
|
2016-02-03 15:06:05 +00:00
|
|
|
&:backdrop { color: $backdrop_fg_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2016-01-29 03:10:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-action-box {
|
|
|
|
margin: 12px;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/**********
|
|
|
|
* Frames *
|
|
|
|
**********/
|
2015-12-10 04:00:35 +00:00
|
|
|
frame border,
|
2014-06-13 14:32:44 +00:00
|
|
|
.frame {
|
2015-12-10 04:00:35 +00:00
|
|
|
box-shadow: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 0;
|
2014-06-13 14:32:44 +00:00
|
|
|
border: 1px solid $borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-27 12:53:31 +00:00
|
|
|
&.flat { border-style: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
2015-11-05 12:44:29 +00:00
|
|
|
}
|
|
|
|
|
2015-12-19 03:37:57 +00:00
|
|
|
actionbar box {
|
|
|
|
padding: 6px;
|
2015-12-19 03:57:16 +00:00
|
|
|
border-width: 1px 0 0;
|
2015-12-19 03:37:57 +00:00
|
|
|
}
|
|
|
|
|
2015-11-05 15:38:01 +00:00
|
|
|
placessidebar,
|
2015-11-04 12:30:19 +00:00
|
|
|
scrolledwindow {
|
|
|
|
viewport.frame { // avoid double borders when viewport inside scrolled window
|
2014-06-13 14:32:44 +00:00
|
|
|
border-style: none;
|
|
|
|
}
|
2015-11-04 12:30:19 +00:00
|
|
|
// This is used when content is touch-dragged past boundaries.
|
|
|
|
// draws a box on top of the content, the size changes programmatically.
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
overshoot {
|
|
|
|
&.top {
|
|
|
|
@include overshoot(top);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&:backdrop { @include overshoot(top, backdrop); }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&.bottom {
|
|
|
|
@include overshoot(bottom);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&:backdrop { @include overshoot(bottom, backdrop); }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&.left {
|
|
|
|
@include overshoot(left);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&:backdrop { @include overshoot(left, backdrop); }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&.right {
|
|
|
|
@include overshoot(right);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
&:backdrop { @include overshoot(right, backdrop); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
|
|
|
|
undershoot {
|
2015-11-05 15:38:01 +00:00
|
|
|
&.top { @include undershoot(top); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 15:38:01 +00:00
|
|
|
&.bottom { @include undershoot(bottom); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 15:38:01 +00:00
|
|
|
&.left { @include undershoot(left); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 15:38:01 +00:00
|
|
|
&.right { @include undershoot(right); }
|
2015-11-04 12:30:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
junction { // the small square between two scrollbars
|
|
|
|
border-color: transparent;
|
|
|
|
// the border image is used to add the missing dot between the borders, details, details, details...
|
|
|
|
border-image: linear-gradient(to bottom, $borders_color 1px, transparent 1px) 0 0 0 1 / 0 1px stretch;
|
|
|
|
background-color: $scrollbar_bg_color;
|
|
|
|
|
|
|
|
&:dir(rtl) { border-image-slice: 0 1 0 0; }
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
border-image-source: linear-gradient(to bottom, $backdrop_borders_color 1px, transparent 1px);
|
|
|
|
background-color: $backdrop_scrollbar_bg_color;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//vbox and hbox separators
|
2015-10-25 20:28:38 +00:00
|
|
|
separator {
|
2014-06-13 14:32:44 +00:00
|
|
|
// always disable separators
|
2015-12-14 20:56:56 +00:00
|
|
|
background: transparentize(black, 0.9);
|
|
|
|
min-width: 1px;
|
|
|
|
min-height: 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********
|
|
|
|
* Lists *
|
|
|
|
*********/
|
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
list {
|
2016-01-21 03:53:47 +00:00
|
|
|
color: $text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $base_color;
|
|
|
|
border-color: $borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
row { padding: 2px; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
row.activatable {
|
2015-10-23 14:58:17 +00:00
|
|
|
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 14:58:17 +00:00
|
|
|
&:hover { background-color: if(variant == light, transparentize($fg_color, 0.9), transparentize($fg_color, 0.95)); }
|
|
|
|
|
|
|
|
&:active { box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8); }
|
|
|
|
|
2015-04-23 20:45:23 +00:00
|
|
|
&:backdrop:hover { background-color: transparent; }
|
2015-10-23 14:58:17 +00:00
|
|
|
|
2014-07-14 16:29:08 +00:00
|
|
|
&:selected {
|
2014-12-01 09:14:47 +00:00
|
|
|
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
|
2015-10-23 14:58:17 +00:00
|
|
|
|
|
|
|
&.has-open-popup,
|
|
|
|
&:hover { background-color: mix($fg_color, $selected_bg_color, 10%); }
|
|
|
|
|
2014-09-06 15:14:09 +00:00
|
|
|
&:backdrop { background-color: $selected_bg_color; }
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
row:selected {
|
2014-09-02 21:28:21 +00:00
|
|
|
@extend %selected_items;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
button {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-06 15:09:08 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated, $edge:none);
|
|
|
|
color: $selected_fg_color;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
&.flat:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-active, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(backdrop-insensitive-active, $edge:none);
|
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2014-09-02 19:25:53 +00:00
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-06 15:09:08 +00:00
|
|
|
&.flat:backdrop {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(insensitive-active, $edge:none); }
|
2014-09-02 19:25:53 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-13 13:01:11 +00:00
|
|
|
}
|
|
|
|
|
2014-10-16 12:12:13 +00:00
|
|
|
// transition
|
2015-11-05 18:53:43 +00:00
|
|
|
row {
|
2015-06-08 17:01:45 +00:00
|
|
|
transition: all 150ms $ease-out-quad;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-10-16 12:12:13 +00:00
|
|
|
&:hover { transition: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/*********************
|
|
|
|
* App Notifications *
|
|
|
|
*********************/
|
|
|
|
|
2014-09-04 17:18:13 +00:00
|
|
|
.app-notification,
|
|
|
|
.app-notification.frame {
|
2014-08-26 14:54:19 +00:00
|
|
|
@extend %osd;
|
2014-09-04 17:18:13 +00:00
|
|
|
padding: 10px;
|
2015-12-03 18:28:57 +00:00
|
|
|
border-radius: 0 0 5px 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
background-color: $osd_bg_color;
|
2014-08-26 14:54:19 +00:00
|
|
|
background-image: linear-gradient(to bottom, transparentize(black, 0.8),
|
|
|
|
transparent 2px);
|
|
|
|
background-clip: padding-box;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-08-26 14:54:19 +00:00
|
|
|
&:backdrop { background-image: none; }
|
2015-12-03 18:28:57 +00:00
|
|
|
|
|
|
|
button { @extend %osd_button; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-22 18:48:32 +00:00
|
|
|
border { border: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*************
|
|
|
|
* Expanders *
|
|
|
|
*************/
|
|
|
|
|
2015-11-07 05:42:37 +00:00
|
|
|
expander {
|
2016-01-09 13:36:05 +00:00
|
|
|
arrow {
|
2015-12-20 04:24:27 +00:00
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
2015-11-07 05:42:37 +00:00
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-07 05:42:37 +00:00
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-07 05:42:37 +00:00
|
|
|
&:hover { color: lighten($fg_color,30%); } //only lightens the arrow
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-07 05:42:37 +00:00
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Calendar *
|
|
|
|
***********/
|
2015-10-28 10:44:34 +00:00
|
|
|
calendar {
|
2014-10-18 14:57:39 +00:00
|
|
|
color: $text_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
border: 1px solid $borders_color;
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-23 11:26:36 +00:00
|
|
|
&:selected {
|
2016-01-08 00:37:20 +00:00
|
|
|
@extend %selected_items;
|
|
|
|
border-radius: 3px;
|
2014-07-23 11:26:36 +00:00
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-23 11:26:36 +00:00
|
|
|
&.header {
|
2016-01-08 00:37:20 +00:00
|
|
|
border-bottom: 1px solid transparentize(black, 0.9);
|
2014-07-23 11:26:36 +00:00
|
|
|
border-radius: 0;
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
|
|
&:backdrop { border-color: transparentize(black, 0.9); }
|
2014-07-23 11:26:36 +00:00
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-01 12:22:54 +00:00
|
|
|
&.button {
|
2014-07-19 08:50:01 +00:00
|
|
|
@extend %undecorated_button;
|
2014-10-18 14:57:39 +00:00
|
|
|
color: transparentize($fg_color, 0.55);
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-01 12:22:54 +00:00
|
|
|
&:hover {
|
2014-07-19 08:50:01 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
color: transparentize($backdrop_fg_color,0.55);
|
|
|
|
}
|
2015-08-05 12:05:57 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2015-08-05 12:05:57 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
color: transparentize($insensitive_fg_color,0.55);
|
|
|
|
}
|
2014-07-01 12:22:54 +00:00
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
&:indeterminate,
|
|
|
|
&:indeterminate:backdrop { color: gtkalpha(currentColor, 0.55); }
|
|
|
|
|
|
|
|
&.highlight,
|
|
|
|
&.highlight:backdrop {
|
2015-08-27 14:25:46 +00:00
|
|
|
font-size: smaller;
|
2015-08-27 02:59:55 +00:00
|
|
|
color: $fg_color;
|
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-12-24 01:36:30 +00:00
|
|
|
|
2014-10-18 14:57:39 +00:00
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_text_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********
|
|
|
|
* Dialogs *
|
|
|
|
***********/
|
|
|
|
|
2015-10-31 03:49:17 +00:00
|
|
|
messagedialog { // Message Dialog styling
|
2014-07-05 14:30:43 +00:00
|
|
|
.titlebar {
|
2016-01-15 16:56:49 +00:00
|
|
|
min-height: 20px;
|
|
|
|
background-image: none;
|
|
|
|
background-color: $bg_color;
|
2014-07-05 14:30:43 +00:00
|
|
|
border-style: none;
|
2016-01-15 16:56:49 +00:00
|
|
|
border-top-left-radius: 7px;
|
|
|
|
border-top-right-radius: 7px;
|
2014-07-05 14:30:43 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
&.csd { // rounded bottom border styling for csd version
|
|
|
|
&.background {
|
2014-07-07 15:56:29 +00:00
|
|
|
// bigger radius for better antialiasing
|
|
|
|
border-bottom-left-radius: 9px;
|
|
|
|
border-bottom-right-radius: 9px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
.dialog-action-area button {
|
2016-01-15 16:56:49 +00:00
|
|
|
padding: 10px 14px; // labels are not vertically centered on message dialog, this is a workaround
|
2014-07-05 14:30:43 +00:00
|
|
|
border-radius: 0;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %middle_button;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
&:active {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
&:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 16:18:44 +00:00
|
|
|
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
|
|
|
(destructive-action, $destructive_color) {
|
|
|
|
&.#{$b_type} {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 16:18:44 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 16:18:44 +00:00
|
|
|
&:active {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 16:18:44 +00:00
|
|
|
&:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
&:first-child{ @extend %first_button; }
|
|
|
|
&:last-child { @extend %last_button; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
%middle_button {
|
2014-09-02 21:32:50 +00:00
|
|
|
border-left-style: solid;
|
2014-07-05 14:30:43 +00:00
|
|
|
border-right-style: none;
|
|
|
|
border-bottom-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
%last_button {
|
2014-09-03 12:22:10 +00:00
|
|
|
border-bottom-right-radius: 7px;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-bottom-right-radius: 5px;
|
2014-08-29 00:14:16 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
%first_button {
|
|
|
|
border-left-style: none;
|
|
|
|
border-bottom-left-radius: 7px;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-bottom-left-radius: 5px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-15 16:56:49 +00:00
|
|
|
filechooser {
|
2014-07-15 17:09:58 +00:00
|
|
|
.dialog-action-box {
|
|
|
|
border-top: 1px solid $borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-07-15 17:09:58 +00:00
|
|
|
&:backdrop { border-top-color: $backdrop_borders_color; }
|
|
|
|
}
|
2014-06-14 06:45:55 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/***********
|
|
|
|
* Sidebar *
|
|
|
|
***********/
|
|
|
|
|
2014-10-20 13:22:42 +00:00
|
|
|
.sidebar {
|
2014-06-13 14:32:44 +00:00
|
|
|
border: none;
|
2015-05-06 21:07:17 +00:00
|
|
|
background-color: mix($bg_color, $base_color, 50%);
|
2014-10-21 11:51:22 +00:00
|
|
|
|
2014-06-14 07:00:21 +00:00
|
|
|
&:backdrop {
|
2014-10-21 11:51:22 +00:00
|
|
|
background-color: $backdrop_sidebar_bg_color;
|
2014-06-14 07:00:21 +00:00
|
|
|
}
|
2014-10-21 11:51:22 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
:selected { // FIXME: what this is supposed to select
|
2014-11-15 14:54:20 +00:00
|
|
|
@extend %selected_items;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-20 13:22:42 +00:00
|
|
|
}
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
stacksidebar {
|
2016-01-09 13:36:05 +00:00
|
|
|
row {
|
2015-11-06 04:42:19 +00:00
|
|
|
padding: 10px 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
> label {
|
2015-11-06 04:42:19 +00:00
|
|
|
padding-left: 6px;
|
|
|
|
padding-right: 6px;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
&.needs-attention > label {
|
|
|
|
@extend %needs_attention;
|
|
|
|
background-size: 6px 6px, 0 0;
|
|
|
|
}
|
2015-05-06 21:07:17 +00:00
|
|
|
}
|
|
|
|
}
|
2015-04-15 18:20:52 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
/****************
|
|
|
|
* File chooser *
|
|
|
|
****************/
|
|
|
|
|
|
|
|
$_placesidebar_icons_opacity: 0.7;
|
|
|
|
|
2015-11-05 15:38:01 +00:00
|
|
|
placessidebar {
|
2015-11-06 04:42:19 +00:00
|
|
|
row {
|
|
|
|
// Needs overriding of the GtkListBoxRow padding
|
|
|
|
padding: 0px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
// Using margins/padding directly in the SidebarRow
|
|
|
|
// will make the animation of the new bookmark row jump
|
2016-01-09 13:36:05 +00:00
|
|
|
> revealer {
|
2015-11-06 04:42:19 +00:00
|
|
|
padding: 4px 14px 4px 12px;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
& image.sidebar-icon {
|
|
|
|
opacity: $_placesidebar_icons_opacity; // dim the device icons
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
&:dir(ltr) { padding-right: 8px; }
|
|
|
|
&:dir(rtl) { padding-left: 8px; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
& label.sidebar-label {
|
|
|
|
&:dir(ltr) { padding-right: 2px; }
|
|
|
|
&:dir(rtl) { padding-left: 2px; }
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
@at-root button.sidebar-button {
|
|
|
|
padding: 5px;
|
|
|
|
@extend button.flat;
|
|
|
|
border-radius: 100%;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-radius: 100%;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
&:not(:hover):not(:active) > image,
|
|
|
|
&:backdrop > image { opacity: $_placesidebar_icons_opacity };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-01 16:14:45 +00:00
|
|
|
// in the sidebar case it makes no sense to click the selected row
|
2015-11-05 18:53:43 +00:00
|
|
|
row:selected:active { box-shadow: none; }
|
2015-09-01 16:14:45 +00:00
|
|
|
|
2015-09-01 16:43:48 +00:00
|
|
|
// looks like the label doesn't get all the states so work around
|
2015-12-24 23:43:03 +00:00
|
|
|
row:selected:disabled label { @extend %selected_items:disabled; }
|
|
|
|
row:selected:backdrop:disabled label { @extend %selected_items:backdrop:disabled; }
|
2015-09-01 16:43:48 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
row.sidebar-placeholder-row { border: solid 1px $selected_bg_color; }
|
2015-09-01 16:14:45 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
row.sidebar-new-bookmark-row { color: $selected_bg_color; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
placesview {
|
2015-10-23 04:05:18 +00:00
|
|
|
.server-list-button > image {
|
2015-09-24 09:04:39 +00:00
|
|
|
transition: 200ms $ease-out-quad;
|
|
|
|
-gtk-icon-transform: rotate(0turn);
|
|
|
|
}
|
|
|
|
|
2015-10-23 04:05:18 +00:00
|
|
|
.server-list-button:checked > image {
|
2015-09-24 09:04:39 +00:00
|
|
|
transition: 200ms $ease-out-quad;
|
|
|
|
-gtk-icon-transform: rotate(-0.5turn);
|
|
|
|
}
|
2015-09-24 12:49:30 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
row.activatable:hover { background-color: transparent; }
|
2015-09-24 09:04:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-21 11:51:22 +00:00
|
|
|
/*********
|
|
|
|
* Paned *
|
|
|
|
*********/
|
|
|
|
|
2015-12-16 02:06:53 +00:00
|
|
|
paned {
|
2016-01-09 11:05:31 +00:00
|
|
|
> separator {
|
2015-12-09 05:17:51 +00:00
|
|
|
min-width: 1px;
|
|
|
|
min-height: 1px;
|
2016-01-09 11:31:41 +00:00
|
|
|
-gtk-icon-source: none; // defeats the ugly default handle decoration
|
2016-01-09 12:04:27 +00:00
|
|
|
border-style: none; // just to be sure
|
2016-01-09 11:31:41 +00:00
|
|
|
background-color: transparent;
|
2016-01-09 12:04:27 +00:00
|
|
|
// using background istead of a border since the border will get rendered twice (?)
|
2016-01-09 11:31:41 +00:00
|
|
|
background-image: linear-gradient(to top, $borders_color);
|
|
|
|
background-size: 1px 1px;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
|
|
&:selected { background-image: linear-gradient(to top, $selected_bg_color); } // FIXME is this needed?
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-09 11:31:41 +00:00
|
|
|
&:backdrop { background-image: linear-gradient(to top, $backdrop_borders_color); }
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
|
|
&.wide {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
min-width: 5px;
|
|
|
|
min-height: 5px;
|
2016-01-09 12:35:48 +00:00
|
|
|
background-image: linear-gradient(to top, $borders_color), linear-gradient(to top, $borders_color);
|
|
|
|
background-size: 1px 1px, 1px 1px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-09 12:35:48 +00:00
|
|
|
&:backdrop { background-image: linear-gradient(to top, $backdrop_borders_color), linear-gradient(to top, $backdrop_borders_color); }
|
2016-01-09 12:04:27 +00:00
|
|
|
}
|
2015-12-16 02:06:53 +00:00
|
|
|
}
|
2016-01-09 12:04:27 +00:00
|
|
|
|
2016-01-09 11:31:41 +00:00
|
|
|
&.horizontal > separator {
|
|
|
|
background-repeat: repeat-y;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-09 11:31:41 +00:00
|
|
|
&:dir(ltr) {
|
|
|
|
margin: 0 -8px 0 0;
|
|
|
|
padding: 0 8px 0 0;
|
|
|
|
background-position: left;
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
margin: 0 0 0 -8px;
|
|
|
|
padding: 0 0 0 8px;
|
|
|
|
background-position: right;
|
|
|
|
}
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
|
|
&.wide {
|
2016-01-09 12:35:48 +00:00
|
|
|
background-repeat: repeat-y, repeat-y;
|
|
|
|
background-position: left, right;
|
2016-01-09 12:04:27 +00:00
|
|
|
}
|
2015-12-16 02:06:53 +00:00
|
|
|
}
|
2016-01-09 12:04:27 +00:00
|
|
|
|
2016-01-09 11:05:31 +00:00
|
|
|
&.vertical > separator {
|
2015-12-16 02:06:53 +00:00
|
|
|
margin: 0 0 -8px 0;
|
|
|
|
padding: 0 0 8px 0;
|
2016-01-09 11:31:41 +00:00
|
|
|
background-repeat: repeat-x;
|
|
|
|
background-position: top;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
|
|
&.wide {
|
2016-01-09 12:35:48 +00:00
|
|
|
background-repeat: repeat-x, repeat-x;
|
|
|
|
background-position: bottom, top;
|
2016-01-09 12:04:27 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-21 11:25:17 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**************
|
|
|
|
* GtkInfoBar *
|
|
|
|
**************/
|
2016-01-09 13:36:05 +00:00
|
|
|
infobar { border-style: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
.info,
|
|
|
|
.question,
|
|
|
|
.warning,
|
|
|
|
.error {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
text-shadow: 0 1px darken($selected_bg_color, 10%);
|
|
|
|
border-color: darken($selected_bg_color, 10%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
button {
|
2014-09-04 13:03:09 +00:00
|
|
|
// FIXME: extend selection mode buttons
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, none);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color, none); }
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked { @include button(active, $selected_bg_color, $selected_fg_color, none); }
|
|
|
|
|
|
|
|
&:disabled { @include button(insensitive,$selected_bg_color,$selected_fg_color,none); }
|
|
|
|
|
2014-07-28 10:42:23 +00:00
|
|
|
&:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $selected_bg_color, $selected_fg_color, none);
|
2014-07-28 10:42:23 +00:00
|
|
|
border-color: _border_color($selected_bg_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled {
|
2014-07-28 10:42:23 +00:00
|
|
|
@include button(backdrop-insensitive, $selected_bg_color,
|
2014-09-03 12:22:10 +00:00
|
|
|
$selected_fg_color, none);
|
2014-07-28 10:42:23 +00:00
|
|
|
border-color: _border_color($selected_bg_color);
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-10-23 03:25:42 +00:00
|
|
|
& label:selected,
|
|
|
|
& label:selected:focus,
|
2016-01-09 13:36:05 +00:00
|
|
|
& label:selected:hover {background-color: darken($selected_bg_color, 10%); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Tooltips *
|
|
|
|
************/
|
|
|
|
|
2015-11-10 17:26:05 +00:00
|
|
|
tooltip {
|
2014-09-06 14:02:34 +00:00
|
|
|
&.background {
|
|
|
|
// background-color needs to be set this way otherwise it gets drawn twice
|
|
|
|
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
|
|
|
|
background-color: transparentize(black, 0.2);
|
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid $tooltip_borders_color; // this suble border is meant to
|
|
|
|
// not make the tooltip melt with
|
|
|
|
// very dark backgrounds
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 4px; /* not working */
|
|
|
|
border-radius: 5px;
|
2014-09-05 14:17:00 +00:00
|
|
|
box-shadow: none; // otherwise it gets inherited by windowframe.csd
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-09-05 14:17:00 +00:00
|
|
|
// FIXME: we need a border or tooltips vanish on black background.
|
2016-01-09 13:36:05 +00:00
|
|
|
decoration { background-color: transparent; }
|
|
|
|
|
|
|
|
* { // Yeah this is ugly
|
2015-11-10 17:26:05 +00:00
|
|
|
padding: 4px;
|
|
|
|
background-color: transparent;
|
2015-11-10 17:48:40 +00:00
|
|
|
color: white;
|
2015-11-10 17:26:05 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* Color Chooser *
|
|
|
|
*****************/
|
|
|
|
|
2015-10-31 01:44:19 +00:00
|
|
|
colorswatch {
|
|
|
|
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
|
2016-01-08 15:31:30 +00:00
|
|
|
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
|
|
|
|
// applied to the overlay box.
|
2014-10-29 18:50:58 +00:00
|
|
|
|
2016-01-09 14:30:20 +00:00
|
|
|
&, &:drop(active) { border-style: none; } // FIXME: implement a proper drop(active) state
|
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
$_colorswatch_radius: 5px;
|
2016-01-08 15:31:30 +00:00
|
|
|
$_colorswatch_overlay_shadow: if($variant == 'light', inset 0 2px 2px -3px transparentize(black, 0.3),
|
|
|
|
inset 0 3px 2px -2px transparentize(black, 0.5));
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
// base color corners rounding
|
|
|
|
// to avoid the artifacts caused by rounded corner anti-aliasing the base color
|
|
|
|
// sports a bigger radius.
|
|
|
|
// nth-child is needed by the custom color strip.
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.top {
|
2016-01-08 15:31:30 +00:00
|
|
|
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
border-top-left-radius: $_colorswatch_radius;
|
|
|
|
border-top-right-radius: $_colorswatch_radius;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.bottom {
|
2016-01-08 15:31:30 +00:00
|
|
|
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius;
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius;
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&.left,
|
|
|
|
&:first-child:not(.top) {
|
2016-01-08 15:31:30 +00:00
|
|
|
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
border-top-left-radius: $_colorswatch_radius;
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius;
|
|
|
|
}
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&.right,
|
|
|
|
&:last-child:not(.bottom) {
|
2016-01-08 15:31:30 +00:00
|
|
|
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
border-top-right-radius: $_colorswatch_radius;
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius;
|
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
}
|
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&.dark overlay {
|
|
|
|
color: $selected_fg_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:hover { border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:backdrop { color: $backdrop_selected_fg_color; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-08 15:31:30 +00:00
|
|
|
|
|
|
|
&.light overlay {
|
|
|
|
color: $text_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:hover { border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:backdrop { color: $backdrop_text_color; }
|
2014-10-08 15:23:45 +00:00
|
|
|
}
|
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
box-shadow: $_colorswatch_overlay_shadow;
|
|
|
|
border: 1px solid if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:hover { box-shadow: inset 0 1px transparentize(white, 0.7); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
border-color: if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&#add-color-button {
|
2016-01-08 15:31:30 +00:00
|
|
|
border-radius: $_colorswatch_radius $_colorswatch_radius 0 0;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:only-child { border-radius: $_colorswatch_radius; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
@include button(normal);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:hover { @include button(hover); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
&:backdrop { @include button(backdrop); }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-08 15:31:30 +00:00
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
opacity: 0.5;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
overlay {
|
|
|
|
border-color: transparentize(black, 0.4);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
row:selected & { box-shadow: 0 0 0 2px $selected_fg_color; }
|
2016-01-29 16:48:45 +00:00
|
|
|
|
|
|
|
&#editor-color-sample {
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
overlay { border-radius: 4.5px; }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-06-24 08:25:49 +00:00
|
|
|
|
2014-07-08 16:24:28 +00:00
|
|
|
/********
|
|
|
|
* Misc *
|
|
|
|
********/
|
|
|
|
|
2015-09-08 18:10:51 +00:00
|
|
|
//content view (grid/list)
|
|
|
|
.content-view {
|
|
|
|
background-color: darken($bg_color,7%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-12-01 21:29:24 +00:00
|
|
|
&:hover { -gtk-icon-effect: highlight; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-09-08 18:10:51 +00:00
|
|
|
&:backdrop { background-color: darken($bg_color,7%); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
rubberband { @extend rubberband; }
|
2015-09-08 18:10:51 +00:00
|
|
|
}
|
|
|
|
|
2015-06-18 10:33:04 +00:00
|
|
|
.scale-popup {
|
|
|
|
|
|
|
|
.osd & { @extend %osd; }
|
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
.osd & button.flat { //FIXME: quick hack, redo properly
|
2015-06-18 10:33:04 +00:00
|
|
|
padding: 6px;
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
button { // +/- buttons on GtkVolumeButton popup
|
2015-06-18 10:33:04 +00:00
|
|
|
padding: 6px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-06-18 10:33:04 +00:00
|
|
|
&:hover {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-06-18 10:33:04 +00:00
|
|
|
&:backdrop,
|
|
|
|
&:backdrop:hover,
|
2015-12-24 23:43:03 +00:00
|
|
|
&:backdrop:disabled { @extend %undecorated_button; }
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**********************
|
|
|
|
* Window Decorations *
|
|
|
|
*********************/
|
|
|
|
|
2015-09-07 19:42:25 +00:00
|
|
|
decoration {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 7px 7px 0 0;
|
|
|
|
// lamefun trick to get rounded borders regardless of CSD use
|
|
|
|
border-width: 0px;
|
|
|
|
|
|
|
|
// this needs to be transparent
|
|
|
|
// see bug #722563
|
2014-06-18 16:09:43 +00:00
|
|
|
$_wm_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
|
|
|
|
$_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize($borders_color, 0.1));
|
|
|
|
|
|
|
|
box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
|
2014-06-13 14:32:44 +00:00
|
|
|
0 0 0 1px $_wm_border; //doing borders with box-shadow
|
|
|
|
|
2015-09-07 19:42:25 +00:00
|
|
|
// FIXME rationalize shadows
|
2014-10-22 18:46:54 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/* this is used for the resize cursor area */
|
|
|
|
margin: 10px;
|
|
|
|
|
|
|
|
&:backdrop {
|
2015-11-14 17:55:34 +00:00
|
|
|
/* the transparent shadow here is to enforce that the shadow extents don't
|
|
|
|
* change when we go to backdrop, to prevent jumping windows
|
|
|
|
*/
|
2014-06-18 16:09:43 +00:00
|
|
|
box-shadow: 0 2px 6px 2px transparentize(black, 0.8),
|
2015-11-14 17:55:34 +00:00
|
|
|
0 3px 9px 1px transparent,
|
2014-06-18 16:09:43 +00:00
|
|
|
0 0 0 1px $_wm_border_backdrop;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
.tiled & { border-radius: 0; }
|
|
|
|
|
|
|
|
.popup & { box-shadow: none; }
|
|
|
|
|
2014-12-18 13:18:50 +00:00
|
|
|
// server-side decorations as used by mutter
|
2016-01-23 00:23:54 +00:00
|
|
|
.ssd &,
|
2016-01-09 13:36:05 +00:00
|
|
|
&.ssd { box-shadow: 0 0 0 1px $_wm_border; } //just doing borders, wm draws actual shadows
|
|
|
|
|
2015-11-05 21:07:29 +00:00
|
|
|
.csd.popup & {
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
|
|
|
0 0 0 1px transparentize($_wm_border,0.1);
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-10 17:26:05 +00:00
|
|
|
tooltip.csd & {
|
2015-11-05 21:07:29 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 21:07:29 +00:00
|
|
|
messagedialog.csd & {
|
|
|
|
border-radius: 7px;
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
2014-07-07 15:56:29 +00:00
|
|
|
0 0 0 1px transparentize($_wm_border,0.1);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-05 21:07:29 +00:00
|
|
|
.solid-csd & {
|
2015-03-11 12:52:21 +00:00
|
|
|
border-radius: 0;
|
|
|
|
margin: 4px;
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
border: solid 1px $backdrop_borders_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Window Close button
|
2015-10-30 05:08:30 +00:00
|
|
|
headerbar button.titlebutton,
|
2015-10-30 03:17:41 +00:00
|
|
|
.titlebar button.titlebutton {
|
|
|
|
@extend button;
|
|
|
|
@extend button.flat;
|
2014-09-04 13:03:09 +00:00
|
|
|
@include _button_text_shadow;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-21 01:30:54 +00:00
|
|
|
&:backdrop { -gtk-icon-shadow: none; }
|
2014-09-04 13:03:09 +00:00
|
|
|
}
|
|
|
|
|
2015-10-30 05:08:30 +00:00
|
|
|
headerbar.selection-mode button.titlebutton,
|
2015-10-30 03:17:41 +00:00
|
|
|
.titlebar.selection-mode button.titlebutton {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include _button_text_shadow(white, $selected_bg_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-11-21 01:30:54 +00:00
|
|
|
&:backdrop { -gtk-icon-shadow: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-09-02 21:28:21 +00:00
|
|
|
|
|
|
|
// catch all extend :)
|
|
|
|
|
|
|
|
%selected_items {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
@if $variant == 'light' { outline-color: transparentize($selected_fg_color, 0.7); }
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
&:disabled { color: mix($selected_fg_color, $selected_bg_color, 50%); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-09-01 16:43:48 +00:00
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_selected_fg_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
&:disabled { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
2015-09-01 16:43:48 +00:00
|
|
|
}
|
2014-09-02 21:28:21 +00:00
|
|
|
}
|
2014-10-01 04:45:23 +00:00
|
|
|
|
2015-06-18 10:01:12 +00:00
|
|
|
.monospace {
|
|
|
|
font: Monospace;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* Touch Copy & Paste *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
//touch selection handlebars for the Popover.osd above
|
2015-11-10 04:47:08 +00:00
|
|
|
cursor-handle {
|
2015-06-18 10:01:12 +00:00
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border-style: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
2015-06-18 10:01:12 +00:00
|
|
|
@each $s,$as in ('',''),
|
2015-06-18 11:08:45 +00:00
|
|
|
(':hover','-hover'),
|
|
|
|
(':active','-active') { //no need for insensitive and backdrop
|
2016-01-09 13:36:05 +00:00
|
|
|
&.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
|
|
|
|
$_url: 'assets/text-select-start#{$as}#{$asset_suffix}';
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
|
|
|
|
$_url: 'assets/text-select-end#{$as}#{$asset_suffix}';
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
|
|
|
|
$_url: 'assets/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}';
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu { font: initial; } // Decouple the font of context menus from their entry/textview
|
|
|
|
|
|
|
|
button.circular { // FIXME: aggregate to buttons
|
2015-10-11 20:40:48 +00:00
|
|
|
border-radius: 20px;
|
2015-12-22 21:19:18 +00:00
|
|
|
-gtk-outline-radius: 20px;
|
2015-10-11 20:40:48 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
label { padding: 0; }
|
2015-10-11 20:40:48 +00:00
|
|
|
}
|
|
|
|
|
2016-01-09 17:03:26 +00:00
|
|
|
// shortcut window keys
|
|
|
|
.keycap {
|
|
|
|
min-width: 20px;
|
|
|
|
min-height: 25px;
|
|
|
|
padding-bottom: 3px;
|
|
|
|
padding-left: 6px;
|
|
|
|
padding-right: 6px;
|
|
|
|
|
|
|
|
color: if($variant == 'light', $insensitive_fg_color, $fg_color);
|
|
|
|
background-color: $base_color;
|
|
|
|
border: 1px solid;
|
|
|
|
border-color: if($variant == 'light', mix($borders_color, $bg_color, 50%), $borders_color);
|
2015-10-11 20:40:48 +00:00
|
|
|
border-radius: 5px;
|
2016-01-09 17:03:26 +00:00
|
|
|
box-shadow: if($variant == 'light', inset 0 -3px mix($base_color, $bg_color, 20%), inset 0 -3px mix($borders_color, $base_color, 60%));
|
|
|
|
font-size: smaller;
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
color: if($variant == 'light', $backdrop_insensitive_color, $backdrop_fg_color);
|
|
|
|
}
|
2015-10-11 20:40:48 +00:00
|
|
|
}
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
*:drop(active):focus,
|
2016-01-09 14:30:20 +00:00
|
|
|
*:drop(active) { border: 1px solid black; } // FIXME this makes boxes grow and looks pretty bad, needs to be handled differently
|
2015-12-08 03:11:52 +00:00
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
|
2015-12-16 00:39:57 +00:00
|
|
|
|
2016-01-09 17:03:26 +00:00
|
|
|
stackswitcher button.circular,
|
|
|
|
stackswitcher button.text-button.circular { // FIXME aggregate with buttons
|
|
|
|
min-width: 32px;
|
|
|
|
min-height: 32px;
|
|
|
|
padding: 0;
|
|
|
|
}
|