2014-10-30 15:14:37 +00:00
|
|
|
|
@function gtkalpha($c,$a) {
|
|
|
|
|
@return unquote("alpha(#{$c},#{$a})");
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-10 13:13:12 +00:00
|
|
|
|
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
* {
|
|
|
|
|
padding: 0;
|
|
|
|
|
-gtk-icon-style: symbolic; //force symbolic style icons
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
2017-11-15 23:08:46 +00:00
|
|
|
|
outline-style: none;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2019-04-06 12:59:56 +00:00
|
|
|
|
button:focus,
|
|
|
|
|
checkbutton:focus,
|
|
|
|
|
radiobutton:focus,
|
|
|
|
|
switch:focus,
|
|
|
|
|
scale:focus,
|
|
|
|
|
label:focus,
|
|
|
|
|
row:focus,
|
|
|
|
|
flowboxchild:focus {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// 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.
|
|
|
|
|
|
2016-06-08 10:15:55 +00:00
|
|
|
|
outline-color: currentColor;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
outline-style: dashed;
|
2016-06-08 10:15:55 +00:00
|
|
|
|
outline-offset: -4px;
|
|
|
|
|
outline-width: 2px;
|
2016-01-05 01:50:24 +00:00
|
|
|
|
-gtk-outline-radius: 2px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***************
|
|
|
|
|
* Base States *
|
|
|
|
|
***************/
|
|
|
|
|
|
|
|
|
|
.background {
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.background:backdrop {
|
|
|
|
|
text-shadow: none;
|
2015-11-21 01:32:42 +00:00
|
|
|
|
-gtk-icon-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
color: lighten($fg_color,10%);
|
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-01-05 01:46:43 +00:00
|
|
|
|
*:disabled {
|
2016-12-31 00:29:14 +00:00
|
|
|
|
-gtk-icon-filter: opacity(0.5);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gtkstyle-fallback {
|
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
color: $fg_color;
|
2016-01-05 01:49:41 +00:00
|
|
|
|
&:hover {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-color: lighten($bg_color, 10%);
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
}
|
|
|
|
|
&:active {
|
|
|
|
|
background-color: darken($bg_color, 10%);
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
}
|
|
|
|
|
&:selected {
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-15 03:29:31 +00:00
|
|
|
|
.normal-icons {
|
|
|
|
|
-gtk-icon-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.large-icons {
|
|
|
|
|
-gtk-icon-size: 32px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.view {
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
}
|
2017-02-08 15:53:10 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
|
}
|
2016-01-12 04:20:26 +00:00
|
|
|
|
&:selected,
|
|
|
|
|
&:selected:focus,
|
|
|
|
|
&:selected:hover { @extend %selected_items; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-01-12 04:20:26 +00:00
|
|
|
|
textview text {
|
|
|
|
|
@extend .view;
|
|
|
|
|
|
|
|
|
|
selection,
|
|
|
|
|
selection:focus,
|
|
|
|
|
selection:hover {
|
2015-11-14 23:35:03 +00:00
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-12 04:20:26 +00:00
|
|
|
|
iconview { @extend .view ;}
|
|
|
|
|
|
2015-11-10 05:30:39 +00:00
|
|
|
|
.rubberband,
|
|
|
|
|
rubberband {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border: 1px solid $selected_bg_color;
|
|
|
|
|
background-color: transparentize($selected_bg_color,0.8);
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-10 05:55:29 +00:00
|
|
|
|
flowbox {
|
|
|
|
|
& rubberband { @extend rubberband; }
|
2015-11-14 23:25:59 +00:00
|
|
|
|
flowboxchild {
|
|
|
|
|
padding: 3px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
&:selected {
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
outline-offset: -2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-11-10 05:55:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-10-23 03:26:53 +00:00
|
|
|
|
label {
|
2015-11-11 01:33:12 +00:00
|
|
|
|
& selection,
|
|
|
|
|
& selection:focus,
|
|
|
|
|
& selection:hover,
|
|
|
|
|
& selection:backdrop {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled, &:backdrop:disabled {
|
2015-03-20 12:22:47 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 11:57:14 +00:00
|
|
|
|
%osd, .osd {
|
|
|
|
|
color: $osd_fg_color;
|
|
|
|
|
border: none;
|
|
|
|
|
background-color: $osd_bg_color;
|
|
|
|
|
background-clip: padding-box;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
//text-shadow: 0 1px black;
|
|
|
|
|
//-gtk-icon-shadow: 0 1px black;
|
2016-03-16 11:57:14 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
-gtk-icon-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/*********************
|
|
|
|
|
* Spinner Animation *
|
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
to { -gtk-icon-transform: rotate(1turn); }
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-25 19:21:52 +00:00
|
|
|
|
spinner {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-image: none;
|
|
|
|
|
opacity: 0; // non spinning spinner makes no sense
|
|
|
|
|
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
|
2015-12-01 23:39:25 +00:00
|
|
|
|
&:checked {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
opacity: 1;
|
|
|
|
|
animation: spin 1s linear infinite;
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/****************
|
|
|
|
|
* Text Entries *
|
|
|
|
|
****************/
|
|
|
|
|
|
2016-03-16 13:32:14 +00:00
|
|
|
|
%entry,
|
|
|
|
|
entry {
|
|
|
|
|
%entry_basic, & {
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
transition: all 200ms $ease-out-quad;
|
|
|
|
|
|
|
|
|
|
@include entry(normal);
|
|
|
|
|
|
|
|
|
|
image { // icons inside the entry
|
|
|
|
|
&.left { padding-left: 0; padding-right: 6px; }
|
|
|
|
|
&.right { padding-left: 6px; padding-right: 0; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
undershoot {
|
|
|
|
|
&.left { @include undershoot(left); }
|
|
|
|
|
&.right { @include undershoot(right); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.flat {
|
2017-10-31 19:57:45 +00:00
|
|
|
|
&:focus, &:backdrop, &:disabled, & {
|
2016-03-16 13:32:14 +00:00
|
|
|
|
min-height: 0;
|
|
|
|
|
padding: 2px;
|
|
|
|
|
background-image: none;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
border-radius: 0;
|
2017-10-31 19:57:45 +00:00
|
|
|
|
box-shadow: none;
|
2016-03-16 13:32:14 +00:00
|
|
|
|
}
|
2018-06-20 18:23:59 +00:00
|
|
|
|
|
|
|
|
|
// Dodge transparency in selected treeview row, else bg & fg end up same
|
|
|
|
|
treeview &:focus { background-color: $base_color; }
|
2016-03-16 13:32:14 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus { @include entry(focus); }
|
|
|
|
|
|
|
|
|
|
&:disabled { @include entry(insensitive); }
|
|
|
|
|
|
|
|
|
|
&:backdrop { @include entry(backdrop); }
|
|
|
|
|
|
|
|
|
|
&:backdrop:disabled { @include entry(backdrop-insensitive); }
|
|
|
|
|
|
|
|
|
|
selection { &:focus, & { @extend %selected_items; }}
|
|
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
|
|
&:focus { @include entry(focus, $e_color); }
|
|
|
|
|
|
|
|
|
|
&:selected { &:focus, & { background-color: $e_color; }}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& image { // entry icons colors
|
|
|
|
|
color: mix($fg_color, $base_color, 80%);
|
|
|
|
|
|
|
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
|
|
|
|
|
|
&:active { color: $selected_bg_color; }
|
|
|
|
|
|
|
|
|
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:drop(active) {
|
|
|
|
|
&:focus, & {
|
|
|
|
|
border-color: $fg_color;
|
|
|
|
|
box-shadow: inset 0 0 0 1px $fg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.osd & {
|
|
|
|
|
@include entry(osd);
|
|
|
|
|
|
|
|
|
|
&:focus { @include entry(osd-focus); }
|
|
|
|
|
|
|
|
|
|
&:backdrop { @include entry(osd-backdrop); }
|
|
|
|
|
|
|
|
|
|
&:disabled { @include entry(osd-insensitive); }
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
|
|
|
|
progress {
|
|
|
|
|
margin: 2px -6px;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 0 2px;
|
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
box-shadow: none;
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:backdrop { background-color: transparent; }
|
|
|
|
|
}
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
|
|
|
|
// linked entries
|
|
|
|
|
.linked:not(.vertical) > & { @extend %linked; }
|
|
|
|
|
.linked:not(.vertical) > &:focus + &,
|
|
|
|
|
.linked:not(.vertical) > &:focus + button,
|
|
|
|
|
.linked:not(.vertical) > &:focus + combobox > box > button.combo { border-left-color: entry_focus_border(); }
|
|
|
|
|
|
2018-09-01 14:52:19 +00:00
|
|
|
|
.linked:not(.vertical) > &:focus.error + &,
|
|
|
|
|
.linked:not(.vertical) > &:focus.error + button,
|
|
|
|
|
.linked:not(.vertical) > &:focus.error + combobox > box > button.combo { border-left-color: $error_color; }
|
|
|
|
|
|
2016-03-16 13:32:14 +00:00
|
|
|
|
.linked:not(.vertical) > &:drop(active) + &,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + button,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + combobox > box > button.combo { border-left-color: $fg_color; }
|
|
|
|
|
|
|
|
|
|
// Vertically linked entries
|
|
|
|
|
// FIXME: take care of "colored" entries
|
|
|
|
|
.linked.vertical > & {
|
2014-12-01 16:45:26 +00:00
|
|
|
|
@extend %linked_vertical;
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
|
|
|
|
// brighter border between linked entries
|
|
|
|
|
&:not(:disabled) + entry:not(:disabled),
|
|
|
|
|
&:not(:disabled) + %entry:not(:disabled) {
|
|
|
|
|
border-top-color: mix($borders_color, $base_color, 30%);
|
2016-03-27 17:41:19 +00:00
|
|
|
|
background-image: _solid($base_color);
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
2014-12-01 16:45:26 +00:00
|
|
|
|
&:backdrop {
|
2016-03-16 13:32:14 +00:00
|
|
|
|
border-top-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
|
2016-03-27 17:41:19 +00:00
|
|
|
|
background-image: _solid($backdrop_base_color);
|
2014-12-01 16:45:26 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
|
|
|
|
// brighter border between linked insensitive entries
|
|
|
|
|
&:disabled + %entry:disabled,
|
|
|
|
|
&:disabled + entry:disabled { border-top-color: mix($borders_color, $base_color, 30%); }
|
|
|
|
|
|
|
|
|
|
// color back the top border of a linked focused entry following another entry and add back the focus shadow.
|
|
|
|
|
// :not(:only-child) is a specificity bump hack.
|
|
|
|
|
+ %entry:focus:not(:only-child),
|
|
|
|
|
+ entry:focus:not(:only-child) { border-top-color: entry_focus_border(); }
|
|
|
|
|
|
2018-09-01 14:52:19 +00:00
|
|
|
|
+ %entry:focus.error:not(:only-child),
|
|
|
|
|
+ entry:focus.error:not(:only-child) { border-top-color: $error_color; }
|
|
|
|
|
|
2016-03-16 13:32:14 +00:00
|
|
|
|
+ %entry:drop(active):not(:only-child),
|
|
|
|
|
+ entry:drop(active):not(:only-child) { border-top-color: $fg_color; }
|
|
|
|
|
|
|
|
|
|
// this takes care of coloring the top border of the focused entry subsequent widget.
|
|
|
|
|
// :not(:only-child) is a specificity bump hack.
|
|
|
|
|
&:focus:not(:only-child) {
|
|
|
|
|
+ %entry,
|
|
|
|
|
+ entry,
|
|
|
|
|
+ button,
|
|
|
|
|
+ combobox > box > button.combo { border-top-color: entry_focus_border(); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
2018-09-01 14:52:19 +00:00
|
|
|
|
&:focus.error:not(:only-child) {
|
|
|
|
|
+ %entry,
|
|
|
|
|
+ entry,
|
|
|
|
|
+ button,
|
|
|
|
|
+ combobox > box > button.combo { border-top-color: $error_color; }
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 13:32:14 +00:00
|
|
|
|
&:drop(active):not(:only-child) {
|
|
|
|
|
+ %entry,
|
|
|
|
|
+ entry,
|
|
|
|
|
+ button,
|
|
|
|
|
+ combobox > box > button.combo { border-top-color: $fg_color; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***********
|
|
|
|
|
* Buttons *
|
|
|
|
|
***********/
|
2014-12-01 18:06:02 +00:00
|
|
|
|
// stuff for .needs-attention
|
|
|
|
|
$_dot_color: $selected_bg_color;
|
|
|
|
|
|
|
|
|
|
@keyframes needs_attention {
|
2016-11-07 17:22:28 +00:00
|
|
|
|
from { background-image: radial-gradient($_dot_color 0%, transparentize($_dot_color, 1) 0%); }
|
|
|
|
|
to { background-image: radial-gradient($_dot_color 68%, transparentize($_dot_color, 1) 70%); }
|
2014-12-01 18:06:02 +00:00
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button {
|
2016-03-16 14:25:28 +00:00
|
|
|
|
@at-root %button_basic, & {
|
|
|
|
|
$_button_transition: all 200ms $ease-out-quad;
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
min-height: 24px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
transition: $_button_transition;
|
|
|
|
|
|
|
|
|
|
@include button(normal);
|
|
|
|
|
|
2017-10-06 01:15:59 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(insensitive);
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(insensitive-active); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(backdrop);
|
|
|
|
|
|
2017-11-15 23:08:46 +00:00
|
|
|
|
-gtk-icon-filter: none;
|
2017-10-06 01:15:59 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(backdrop-active); }
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(backdrop-insensitive-active); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
&.flat {
|
|
|
|
|
@include button(undecorated);
|
2017-10-06 01:15:59 +00:00
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
// 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;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
transition: $_button_transition;
|
|
|
|
|
transition-duration: 500ms;
|
|
|
|
|
|
|
|
|
|
&:active { transition: $_button_transition; }
|
|
|
|
|
}
|
2017-10-06 01:15:59 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
|
&:disabled,
|
2016-03-17 13:57:09 +00:00
|
|
|
|
&:backdrop:disabled {
|
|
|
|
|
@include button(undecorated-insensitive);
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2017-10-06 01:32:37 +00:00
|
|
|
|
&:hover,
|
|
|
|
|
&.flat:hover {
|
2016-03-16 14:25:28 +00:00
|
|
|
|
@include button(hover);
|
2016-12-31 00:29:14 +00:00
|
|
|
|
-gtk-icon-filter: brightness(1.2);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked {
|
|
|
|
|
@include button(active);
|
|
|
|
|
|
|
|
|
|
transition-duration: 50ms;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&.image-button {
|
|
|
|
|
min-width: 24px;
|
|
|
|
|
padding-left: 4px;
|
|
|
|
|
padding-right: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.text-button {
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
padding-right: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.text-button.image-button {
|
2016-03-16 13:32:14 +00:00
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:drop(active) {
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
border-color: $fg_color;
|
|
|
|
|
box-shadow: inset 0 0 0 1px $fg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-16 13:32:14 +00:00
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
@at-root %button_selected, & {
|
|
|
|
|
row:selected & {
|
|
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
|
|
|
|
|
|
&.flat:not(:active):not(:checked):not(:hover):not(disabled) {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
|
|
|
|
|
&:backdrop { color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// big standalone buttons like in Documents pager
|
|
|
|
|
&.osd {
|
|
|
|
|
&.image-button {
|
|
|
|
|
min-height: 48px;
|
|
|
|
|
min-width: 48px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
color: $osd_fg_color;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
|
|
|
|
@include button(osd);
|
|
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
@include button(osd-hover);
|
|
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked {
|
|
|
|
|
@include button(osd-active);
|
|
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
&:backdrop, & {
|
|
|
|
|
@include button(osd-insensitive);
|
|
|
|
|
|
|
|
|
|
border: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(osd-backdrop);
|
|
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 11:57:14 +00:00
|
|
|
|
//overlay / OSD style
|
|
|
|
|
@at-root %osd_button,
|
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd);
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { &:backdrop, & { @include button(osd-active); }}
|
|
|
|
|
|
|
|
|
|
&:disabled { &:backdrop, & { @include button(osd-insensitive); }}
|
|
|
|
|
|
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
|
|
|
|
|
|
&.flat {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
box-shadow: none; //FIXME respect no edge on the button mixin
|
|
|
|
|
text-shadow: 0 1px black;
|
|
|
|
|
-gtk-icon-shadow: 0 1px black;
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(osd-insensitive);
|
|
|
|
|
background-image: none;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop { @include button(undecorated); }
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(osd-active); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
// Suggested and Destructive Action buttons
|
2016-03-26 02:43:57 +00:00
|
|
|
|
@each $b_type, $b_color, $f_color in (suggested-action, $selected_bg_color, $selected_fg_color),
|
|
|
|
|
(destructive-action, $destructive_color, white) {
|
2016-03-16 14:25:28 +00:00
|
|
|
|
&.#{$b_type} {
|
2016-03-26 02:43:57 +00:00
|
|
|
|
@include button(normal, $b_color, $f_color);
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&.flat {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: $b_color; //FIXME: does it work on the dark variant?
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-26 02:43:57 +00:00
|
|
|
|
&:hover { @include button(hover, $b_color, $f_color); }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
2016-03-26 02:43:57 +00:00
|
|
|
|
&:checked { @include button(active, $b_color, $f_color); }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
|
&.flat:backdrop {
|
2016-03-26 02:43:57 +00:00
|
|
|
|
@include button(backdrop, $b_color, $f_color);
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
2016-03-26 02:43:57 +00:00
|
|
|
|
&:checked { @include button(backdrop-active, $b_color, $f_color); }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
|
|
|
|
|
|
&:active,
|
2016-03-26 02:43:57 +00:00
|
|
|
|
&:checked { @include button(backdrop-insensitive-active, $b_color, $f_color); }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.flat {
|
|
|
|
|
&:backdrop, &:disabled, &:backdrop:disabled {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: transparentize($b_color, 0.2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(insensitive);
|
|
|
|
|
|
|
|
|
|
&:active,
|
2016-03-26 02:43:57 +00:00
|
|
|
|
&:checked { @include button(insensitive-active, $b_color, $f_color); }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd, $b_color);
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover, $b_color); }
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { &:backdrop, & { @include button(osd-active, $b_color); }}
|
|
|
|
|
|
|
|
|
|
&:disabled { &:backdrop, & { @include button(osd-insensitive, $b_color); }}
|
|
|
|
|
|
|
|
|
|
&:backdrop { @include button(osd-backdrop, $b_color); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stack-switcher > & {
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
|
|
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
|
|
|
|
|
|
|
|
|
|
> label {
|
|
|
|
|
padding-left: 6px; // label padding
|
|
|
|
|
padding-right: 6px; //
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> image {
|
|
|
|
|
padding-left: 6px; // image padding
|
|
|
|
|
padding-right: 6px; //
|
|
|
|
|
padding-top: 3px; //
|
|
|
|
|
padding-bottom: 3px; //
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.text-button {
|
|
|
|
|
// compensate text-button paddings
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.image-button {
|
|
|
|
|
// we want image buttons to have a 1:1 aspect ratio, so compensation
|
|
|
|
|
// of the padding added to the GtkImage is needed
|
|
|
|
|
padding-left: 2px;
|
|
|
|
|
padding-right: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.needs-attention {
|
|
|
|
|
> label,
|
|
|
|
|
> image { @extend %needs_attention; }
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked {
|
|
|
|
|
> label,
|
|
|
|
|
> image {
|
|
|
|
|
animation: none;
|
|
|
|
|
background-image: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
//inline-toolbar buttons
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.inline-toolbar & { @extend %linked; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
.primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need shadows
|
2015-12-30 18:59:56 +00:00
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked:not(.vertical) > & { @extend %linked; }
|
|
|
|
|
|
|
|
|
|
.linked.vertical > & { @extend %linked_vertical; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-12-01 18:06:02 +00:00
|
|
|
|
%needs_attention {
|
|
|
|
|
animation: needs_attention 150ms ease-in;
|
2016-11-07 17:22:28 +00:00
|
|
|
|
background-image: radial-gradient($_dot_color 68%, transparentize($_dot_color,1 ) 70%);
|
2016-03-17 10:36:37 +00:00
|
|
|
|
background-size: 6px 6px;
|
2014-12-01 18:06:02 +00:00
|
|
|
|
background-repeat: no-repeat;
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2016-03-17 10:36:37 +00:00
|
|
|
|
background-position: right 3px;
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2016-03-17 10:36:37 +00:00
|
|
|
|
&:backdrop { background-size: 6px 6px;}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2016-03-17 10:36:37 +00:00
|
|
|
|
&:dir(rtl) { background-position: left 3px; }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// all the following is for the +|- buttons on inline toolbars, that way
|
|
|
|
|
// should really be deprecated...
|
|
|
|
|
.inline-toolbar toolbutton > button { // redefining the button look is
|
|
|
|
|
// needed since those are flat...
|
|
|
|
|
@include button(normal);
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(hover); }
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked{ @include button(active); }
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(insensitive);
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(insensitive-active); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(backdrop);
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(backdrop-active); }
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(backdrop-insensitive-active); }
|
|
|
|
|
}
|
2014-12-01 18:06:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
// More inline toolbar buttons
|
2019-04-08 15:40:38 +00:00
|
|
|
|
toolbar.inline-toolbar toolbutton {
|
|
|
|
|
&:not(:first-child) > button.flat { @extend %linked:not(:first-child); }
|
|
|
|
|
&:not(:last-child) > button.flat { @extend %linked:not(:last-child); }
|
2016-03-16 14:25:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
%linked_not_left {
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-bottom-left-radius: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
%linked_not_right {
|
|
|
|
|
border-right-style: none;
|
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
themes: Fix swapped borders on RTL PathBar buttons
.linked assumes the container is a GtkBox, which is documented as never
flipping children in RTL, so :first-child is always the left child, etc.
GtkBox does that by reordering its CSS nodes when the direction changes.
But most widgets don’t do that, so :first|last-child are 1st/last ADDED
and swap sides in RTL. GtkPathBar is so, and ignoring that in our themes
meant that in RTL, its left/right buttons got each other’s borders. Yuk!
This patch adds the groundwork for supporting widgets like that, via the
%linked_flippable placeholder, and applies that to override buttons in
filechooser .path-bar.linked > button
so that the correct borders get applied to those buttons when using RTL.
Note that I select only PathBars within a FileChooser because we also
have NautilusPathBar, which also uses widget.path-bar – but *does* flip
its nodes for RTL already, so letting that get affected broke it again!
https://bugzilla.gnome.org/show_bug.cgi?id=772817
2018-04-22 20:45:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-06-18 17:39:32 +00:00
|
|
|
|
// 1st/last child are at text start/end
|
themes: Fix swapped borders on RTL PathBar buttons
.linked assumes the container is a GtkBox, which is documented as never
flipping children in RTL, so :first-child is always the left child, etc.
GtkBox does that by reordering its CSS nodes when the direction changes.
But most widgets don’t do that, so :first|last-child are 1st/last ADDED
and swap sides in RTL. GtkPathBar is so, and ignoring that in our themes
meant that in RTL, its left/right buttons got each other’s borders. Yuk!
This patch adds the groundwork for supporting widgets like that, via the
%linked_flippable placeholder, and applies that to override buttons in
filechooser .path-bar.linked > button
so that the correct borders get applied to those buttons when using RTL.
Note that I select only PathBars within a FileChooser because we also
have NautilusPathBar, which also uses widget.path-bar – but *does* flip
its nodes for RTL already, so letting that get affected broke it again!
https://bugzilla.gnome.org/show_bug.cgi?id=772817
2018-04-22 20:45:18 +00:00
|
|
|
|
%linked {
|
|
|
|
|
&:dir(ltr) {
|
2019-04-08 15:40:38 +00:00
|
|
|
|
&:not(:first-child) { @extend %linked_not_left; }
|
|
|
|
|
&:not(:last-child) { @extend %linked_not_right; }
|
themes: Fix swapped borders on RTL PathBar buttons
.linked assumes the container is a GtkBox, which is documented as never
flipping children in RTL, so :first-child is always the left child, etc.
GtkBox does that by reordering its CSS nodes when the direction changes.
But most widgets don’t do that, so :first|last-child are 1st/last ADDED
and swap sides in RTL. GtkPathBar is so, and ignoring that in our themes
meant that in RTL, its left/right buttons got each other’s borders. Yuk!
This patch adds the groundwork for supporting widgets like that, via the
%linked_flippable placeholder, and applies that to override buttons in
filechooser .path-bar.linked > button
so that the correct borders get applied to those buttons when using RTL.
Note that I select only PathBars within a FileChooser because we also
have NautilusPathBar, which also uses widget.path-bar – but *does* flip
its nodes for RTL already, so letting that get affected broke it again!
https://bugzilla.gnome.org/show_bug.cgi?id=772817
2018-04-22 20:45:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
2019-04-08 15:40:38 +00:00
|
|
|
|
&:not(:first-child) { @extend %linked_not_right; }
|
|
|
|
|
&:not(:last-child) { @extend %linked_not_left; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
%linked_vertical{
|
2019-04-08 15:40:38 +00:00
|
|
|
|
&:not(:first-child) {
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-top-right-radius: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
&:not(:last-child) {
|
|
|
|
|
border-bottom-style: none;
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%undecorated_button {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
2016-03-16 14:25:28 +00:00
|
|
|
|
border-color: transparent;
|
|
|
|
|
box-shadow: inset 0 1px transparentize(white,1),
|
|
|
|
|
0 1px transparentize(white, 1);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
text-shadow: none;
|
2015-11-21 01:32:42 +00:00
|
|
|
|
-gtk-icon-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* menu buttons */
|
2015-10-30 04:38:43 +00:00
|
|
|
|
modelbutton.flat,
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.menuitem.button.flat {
|
2016-03-16 11:57:14 +00:00
|
|
|
|
min-height: 26px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
outline-offset: -2px;
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %undecorated_button;
|
2016-03-16 11:57:14 +00:00
|
|
|
|
|
|
|
|
|
&:hover { background-color: $popover_hover_color; }
|
|
|
|
|
|
|
|
|
|
&:selected { @extend %selected_items; }
|
|
|
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
|
&:backdrop:hover { @extend %undecorated_button; }
|
|
|
|
|
|
|
|
|
|
// 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-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 11:57:14 +00:00
|
|
|
|
modelbutton.flat arrow {
|
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
|
|
&:hover { background: none; }
|
|
|
|
|
|
|
|
|
|
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
|
|
|
|
|
|
|
|
|
|
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button.color {
|
|
|
|
|
padding: 4px;
|
|
|
|
|
|
|
|
|
|
colorswatch:only-child {
|
|
|
|
|
&, overlay { border-radius: 0; }
|
|
|
|
|
|
|
|
|
|
@if $variant == 'light' {
|
|
|
|
|
&:disabled,
|
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/*********
|
|
|
|
|
* Links *
|
|
|
|
|
*********/
|
|
|
|
|
|
|
|
|
|
*:link {
|
|
|
|
|
color: $selected_bg_color; //FIXME use a proper color
|
|
|
|
|
&:hover, &:active, &:visited {
|
|
|
|
|
color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
|
|
|
|
|
}
|
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
|
color: $selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button:link, button:visited {
|
2015-07-29 10:34:44 +00:00
|
|
|
|
color: $suggested_color;
|
|
|
|
|
font-weight: bold;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
&:hover, &:active {
|
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@extend %undecorated_button; //This shouldn't be needed but avoids
|
|
|
|
|
//a weird transition which for some reason
|
|
|
|
|
//makes borders blink on hover
|
|
|
|
|
color: $selected_bg_color; //FIXME use a proper color
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
|
* GtkSpinButton *
|
|
|
|
|
*****************/
|
2015-10-30 04:38:43 +00:00
|
|
|
|
spinbutton {
|
2016-03-16 14:15:20 +00:00
|
|
|
|
&:not(.vertical) {
|
|
|
|
|
// 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;
|
|
|
|
|
border-width: 2px;
|
|
|
|
|
border-color: $borders_color;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
box-shadow: none;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
padding: 0;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
|
2019-02-20 13:08:44 +00:00
|
|
|
|
text {
|
2016-03-16 14:15:20 +00:00
|
|
|
|
min-width: 28px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
2015-08-01 00:21:30 +00:00
|
|
|
|
box-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
color: mix($fg_color, $base_color, 90%);
|
|
|
|
|
background-image: none;
|
|
|
|
|
border-style: none none none solid;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
2016-01-05 15:55:34 +00:00
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled { color: transparentize($insensitive_fg_color, 0.7); }
|
|
|
|
|
|
|
|
|
|
&:active {
|
2016-03-18 14:44:27 +00:00
|
|
|
|
background-color: $osd_bg_color;
|
|
|
|
|
color: $osd_fg_color;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-color: transparentize($backdrop_borders_color, 0.7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop:disabled {
|
|
|
|
|
color: $insensitive_bg_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
border-style: none none none solid; // It is needed or it gets overridden
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
// OSD horizontal
|
|
|
|
|
.osd &:not(.vertical) {
|
2016-03-18 14:22:16 +00:00
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
|
color: $fg_color;
|
2016-03-18 14:30:46 +00:00
|
|
|
|
box-shadow: none;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
|
|
|
|
|
&:focus, &:active {
|
|
|
|
|
border-color: opacify($osd_borders_color,0.5);
|
|
|
|
|
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-20 13:08:44 +00:00
|
|
|
|
text {
|
2016-03-18 14:30:46 +00:00
|
|
|
|
box-shadow: none;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
color: $fg_color;
|
|
|
|
|
text-shadow: none;
|
2016-03-18 14:30:46 +00:00
|
|
|
|
&:focus, &:active {
|
|
|
|
|
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
|
|
|
|
}
|
2016-03-18 14:22:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button {
|
2016-03-16 14:15:20 +00:00
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
2016-03-18 14:22:16 +00:00
|
|
|
|
color: $fg_color;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
border-style: none none none solid;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
border-color: transparentize($borders_color,0.8);
|
2016-03-16 14:15:20 +00:00
|
|
|
|
border-radius: 0;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
|
|
|
|
|
2016-03-18 14:44:27 +00:00
|
|
|
|
&:active {
|
|
|
|
|
background-color: $osd_bg_color;
|
|
|
|
|
color: $osd_fg_color;
|
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@include button(undecorated);
|
2016-03-18 14:22:16 +00:00
|
|
|
|
|
|
|
|
|
border-style: none none none solid;
|
|
|
|
|
border-color: transparentize($borders_color,0.8);
|
2016-03-16 14:15:20 +00:00
|
|
|
|
background-color: transparentize($osd_fg_color, 0.9);
|
|
|
|
|
box-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
2016-03-18 14:30:46 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
border-color: transparentize($borders_color,0.9);
|
2016-03-16 14:15:20 +00:00
|
|
|
|
box-shadow: none;
|
2016-03-18 14:30:46 +00:00
|
|
|
|
border-style: none none none solid;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
&:disabled {
|
2016-03-18 14:22:16 +00:00
|
|
|
|
//@include button(undecorated);
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
color: $insensitive_fg_color;
|
2016-03-18 14:22:16 +00:00
|
|
|
|
border-color: transparentize($borders_color,0.9);
|
2016-03-18 14:30:46 +00:00
|
|
|
|
border-style: none none none solid;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
box-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
|
|
|
|
&:last-child { border-radius: 0 3px 3px 0; }
|
|
|
|
|
|
|
|
|
|
&:dir(rtl):first-child { border-radius: 3px 0 0 3px; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Vertical
|
|
|
|
|
&.vertical {
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
|
|
// FIXME: this should not be set at all, but otherwise it gets the wrong
|
|
|
|
|
// color
|
|
|
|
|
border-width: 2px;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
|
|
|
|
|
&:disabled { color: $insensitive_fg_color; }
|
|
|
|
|
&:backdrop:disabled { color: $insensitive_fg_color; }
|
|
|
|
|
|
|
|
|
|
&:drop(active) {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-20 13:08:44 +00:00
|
|
|
|
text {
|
|
|
|
|
@extend %entry;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
min-height: 32px;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
padding: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-radius: 0;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
&.up { @extend %top_button; }
|
|
|
|
|
|
|
|
|
|
&.down { @extend %bottom_button; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
%top_button {
|
2019-04-08 15:40:38 +00:00
|
|
|
|
border-bottom-style: none;
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:15:20 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
%bottom_button {
|
2019-04-08 15:40:38 +00:00
|
|
|
|
border-top-style: none;
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-top-right-radius: 0;
|
2016-03-16 14:15:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OSD vertical
|
|
|
|
|
.osd &.vertical button:first-child {
|
|
|
|
|
@include button(osd);
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover);}
|
|
|
|
|
|
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
|
|
|
|
|
|
&:disabled { @include button(osd-insensitive); }
|
|
|
|
|
|
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Misc
|
|
|
|
|
treeview & {
|
|
|
|
|
entry,
|
|
|
|
|
entry:focus {
|
|
|
|
|
padding: 1px;
|
|
|
|
|
border-width: 1px 0;
|
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
box-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************
|
|
|
|
|
* ComboBoxes *
|
|
|
|
|
**************/
|
2015-11-02 19:26:50 +00:00
|
|
|
|
combobox {
|
2016-03-16 14:25:28 +00:00
|
|
|
|
arrow {
|
2016-01-05 04:52:28 +00:00
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&.linked {
|
2019-04-08 15:40:38 +00:00
|
|
|
|
button:nth-child(2) { @extend %linked:not(:first-child); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
&:drop(active) { // FIXME: untested
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
|
|
button.combo { @extend %button_basic:drop(active); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
// the combo is a composite widget so the way we do button linking doesn't
|
|
|
|
|
// work, special case needed. See
|
|
|
|
|
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked:not(.vertical) > combobox {
|
|
|
|
|
&:not(:first-child) > box > button.combo { @extend %linked:not(:first-child); }
|
|
|
|
|
&:not(:last-child) > box > button.combo { @extend %linked:not(:last-child); }
|
2015-11-02 19:26:50 +00:00
|
|
|
|
}
|
2014-12-01 16:45:26 +00:00
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked.vertical > combobox {
|
|
|
|
|
&:not(:first-child) > box > button.combo { @extend %linked_vertical:not(:first-child); }
|
|
|
|
|
&:not(:last-child) > box > button.combo { @extend %linked_vertical:not(:last-child); }
|
|
|
|
|
}
|
2016-03-16 14:25:28 +00:00
|
|
|
|
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/************
|
|
|
|
|
* Toolbars *
|
|
|
|
|
************/
|
2015-11-01 00:43:07 +00:00
|
|
|
|
toolbar { //FIXME: why is all this being ignored?
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 6px;
|
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
&.osd {
|
|
|
|
|
background-color: $osd_bg_color;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
padding: 12px;
|
2015-10-23 03:26:53 +00:00
|
|
|
|
& label { color: $osd_fg_color; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
//searchbar & inline-toolbar
|
|
|
|
|
&.inline-toolbar {
|
|
|
|
|
@extend %inset-bar;
|
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
|
padding: 3px;
|
|
|
|
|
border-radius: 0 0 4px 4px;
|
|
|
|
|
}
|
2014-12-02 14:00:30 +00:00
|
|
|
|
&.vertical {
|
|
|
|
|
border-right: 1px solid $borders_color;
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
border-right: none;
|
|
|
|
|
border-left: 1px solid $borders_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-05 12:45:39 +00:00
|
|
|
|
searchbar {
|
2016-01-06 03:33:20 +00:00
|
|
|
|
@extend toolbar;
|
2015-11-05 12:45:39 +00:00
|
|
|
|
border-width: 0 0 1px;
|
2016-01-06 03:33:20 +00:00
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
border-style: none none solid none;
|
2015-11-05 12:45:39 +00:00
|
|
|
|
padding: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
%inset-bar {
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
$_bg: mix($bg_color, $borders_color, 70%);
|
|
|
|
|
background-color: $_bg;
|
|
|
|
|
box-shadow: inset 0 2px 3px -1px mix($borders_color, $_bg, 60%);
|
|
|
|
|
//FIXME edge would be nice, but doesn't work
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: mix($backdrop_borders_color,$backdrop_bg_color, 35%);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***************
|
|
|
|
|
* Header bars *
|
|
|
|
|
***************/
|
|
|
|
|
|
2017-09-11 20:51:57 +00:00
|
|
|
|
%titlebar,
|
2015-10-30 05:09:18 +00:00
|
|
|
|
headerbar {
|
2017-09-22 14:52:23 +00:00
|
|
|
|
min-height: 46px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
border-radius: 7px 7px 0 0;
|
|
|
|
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
|
lighten($bg_color,4%),
|
|
|
|
|
$bg_color);
|
|
|
|
|
box-shadow: inset 0 -1px mix($borders_color, $bg_color, 30%), // bottom shade
|
|
|
|
|
inset 0 1px $borders_edge; // top highlight
|
|
|
|
|
padding: 6px;
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
2016-04-18 18:17:55 +00:00
|
|
|
|
font-weight: bold;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 0px 12px;
|
|
|
|
|
}
|
|
|
|
|
.subtitle {
|
|
|
|
|
font-size: 80%;
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
}
|
2017-09-04 23:58:00 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.selection-mode {
|
|
|
|
|
color: darken($selected_bg_color, 15%);
|
|
|
|
|
text-shadow: 0 1px transparentize(black, 0.5);
|
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
|
lighten($selected_bg_color,5%),
|
|
|
|
|
lighten($selected_bg_color,2%));
|
|
|
|
|
box-shadow: inset 0 -1px mix($borders_color,$bg_color, 30%), //bottom shade
|
|
|
|
|
inset 0 1px mix($borders_edge,$selected_bg_color, 50%); //top highlight
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, $edge: none);
|
|
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color, $edge: none); }
|
|
|
|
|
&:active { @include button(active, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled { @include button(insensitive, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2014-11-29 17:46:06 +00:00
|
|
|
|
&:backdrop {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(backdrop, $selected_bg_color, $selected_fg_color, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: darken($selected_bg_color, 15%);
|
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:backdrop:disabled { @include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.suggested-action {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button($t:normal, $edge: none);
|
|
|
|
|
&:hover { @include button($t:hover,$edge: none); }
|
|
|
|
|
&:active { @include button($t:active, $edge: none); }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled { @include button($t:insensitive, $edge: none); }
|
2014-12-01 18:06:02 +00:00
|
|
|
|
&:backdrop { @include button($t:backdrop, $edge: none); }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:backdrop:disabled { @include button($t:backdrop-insensitive, $edge: none); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.selection-menu {
|
|
|
|
|
border-width: 0;
|
|
|
|
|
background-image: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-05-31 07:16:51 +00:00
|
|
|
|
|
|
|
|
|
// squared corners when the window is maximized, tiled, or fullscreen
|
|
|
|
|
.tiled &,
|
|
|
|
|
.maximized &,
|
|
|
|
|
.fullscreen & {
|
|
|
|
|
border-radius: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2017-09-22 14:52:23 +00:00
|
|
|
|
|
|
|
|
|
&.default-decoration {
|
|
|
|
|
min-height: 28px;
|
|
|
|
|
padding: 4px;
|
|
|
|
|
|
|
|
|
|
button.titlebutton {
|
|
|
|
|
min-height: 26px;
|
|
|
|
|
min-width: 26px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-09-11 20:51:57 +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;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
|
|
|
|
border-style: none;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@extend %titlebar;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-09-03 14:46:36 +00:00
|
|
|
|
/************
|
|
|
|
|
* Pathbars *
|
|
|
|
|
************/
|
|
|
|
|
|
2015-10-30 04:38:43 +00:00
|
|
|
|
.path-bar button {
|
2015-09-03 14:46:36 +00:00
|
|
|
|
padding: 5px 6px 6px;
|
|
|
|
|
&:first-child { padding-left: 8px; }
|
|
|
|
|
&:last-child { padding-right: 8px; }
|
|
|
|
|
&:only-child {
|
|
|
|
|
padding-left: 12px;
|
|
|
|
|
padding-right: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// the following is for spacing the icon and the label inside the home button
|
2015-10-23 03:26:53 +00:00
|
|
|
|
& label:last-child { padding-left: 2px; }
|
|
|
|
|
& label:first-child { padding-right: 2px; }
|
|
|
|
|
& label:only-child { padding-right: 0; padding-left: 0; }
|
2015-10-23 04:05:46 +00:00
|
|
|
|
image { padding-top: 1px; }
|
2015-09-03 14:46:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/**************
|
|
|
|
|
* Tree Views *
|
|
|
|
|
**************/
|
2015-10-30 21:38:04 +00:00
|
|
|
|
treeview.view {
|
2015-07-29 11:24:11 +00:00
|
|
|
|
|
|
|
|
|
border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color,
|
|
|
|
|
border-top-color: $bg_color; // while this is the grid lines color, better then nothing
|
|
|
|
|
|
2015-11-10 12:31:32 +00:00
|
|
|
|
& rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
|
2015-07-29 11:24:11 +00:00
|
|
|
|
|
2015-11-14 23:29:27 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
2015-07-29 11:24:11 +00:00
|
|
|
|
|
|
|
|
|
&:selected, &:backdrop:selected {
|
|
|
|
|
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
|
|
|
|
|
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2015-07-29 11:24:11 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
&:selected {
|
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 40%);
|
|
|
|
|
&:backdrop { color: mix($selected_fg_color, $selected_bg_color, 50%); }
|
|
|
|
|
}
|
2015-07-30 11:54:29 +00:00
|
|
|
|
&:backdrop { color: $insensitive_fg_color; }
|
2015-07-29 11:24:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.separator:backdrop {
|
2015-12-30 18:59:56 +00:00
|
|
|
|
min-height: 2px;
|
2015-07-29 11:24:11 +00:00
|
|
|
|
color: transparentize(black, 0.9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
|
border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
|
|
|
|
border-top: $backdrop_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.dnd {
|
|
|
|
|
border-style: solid none;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-color: mix($fg_color, $selected_bg_color, 50%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.expander {
|
2018-06-20 20:11:59 +00:00
|
|
|
|
// GtkTreeView uses the larger of the expander’s min-width and min-height
|
2018-06-21 13:49:10 +00:00
|
|
|
|
min-width: 24px;
|
|
|
|
|
min-height: 24px;
|
2015-07-29 11:24:11 +00:00
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
|
|
|
|
color: mix($fg_color, $base_color, 70%);
|
|
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
|
&:selected {
|
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 70%);
|
|
|
|
|
&:hover { color: $selected_fg_color; }
|
|
|
|
|
&:backdrop { color: mix($selected_fg_color, $selected_bg_color, 70%); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
|
|
|
|
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.progressbar { // progress bar in treeviews
|
|
|
|
|
color: $base_color;
|
|
|
|
|
|
|
|
|
|
border: 1px solid $selected_borders_color;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-color: $fg_color;
|
|
|
|
|
|
|
|
|
|
&:selected { color: $selected_bg_color; }
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $selected_bg_color;
|
|
|
|
|
border-color: $selected_borders_color; // otherwise it gets inherited by .view(?!?)
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.trough { // progress bar trough in treeviews
|
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
|
background-color: transparentize($selected_fg_color, 0.7);
|
|
|
|
|
border-width: 1px 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-30 21:38:04 +00:00
|
|
|
|
header {
|
|
|
|
|
button {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %column_header_button;
|
2015-10-30 21:38:04 +00:00
|
|
|
|
$_column_header_color: mix($fg_color,$base_color,50%);
|
|
|
|
|
color: $_column_header_color;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
box-shadow: none;
|
2015-10-30 21:38:04 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@extend %column_header_button;
|
|
|
|
|
color: mix($_column_header_color,$fg_color,50%);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
&:active {
|
|
|
|
|
@extend %column_header_button;
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-01-05 19:19:58 +00:00
|
|
|
|
& button:last-child,
|
|
|
|
|
& button:last-child:hover,
|
|
|
|
|
& button:last-child:backdrop { //treeview-like derived widgets in Banshee and Evolution
|
2015-10-30 21:38:04 +00:00
|
|
|
|
border-right-style: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%column_header_button {
|
2016-01-05 19:19:58 +00:00
|
|
|
|
padding: 3px 6px;
|
|
|
|
|
border-style: none solid solid none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-radius: 0;
|
2016-01-05 21:54:40 +00:00
|
|
|
|
border-width: 1px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-image: none;
|
2016-01-05 19:19:58 +00:00
|
|
|
|
border-color: mix($backdrop_fg_color, $backdrop_bg_color,50%);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
text-shadow: none;
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: $bg_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
2016-01-05 19:19:58 +00:00
|
|
|
|
border-color: mix($backdrop_fg_color, $backdrop_bg_color,50%);
|
|
|
|
|
border-style: none solid solid none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_bg_color,50%);
|
|
|
|
|
background-image: none;
|
2016-01-05 19:19:58 +00:00
|
|
|
|
background-color: $backdrop_base_color;
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: $backdrop_bg_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-30 21:38:04 +00:00
|
|
|
|
|
|
|
|
|
treeview.view.progressbar { //Progressbar in treeview cells
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: $base_color;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
|
$selected_bg_color,
|
|
|
|
|
darken($selected_bg_color,10%));
|
|
|
|
|
&:selected {
|
|
|
|
|
color: $selected_bg_color;
|
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
|
$base_color,
|
|
|
|
|
darken($base_color,10%));
|
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $selected_bg_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $backdrop_base_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*********
|
|
|
|
|
* Menus *
|
|
|
|
|
*********/
|
2016-01-05 12:40:39 +00:00
|
|
|
|
menubar,
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.menubar {
|
|
|
|
|
padding: 0px;
|
2016-03-17 12:00:32 +00:00
|
|
|
|
box-shadow: inset 0 -1px $borders_color;
|
2016-01-05 12:40:39 +00:00
|
|
|
|
& > menuitem {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
&:hover { //Seems like it :hover even with keyboard focus
|
|
|
|
|
box-shadow: inset 0 -3px $selected_bg_color;
|
|
|
|
|
color: $selected_bg_color;
|
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-03 02:34:14 +00:00
|
|
|
|
menu,
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.menu {
|
2016-01-05 12:40:39 +00:00
|
|
|
|
margin: 4px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 0px;
|
|
|
|
|
background-color: $base_color;
|
2016-01-05 12:40:39 +00:00
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
& menuitem {
|
|
|
|
|
text-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 4px;
|
2016-01-05 12:40:39 +00:00
|
|
|
|
min-width: 40px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
2015-03-20 12:22:47 +00:00
|
|
|
|
&:backdrop { color: $insensitive_fg_color; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
}
|
|
|
|
|
//submenu indicators
|
2015-12-18 05:41:40 +00:00
|
|
|
|
& arrow {
|
2015-12-18 05:54:46 +00:00
|
|
|
|
min-height: 16px;
|
|
|
|
|
min-width: 16px;
|
2015-12-18 05:41:40 +00:00
|
|
|
|
}
|
2016-01-05 12:40:39 +00:00
|
|
|
|
& arrow:dir(ltr) {
|
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
2015-12-18 05:41:40 +00:00
|
|
|
|
& arrow:dir(rtl) {
|
2016-01-05 12:40:39 +00:00
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl');
|
2015-12-18 05:41:40 +00:00
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
2015-12-18 03:24:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2016-01-05 12:40:39 +00:00
|
|
|
|
menuitem {
|
|
|
|
|
& check,
|
|
|
|
|
& radio {
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
&:dir(ltr) { margin-right: 7px; }
|
|
|
|
|
&:dir(rtl) { margin-left: 7px; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/***************
|
|
|
|
|
* Popovers *
|
|
|
|
|
***************/
|
|
|
|
|
|
2016-03-16 11:57:14 +00:00
|
|
|
|
popover.background {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 2px;
|
|
|
|
|
border-radius: 5px;
|
2016-03-16 11:57:14 +00:00
|
|
|
|
background-color: $popover_bg_color;
|
|
|
|
|
|
|
|
|
|
&, .csd & { border: 1px solid $borders_color; }
|
|
|
|
|
|
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.7);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop {
|
2016-03-16 11:57:14 +00:00
|
|
|
|
background-color: $backdrop_bg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-03-16 11:57:14 +00:00
|
|
|
|
|
|
|
|
|
> list,
|
|
|
|
|
> .view,
|
|
|
|
|
> toolbar {
|
|
|
|
|
border-style: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
2016-03-16 11:57:14 +00:00
|
|
|
|
|
|
|
|
|
&, .csd & {
|
|
|
|
|
&.touch-selection,
|
|
|
|
|
&.magnifier {
|
|
|
|
|
@extend %osd;
|
|
|
|
|
|
|
|
|
|
border: 1px solid transparentize(white, 0.9);
|
|
|
|
|
|
|
|
|
|
button { @extend %osd_button };
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 11:57:14 +00:00
|
|
|
|
|
|
|
|
|
&.osd { @extend %osd; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-16 11:57:14 +00:00
|
|
|
|
|
|
|
|
|
separator { margin: 3px; }
|
|
|
|
|
|
|
|
|
|
list separator { margin: 0px; }
|
|
|
|
|
|
|
|
|
|
checkbutton,
|
|
|
|
|
radiobutton { @extend modelbutton.flat; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
|
* Notebooks and *
|
|
|
|
|
* Tabs *
|
|
|
|
|
*****************/
|
|
|
|
|
|
2015-10-27 02:11:56 +00:00
|
|
|
|
notebook {
|
2015-10-24 14:20:27 +00:00
|
|
|
|
// Through me you go to the grief wracked city;
|
|
|
|
|
// Through me you go to everlasting pain;
|
|
|
|
|
// Through me you go a pass among lost souls.
|
|
|
|
|
// ...
|
|
|
|
|
// Abandon all hope — Ye Who Enter Here
|
|
|
|
|
padding: 0;
|
|
|
|
|
background-color: $base_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
transition: all 200ms ease-out;
|
|
|
|
|
&:backdrop {
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
}
|
|
|
|
|
&.frame {
|
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
|
|
|
|
}
|
2015-11-09 01:59:55 +00:00
|
|
|
|
& header {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// FIXME: double borders in some case, can't fix it w/o a class tho
|
|
|
|
|
// FIXME: doesn't work on dark var
|
|
|
|
|
background-color: mix($bg_color, $borders_color, 70%);
|
|
|
|
|
|
|
|
|
|
// this is the shading of the header behind the tabs
|
2015-11-07 16:31:24 +00:00
|
|
|
|
.frame & {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
&.top { border-bottom-width: 0; }
|
|
|
|
|
&.bottom { border-top-width: 0; }
|
|
|
|
|
&.right { border-left-width: 0; }
|
|
|
|
|
&.left { border-right-width: 0; }
|
|
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$_header_shade: inset 0 2px 3px -1px transparentize(black, 0.85);
|
|
|
|
|
&.top {
|
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
|
inset 0 -1px $borders_color; // border
|
|
|
|
|
&:backdrop { box-shadow: inset 0 -1px $backdrop_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
&.bottom {
|
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
|
inset 0 1px $borders_color;
|
|
|
|
|
&:backdrop { box-shadow: inset 0 1px $backdrop_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
&.right {
|
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
|
inset 1px 0 $borders_color;
|
|
|
|
|
&:backdrop { box-shadow: inset 1px 0 $backdrop_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
&.left {
|
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
|
inset -1px 0 $borders_color;
|
|
|
|
|
&:backdrop { box-shadow: inset -1px 0 $backdrop_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
|
|
|
|
// same color as backdrop pushed button
|
|
|
|
|
background-color: mix($backdrop_borders_color,$backdrop_bg_color, 35%);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2015-11-09 01:59:55 +00:00
|
|
|
|
& tabs arrow {
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
&:hover { color: mix($fg_color, $insensitive_fg_color, 50%); }
|
2016-02-27 02:48:46 +00:00
|
|
|
|
&:checked { color: $fg_color; }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled { color: transparentize($insensitive_fg_color,0.7); }
|
2015-11-09 01:59:55 +00:00
|
|
|
|
&:backdrop { color: transparentize($backdrop_fg_color,0.6); }
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-11-07 16:31:24 +00:00
|
|
|
|
//vertical tab sizing
|
|
|
|
|
$vt_vpadding: 8px;
|
|
|
|
|
$vt_hpadding: 20px;
|
|
|
|
|
// horizontal tab sizing
|
|
|
|
|
$ht_vpadding: 5px;
|
|
|
|
|
$ht_hpadding: 20px;
|
|
|
|
|
$tab_indicator_size: 3px;
|
|
|
|
|
|
|
|
|
|
& header.top tab {
|
|
|
|
|
padding: $vt_vpadding $vt_hpadding;
|
|
|
|
|
border-bottom-width: $tab_indicator_size;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.reorderable-page {
|
2015-11-07 16:31:24 +00:00
|
|
|
|
padding-left: 12px; // for a nicer close button
|
|
|
|
|
padding-right: 12px; // placement
|
|
|
|
|
border-left-width: 1px;
|
|
|
|
|
border-right-width: 1px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-11-07 16:31:24 +00:00
|
|
|
|
}
|
|
|
|
|
& header.bottom tab {
|
|
|
|
|
padding: $vt_vpadding $vt_hpadding;
|
|
|
|
|
border-top-width: $tab_indicator_size;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.reorderable-page {
|
2015-11-07 16:31:24 +00:00
|
|
|
|
padding-left: 12px; // for a nicer close button
|
|
|
|
|
padding-right: 12px; // placement
|
|
|
|
|
border-left-width: 1px;
|
|
|
|
|
border-right-width: 1px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-11-07 16:31:24 +00:00
|
|
|
|
}
|
|
|
|
|
& header.left tab {
|
|
|
|
|
padding: $ht_vpadding $ht_hpadding;
|
|
|
|
|
border-right-width: $tab_indicator_size;
|
|
|
|
|
&.reorderable-page {
|
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
|
border-top-width: 1px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-11-07 16:31:24 +00:00
|
|
|
|
}
|
|
|
|
|
& header.right tab {
|
|
|
|
|
padding: $ht_vpadding $ht_hpadding;
|
|
|
|
|
border-left-width: $tab_indicator_size;
|
|
|
|
|
&.reorderable-page {
|
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
|
border-top-width: 1px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-11-07 16:31:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& tab {
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
|
|
outline-offset: 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
//here's the interesting stuff
|
2015-09-07 10:30:44 +00:00
|
|
|
|
&:hover {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
}
|
2016-02-27 02:48:46 +00:00
|
|
|
|
&:checked, &:backdrop:checked {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
@each $_tab, $_border in (top, bottom),
|
|
|
|
|
(bottom, top),
|
|
|
|
|
(left, right),
|
|
|
|
|
(right, left) {
|
2015-11-07 16:31:24 +00:00
|
|
|
|
.#{$_tab} &.reorderable-page {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: transparent;
|
2015-09-07 10:30:44 +00:00
|
|
|
|
&:hover {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: transparentize($borders_color,0.7);
|
|
|
|
|
border-#{$_border}-color: $borders_color;
|
|
|
|
|
background-color: transparentize($bg_color,0.8);
|
|
|
|
|
}
|
2016-02-27 02:48:46 +00:00
|
|
|
|
&:checked {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-color: transparentize($bg_color,0.5);
|
|
|
|
|
border-color: transparentize($borders_color,0.5);
|
|
|
|
|
border-#{$_border}-color: $selected_bg_color;
|
|
|
|
|
&:hover { background-color: transparentize($bg_color,0.3); }
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
|
border-#{$_border}-color: $selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-30 04:38:43 +00:00
|
|
|
|
label { //tab text
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 0 2px; // needed for a nicer focus ring
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: $insensitive_fg_color; /* color: inherit doesn't work here */
|
2015-09-07 10:30:44 +00:00
|
|
|
|
&:backdrop {
|
2015-03-20 12:22:47 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-30 04:38:43 +00:00
|
|
|
|
&:hover label {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// prelight tab text
|
|
|
|
|
color: mix($fg_color, $insensitive_fg_color, 50%);
|
|
|
|
|
}
|
2016-02-27 02:48:46 +00:00
|
|
|
|
&:checked label {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// active tab text
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
|
|
|
|
}
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button { //tab close button
|
2015-04-10 14:27:40 +00:00
|
|
|
|
border: 2px solid transparent;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %undecorated_button;
|
2015-11-21 01:32:42 +00:00
|
|
|
|
-gtk-icon-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
transition: none;
|
|
|
|
|
color: transparentize($fg_color,0.7);
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $fg_color;
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(hover, $edge: none);
|
2015-04-10 14:27:40 +00:00
|
|
|
|
border-width: 2px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-image: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-02-27 02:48:46 +00:00
|
|
|
|
&:checked {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(active, $edge: none);
|
2015-04-10 14:27:40 +00:00
|
|
|
|
border-width: 2px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-04-10 14:27:40 +00:00
|
|
|
|
&:backdrop, &:backdrop:hover {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: transparentize($backdrop_fg_color,0.7);
|
|
|
|
|
border-color: transparent;
|
2015-04-10 14:27:40 +00:00
|
|
|
|
border-width: 2px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-10-23 04:05:46 +00:00
|
|
|
|
& > image { // this is a hack which makes tabs grow
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//.notebook > .frame,
|
|
|
|
|
//.notebook > .view { border: none; }
|
|
|
|
|
|
|
|
|
|
/**************
|
|
|
|
|
* Scrollbars *
|
|
|
|
|
**************/
|
2015-11-05 05:29:14 +00:00
|
|
|
|
scrollbar {
|
2016-03-18 12:53:30 +00:00
|
|
|
|
$_slider_min_length: 40px;
|
|
|
|
|
|
|
|
|
|
background-color: $scrollbar_bg_color;
|
|
|
|
|
transition: 300ms $ease-out-quad;
|
2015-11-05 05:29:14 +00:00
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
// scrollbar border
|
|
|
|
|
&.top { border-bottom: 1px solid $borders_color; }
|
|
|
|
|
&.bottom { border-top: 1px solid $borders_color; }
|
|
|
|
|
&.left { border-right: 1px solid $borders_color; }
|
|
|
|
|
&.right { border-left: 1px solid $borders_color; }
|
2015-11-04 04:16:45 +00:00
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
background-color: $backdrop_scrollbar_bg_color;
|
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-18 12:53:30 +00:00
|
|
|
|
|
|
|
|
|
// slider
|
|
|
|
|
slider {
|
|
|
|
|
min-width: 14px;
|
|
|
|
|
min-height: 14px;
|
|
|
|
|
margin: -1px;
|
|
|
|
|
border: 4px solid transparent;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
background-color: $scrollbar_slider_color;
|
|
|
|
|
|
|
|
|
|
&:hover { background-color: $scrollbar_slider_hover_color; }
|
|
|
|
|
|
|
|
|
|
&:hover:active { background-color: $scrollbar_slider_active_color; }
|
|
|
|
|
|
|
|
|
|
&:backdrop { background-color: $backdrop_scrollbar_slider_color; }
|
|
|
|
|
|
|
|
|
|
&:disabled { background-color: transparent; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.fine-tune {
|
|
|
|
|
slider {
|
|
|
|
|
min-width: 4px;
|
|
|
|
|
min-height: 4px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-18 12:53:30 +00:00
|
|
|
|
|
|
|
|
|
&.horizontal slider { border-width: 5px 4px; }
|
|
|
|
|
&.vertical slider { border-width: 4px 5px; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-18 12:53:30 +00:00
|
|
|
|
|
2015-05-04 12:39:40 +00:00
|
|
|
|
&.overlay-indicator {
|
2016-03-18 12:53:30 +00:00
|
|
|
|
&:not(.dragging):not(.hovering) {
|
|
|
|
|
border-color: transparent;
|
2015-05-04 12:39:40 +00:00
|
|
|
|
opacity: 0.4;
|
2016-03-18 12:53:30 +00:00
|
|
|
|
background-color: transparent;
|
2015-05-04 12:39:40 +00:00
|
|
|
|
|
2015-11-04 04:16:45 +00:00
|
|
|
|
slider {
|
2015-05-04 12:39:40 +00:00
|
|
|
|
margin: 0;
|
2016-03-18 12:53:30 +00:00
|
|
|
|
min-width: 3px;
|
|
|
|
|
min-height: 3px;
|
|
|
|
|
background-color: $fg_color;
|
|
|
|
|
border: 1px solid if($variant == 'light', white, black);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
min-width: 5px;
|
|
|
|
|
min-height: 5px;
|
2015-05-04 12:39:40 +00:00
|
|
|
|
background-color: $fg_color;
|
|
|
|
|
background-clip: padding-box;
|
2016-03-18 12:53:30 +00:00
|
|
|
|
border-radius: 100%;
|
|
|
|
|
border: 1px solid if($variant == 'light', white, black);
|
|
|
|
|
-gtk-icon-source: none;
|
2015-05-04 12:39:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
&.horizontal {
|
|
|
|
|
slider {
|
|
|
|
|
margin: 0 2px;
|
|
|
|
|
min-width: $_slider_min_length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
margin: 1px 2px;
|
|
|
|
|
min-width: 5px;
|
|
|
|
|
}
|
2015-11-05 05:29:14 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
&.vertical {
|
|
|
|
|
slider {
|
|
|
|
|
margin: 2px 0;
|
|
|
|
|
min-height: $_slider_min_length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
margin: 2px 1px;
|
|
|
|
|
min-height: 5px;
|
|
|
|
|
}
|
2015-05-04 12:39:40 +00:00
|
|
|
|
}
|
2016-03-18 12:53:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.dragging,
|
|
|
|
|
&.hovering { opacity: 0.8; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.horizontal slider { min-width: $_slider_min_length; }
|
|
|
|
|
|
|
|
|
|
&.vertical slider { min-height: $_slider_min_length; }
|
|
|
|
|
|
|
|
|
|
// button styling
|
|
|
|
|
button {
|
|
|
|
|
padding: 0;
|
|
|
|
|
min-width: 12px;
|
|
|
|
|
min-height: 12px;
|
|
|
|
|
border-style: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
transition-property: min-height, min-width, color;
|
|
|
|
|
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: $scrollbar_slider_color;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: $scrollbar_slider_hover_color;
|
|
|
|
|
}
|
|
|
|
|
&:active, &:checked {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: $scrollbar_slider_active_color;
|
|
|
|
|
}
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: transparentize($scrollbar_slider_color, 0.8);
|
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(undecorated);
|
2015-05-04 12:39:40 +00:00
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
color: $backdrop_scrollbar_slider_color;
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: transparentize($backdrop_scrollbar_slider_color, 0.8);
|
2015-05-04 12:39:40 +00:00
|
|
|
|
}
|
2016-03-18 12:53:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-05-04 12:39:40 +00:00
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
// button icons
|
|
|
|
|
&.vertical {
|
|
|
|
|
button {
|
|
|
|
|
&.down { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
|
|
|
|
|
&.up { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
|
2015-05-04 12:39:40 +00:00
|
|
|
|
}
|
2016-03-18 12:53:30 +00:00
|
|
|
|
}
|
2015-05-04 12:39:40 +00:00
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
&.horizontal {
|
|
|
|
|
button {
|
2016-08-23 11:11:48 +00:00
|
|
|
|
&.down { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
|
2016-03-18 12:53:30 +00:00
|
|
|
|
|
2016-08-23 11:11:48 +00:00
|
|
|
|
&.up { -gtk-icon-source: -gtk-icontheme('pan-start-symbolic'); }
|
2016-03-18 12:53:30 +00:00
|
|
|
|
}
|
2015-05-04 12:39:40 +00:00
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-18 12:53:30 +00:00
|
|
|
|
treeview ~ scrollbar.vertical {
|
|
|
|
|
border-top: 1px solid $borders_color;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
/**********
|
|
|
|
|
* Switch *
|
|
|
|
|
**********/
|
|
|
|
|
|
2015-10-23 01:44:03 +00:00
|
|
|
|
switch {
|
2016-03-18 18:10:36 +00:00
|
|
|
|
font-size: smaller;
|
|
|
|
|
font-stretch: condensed;
|
|
|
|
|
font-weight: bold;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
outline-offset: -4px;
|
2015-10-23 01:44:03 +00:00
|
|
|
|
// similar to the .scale
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
border-color: $borders_color;
|
2016-03-24 15:43:20 +00:00
|
|
|
|
background-color: $dark_fill;
|
2015-10-23 01:44:03 +00:00
|
|
|
|
box-shadow: inset 0 1px transparentize(black, 0.9); /*outset not working*/
|
|
|
|
|
text-shadow: 0 1px transparentize(black, 0.9);
|
2016-03-24 15:43:20 +00:00
|
|
|
|
&:active {
|
|
|
|
|
color: $selected_fg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
text-shadow: 0 0 2px white;
|
2015-10-23 01:44:03 +00:00
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
|
text-shadow: none;
|
2015-10-23 01:44:03 +00:00
|
|
|
|
}
|
|
|
|
|
&:backdrop {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
text-shadow: none;
|
2016-03-23 17:14:57 +00:00
|
|
|
|
&:checked {
|
2015-04-27 15:33:40 +00:00
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: $backdrop_borders_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-03-23 17:14:57 +00:00
|
|
|
|
&:disabled, &:disabled:checked {
|
2015-03-17 22:55:10 +00:00
|
|
|
|
background-color: $insensitive_bg_color;
|
2015-03-20 12:22:47 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
border-color: $insensitive_fg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-18 18:25:09 +00:00
|
|
|
|
|
|
|
|
|
slider {
|
|
|
|
|
margin: -1px;
|
|
|
|
|
min-width: 45px;
|
|
|
|
|
min-height: 27px;
|
|
|
|
|
border: 2px solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
@include button(normal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover slider { @include button(hover); }
|
|
|
|
|
|
2016-03-23 17:14:57 +00:00
|
|
|
|
&:checked slider { border: 2px solid $selected_borders_color; }
|
2016-03-18 18:25:09 +00:00
|
|
|
|
|
|
|
|
|
&:disabled slider { @include button(insensitive); }
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
slider { @include button(backdrop); }
|
|
|
|
|
|
2016-03-23 17:14:57 +00:00
|
|
|
|
&:checked slider { border-color: if($variant == 'light', $selected_bg_color, $selected_borders_color); }
|
2016-03-18 18:25:09 +00:00
|
|
|
|
|
|
|
|
|
&:disabled slider { @include button(backdrop-insensitive); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
|
* Check and Radio items *
|
|
|
|
|
*************************/
|
2016-03-15 18:22:07 +00:00
|
|
|
|
// draw regular check and radio items using our PNG assets
|
|
|
|
|
// all assets are rendered from assets.svg. never add pngs directly
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
|
2016-03-15 18:22:07 +00:00
|
|
|
|
checkbutton.text-button, radiobutton.text-button {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// this is for a nice focus on check and radios text
|
2016-03-15 18:22:07 +00:00
|
|
|
|
padding: 2px 0;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
outline-offset: 0;
|
|
|
|
|
|
2016-03-15 18:22:07 +00:00
|
|
|
|
label:not(:only-child) {
|
|
|
|
|
&:first-child { margin-left: 4px; }
|
|
|
|
|
&:last-child { margin-right: 4px; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
&:active, &:indeterminate, & {
|
|
|
|
|
// set insensitive color, which is overriden otherwise
|
2015-03-20 12:22:47 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
2016-03-15 18:22:07 +00:00
|
|
|
|
|
2015-03-20 12:22:47 +00:00
|
|
|
|
&:backdrop { color: $insensitive_fg_color; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-15 18:22:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check,
|
|
|
|
|
radio {
|
|
|
|
|
margin: 0 4px;
|
|
|
|
|
|
|
|
|
|
&:only-child { margin: 0; }
|
|
|
|
|
|
|
|
|
|
min-height: 14px;
|
|
|
|
|
min-width: 14px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
-gtk-icon-source: none;
|
2017-11-15 23:08:46 +00:00
|
|
|
|
-gtk-icon-size: 14px;
|
2016-03-15 18:22:07 +00:00
|
|
|
|
|
|
|
|
|
@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; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd);
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd); }
|
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
|
&:disabled { @include button(osd-insensitive); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu menuitem & {
|
|
|
|
|
margin: 0; // this is a workaround for a menu check/radio size allocation issue
|
|
|
|
|
|
|
|
|
|
&, &:hover, &:disabled { //FIXME use button reset mixin
|
|
|
|
|
min-height: 14px;
|
|
|
|
|
min-width: 14px;
|
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
-gtk-icon-shadow: none;
|
|
|
|
|
color: inherit;
|
|
|
|
|
border-color: currentColor;
|
|
|
|
|
animation: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-15 18:22:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%check,
|
|
|
|
|
check {
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
|
|
&: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"))); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%radio,
|
|
|
|
|
radio {
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
|
|
|
|
|
&: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"))); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// let's animate things
|
|
|
|
|
@keyframes check_check {
|
|
|
|
|
from { -gtk-icon-transform: translate(6px, -3px) rotate(-45deg) scaleY(0.2) rotate(45deg) scaleX(0); }
|
|
|
|
|
to { -gtk-icon-transform: unset; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes check_radio {
|
|
|
|
|
from { -gtk-icon-transform: scale(0); }
|
|
|
|
|
to { -gtk-icon-transform: unset; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes check_indeterminate {
|
|
|
|
|
from { -gtk-icon-transform: scale(0, 1); }
|
|
|
|
|
to { -gtk-icon-transform: unset; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check:not(:indeterminate):checked { animation: check_check 400ms; }
|
|
|
|
|
|
|
|
|
|
radio:not(:indeterminate):checked { animation: check_radio 400ms; }
|
|
|
|
|
|
|
|
|
|
check:indeterminate:checked, radio:indeterminate:checked { animation: check_indeterminate 400ms; }
|
|
|
|
|
|
|
|
|
|
// no animations in menus
|
|
|
|
|
menu menuitem {
|
|
|
|
|
check:not(:indeterminate):checked,
|
|
|
|
|
radio:not(:indeterminate):checked,
|
|
|
|
|
check:indeterminate:checked:active,
|
|
|
|
|
radio:indeterminate:checked { animation: none; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// treeview stuff, let's the fun begin:
|
|
|
|
|
treeview.view check:selected {
|
|
|
|
|
&:focus, &:backdrop, & {
|
|
|
|
|
&:disabled, & {
|
|
|
|
|
@extend %check;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-15 18:22:07 +00:00
|
|
|
|
treeview.view radio:selected {
|
|
|
|
|
&:focus, &:backdrop, & {
|
|
|
|
|
&:disabled, & {
|
|
|
|
|
@extend %radio;
|
|
|
|
|
}
|
2016-01-05 12:48:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-15 14:49:25 +00:00
|
|
|
|
treeview.view check,
|
|
|
|
|
treeview.view radio {
|
2016-03-15 18:22:07 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
&:focus, &:hover, & { color: $selected_fg_color; }
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
&:hover, & {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
border-color: $selected_fg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
border-color: $insensitive_fg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled { color: $insensitive_fg_color;}
|
|
|
|
|
}
|
2016-03-15 14:49:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-15 18:22:07 +00:00
|
|
|
|
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/************
|
|
|
|
|
* GtkScale *
|
|
|
|
|
************/
|
2016-03-15 13:22:11 +00:00
|
|
|
|
%scale_trough {
|
|
|
|
|
border: 2px solid $borders_color;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-color: $dark_fill;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
2016-03-15 17:27:41 +00:00
|
|
|
|
border-color: $insensitive_borders_color;
|
2016-03-15 13:22:11 +00:00
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
background-color: $backdrop_dark_fill;
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
|
2016-03-15 17:27:41 +00:00
|
|
|
|
&:disabled { background-color: $insensitive_bg_color; border-color: $insensitive_borders_color; }
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ...on selected list rows
|
|
|
|
|
row:selected & {
|
|
|
|
|
&, &:disabled { border-color: $selected_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
|
background-color: transparentize($osd_borders_color, 0.2);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
|
|
&:disabled { background-color: $insensitive_bg_color; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%scale_highlight {
|
|
|
|
|
border: 2px solid $selected_borders_color;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_dark_fill;
|
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ...on selected list rows
|
|
|
|
|
row:selected & { &, &:disabled { border-color: $selected_borders_color; } }
|
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
|
|
|
|
|
|
&:disabled { border-color: transparent; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scale {
|
|
|
|
|
// sizing
|
|
|
|
|
|
2016-09-04 12:21:49 +00:00
|
|
|
|
$_marks_length: 6px;
|
2016-03-15 13:22:11 +00:00
|
|
|
|
$_marks_distance: 6px;
|
|
|
|
|
|
|
|
|
|
min-height: 10px;
|
|
|
|
|
min-width: 10px;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
|
|
|
|
fill,
|
|
|
|
|
highlight { margin: -1px; }
|
|
|
|
|
|
|
|
|
|
slider {
|
|
|
|
|
min-height: 18px;
|
|
|
|
|
min-width: 18px;
|
|
|
|
|
margin: -9px;
|
|
|
|
|
}
|
2014-11-29 17:46:06 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.fine-tune {
|
2016-03-15 13:22:11 +00:00
|
|
|
|
&.horizontal {
|
|
|
|
|
padding-top: 9px;
|
|
|
|
|
padding-bottom: 9px;
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.vertical {
|
|
|
|
|
padding-left: 9px;
|
|
|
|
|
padding-right: 9px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
slider { margin: -6px; }
|
|
|
|
|
|
|
|
|
|
fill,
|
|
|
|
|
highlight,
|
|
|
|
|
trough {
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
-gtk-outline-radius: 7px;
|
2014-11-29 17:46:06 +00:00
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
|
|
|
|
|
// the backing bit
|
2015-11-05 12:01:57 +00:00
|
|
|
|
trough {
|
2016-03-15 13:22:11 +00:00
|
|
|
|
@extend %scale_trough;
|
|
|
|
|
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
-gtk-outline-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// the colored part of the backing bit
|
|
|
|
|
highlight { @extend %scale_highlight; }
|
|
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
|
|
|
|
|
&, &:backdrop {
|
|
|
|
|
background-color: $borders_color;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
&, &:backdrop {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: transparent;
|
2015-11-05 12:01:57 +00:00
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
background-color: mix($osd_fg_color, $osd_borders_color, 25%);
|
|
|
|
|
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2016-03-15 13:22:11 +00:00
|
|
|
|
&, &:backdrop {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
2015-11-05 12:01:57 +00:00
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
slider {
|
|
|
|
|
@include button(normal);
|
|
|
|
|
|
|
|
|
|
border: 2px solid $borders_color;
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(hover); }
|
|
|
|
|
|
|
|
|
|
&:active { border-color: $selected_borders_color; }
|
|
|
|
|
|
|
|
|
|
&:disabled { @include button (insensitive); }
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(backdrop);
|
|
|
|
|
&:disabled { @include button(backdrop-insensitive); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ...on selected list rows
|
|
|
|
|
row:selected & { &, &:disabled { border-color: $selected_borders_color; } }
|
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd);
|
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
|
|
|
|
|
|
&:disabled { @include button(osd-insensitive); }
|
|
|
|
|
|
2015-11-05 12:01:57 +00:00
|
|
|
|
&:backdrop {
|
2016-03-15 13:22:11 +00:00
|
|
|
|
@include button(osd-backdrop);
|
|
|
|
|
|
|
|
|
|
&:disabled { @include button(osd-backdrop-insensitive); }
|
2015-11-05 12:01:57 +00:00
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
|
|
|
|
|
value { color: gtkalpha(currentColor, 0.4); }
|
|
|
|
|
|
|
|
|
|
marks {
|
|
|
|
|
color: gtkalpha(currentColor, 0.4);
|
|
|
|
|
|
|
|
|
|
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
|
|
|
|
|
(bottom, bottom, top),
|
|
|
|
|
(top, left, right),
|
|
|
|
|
(bottom, right, left) {
|
|
|
|
|
&.#{$marks_class} {
|
|
|
|
|
margin-#{$marks_margin}: $_marks_distance;
|
2016-09-04 12:21:49 +00:00
|
|
|
|
margin-#{$marks_pos}: -($_marks_distance + $_marks_length);
|
2015-11-05 05:29:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.fine-tune marks {
|
|
|
|
|
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
|
|
|
|
|
(bottom, bottom, top),
|
|
|
|
|
(top, left, right),
|
|
|
|
|
(bottom, right, left) {
|
|
|
|
|
&.#{$marks_class} {
|
|
|
|
|
margin-#{$marks_margin}: $_marks_distance;
|
2016-09-04 12:21:49 +00:00
|
|
|
|
margin-#{$marks_pos}: -($_marks_distance + $_marks_length - 3px);
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
2015-11-05 05:29:14 +00:00
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
|
|
|
|
&.horizontal {
|
|
|
|
|
indicator {
|
2016-09-04 12:21:49 +00:00
|
|
|
|
min-height: $_marks_length;
|
2016-03-15 13:22:11 +00:00
|
|
|
|
min-width: 1px;
|
2015-11-05 05:29:14 +00:00
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
|
2016-09-04 12:21:49 +00:00
|
|
|
|
&.fine-tune indicator { min-height: ($_marks_length - 3px); }
|
2016-03-15 13:22:11 +00:00
|
|
|
|
}
|
|
|
|
|
&.vertical {
|
|
|
|
|
indicator {
|
|
|
|
|
min-height: 1px;
|
2016-09-04 12:21:49 +00:00
|
|
|
|
min-width: $_marks_length;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-15 13:22:11 +00:00
|
|
|
|
|
2016-09-04 12:21:49 +00:00
|
|
|
|
&.fine-tune indicator { min-width: ($_marks_length - 3px); }
|
2015-11-04 04:16:45 +00:00
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2014-11-29 17:46:06 +00:00
|
|
|
|
|
2016-03-15 13:22:11 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/*****************
|
|
|
|
|
* Progress bars *
|
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
|
|
//FIXME it's a wip ok?
|
|
|
|
|
|
2015-11-01 00:24:46 +00:00
|
|
|
|
progressbar {
|
|
|
|
|
padding: 0;
|
|
|
|
|
font-size: 83%;
|
|
|
|
|
color: $fg_color;
|
2015-11-04 17:43:06 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop {
|
2015-11-01 00:24:46 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
}
|
2015-11-04 17:43:06 +00:00
|
|
|
|
|
|
|
|
|
trough {
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
background-color: mix($borders_color,$bg_color, 35%);
|
|
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9);
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2015-11-04 17:43:06 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: mix($backdrop_borders_color,$backdrop_bg_color, 35%);
|
|
|
|
|
box-shadow: 0 1px transparentize(white,1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2015-11-04 17:43:06 +00:00
|
|
|
|
&.osd trough {
|
2015-11-01 00:24:46 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
//FIXME: there is a margin on top
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2018-07-03 17:54:33 +00:00
|
|
|
|
// moving bit
|
2016-01-06 01:39:16 +00:00
|
|
|
|
&.horizontal {
|
2018-07-03 17:55:31 +00:00
|
|
|
|
trough { min-width: 150px; }
|
2016-01-06 01:39:16 +00:00
|
|
|
|
trough, progress { min-height: 2px; }
|
|
|
|
|
}
|
2018-07-03 17:55:31 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.vertical {
|
2018-07-03 17:55:31 +00:00
|
|
|
|
trough { min-height: 80px; }
|
2016-01-06 01:39:16 +00:00
|
|
|
|
trough, progress { min-width: 2px; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2018-07-03 17:55:31 +00:00
|
|
|
|
|
2016-01-06 01:39:16 +00:00
|
|
|
|
& progress {
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
border-color: $selected_borders_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-color: $selected_bg_color;
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2016-01-06 01:39:16 +00:00
|
|
|
|
// I really prefer these flat w/o this shadow - Lapo
|
|
|
|
|
box-shadow: inset 0 1px 0 transparentize($borders_edge,0.8);
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2016-01-06 01:39:16 +00:00
|
|
|
|
&.vertical {
|
|
|
|
|
box-shadow: inset 1px 0 0 transparentize($borders_edge,0.8);
|
|
|
|
|
}
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2016-01-06 01:39:16 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2016-01-06 01:39:16 +00:00
|
|
|
|
&.osd {
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2018-07-03 17:54:33 +00:00
|
|
|
|
|
2016-11-23 16:25:18 +00:00
|
|
|
|
trough.empty progress { all: unset; } // make the progress indicator disappear when the fraction is 0
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*************
|
|
|
|
|
* Level Bar *
|
|
|
|
|
*************/
|
|
|
|
|
|
2015-11-11 05:30:24 +00:00
|
|
|
|
levelbar {
|
|
|
|
|
& trough {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// FIXME: outset not working
|
|
|
|
|
padding: 2px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
@include entry(normal);
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include entry(backdrop);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-08-12 15:13:11 +00:00
|
|
|
|
|
|
|
|
|
&.horizontal {
|
|
|
|
|
block {
|
|
|
|
|
min-height: 1px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.discrete block {
|
|
|
|
|
margin: 0 1px;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
}
|
2016-01-03 02:03:50 +00:00
|
|
|
|
}
|
2017-08-12 15:13:11 +00:00
|
|
|
|
|
|
|
|
|
&.vertical {
|
|
|
|
|
block {
|
|
|
|
|
min-width: 1px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.discrete block {
|
|
|
|
|
margin: 1px 0;
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
}
|
2016-01-03 02:03:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-13 06:05:30 +00:00
|
|
|
|
& block.filled.low {
|
|
|
|
|
border-color: darken($warning_color,10%);
|
|
|
|
|
background-color: $warning_color;
|
|
|
|
|
&:backdrop { border-color: $warning_color; };
|
|
|
|
|
}
|
|
|
|
|
& block.filled.high {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: darken($selected_bg_color,10%);
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
box-shadow: 0 1px transparentize(black, 0.9);
|
|
|
|
|
border-radius: 1px;
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2015-11-11 05:30:24 +00:00
|
|
|
|
}
|
2015-11-13 06:05:30 +00:00
|
|
|
|
& block.filled.full {
|
2015-11-11 05:30:24 +00:00
|
|
|
|
border-color: darken($success_color,10%);
|
|
|
|
|
background-color: $success_color;
|
|
|
|
|
&:backdrop { border-color: $success_color; }
|
|
|
|
|
}
|
|
|
|
|
& block.empty {
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-color: transparentize($fg_color,0.8);
|
|
|
|
|
border-radius: 1px;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
&:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-29 17:16:57 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
// catch all extend :)
|
|
|
|
|
|
|
|
|
|
%selected_items {
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
color: $selected_fg_color;
|
2015-03-20 12:22:47 +00:00
|
|
|
|
&:backdrop { background-color: $borders_color; color: $selected_fg_color; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-03-29 17:16:57 +00:00
|
|
|
|
.monospace { font-family: monospace; }
|
|
|
|
|
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/**********
|
2016-03-17 01:56:33 +00:00
|
|
|
|
* frames *
|
2014-10-30 15:14:37 +00:00
|
|
|
|
**********/
|
2016-12-18 19:06:33 +00:00
|
|
|
|
frame,
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.frame {
|
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
&.flat { border-style: none; }
|
|
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
|
|
|
|
padding: 0;
|
2016-01-06 03:22:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-17 01:56:33 +00:00
|
|
|
|
actionbar > revealer > box {
|
2016-01-06 03:22:47 +00:00
|
|
|
|
padding: 6px;
|
|
|
|
|
border-width: 1px 0 0;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
border-style: solid none none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-05 15:41:53 +00:00
|
|
|
|
placessidebar,
|
2015-11-04 12:36:49 +00:00
|
|
|
|
scrolledwindow {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.frame { border-radius: 2px; }
|
2015-11-04 12:36:49 +00:00
|
|
|
|
viewport.frame { // avoid double borders when viewport inside scrolled window
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-style: none;
|
|
|
|
|
}
|
2015-11-04 12:36:49 +00:00
|
|
|
|
// This is used when content is touch-dragged past boundaries.
|
|
|
|
|
overshoot {
|
|
|
|
|
&.top {
|
|
|
|
|
@include overshoot(top);
|
|
|
|
|
&:backdrop { @include overshoot(top, backdrop); }
|
|
|
|
|
}
|
|
|
|
|
&.bottom {
|
|
|
|
|
@include overshoot(bottom);
|
|
|
|
|
&:backdrop { @include overshoot(bottom, backdrop); }
|
|
|
|
|
}
|
|
|
|
|
&.left {
|
|
|
|
|
@include overshoot(left);
|
|
|
|
|
&:backdrop { @include overshoot(left, backdrop); }
|
|
|
|
|
}
|
|
|
|
|
&.right {
|
|
|
|
|
@include overshoot(right);
|
|
|
|
|
&:backdrop { @include overshoot(right, backdrop); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// works similarly to the overshoot, the size if fixed tho.
|
|
|
|
|
undershoot {
|
|
|
|
|
&.top {
|
|
|
|
|
@include undershoot(top);
|
|
|
|
|
}
|
|
|
|
|
&.bottom {
|
|
|
|
|
@include undershoot(bottom);
|
|
|
|
|
}
|
|
|
|
|
&.left {
|
|
|
|
|
@include undershoot(left);
|
|
|
|
|
}
|
|
|
|
|
&.right {
|
|
|
|
|
@include undershoot(right);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
junction { // the small square between two scrollbars
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: darken($bg_color, 5%);
|
|
|
|
|
&:backdrop { background-color: transparent; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//vbox and hbox separators
|
2015-10-25 20:29:11 +00:00
|
|
|
|
separator {
|
2015-12-30 18:59:56 +00:00
|
|
|
|
background: $borders_color;
|
|
|
|
|
min-width: 1px;
|
|
|
|
|
min-height: 1px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*********
|
|
|
|
|
* Lists *
|
|
|
|
|
*********/
|
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
list {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
background-color: $base_color;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
&:backdrop {
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
}
|
2015-11-14 23:25:59 +00:00
|
|
|
|
& row {
|
|
|
|
|
padding: 2px;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
row.activatable,
|
|
|
|
|
row.activatable:backdrop,
|
|
|
|
|
row.activatable:backdrop:active,
|
|
|
|
|
row.activatable:backdrop:checked,
|
2016-01-05 01:46:43 +00:00
|
|
|
|
row.activatable:backdrop:disabled,
|
|
|
|
|
row.activatable:backdrop:disabled:active,
|
|
|
|
|
row.activatable:backdrop:disabled:checked,
|
|
|
|
|
row.activatable:disabled:active,
|
|
|
|
|
row.activatable:disabled:checked {
|
2015-04-10 13:13:12 +00:00
|
|
|
|
// reset button inherited stuff
|
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
background-color: transparentize($base_color,1); // for the transition
|
|
|
|
|
border-style: none; // I need no borders here
|
|
|
|
|
border-radius: 0; // and no rounded corners
|
|
|
|
|
box-shadow: none; // and no box-shadow
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
row {
|
2015-08-27 09:08:23 +00:00
|
|
|
|
&.activatable {
|
|
|
|
|
color: $fg_color;
|
2015-04-10 13:13:12 +00:00
|
|
|
|
&:hover {
|
2015-08-27 09:08:23 +00:00
|
|
|
|
background-color: mix($fg_color, $base_color, 5%);
|
2015-04-10 13:13:12 +00:00
|
|
|
|
}
|
2015-08-27 09:08:23 +00:00
|
|
|
|
&:active {
|
|
|
|
|
box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8);
|
2015-04-10 13:13:12 +00:00
|
|
|
|
}
|
2015-08-27 09:08:23 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: mix($fg_color, $selected_bg_color, 10%);
|
2015-04-10 13:13:12 +00:00
|
|
|
|
}
|
2015-08-27 09:08:23 +00:00
|
|
|
|
&:backdrop { background-color: $borders_color; }
|
|
|
|
|
.button.flat {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
|
&:active { color: $selected_fg_color; }
|
2015-04-10 13:13:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-08-27 09:08:23 +00:00
|
|
|
|
}
|
|
|
|
|
.button.flat {
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
&:active { color: $selected_fg_color; }
|
2015-04-10 13:13:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-27 09:08:23 +00:00
|
|
|
|
|
2015-04-10 13:13:12 +00:00
|
|
|
|
// transition
|
2015-11-14 23:25:59 +00:00
|
|
|
|
row,
|
|
|
|
|
row.activatable {
|
2015-04-10 13:13:12 +00:00
|
|
|
|
transition: all 300ms $ease-out-quad;
|
|
|
|
|
&:hover { transition: none; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-04-10 13:13:12 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/*********************
|
|
|
|
|
* App Notifications *
|
|
|
|
|
*********************/
|
|
|
|
|
|
2014-11-29 22:06:04 +00:00
|
|
|
|
.app-notification,
|
|
|
|
|
.app-notification.frame {
|
|
|
|
|
padding: 10px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
border-radius: 0 0 6px 6px;
|
|
|
|
|
background-image: linear-gradient(to bottom, mix(black, $bg_color, 6%) 5%,
|
|
|
|
|
mix(black, $bg_color, 4%));
|
|
|
|
|
// FIXME no space for outer shadow : box-shadow: 0 1px 1px rgba(0,0,0,.5);
|
|
|
|
|
.button { padding: 6px; }
|
2016-03-17 12:07:04 +00:00
|
|
|
|
border { border-width: 0; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*************
|
|
|
|
|
* Expanders *
|
|
|
|
|
*************/
|
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
expander {
|
2018-01-01 18:49:09 +00:00
|
|
|
|
title > arrow {
|
2018-06-21 13:49:10 +00:00
|
|
|
|
min-width: 24px;
|
|
|
|
|
min-height: 24px;
|
2015-11-14 23:25:59 +00:00
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
2018-03-29 20:23:50 +00:00
|
|
|
|
|
|
|
|
|
&:disabled { color: $insensitive_fg_color; }
|
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
}
|
2018-01-01 21:21:52 +00:00
|
|
|
|
|
|
|
|
|
title:hover > arrow {
|
2017-11-05 04:08:18 +00:00
|
|
|
|
color: lighten($fg_color,30%); //only lightens the arrow
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/************
|
|
|
|
|
* Calendar *
|
|
|
|
|
***********/
|
2015-10-28 10:45:37 +00:00
|
|
|
|
calendar {
|
2014-11-29 17:46:06 +00:00
|
|
|
|
border: 1px solid $borders_color;
|
2015-03-17 23:38:18 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
@extend .view:selected;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.button {
|
2014-11-29 17:46:06 +00:00
|
|
|
|
@extend %undecorated_button;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 0 4px; //FIXME no effect on these pseudobuttons
|
2014-11-29 17:46:06 +00:00
|
|
|
|
color: mix($fg_color, $base_color, 40%); //we need a dimmed stuff var
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:hover {
|
2014-11-29 17:46:06 +00:00
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
}
|
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_base_color, 50%);
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
&.view { border-radius: 2px; }
|
|
|
|
|
&.header {
|
|
|
|
|
background: linear-gradient(to bottom,
|
|
|
|
|
lighten($bg_color,2%),
|
|
|
|
|
darken($bg_color,2%));
|
|
|
|
|
border-bottom-color: mix($borders_color,$bg_color,50%);
|
2014-11-29 17:46:06 +00:00
|
|
|
|
&:backdrop {
|
2016-03-27 17:41:19 +00:00
|
|
|
|
background-image: _solid($backdrop_bg_color);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-bottom-color: mix($backdrop_borders_color,$backdrop_bg_color,50%);
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-08-08 08:02:49 +00:00
|
|
|
|
|
2016-01-05 01:48:59 +00:00
|
|
|
|
&:indeterminate, &:indeterminate:backdrop { color: gtkalpha(currentColor, 0.55); }
|
2015-08-27 14:25:46 +00:00
|
|
|
|
&.highlight, &.highlight:backdrop { color: $fg_color; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/***********
|
|
|
|
|
* Dialogs *
|
|
|
|
|
***********/
|
|
|
|
|
|
2015-10-31 03:49:44 +00:00
|
|
|
|
messagedialog .dialog-action-area button {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-31 03:49:44 +00:00
|
|
|
|
messagedialog { // Message Dialog styling
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.titlebar {
|
|
|
|
|
border-style: none;
|
|
|
|
|
box-shadow: inset 0 1px $borders_edge;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.csd { // rounded bottom border styling for csd version
|
2017-10-05 23:20:25 +00:00
|
|
|
|
&.background {
|
|
|
|
|
// bigger radius for better antialiasing
|
|
|
|
|
border-bottom-left-radius: 9px;
|
|
|
|
|
border-bottom-right-radius: 9px;
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-30 04:38:43 +00:00
|
|
|
|
.dialog-action-area button {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 12px;
|
|
|
|
|
border-radius: 0;
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(normal, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:hover {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(hover, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:active {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(active, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(insensitive, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:backdrop {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(backdrop, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:backdrop:disabled {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(backdrop-insensitive, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@each $b_type, $b_color in (suggested-action, $suggested_color),
|
|
|
|
|
(destructive-action, $destructive_color) {
|
|
|
|
|
&.#{$b_type} {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(normal, $b_color, white, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:hover {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(hover, $b_color, white, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:active {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(active, $b_color, white, $edge: none);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(backdrop, $b_color, white);
|
|
|
|
|
@extend %middle_button;
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
@include button(insensitive);
|
|
|
|
|
@extend %middle_button;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:first-child{ @extend %first_button; }
|
|
|
|
|
&:last-child { @extend %last_button; }
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
%middle_button {
|
|
|
|
|
border-right-style: none;
|
|
|
|
|
border-bottom-style: none;
|
|
|
|
|
}
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
|
|
|
|
%last_button {
|
|
|
|
|
border-bottom-right-radius: 7px;
|
|
|
|
|
-gtk-outline-bottom-right-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
%first_button {
|
|
|
|
|
border-left-style: none;
|
|
|
|
|
border-bottom-left-radius: 7px;
|
2017-10-05 23:20:25 +00:00
|
|
|
|
-gtk-outline-bottom-left-radius: 5px;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-18 14:47:30 +00:00
|
|
|
|
filechooser {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
.dialog-action-box {
|
|
|
|
|
border-top: 1px solid $borders_color;
|
2016-03-18 14:47:30 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:backdrop { border-top-color: $backdrop_borders_color; }
|
|
|
|
|
}
|
2016-03-18 14:47:30 +00:00
|
|
|
|
|
|
|
|
|
#pathbarbox { border-bottom: 1px solid $bg_color; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
filechooserbutton:drop(active) {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
border-color: transparent;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-05 23:20:25 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/***********
|
|
|
|
|
* Sidebar *
|
|
|
|
|
***********/
|
|
|
|
|
|
2014-12-01 18:06:02 +00:00
|
|
|
|
.sidebar {
|
2014-12-02 14:00:30 +00:00
|
|
|
|
border: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:backdrop {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
background-color: $bg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2014-12-01 18:06:02 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&:selected {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@extend %selected_items;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2014-12-02 14:00:30 +00:00
|
|
|
|
|
2016-01-05 21:53:03 +00:00
|
|
|
|
& > scrolledwindow > .frame {
|
2014-12-02 14:00:30 +00:00
|
|
|
|
border-right: 1px solid $borders_color;
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
border-right: none;
|
|
|
|
|
border-left: 1px solid $borders_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-12-01 18:06:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
stacksidebar {
|
2015-11-14 23:25:59 +00:00
|
|
|
|
& row {
|
2016-03-20 21:05:56 +00:00
|
|
|
|
padding: 10px 4px;
|
|
|
|
|
> label {
|
|
|
|
|
padding-left: 6px;
|
|
|
|
|
padding-right: 6px;
|
|
|
|
|
}
|
|
|
|
|
&.needs-attention > label {
|
|
|
|
|
@extend %needs_attention;
|
|
|
|
|
background-size: 6px 6px, 0 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/****************
|
|
|
|
|
* File chooser *
|
|
|
|
|
****************/
|
|
|
|
|
$_placesidebar_icons_opacity: 0.7;
|
|
|
|
|
|
|
|
|
|
placessidebar {
|
|
|
|
|
> viewport.frame { border-style: none; }
|
|
|
|
|
|
|
|
|
|
row {
|
2015-11-14 23:25:59 +00:00
|
|
|
|
// Needs overriding of the GtkListBoxRow padding
|
2016-03-20 21:05:56 +00:00
|
|
|
|
min-height: 36px;
|
2015-11-14 23:25:59 +00:00
|
|
|
|
padding: 0px;
|
2016-03-20 21:05:56 +00:00
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
// Using margins/padding directly in the SidebarRow
|
|
|
|
|
// will make the animation of the new bookmark row jump
|
2016-03-20 21:05:56 +00:00
|
|
|
|
> revealer {
|
|
|
|
|
padding: 0 14px;
|
2015-11-14 23:25:59 +00:00
|
|
|
|
}
|
2016-03-20 21:05:56 +00:00
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
& image.sidebar-icon {
|
|
|
|
|
opacity: $_placesidebar_icons_opacity; // dim the device icons
|
2016-03-20 21:05:56 +00:00
|
|
|
|
|
2015-11-14 23:25:59 +00:00
|
|
|
|
&:dir(ltr) { padding-right: 8px; }
|
|
|
|
|
&:dir(rtl) { padding-left: 8px; }
|
|
|
|
|
}
|
2016-03-20 21:05:56 +00:00
|
|
|
|
|
|
|
|
|
& label.sidebar-label {
|
2015-11-14 23:25:59 +00:00
|
|
|
|
&:dir(ltr) { padding-right: 2px; }
|
|
|
|
|
&:dir(rtl) { padding-left: 2px; }
|
|
|
|
|
}
|
2014-12-01 18:06:02 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
@at-root button.sidebar-button {
|
|
|
|
|
@extend %button_basic.flat;
|
|
|
|
|
|
|
|
|
|
@extend %button_selected.flat;
|
2014-12-01 18:06:02 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
min-height: 26px;
|
|
|
|
|
min-width: 26px;
|
|
|
|
|
margin-top: 3px;
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
padding: 0;
|
2015-11-14 23:25:59 +00:00
|
|
|
|
border-radius: 100%;
|
2016-01-05 01:50:24 +00:00
|
|
|
|
-gtk-outline-radius: 100%;
|
2015-11-14 23:25:59 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
&:not(:hover):not(:active),
|
|
|
|
|
&:backdrop { > image { opacity: $_placesidebar_icons_opacity; }}
|
|
|
|
|
}
|
2014-12-01 18:06:02 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
// in the sidebar case it makes no sense to click the selected row
|
|
|
|
|
&:selected:active { box-shadow: none; }
|
2015-09-22 22:55:17 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
&.sidebar-placeholder-row {
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
min-height: 2px;
|
2016-03-27 17:41:19 +00:00
|
|
|
|
background-image: _solid($fg_color);
|
2016-03-20 21:05:56 +00:00
|
|
|
|
background-clip: content-box;
|
|
|
|
|
}
|
2015-09-22 22:55:17 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
&.sidebar-new-bookmark-row { color: $selected_bg_color; }
|
2015-09-22 22:55:17 +00:00
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
&:drop(active):not(:disabled) {
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
box-shadow: inset 0 1px $fg_color,
|
|
|
|
|
inset 0 -1px $fg_color;
|
2015-09-22 22:55:17 +00:00
|
|
|
|
|
|
|
|
|
&:selected {
|
2016-03-20 21:05:56 +00:00
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
background-color: $fg_color;
|
2015-09-22 22:55:17 +00:00
|
|
|
|
}
|
2014-12-01 18:06:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
placesview {
|
|
|
|
|
.server-list-button > image {
|
|
|
|
|
transition: 200ms $ease-out-quad;
|
|
|
|
|
-gtk-icon-transform: rotate(0turn);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.server-list-button:checked > image {
|
|
|
|
|
transition: 200ms $ease-out-quad;
|
|
|
|
|
-gtk-icon-transform: rotate(-0.5turn);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2016-03-20 21:05:56 +00:00
|
|
|
|
|
|
|
|
|
row.activatable:hover { background-color: transparent; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-20 21:05:56 +00:00
|
|
|
|
|
2014-12-01 18:06:02 +00:00
|
|
|
|
/*********
|
|
|
|
|
* Paned *
|
|
|
|
|
*********/
|
|
|
|
|
|
|
|
|
|
|
2015-10-30 16:52:47 +00:00
|
|
|
|
paned {
|
2017-10-07 00:27:05 +00:00
|
|
|
|
> separator {
|
2016-01-05 12:17:16 +00:00
|
|
|
|
min-width: 1px;
|
|
|
|
|
min-height: 1px;
|
2016-03-27 17:41:19 +00:00
|
|
|
|
background-image: _solid($borders_color);
|
2017-10-07 00:27:05 +00:00
|
|
|
|
|
2015-10-30 16:52:47 +00:00
|
|
|
|
&:backdrop {
|
2016-03-27 17:41:19 +00:00
|
|
|
|
background-image: _solid($backdrop_borders_color);
|
2015-10-30 16:52:47 +00:00
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2017-10-07 00:27:05 +00:00
|
|
|
|
|
|
|
|
|
&:dir(ltr).horizontal > separator {
|
2016-01-05 12:17:16 +00:00
|
|
|
|
margin: 0 -8px 0 0;
|
|
|
|
|
padding: 0 8px 0 0;
|
|
|
|
|
}
|
2017-10-07 00:27:05 +00:00
|
|
|
|
&:dir(rtl).horizontal > separator {
|
2016-01-05 12:17:16 +00:00
|
|
|
|
margin: 0 0 0 -8px;
|
|
|
|
|
padding: 0 0 0 8px;
|
|
|
|
|
}
|
2017-10-07 00:27:05 +00:00
|
|
|
|
|
|
|
|
|
&.vertical > separator {
|
2016-01-05 12:17:16 +00:00
|
|
|
|
margin: 0 0 -8px 0;
|
|
|
|
|
padding: 0 0 8px 0;
|
|
|
|
|
}
|
2017-10-07 00:27:05 +00:00
|
|
|
|
|
|
|
|
|
> separator:selected {
|
2016-01-05 12:17:16 +00:00
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
}
|
2017-10-07 00:27:05 +00:00
|
|
|
|
|
|
|
|
|
> separator.wide {
|
2016-01-05 12:17:16 +00:00
|
|
|
|
min-width: 5px;
|
|
|
|
|
min-height: 5px;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-style: none solid;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************
|
|
|
|
|
* GtkInfoBar *
|
|
|
|
|
**************/
|
2015-10-25 21:19:34 +00:00
|
|
|
|
infobar {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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%);
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button {
|
2014-12-01 18:06:02 +00:00
|
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, $edge: none);
|
|
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color, $edge: none); }
|
|
|
|
|
&:active { @include button(active, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled { @include button(insensitive, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2014-12-01 18:06:02 +00:00
|
|
|
|
&:backdrop { @include button(backdrop, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:backdrop:disabled { @include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color, $edge: none); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-10-23 03:26:53 +00:00
|
|
|
|
label:selected,
|
|
|
|
|
label:selected:focus,
|
|
|
|
|
label:selected:hover {
|
2015-03-05 02:56:02 +00:00
|
|
|
|
background-color: lighten($selected_bg_color, 20%);
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/************
|
|
|
|
|
* Tooltips *
|
|
|
|
|
************/
|
|
|
|
|
|
HC: Copy working tooltip code from Adwaita & tweak
There were various problems, like only selecting on .tooltip and not the
widget node tooltip, not being specific enough for tooltip.csd, etc. So,
specific theming was absent, and default popup window styles got applied
This commit copies in the better working tooltip CSS from Adwaita, but
applies a couple of changes to make it work better in the HC themes:
• Reduce the transparency of the tooltip, so we achieve higher contrast
• Drop the black text-shadow, as it is not useful on this more black bg
Note: we may then need to re-add some of this to the .tooltip class. But
it is unclear what needs done there. While Adwaita is not doing it, we
are better not to confuse by keeping it in HC only; we should try to be
as close as possible, to make it easier for HC to keep up with Adwaita.
https://bugzilla.gnome.org/show_bug.cgi?id=769879
2017-10-05 18:09:19 +00:00
|
|
|
|
tooltip {
|
|
|
|
|
&.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.1);
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
padding: 4px; /* not working */
|
|
|
|
|
border-radius: 5px;
|
HC: Copy working tooltip code from Adwaita & tweak
There were various problems, like only selecting on .tooltip and not the
widget node tooltip, not being specific enough for tooltip.csd, etc. So,
specific theming was absent, and default popup window styles got applied
This commit copies in the better working tooltip CSS from Adwaita, but
applies a couple of changes to make it work better in the HC themes:
• Reduce the transparency of the tooltip, so we achieve higher contrast
• Drop the black text-shadow, as it is not useful on this more black bg
Note: we may then need to re-add some of this to the .tooltip class. But
it is unclear what needs done there. While Adwaita is not doing it, we
are better not to confuse by keeping it in HC only; we should try to be
as close as possible, to make it easier for HC to keep up with Adwaita.
https://bugzilla.gnome.org/show_bug.cgi?id=769879
2017-10-05 18:09:19 +00:00
|
|
|
|
box-shadow: none; // otherwise it gets inherited by windowframe.csd
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
HC: Copy working tooltip code from Adwaita & tweak
There were various problems, like only selecting on .tooltip and not the
widget node tooltip, not being specific enough for tooltip.csd, etc. So,
specific theming was absent, and default popup window styles got applied
This commit copies in the better working tooltip CSS from Adwaita, but
applies a couple of changes to make it work better in the HC themes:
• Reduce the transparency of the tooltip, so we achieve higher contrast
• Drop the black text-shadow, as it is not useful on this more black bg
Note: we may then need to re-add some of this to the .tooltip class. But
it is unclear what needs done there. While Adwaita is not doing it, we
are better not to confuse by keeping it in HC only; we should try to be
as close as possible, to make it easier for HC to keep up with Adwaita.
https://bugzilla.gnome.org/show_bug.cgi?id=769879
2017-10-05 18:09:19 +00:00
|
|
|
|
// FIXME: we need a border or tooltips vanish on black background.
|
|
|
|
|
decoration { background-color: transparent; }
|
|
|
|
|
|
|
|
|
|
* { // Yeah this is ugly
|
|
|
|
|
padding: 4px;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
HC: Copy working tooltip code from Adwaita & tweak
There were various problems, like only selecting on .tooltip and not the
widget node tooltip, not being specific enough for tooltip.csd, etc. So,
specific theming was absent, and default popup window styles got applied
This commit copies in the better working tooltip CSS from Adwaita, but
applies a couple of changes to make it work better in the HC themes:
• Reduce the transparency of the tooltip, so we achieve higher contrast
• Drop the black text-shadow, as it is not useful on this more black bg
Note: we may then need to re-add some of this to the .tooltip class. But
it is unclear what needs done there. While Adwaita is not doing it, we
are better not to confuse by keeping it in HC only; we should try to be
as close as possible, to make it easier for HC to keep up with Adwaita.
https://bugzilla.gnome.org/show_bug.cgi?id=769879
2017-10-05 18:09:19 +00:00
|
|
|
|
|
2014-10-30 15:14:37 +00:00
|
|
|
|
/*****************
|
|
|
|
|
* Color Chooser *
|
|
|
|
|
*****************/
|
|
|
|
|
|
2015-10-31 01:46:36 +00:00
|
|
|
|
colorswatch {
|
|
|
|
|
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
|
|
|
|
|
// is colorswatch overlay{}, GtkColorSwatch has the programmatically set background, so most of the style
|
2015-04-15 22:47:40 +00:00
|
|
|
|
// is applied to the overlay box.
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2015-04-15 22:47:40 +00:00
|
|
|
|
$_colorswatch_shadow: inset 0 1px transparentize(black, 0.9), _widget_edge();
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2015-04-15 22:47:40 +00:00
|
|
|
|
box-shadow: $_colorswatch_shadow;
|
|
|
|
|
|
|
|
|
|
// take care of colorswatches on selected elements
|
|
|
|
|
:selected & {
|
|
|
|
|
box-shadow: none;
|
2015-10-31 01:46:36 +00:00
|
|
|
|
& overlay, & overlay:hover {
|
2015-04-15 22:47:40 +00:00
|
|
|
|
border-color: $selected_fg_color;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-15 22:47:40 +00:00
|
|
|
|
// we need to re-set the shadow here since it get axed by the previous bit
|
|
|
|
|
&:selected { box-shadow: $_colorswatch_shadow; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
2015-04-15 22:47:40 +00:00
|
|
|
|
// border rounding
|
2014-10-30 15:14:37 +00:00
|
|
|
|
&.top {
|
2016-01-05 04:28:32 +00:00
|
|
|
|
border-top-left-radius: 6px;
|
|
|
|
|
border-top-right-radius: 6px;
|
|
|
|
|
}
|
|
|
|
|
&.bottom {
|
|
|
|
|
border-bottom-left-radius: 6px;
|
|
|
|
|
border-bottom-right-radius: 6px;
|
|
|
|
|
}
|
|
|
|
|
&.left, &:first-child:not(overlay):not(.top) {
|
|
|
|
|
border-top-left-radius: 6px;
|
|
|
|
|
border-bottom-left-radius: 6px;
|
|
|
|
|
}
|
|
|
|
|
&.right, &:last-child:not(overlay):not(.bottom) {
|
|
|
|
|
border-top-right-radius: 6px;
|
|
|
|
|
border-bottom-right-radius: 6px;
|
|
|
|
|
}
|
|
|
|
|
&:only-child:not(overlay) { border-radius: 6px; }
|
|
|
|
|
|
|
|
|
|
// overlay corner rounding
|
|
|
|
|
&.top > overlay {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
|
}
|
2016-01-05 04:28:32 +00:00
|
|
|
|
&.bottom > overlay {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
|
}
|
2016-01-05 04:28:32 +00:00
|
|
|
|
&:first-child:not(.top) > overlay {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
|
}
|
2016-01-05 04:28:32 +00:00
|
|
|
|
&:last-child:not(.bottom) > overlay {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
|
}
|
2016-01-05 04:28:32 +00:00
|
|
|
|
&:only-child > overlay { border-radius: 5px; }
|
|
|
|
|
|
2015-04-15 22:47:40 +00:00
|
|
|
|
// nth-child is used for the custom colors row.
|
|
|
|
|
// the :not() madness is needed since actually the overlay is selectable by GtkColorSwatch > .overlay
|
2019-02-05 10:25:41 +00:00
|
|
|
|
// and GtkColorSwatch.overlay, I know it's weird, but this is GTK.
|
2015-04-15 22:47:40 +00:00
|
|
|
|
|
|
|
|
|
// hover effect
|
2015-10-31 02:16:18 +00:00
|
|
|
|
&.activatable:hover,
|
|
|
|
|
&.activatable:hover:selected {
|
2015-04-15 22:47:40 +00:00
|
|
|
|
background-image: linear-gradient(135deg, transparentize(white, 0.3),
|
|
|
|
|
transparentize(white, 1) 50%);
|
|
|
|
|
box-shadow: inset 0 1px transparentize(white, 0.6),
|
|
|
|
|
inset 0 -1px transparentize(black, 0.6);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-04-15 22:47:40 +00:00
|
|
|
|
&:backdrop,
|
2019-04-17 23:54:10 +00:00
|
|
|
|
&:backdrop:selected,
|
2016-01-05 04:28:32 +00:00
|
|
|
|
&.dark:backdrop,
|
|
|
|
|
&.dark:backdrop:selected {
|
2015-04-15 22:47:40 +00:00
|
|
|
|
background-image: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// indicator and keynav outline colors, color-dark is a color with luminosity lower then 50%
|
2015-10-31 01:46:36 +00:00
|
|
|
|
&.dark {
|
2015-04-15 22:47:40 +00:00
|
|
|
|
color: white;
|
2016-01-05 04:28:32 +00:00
|
|
|
|
border: 1px solid transparentize(black, 0.7);
|
|
|
|
|
&:hover { border-color: transparentize(black, 0.5); }
|
2015-04-15 22:47:40 +00:00
|
|
|
|
&:backdrop { color: transparentize(white, 0.7); }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2015-10-31 01:46:36 +00:00
|
|
|
|
&.light {
|
2015-04-15 22:47:40 +00:00
|
|
|
|
color: black;
|
2016-01-05 04:28:32 +00:00
|
|
|
|
border: 1px solid transparentize(black, 0.7);
|
|
|
|
|
&:hover { border-color: transparentize(black, 0.5); }
|
2015-04-15 22:47:40 +00:00
|
|
|
|
&:backdrop { color: transparentize(black, 0.7); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// border color
|
2015-10-31 01:46:36 +00:00
|
|
|
|
& overlay,
|
|
|
|
|
& overlay:selected {
|
2016-01-05 04:28:32 +00:00
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
2015-04-15 22:47:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// make the add color button looks like, well, a button
|
|
|
|
|
&#add-color-button {
|
2015-07-31 13:42:34 +00:00
|
|
|
|
@include button(normal);
|
2015-04-15 22:47:40 +00:00
|
|
|
|
&:hover { @include button(hover); }
|
2016-01-05 04:28:32 +00:00
|
|
|
|
&:backdrop { @include button(backdrop); }
|
|
|
|
|
& overlay { border-width: 0; background: none; }
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
|
* Window Decorations *
|
|
|
|
|
*********************/
|
|
|
|
|
|
2015-09-07 19:42:25 +00:00
|
|
|
|
decoration {
|
2014-10-30 15:14:37 +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
|
2017-10-05 23:36:01 +00:00
|
|
|
|
$_wm_border: transparentize($fg_color, 0.77);
|
|
|
|
|
$_wm_border_backdrop: transparentize($fg_color, 0.82);
|
2014-10-30 15:14:37 +00:00
|
|
|
|
|
|
|
|
|
box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
|
|
|
|
|
0 0 0 1px $_wm_border; //doing borders with box-shadow
|
|
|
|
|
|
|
|
|
|
/* this is used for the resize cursor area */
|
|
|
|
|
margin: 10px;
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
box-shadow: 0 2px 6px 2px transparentize(black, 0.8),
|
2015-11-14 23:05:06 +00:00
|
|
|
|
0 3px 9px 1px transparent,
|
2014-10-30 15:14:37 +00:00
|
|
|
|
0 0 0 1px $_wm_border_backdrop;
|
|
|
|
|
}
|
2017-10-05 00:39:39 +00:00
|
|
|
|
|
|
|
|
|
.tiled & {
|
2014-10-30 15:14:37 +00:00
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
2017-10-05 00:39:39 +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);
|
|
|
|
|
}
|
|
|
|
|
|
HC: Copy working tooltip code from Adwaita & tweak
There were various problems, like only selecting on .tooltip and not the
widget node tooltip, not being specific enough for tooltip.csd, etc. So,
specific theming was absent, and default popup window styles got applied
This commit copies in the better working tooltip CSS from Adwaita, but
applies a couple of changes to make it work better in the HC themes:
• Reduce the transparency of the tooltip, so we achieve higher contrast
• Drop the black text-shadow, as it is not useful on this more black bg
Note: we may then need to re-add some of this to the .tooltip class. But
it is unclear what needs done there. While Adwaita is not doing it, we
are better not to confuse by keeping it in HC only; we should try to be
as close as possible, to make it easier for HC to keep up with Adwaita.
https://bugzilla.gnome.org/show_bug.cgi?id=769879
2017-10-05 18:09:19 +00:00
|
|
|
|
tooltip.csd & {
|
2017-10-05 00:39:39 +00:00
|
|
|
|
border-radius: 5px;
|
|
|
|
|
box-shadow: none;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
2017-10-05 00:39:39 +00:00
|
|
|
|
|
2017-10-05 23:20:25 +00:00
|
|
|
|
messagedialog.csd & {
|
|
|
|
|
border-radius: 7px;
|
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
|
|
|
|
0 0 0 1px transparentize($_wm_border, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-05 00:39:39 +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-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Window Close button
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button.titlebutton {
|
2016-03-17 11:16:48 +00:00
|
|
|
|
@extend %button_basic;
|
|
|
|
|
|
|
|
|
|
@extend %button_basic.flat;
|
2014-10-30 15:14:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-06-17 11:05:02 +00:00
|
|
|
|
/**********************
|
|
|
|
|
* Touch Copy & Paste *
|
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
|
|
//touch selection handlebars for the Popover.osd above
|
2015-11-10 04:49:29 +00:00
|
|
|
|
cursor-handle {
|
2015-06-17 11:05:02 +00:00
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
background-image: none;
|
|
|
|
|
-gtk-icon-source: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
outline-style: none;
|
|
|
|
|
outline-color: transparent;
|
|
|
|
|
border: 2px solid $fg_color;
|
|
|
|
|
@each $s,$as in ('',''),
|
|
|
|
|
(':hover','-hover'),
|
|
|
|
|
(':active','-active') { //no need for insensitive and backdrop
|
|
|
|
|
&.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
|
|
|
|
|
border-radius: 10px 0 0 0;
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
&.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
|
|
|
|
|
border-radius: 0 10px 0 0;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
&.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
|
|
|
|
|
border-radius: 10px 10px 0 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Decouple the font of context menus from their entry/textview */
|
|
|
|
|
.context-menu {
|
|
|
|
|
font: initial;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.touch-selection {
|
|
|
|
|
font: initial;
|
|
|
|
|
color: $osd_fg_color;
|
|
|
|
|
border: none;
|
|
|
|
|
background-color: opacify($osd_bg_color,0.2);
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
text-shadow: 0 1px black;
|
2015-11-21 01:32:42 +00:00
|
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2015-06-17 11:05:02 +00:00
|
|
|
|
&:backdrop { text-shadow: none; }
|
2015-10-30 04:38:43 +00:00
|
|
|
|
button {
|
2015-06-17 11:05:02 +00:00
|
|
|
|
@include button(osd);
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
&:active, &:checked { @include button(osd-active); }
|
2016-01-05 01:46:43 +00:00
|
|
|
|
&:disabled, &:backdrop:disabled { @include button(osd-insensitive); }
|
2015-06-17 11:05:02 +00:00
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
|
}
|
|
|
|
|
// checkboxes and radios to use the -dark style for OSD style popovers
|
|
|
|
|
@each $w,$a in ('check', 'checkbox'),
|
|
|
|
|
('radio','radio') {
|
|
|
|
|
@each $s,$as in ('','-unchecked'),
|
|
|
|
|
(':hover', '-unchecked-hover'),
|
|
|
|
|
(':active', '-unchecked-active'),
|
2016-01-05 01:46:43 +00:00
|
|
|
|
(':disabled','-unchecked-insensitive'),
|
2016-01-05 01:48:59 +00:00
|
|
|
|
(':indeterminate', '-mixed'),
|
|
|
|
|
(':indeterminate:hover', '-mixed-hover'),
|
|
|
|
|
(':indeterminate:selected', '-mixed-active'),
|
|
|
|
|
(':indeterminate:disabled', '-mixed-insensitive'),
|
2015-06-17 11:05:02 +00:00
|
|
|
|
(':checked', '-checked'),
|
2016-01-05 01:46:43 +00:00
|
|
|
|
(':checked:disabled','-checked-insensitive'),
|
2015-06-17 11:05:02 +00:00
|
|
|
|
(':checked:hover', '-checked-hover'),
|
|
|
|
|
(':checked:active', '-checked-active'),
|
|
|
|
|
(':backdrop:checked', '-checked-backdrop') {
|
|
|
|
|
.#{$w}#{$s} {
|
2015-11-21 01:32:42 +00:00
|
|
|
|
-gtk-icon-shadow: none;
|
2015-06-17 11:05:02 +00:00
|
|
|
|
color: $osd_fg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 13:53:47 +00:00
|
|
|
|
button.circular { // FIXME: aggregate to buttons
|
2016-01-05 03:08:53 +00:00
|
|
|
|
border-radius: 20px;
|
|
|
|
|
-gtk-outline-radius: 20px;
|
|
|
|
|
|
2016-03-16 13:53:47 +00:00
|
|
|
|
label { padding: 0; }
|
|
|
|
|
row:selected & {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
|
&:active { color: $selected_fg_color; }
|
|
|
|
|
}
|
2016-01-05 03:08:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 12:34:00 +00:00
|
|
|
|
// shortcut window keys
|
|
|
|
|
.keycap {
|
|
|
|
|
min-width: 18px;
|
|
|
|
|
min-height: 25px;
|
|
|
|
|
margin-top: 3px;
|
|
|
|
|
padding-bottom: 2px;
|
|
|
|
|
padding-left: 6px;
|
|
|
|
|
padding-right: 6px;
|
|
|
|
|
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
border: 2px solid;
|
|
|
|
|
border-color: $borders_color;
|
2016-01-05 03:08:53 +00:00
|
|
|
|
border-radius: 5px;
|
2016-03-16 12:34:00 +00:00
|
|
|
|
box-shadow: inset 0 -3px mix($borders_color, $bg_color, 50%),
|
|
|
|
|
inset 0 -2px $bg_color,
|
|
|
|
|
inset 0 0 0 1px $base_color;
|
|
|
|
|
font-size: smaller;
|
2016-01-05 03:08:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*:drop(active):focus,
|
|
|
|
|
*:drop(active) {
|
2016-03-18 14:47:30 +00:00
|
|
|
|
border-color: $fg_color;
|
2016-03-18 18:03:19 +00:00
|
|
|
|
box-shadow: inset 0 0 0 2px $fg_color;
|
2016-01-05 03:08:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stackswitcher button.text-button {
|
|
|
|
|
min-width: 100px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stackswitcher button.circular {
|
|
|
|
|
min-width: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-02 16:41:59 +00:00
|
|
|
|
|
|
|
|
|
/*********
|
|
|
|
|
* Emoji *
|
|
|
|
|
********/
|
|
|
|
|
|
|
|
|
|
popover.emoji-picker { padding-left: 0; padding-right: 0; }
|
|
|
|
|
|
|
|
|
|
button.emoji-section,
|
|
|
|
|
button.emoji-section:backdrop { /* Dodge stuff inherited from backdrop button */
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
border-width: 3px;
|
|
|
|
|
border-style: none none solid;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
|
|
margin: 2px 4px 2px 4px;
|
|
|
|
|
padding: 3px 0 0;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
min-height: 28px;
|
|
|
|
|
|
|
|
|
|
/* reset props inherited from the button style */
|
|
|
|
|
background: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
|
|
|
|
|
outline-offset: -5px;
|
|
|
|
|
|
|
|
|
|
&:backdrop:not(:checked) { border-color: transparent; }
|
|
|
|
|
&:hover { border-color: $borders_color; }
|
|
|
|
|
&:checked { border-color: $selected_bg_color; }
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
opacity: 0.55;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover label { opacity: 0.775; }
|
|
|
|
|
|
|
|
|
|
&:checked label {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
|
|
/* Dodge default inversion to white for non-flat, selected button */
|
|
|
|
|
color: $fg_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.emoji {
|
|
|
|
|
font-size: x-large;
|
|
|
|
|
padding: 6px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
|
background: $selected_bg_color;
|
2017-09-05 00:42:31 +00:00
|
|
|
|
color: $selected_fg_color;
|
2017-09-02 16:41:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|