2016-02-19 13:38:22 +00:00
|
|
|
|
@function gtkalpha($c,$a) {
|
|
|
|
|
@return unquote("alpha(#{$c},#{$a})");
|
2016-02-18 13:30:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-19 13:38:22 +00:00
|
|
|
|
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
|
|
|
$asset_suffix: if($variant=='dark', '-dark', '');
|
2016-03-19 18:56:15 +00:00
|
|
|
|
$backdrop_transition: 200ms ease-out;
|
2016-03-20 23:44:47 +00:00
|
|
|
|
$button_transition: all 200ms $ease-out-quad;
|
2020-04-30 14:15:04 +00:00
|
|
|
|
$focus_transition: outline-width 200ms $ease-out-quad, outline-offset 200ms $ease-out-quad;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
$button_radius: 5px;
|
|
|
|
|
$menu_radius: 5px;
|
2020-11-17 00:07:24 +00:00
|
|
|
|
$menu_margin: $menu_radius; //margin around menuitems & sidebar items
|
2019-02-06 12:46:00 +00:00
|
|
|
|
$window_radius: $button_radius + 3;
|
2019-06-27 08:40:22 +00:00
|
|
|
|
$popover_radius: $button_radius + 4;
|
2016-02-18 13:30:23 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/***************
|
|
|
|
|
* Base States *
|
|
|
|
|
***************/
|
|
|
|
|
.background {
|
2014-10-17 18:09:17 +00:00
|
|
|
|
color: $fg_color;
|
2015-12-04 17:42:56 +00:00
|
|
|
|
background-color: $bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2014-10-17 18:09:17 +00:00
|
|
|
|
&:backdrop {
|
2016-03-12 14:03:07 +00:00
|
|
|
|
text-shadow: none;
|
|
|
|
|
-gtk-icon-shadow: none;
|
2014-10-17 18:09:17 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-02 03:10:31 +00:00
|
|
|
|
dnd {
|
|
|
|
|
color: $fg-color;
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-15 03:29:31 +00:00
|
|
|
|
.normal-icons {
|
|
|
|
|
-gtk-icon-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.large-icons {
|
|
|
|
|
-gtk-icon-size: 32px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*
|
|
|
|
|
These wildcard seems unavoidable, need to investigate.
|
|
|
|
|
Wildcards are bad and troublesome, use them with care,
|
|
|
|
|
or better, just don't.
|
2020-08-21 12:41:13 +00:00
|
|
|
|
Every time a wildcard is used a kitten dies, painfully.
|
2014-06-13 14:32:44 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2020-01-18 06:27:31 +00:00
|
|
|
|
spinner:disabled,
|
|
|
|
|
arrow:disabled,
|
|
|
|
|
scrollbar:disabled,
|
|
|
|
|
check:disabled,
|
|
|
|
|
radio:disabled,
|
|
|
|
|
treeview.expander:disabled { -gtk-icon-filter: opacity(0.5); }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2016-01-16 03:15:30 +00:00
|
|
|
|
.view,
|
|
|
|
|
%view {
|
2014-10-18 14:57:39 +00:00
|
|
|
|
color: $text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
background-color: $base_color;
|
2014-12-17 17:29:02 +00:00
|
|
|
|
|
2017-02-08 15:45:51 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
background-color: $insensitive_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
&:focus, & {
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
}
|
2015-11-14 22:36:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-16 03:15:30 +00:00
|
|
|
|
textview {
|
2019-04-27 06:12:46 +00:00
|
|
|
|
> text {
|
2016-01-16 03:15:30 +00:00
|
|
|
|
@extend %view;
|
2016-01-11 23:16:12 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> selection { &:focus, & { @extend %selected_items; }}
|
2016-01-16 03:15:30 +00:00
|
|
|
|
}
|
2020-01-03 17:45:20 +00:00
|
|
|
|
|
|
|
|
|
&:drop(active) {
|
|
|
|
|
caret-color: $drop_target_color;
|
|
|
|
|
}
|
2016-01-11 23:16:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
textview > border { background-color: mix($bg_color, $base_color, 50%); }
|
2016-04-02 14:24:52 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
iconview {
|
2020-01-07 02:25:49 +00:00
|
|
|
|
@extend .view;
|
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
2020-01-07 02:25:49 +00:00
|
|
|
|
&:drop(active) {
|
2020-01-07 22:30:08 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> dndtarget:drop(active) {
|
2020-01-07 02:25:49 +00:00
|
|
|
|
border-style: solid;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-11 23:16:12 +00:00
|
|
|
|
|
2015-11-10 05:28:46 +00:00
|
|
|
|
rubberband {
|
2015-06-25 17:55:51 +00:00
|
|
|
|
border: 1px solid darken($selected_bg_color, 10%);
|
|
|
|
|
background-color: transparentize(darken($selected_bg_color, 10%), 0.8);
|
2014-06-19 17:11:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-10 05:52:09 +00:00
|
|
|
|
flowbox {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> rubberband { @extend rubberband; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> flowboxchild {
|
2015-11-14 23:25:24 +00:00
|
|
|
|
padding: 3px;
|
2020-04-30 14:15:04 +00:00
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
|
|
|
|
@include focus-ring();
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2015-11-14 23:25:24 +00:00
|
|
|
|
&:selected {
|
2020-04-30 14:15:04 +00:00
|
|
|
|
outline-color: $alt_focus_border_color;
|
|
|
|
|
|
2015-11-14 23:25:24 +00:00
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
2015-11-14 22:33:00 +00:00
|
|
|
|
}
|
2015-11-10 05:52:09 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-04 12:42:55 +00:00
|
|
|
|
gridview {
|
|
|
|
|
> rubberband { @extend rubberband; }
|
|
|
|
|
|
|
|
|
|
> child {
|
|
|
|
|
padding: 3px;
|
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
|
outline-color: $alt_focus_border_color;
|
|
|
|
|
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
2020-09-14 09:58:13 +00:00
|
|
|
|
|
|
|
|
|
box { //cells
|
|
|
|
|
border-spacing: 8px; //label separation
|
|
|
|
|
margin: 12px;
|
|
|
|
|
}
|
2020-06-04 12:42:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-27 07:03:03 +00:00
|
|
|
|
coverflow cover {
|
|
|
|
|
color: $text_color;
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-23 03:25:42 +00:00
|
|
|
|
label {
|
2020-04-30 14:15:04 +00:00
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
2014-08-29 13:32:45 +00:00
|
|
|
|
&.separator {
|
|
|
|
|
@extend .dim-label;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-19 19:13:06 +00:00
|
|
|
|
&:selected { @extend %nobg_selected_items; }
|
2016-03-19 17:55:13 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> selection {
|
2016-03-19 17:55:13 +00:00
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2014-08-25 12:15:32 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-11-25 15:39:33 +00:00
|
|
|
|
button & { color: inherit; }
|
2016-03-19 17:55:13 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> selection { @extend %selected_items_disabled; }
|
2014-08-25 12:15:32 +00:00
|
|
|
|
}
|
2016-03-19 17:55:13 +00:00
|
|
|
|
|
2020-08-17 08:00:29 +00:00
|
|
|
|
&.error {
|
|
|
|
|
color: $error_color;
|
2020-08-17 08:00:29 +00:00
|
|
|
|
&:disabled { color: transparentize($error_color,0.5); }
|
2020-08-17 08:00:29 +00:00
|
|
|
|
}
|
2014-06-30 15:35:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-07 11:30:24 +00:00
|
|
|
|
.dim-label {
|
2014-07-07 12:04:37 +00:00
|
|
|
|
opacity: 0.55;
|
|
|
|
|
text-shadow: none;
|
2014-07-07 11:30:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-05-20 07:07:24 +00:00
|
|
|
|
window.assistant {
|
2014-08-26 15:51:45 +00:00
|
|
|
|
.sidebar {
|
2014-08-22 03:07:57 +00:00
|
|
|
|
background-color: $base_color;
|
2014-08-26 15:51:45 +00:00
|
|
|
|
border-top: 1px solid $borders_color;
|
2016-03-09 14:35:25 +00:00
|
|
|
|
|
2014-08-22 03:07:57 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-08-26 15:51:45 +00:00
|
|
|
|
&.csd .sidebar { border-top-style: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
.sidebar > label { padding: 6px 12px; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-11-17 00:07:24 +00:00
|
|
|
|
.sidebar > label.highlight {
|
|
|
|
|
background-color: $menu_selected_color;
|
|
|
|
|
border-radius: $menu-margin;
|
|
|
|
|
}
|
2014-08-22 03:07:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-04-17 21:40:29 +00:00
|
|
|
|
%osd,
|
|
|
|
|
.osd {
|
2014-08-22 10:55:30 +00:00
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border: none;
|
|
|
|
|
background-color: $osd_bg_color;
|
2014-10-29 17:10:39 +00:00
|
|
|
|
background-clip: padding-box;
|
2014-08-22 10:55:30 +00:00
|
|
|
|
text-shadow: 0 1px black;
|
2015-11-21 01:30:54 +00:00
|
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
|
}
|
2014-08-22 03:07:57 +00:00
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*********************
|
|
|
|
|
* Spinner Animation *
|
|
|
|
|
*********************/
|
|
|
|
|
@keyframes spin {
|
2020-06-06 13:38:53 +00:00
|
|
|
|
to { transform: rotate(1turn); }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-10-25 19:21:17 +00:00
|
|
|
|
spinner {
|
2015-11-26 20:01:22 +00:00
|
|
|
|
background: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
opacity: 0; // non spinning spinner makes no sense
|
|
|
|
|
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-01 23:39:25 +00:00
|
|
|
|
&:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
|
opacity: 1;
|
|
|
|
|
animation: spin 1s linear infinite;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:disabled { opacity: 0.5; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-11 12:50:56 +00:00
|
|
|
|
/**********************
|
|
|
|
|
* General Typography *
|
|
|
|
|
**********************/
|
|
|
|
|
|
2020-01-22 11:02:51 +00:00
|
|
|
|
.large-title {
|
2019-04-11 12:50:56 +00:00
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-size: 24pt;
|
|
|
|
|
}
|
2020-01-22 11:02:51 +00:00
|
|
|
|
.title-1 {
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
font-size: 20pt;
|
2019-04-11 12:50:56 +00:00
|
|
|
|
}
|
2020-01-22 11:02:51 +00:00
|
|
|
|
.title-2 {
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
font-size: 15pt;
|
|
|
|
|
}
|
|
|
|
|
.title-3 {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
font-size: 15pt;
|
|
|
|
|
}
|
|
|
|
|
.title-4 {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
font-size: 13pt;
|
|
|
|
|
}
|
|
|
|
|
.heading {
|
|
|
|
|
font-weight: 700;
|
2019-04-11 12:50:56 +00:00
|
|
|
|
font-size: 11pt;
|
|
|
|
|
}
|
2020-01-22 11:02:51 +00:00
|
|
|
|
.body {
|
2019-04-11 12:50:56 +00:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 11pt;
|
|
|
|
|
}
|
2020-01-22 11:02:51 +00:00
|
|
|
|
.caption-heading {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
font-size: 9pt;
|
|
|
|
|
}
|
|
|
|
|
.caption {
|
2019-04-11 12:50:56 +00:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 9pt;
|
|
|
|
|
}
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/****************
|
|
|
|
|
* Text Entries *
|
|
|
|
|
****************/
|
2016-03-14 09:19:05 +00:00
|
|
|
|
|
|
|
|
|
%entry,
|
2015-10-30 12:17:52 +00:00
|
|
|
|
entry {
|
2016-03-14 09:19:05 +00:00
|
|
|
|
%entry_basic, & {
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
|
|
|
|
border: 1px solid;
|
2019-03-12 15:42:48 +00:00
|
|
|
|
border-radius: $button_radius;
|
2020-10-22 18:26:21 +00:00
|
|
|
|
border-spacing: 6px;
|
2016-03-14 09:19:05 +00:00
|
|
|
|
transition: all 200ms $ease-out-quad;
|
2014-10-04 18:23:10 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
@include entry(normal);
|
2016-01-27 04:33:06 +00:00
|
|
|
|
|
2020-05-14 16:50:47 +00:00
|
|
|
|
@include focus-ring($focus-state: 'focus-within');
|
2020-05-04 14:23:49 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> image { // icons inside the entry
|
2016-07-24 17:11:27 +00:00
|
|
|
|
&.left { margin-right: 6px; }
|
|
|
|
|
&.right { margin-left: 6px; }
|
2016-03-14 09:19:05 +00:00
|
|
|
|
}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-01-25 02:01:42 +00:00
|
|
|
|
> text > placeholder {
|
2019-01-18 09:47:16 +00:00
|
|
|
|
@extend .dim-label;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-25 02:01:42 +00:00
|
|
|
|
> text > block-cursor {
|
2019-07-21 16:50:41 +00:00
|
|
|
|
@include entry(block_cursor);
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
&.flat {
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
2016-03-14 09:19:05 +00:00
|
|
|
|
min-height: 0;
|
|
|
|
|
padding: 2px;
|
2016-04-16 11:35:48 +00:00
|
|
|
|
background-color: transparent;
|
2016-03-14 09:19:05 +00:00
|
|
|
|
border-color: transparent;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within {
|
2019-01-18 09:47:16 +00:00
|
|
|
|
@include entry(focus);
|
|
|
|
|
> placeholder {
|
|
|
|
|
opacity: 0; /* We hide placeholders on focus */
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-14 09:19:05 +00:00
|
|
|
|
|
|
|
|
|
&:disabled { @include entry(insensitive); }
|
|
|
|
|
|
2020-01-25 02:01:42 +00:00
|
|
|
|
> text > selection { @extend %selected_items; }
|
2016-03-14 09:19:05 +00:00
|
|
|
|
|
|
|
|
|
// entry error and warning style
|
|
|
|
|
@each $e_type, $e_color in (error, $error_color),
|
|
|
|
|
(warning, $warning_color) {
|
|
|
|
|
&.#{$e_type} {
|
|
|
|
|
color: $e_color;
|
2020-05-04 14:23:49 +00:00
|
|
|
|
|
2020-05-14 16:50:47 +00:00
|
|
|
|
@include focus-ring($focus-state: 'focus-within', $fc: transparentize($e_color, 0.5));
|
2016-03-14 09:19:05 +00:00
|
|
|
|
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within { @include entry(focus, $e_color); }
|
2016-03-14 09:19:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> selection { background-color: $e_color; }
|
2016-03-14 09:19:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-30 03:54:00 +00:00
|
|
|
|
> image { // entry icons colors
|
2016-03-14 09:19:05 +00:00
|
|
|
|
color: mix($fg_color, $base_color, 80%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
&:hover { color: $fg_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
&:active { color: $selected_bg_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-15 00:03:34 +00:00
|
|
|
|
&.password image.caps-lock-indicator {
|
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_base_color, 80%);
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
&:drop(active) {
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within, & {
|
2016-03-14 09:19:05 +00:00
|
|
|
|
border-color: $drop_target_color;
|
|
|
|
|
box-shadow: inset 0 0 0 1px $drop_target_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
.osd & {
|
|
|
|
|
@include entry(osd);
|
|
|
|
|
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within { @include entry(osd-focus); }
|
2016-03-14 09:19:05 +00:00
|
|
|
|
|
|
|
|
|
&:disabled { @include entry(osd-insensitive); }
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> progress {
|
2017-06-28 05:25:34 +00:00
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
progress > trough > progress {
|
2016-03-12 14:03:07 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 0 2px;
|
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
box-shadow: none;
|
2016-03-11 13:42:49 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
// linked entries
|
2015-06-25 18:04:32 +00:00
|
|
|
|
.linked:not(.vertical) > & { @extend %linked; }
|
2018-09-01 14:52:19 +00:00
|
|
|
|
|
2016-03-14 18:36:12 +00:00
|
|
|
|
.linked:not(.vertical) > &:drop(active) + &,
|
2016-03-11 13:42:49 +00:00
|
|
|
|
.linked:not(.vertical) > &:drop(active) + button,
|
2020-08-02 09:48:54 +00:00
|
|
|
|
.linked:not(.vertical) > &:drop(active) + menubutton > button,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + dropdown > button,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + colorbutton > button,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + fontbutton > button,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + filechooserbutton > button,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + filechooserbutton > combobox > box > button.combo,
|
|
|
|
|
.linked:not(.vertical) > &:drop(active) + appchooserbutton > combobox > box > button.combo,
|
2016-03-11 13:42:49 +00:00
|
|
|
|
.linked:not(.vertical) > &:drop(active) + combobox > box > button.combo { border-left-color: $drop_target_color; }
|
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
// Vertically linked entries
|
|
|
|
|
// FIXME: take care of "colored" entries
|
|
|
|
|
.linked.vertical > & {
|
|
|
|
|
@extend %linked_vertical;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
// brighter border between linked entries
|
2016-03-14 18:36:12 +00:00
|
|
|
|
&:not(:disabled) + entry:not(:disabled),
|
|
|
|
|
&:not(:disabled) + %entry:not(:disabled) {
|
2016-03-14 09:19:05 +00:00
|
|
|
|
border-top-color: mix($borders_color, $base_color, 30%);
|
2014-07-03 10:29:25 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
// brighter border between linked insensitive entries
|
2016-03-14 18:36:12 +00:00
|
|
|
|
&:disabled + %entry:disabled,
|
2016-03-14 09:19:05 +00:00
|
|
|
|
&:disabled + entry:disabled { border-top-color: mix($borders_color, $base_color, 30%); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 18:36:12 +00:00
|
|
|
|
+ %entry:drop(active):not(:only-child),
|
2016-03-14 09:19:05 +00:00
|
|
|
|
+ entry:drop(active):not(:only-child) { border-top-color: $drop_target_color; }
|
2016-03-11 13:42:49 +00:00
|
|
|
|
|
2016-03-14 09:19:05 +00:00
|
|
|
|
&:drop(active):not(:only-child) {
|
2016-03-14 18:36:12 +00:00
|
|
|
|
+ %entry,
|
2016-03-14 09:19:05 +00:00
|
|
|
|
+ entry,
|
|
|
|
|
+ button,
|
2020-08-02 09:48:54 +00:00
|
|
|
|
+ menubutton > button,
|
|
|
|
|
+ dropdown > button,
|
|
|
|
|
+ colorbutton > button,
|
|
|
|
|
+ fontbutton > button,
|
|
|
|
|
+ filechooserbutton > button,
|
|
|
|
|
+ filechooserbutton > combobox > box > button.combo,
|
|
|
|
|
+ appchooserbutton > combobox > box > button.combo,
|
2016-03-14 09:19:05 +00:00
|
|
|
|
+ combobox > box > button.combo { border-top-color: $drop_target_color; }
|
2015-04-22 12:42:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-08-13 08:33:06 +00:00
|
|
|
|
|
|
|
|
|
&.error { color: $error_color; }
|
2015-04-22 12:42:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-20 22:18:49 +00:00
|
|
|
|
treeview entry {
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within {
|
2016-04-27 18:04:39 +00:00
|
|
|
|
&:dir(rtl), &:dir(ltr) { // specificity bump hack
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
transition-property: color, background;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-20 22:18:49 +00:00
|
|
|
|
&.flat, & {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
|
2020-04-16 12:30:29 +00:00
|
|
|
|
&:focus-within { border-color: $selected_bg_color; }
|
2016-03-20 22:18:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-12 15:07:07 +00:00
|
|
|
|
/*******************
|
|
|
|
|
* Editable Labels *
|
|
|
|
|
*******************/
|
|
|
|
|
editablelabel > stack > text {
|
|
|
|
|
@include entry(normal);
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/***********
|
|
|
|
|
* Buttons *
|
|
|
|
|
***********/
|
2014-07-22 17:50:15 +00:00
|
|
|
|
// stuff for .needs-attention
|
|
|
|
|
$_dot_color: if($variant=='light', $selected_bg_color,
|
|
|
|
|
lighten($selected_bg_color,15%));
|
2014-07-16 17:42:17 +00:00
|
|
|
|
@keyframes needs_attention {
|
2016-11-07 21:34:02 +00:00
|
|
|
|
from { background-image: radial-gradient(farthest-side, $_dot_color 0%, transparentize($_dot_color, 1) 0%); }
|
|
|
|
|
to { background-image: radial-gradient(farthest-side, $_dot_color 95%, transparentize($_dot_color, 1)); }
|
2014-07-16 17:42:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 00:02:30 +00:00
|
|
|
|
%button,
|
2015-10-30 03:17:41 +00:00
|
|
|
|
button {
|
2016-03-14 09:53:59 +00:00
|
|
|
|
@at-root %button_basic, & {
|
2014-10-16 10:46:58 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
min-height: 24px;
|
|
|
|
|
min-width: 16px;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
padding: 4px 9px;
|
2016-02-14 01:35:28 +00:00
|
|
|
|
border: 1px solid;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
border-radius: $button_radius;
|
2016-03-20 23:44:47 +00:00
|
|
|
|
transition: $button_transition;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
@include button(normal);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@at-root %button_basic_flat,
|
2016-02-14 01:35:28 +00:00
|
|
|
|
&.flat {
|
|
|
|
|
@include button(undecorated);
|
2020-08-21 12:41:13 +00:00
|
|
|
|
// to avoid adjacent buttons borders clashing when transitioning, the transition on the normal state is set
|
2016-02-14 01:35:28 +00:00
|
|
|
|
// 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;
|
2014-10-16 10:46:58 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
&:hover {
|
2016-03-20 23:44:47 +00:00
|
|
|
|
transition: $button_transition;
|
2016-02-14 01:35:28 +00:00
|
|
|
|
transition-duration: 500ms;
|
|
|
|
|
|
2016-03-20 23:44:47 +00:00
|
|
|
|
&:active { transition: $button_transition; }
|
2016-02-14 01:35:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-10-16 10:46:58 +00:00
|
|
|
|
&:hover {
|
2016-02-14 01:35:28 +00:00
|
|
|
|
@include button(hover);
|
2016-12-31 00:29:14 +00:00
|
|
|
|
-gtk-icon-filter: brightness(1.2);
|
2016-02-14 01:35:28 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:active,
|
|
|
|
|
&:checked {
|
2016-02-14 01:35:28 +00:00
|
|
|
|
@include button(active);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
transition-duration: 50ms;
|
2014-10-16 10:46:58 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
&.flat, & {
|
|
|
|
|
@include button(backdrop);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-19 18:56:15 +00:00
|
|
|
|
transition: $backdrop_transition;
|
2016-12-31 00:29:14 +00:00
|
|
|
|
-gtk-icon-filter: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(backdrop-active); }
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(backdrop-insensitive);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(backdrop-insensitive-active); }
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-14 01:35:28 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@at-root %button_basic_flat,
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&.flat { &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(insensitive);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(insensitive-active); }
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-14 20:06:38 +00:00
|
|
|
|
&.image-button {
|
2016-03-03 15:12:20 +00:00
|
|
|
|
min-width: 24px;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
2016-02-14 20:06:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
&.text-button {
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
padding-right: 16px;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-14 01:35:28 +00:00
|
|
|
|
&.text-button.image-button {
|
2016-02-26 12:07:09 +00:00
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
2016-02-14 15:38:42 +00:00
|
|
|
|
|
2016-02-26 12:07:09 +00:00
|
|
|
|
label {
|
2016-02-14 15:38:42 +00:00
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
|
|
|
|
}
|
2016-02-14 01:35:28 +00:00
|
|
|
|
}
|
2016-03-11 13:42:49 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@at-root %button_basic_drop_active,
|
2016-03-11 13:42:49 +00:00
|
|
|
|
&:drop(active) {
|
2016-03-14 17:46:56 +00:00
|
|
|
|
color: $drop_target_color;
|
2016-03-11 13:42:49 +00:00
|
|
|
|
border-color: $drop_target_color;
|
|
|
|
|
box-shadow: inset 0 0 0 1px $drop_target_color;
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-02-14 01:35:28 +00:00
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
@at-root %button_selected, & {
|
|
|
|
|
row:selected & {
|
|
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2019-12-01 01:43:16 +00:00
|
|
|
|
}
|
2016-03-14 16:22:31 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@at-root %button_selected_flat, &.flat {
|
|
|
|
|
row:selected & {
|
|
|
|
|
&:not(:active):not(:checked):not(:hover):not(disabled) {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
border-color: transparent;
|
2016-03-14 16:22:31 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
&:backdrop { color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color); }
|
|
|
|
|
}
|
2016-03-14 16:22:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-07-07 11:26:09 +00:00
|
|
|
|
// big standalone buttons like in Documents pager
|
|
|
|
|
&.osd {
|
2019-02-06 12:46:00 +00:00
|
|
|
|
min-width: 26px;
|
2016-03-16 17:06:56 +00:00
|
|
|
|
min-height: 32px;
|
|
|
|
|
|
2019-10-07 19:27:55 +00:00
|
|
|
|
&.image-button {
|
|
|
|
|
min-width: 30px;
|
|
|
|
|
&:only-child {
|
|
|
|
|
margin: 4px;
|
|
|
|
|
border-radius: 50%; // completely round when it is a single button
|
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8); // drop shadow for the only child
|
|
|
|
|
};
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-07-07 11:26:09 +00:00
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 12:18:48 +00:00
|
|
|
|
border-radius: 5px;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-07-07 11:26:09 +00:00
|
|
|
|
@include button(osd);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
|
box-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@include button(osd-hover);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked {
|
2014-08-22 10:55:30 +00:00
|
|
|
|
@include button(osd-active);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border: none;
|
2014-10-29 17:10:39 +00:00
|
|
|
|
box-shadow: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
//overlay / OSD style
|
2015-12-03 18:28:57 +00:00
|
|
|
|
@at-root %osd_button,
|
2014-06-13 14:32:44 +00:00
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
|
|
|
|
&:active,
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:checked { &:backdrop, & { @include button(osd-active); }}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:disabled { &:backdrop, & { @include button(osd-insensitive); }}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
&.flat {
|
|
|
|
|
@include button(undecorated);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
box-shadow: none; //FIXME respect no edge on the button mixin
|
|
|
|
|
text-shadow: 0 1px black;
|
2015-11-21 01:30:54 +00:00
|
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2014-10-29 17:10:39 +00:00
|
|
|
|
@include button(osd-insensitive);
|
|
|
|
|
background-image: none;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(osd-active); }
|
2014-10-29 17:10:39 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
// Suggested and Destructive Action buttons
|
|
|
|
|
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
2015-06-04 14:19:05 +00:00
|
|
|
|
(destructive-action, $destructive_color) {
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&.#{$b_type} {
|
2014-09-04 13:03:09 +00:00
|
|
|
|
@include button(normal, $b_color, white);
|
2020-05-06 17:02:19 +00:00
|
|
|
|
@include focus-ring($fc: $alt_focus_border_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-09-04 17:13:29 +00:00
|
|
|
|
&.flat {
|
|
|
|
|
@include button(undecorated);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-09-04 17:13:29 +00:00
|
|
|
|
color: $b_color; //FIXME: does it work on the dark variant?
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
|
&:hover { @include button(hover, $b_color, white); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(active, $b_color, white); }
|
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&.flat {
|
2020-05-18 20:51:02 +00:00
|
|
|
|
&:disabled {
|
2016-03-12 14:03:07 +00:00
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
color: transparentize($b_color, 0.2);
|
|
|
|
|
}
|
2014-09-04 17:13:29 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2014-09-04 17:02:13 +00:00
|
|
|
|
@include button(insensitive);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(insensitive-active, $b_color, white); }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd, $b_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd-hover, $b_color); }
|
|
|
|
|
|
|
|
|
|
&:active,
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:checked { &:backdrop, & { @include button(osd-active, $b_color); }}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:disabled { &:backdrop, & { @include button(osd-insensitive, $b_color); }}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-08-22 10:55:30 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
|
|
2020-01-12 01:13:05 +00:00
|
|
|
|
stackswitcher > & {
|
2014-09-12 11:46:17 +00:00
|
|
|
|
// to position the needs attention dot, padding is added to the button
|
|
|
|
|
// child, a label needs just lateral padding while an icon needs vertical
|
|
|
|
|
// padding added too.
|
2014-10-16 18:04:04 +00:00
|
|
|
|
|
2015-10-23 03:25:42 +00:00
|
|
|
|
> label {
|
2020-08-28 13:06:44 +00:00
|
|
|
|
padding: 0 6px;
|
|
|
|
|
margin: 0 -6px;
|
2014-07-16 17:42:17 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-23 04:05:18 +00:00
|
|
|
|
> image {
|
2020-08-28 13:06:44 +00:00
|
|
|
|
padding: 3px 6px;
|
|
|
|
|
margin: -3px -6px;
|
2014-07-16 17:42:17 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 09:53:59 +00:00
|
|
|
|
&.needs-attention {
|
|
|
|
|
> label,
|
|
|
|
|
> image { @extend %needs_attention; }
|
2014-07-22 07:42:22 +00:00
|
|
|
|
}
|
2014-07-16 17:42:17 +00:00
|
|
|
|
}
|
2016-05-12 09:45:34 +00:00
|
|
|
|
|
2016-05-12 09:40:28 +00:00
|
|
|
|
// hide separators
|
2019-07-13 16:08:45 +00:00
|
|
|
|
&.font{
|
|
|
|
|
separator { background-color: transparent; }
|
2019-07-13 16:10:15 +00:00
|
|
|
|
> box { border-spacing: 6px; }
|
2019-07-13 16:08:45 +00:00
|
|
|
|
> box > box > label { font-weight: bold; }
|
|
|
|
|
}
|
2016-05-12 09:45:34 +00:00
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked:not(.vertical) > & { @extend %linked; }
|
2014-12-03 10:29:12 +00:00
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked.vertical > & { @extend %linked_vertical; }
|
2016-10-18 11:16:07 +00:00
|
|
|
|
|
2020-08-28 12:56:30 +00:00
|
|
|
|
&.circular { // force circular button shape
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
padding: 0;
|
2016-10-18 11:16:07 +00:00
|
|
|
|
border-radius: 9999px;
|
|
|
|
|
|
|
|
|
|
label { padding: 0; }
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
|
%needs_attention {
|
2020-08-21 12:41:13 +00:00
|
|
|
|
// the dot is drawn by using two radial gradient, the first one is the actual dot, the other
|
2016-11-05 15:16:37 +00:00
|
|
|
|
// simulates the shadow labels and icons normally have in buttons.
|
2014-10-02 19:16:30 +00:00
|
|
|
|
animation: needs_attention 150ms ease-in;
|
2016-11-05 15:16:37 +00:00
|
|
|
|
|
2020-04-15 13:27:17 +00:00
|
|
|
|
background-image: radial-gradient(farthest-side, $_dot_color 96%, transparentize($_dot_color,1 ));
|
2014-10-02 19:16:30 +00:00
|
|
|
|
background-size: 6px 6px, 6px 6px;
|
|
|
|
|
background-repeat: no-repeat;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
|
@if $variant == 'light' { background-position: right 3px, right 4px; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
|
@else { background-position: right 3px, right 2px; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
|
&:backdrop { background-size: 6px 6px, 0 0;}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
@if $variant == 'light' { background-position: left 3px, left 4px; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
|
@else { background-position: left 3px, left 2px; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-04-08 15:40:38 +00:00
|
|
|
|
%linked_not_left {
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-bottom-left-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
|
|
|
|
}
|
2016-01-09 13:36:05 +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-07-09 17:37:41 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
%linked_not_top {
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%linked_not_bottom {
|
|
|
|
|
border-bottom-style: none;
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-24 02:00:40 +00:00
|
|
|
|
%linked_vertical {
|
2019-12-01 01:43:16 +00:00
|
|
|
|
&:not(:first-child) { @extend %linked_not_top; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
&:not(:last-child) { @extend %linked_not_bottom; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%undecorated_button {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
border-color: transparent;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
box-shadow: inset 0 1px transparentize(white, 1),
|
2014-08-28 16:38:46 +00:00
|
|
|
|
0 1px transparentize(white, 1);
|
2014-07-02 15:27:12 +00:00
|
|
|
|
text-shadow: none;
|
2015-11-21 01:30:54 +00:00
|
|
|
|
-gtk-icon-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-02 09:48:54 +00:00
|
|
|
|
.linked:not(.vertical) > menubutton,
|
|
|
|
|
.linked:not(.vertical) > dropdown,
|
|
|
|
|
.linked:not(.vertical) > colorbutton,
|
|
|
|
|
.linked:not(.vertical) > fontbutton,
|
|
|
|
|
.linked:not(.vertical) > filechooserbutton {
|
|
|
|
|
&:dir(ltr) {
|
|
|
|
|
&:not(:first-child) > button { @extend %linked_not_left; }
|
|
|
|
|
&:not(:last-child) > button { @extend %linked_not_right; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
&:not(:first-child) > button { @extend %linked_not_right; }
|
|
|
|
|
&:not(:last-child) > button { @extend %linked_not_left; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.linked.vertical > menubutton,
|
|
|
|
|
.linked.vertical > dropdown,
|
|
|
|
|
.linked.vertical > colorbutton,
|
|
|
|
|
.linked.vertical > fontbutton,
|
|
|
|
|
.linked.vertical > filechooserbutton {
|
|
|
|
|
&:not(:first-child) > button { @extend %linked_not_top; }
|
|
|
|
|
&:not(:last-child) > button { @extend %linked_not_bottom; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/* menu buttons */
|
2020-01-24 02:00:40 +00:00
|
|
|
|
modelbutton.flat {
|
2016-01-07 17:27:11 +00:00
|
|
|
|
min-height: 26px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
border-radius: $button_radius;
|
2016-01-07 17:27:11 +00:00
|
|
|
|
|
2014-07-02 15:27:12 +00:00
|
|
|
|
@extend %undecorated_button;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-05-13 17:18:45 +00:00
|
|
|
|
&:hover { background-color: $menu_selected_color; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-11-07 13:00:20 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
|
2020-05-18 20:51:02 +00:00
|
|
|
|
|
2019-11-07 13:00:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-02 15:27:12 +00:00
|
|
|
|
&:selected { @extend %selected_items; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-20 01:46:26 +00:00
|
|
|
|
modelbutton.flat arrow {
|
2015-12-19 19:53:57 +00:00
|
|
|
|
background: none;
|
2017-07-14 08:30:32 +00:00
|
|
|
|
min-width: 16px;
|
|
|
|
|
min-height: 16px;
|
2020-05-13 17:18:45 +00:00
|
|
|
|
opacity: 0.3; //dim icon
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-20 01:46:26 +00:00
|
|
|
|
&:hover { background: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-13 17:18:45 +00:00
|
|
|
|
&.left { -gtk-icon-source: -gtk-icontheme("go-previous-symbolic"); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-13 17:18:45 +00:00
|
|
|
|
&.right { -gtk-icon-source: -gtk-icontheme("go-next-symbolic"); }
|
2015-12-19 19:53:57 +00:00
|
|
|
|
}
|
2015-04-15 19:43:59 +00:00
|
|
|
|
|
2020-05-05 08:55:14 +00:00
|
|
|
|
/* oldstyle toolbar buttons */
|
|
|
|
|
|
|
|
|
|
.toolbar button {
|
|
|
|
|
margin: 1px;
|
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
|
|
|
|
|
&:hover { @include button('hover'); }
|
|
|
|
|
&:active { @include button('active'); }
|
|
|
|
|
&:disabled { @include button('insensitive'); }
|
|
|
|
|
&:backdrop { @include button('backdrop'); }
|
|
|
|
|
&:backdrop:disabled { @include button('backdrop-insensitive'); }
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-30 05:16:26 +00:00
|
|
|
|
button.color {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
padding: 4px;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> colorswatch:only-child {
|
|
|
|
|
&, > overlay { border-radius: 0; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-06-08 11:39:39 +00:00
|
|
|
|
@if $variant == 'light' {
|
2020-04-15 13:27:17 +00:00
|
|
|
|
box-shadow: 0 1px $shadow_color;
|
2016-06-08 11:39:39 +00:00
|
|
|
|
|
|
|
|
|
.osd & { box-shadow: none; }
|
|
|
|
|
}
|
2016-04-17 21:08:26 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-04-17 21:08:26 +00:00
|
|
|
|
@if $variant == 'light' {
|
2016-06-08 11:39:39 +00:00
|
|
|
|
.osd &, & {
|
|
|
|
|
&:disabled,
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { colorswatch:only-child { box-shadow: none; }}
|
|
|
|
|
}
|
2014-07-18 21:48:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-21 03:17:53 +00:00
|
|
|
|
|
2018-11-22 12:20:10 +00:00
|
|
|
|
/* list buttons */
|
|
|
|
|
/* tone down as per new designs, see issue #1473 */
|
2019-11-07 13:34:01 +00:00
|
|
|
|
%list_button,
|
2020-01-23 23:50:39 +00:00
|
|
|
|
list > row button.image-button:not(.flat) {
|
2018-11-22 12:20:10 +00:00
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
border: 1px solid transparentize($borders_color, .5);
|
2019-06-27 10:15:51 +00:00
|
|
|
|
&:hover { @include button(hover); }
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked { @include button(active); }
|
2018-11-22 12:20:10 +00:00
|
|
|
|
}
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*********
|
|
|
|
|
* Links *
|
|
|
|
|
*********/
|
2016-04-19 20:57:28 +00:00
|
|
|
|
|
|
|
|
|
%link,
|
2020-04-19 06:21:40 +00:00
|
|
|
|
link {
|
2014-09-26 15:05:17 +00:00
|
|
|
|
color: $link_color;
|
2020-04-12 07:07:57 +00:00
|
|
|
|
text-decoration: underline;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-09-26 15:05:17 +00:00
|
|
|
|
&:visited {
|
|
|
|
|
color: $link_visited_color;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-11-21 11:32:37 +00:00
|
|
|
|
*:selected & { color: mix($selected_fg_color, $link_visited_color, 60%); }
|
2014-09-26 15:05:17 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-09-26 15:05:17 +00:00
|
|
|
|
&:hover {
|
2019-11-21 11:32:37 +00:00
|
|
|
|
$_fg: lighten($link_color, 10%);
|
|
|
|
|
color: $_fg;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-11-21 11:32:37 +00:00
|
|
|
|
*:selected & { color: mix($selected_fg_color, $_fg, 90%); }
|
2014-09-26 15:05:17 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-09-26 15:05:17 +00:00
|
|
|
|
&:active {
|
|
|
|
|
color: $link_color;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-11-21 11:32:37 +00:00
|
|
|
|
*:selected & { color: mix($selected_fg_color, $link_color, 80%); }
|
2014-06-18 14:07:59 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-18 20:51:02 +00:00
|
|
|
|
&:disabled { color: transparentize(desaturate($link_color, 100%), 0.2); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-08 18:55:35 +00:00
|
|
|
|
@at-root %link_selected,
|
2016-01-09 13:36:05 +00:00
|
|
|
|
&:selected,
|
2019-11-21 11:32:37 +00:00
|
|
|
|
*:selected & { color: mix($selected_fg_color, $link_color, 80%); }
|
2014-06-18 14:07:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
link {
|
|
|
|
|
@include focus-ring();
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-19 06:21:40 +00:00
|
|
|
|
button.link {
|
|
|
|
|
@extend %link;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-04-19 06:21:40 +00:00
|
|
|
|
&,
|
2016-01-09 13:36:05 +00:00
|
|
|
|
&:hover,
|
|
|
|
|
&:active,
|
|
|
|
|
&:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
|
@extend %undecorated_button;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
text-shadow: none;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-04-19 20:57:28 +00:00
|
|
|
|
> label {
|
2020-04-19 06:21:40 +00:00
|
|
|
|
text-decoration: underline;
|
2016-04-19 20:57:28 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*****************
|
|
|
|
|
* GtkSpinButton *
|
|
|
|
|
*****************/
|
2015-10-29 01:55:07 +00:00
|
|
|
|
spinbutton {
|
2015-10-08 15:18:50 +00:00
|
|
|
|
&:not(.vertical) {
|
2016-01-27 11:25:49 +00:00
|
|
|
|
// in this horizontal configuration, the whole spinbutton
|
|
|
|
|
// behaves as the entry, so we extend the entry styling
|
|
|
|
|
// and nuke the style on the internal entry
|
2016-03-14 09:53:59 +00:00
|
|
|
|
@extend %entry;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-01-27 11:25:49 +00:00
|
|
|
|
padding: 0;
|
2020-11-16 17:22:17 +00:00
|
|
|
|
border-spacing: 0;
|
2016-01-27 11:25:49 +00:00
|
|
|
|
|
2018-09-10 13:22:09 +00:00
|
|
|
|
%spinbutton_horz_entry {
|
2016-03-11 17:02:37 +00:00
|
|
|
|
min-width: 28px;
|
2016-03-19 17:09:22 +00:00
|
|
|
|
// reset all the other props since the spinbutton node is styled here
|
2016-02-03 17:32:51 +00:00
|
|
|
|
margin: 0;
|
2016-01-27 11:25:49 +00:00
|
|
|
|
background: none;
|
2016-03-19 17:09:22 +00:00
|
|
|
|
background-color: transparent;
|
2016-01-27 11:25:49 +00:00
|
|
|
|
border: none;
|
2016-03-19 17:09:22 +00:00
|
|
|
|
border-radius: 0;
|
2016-01-27 11:25:49 +00:00
|
|
|
|
box-shadow: none;
|
2019-02-20 13:08:44 +00:00
|
|
|
|
padding: 6px;
|
2016-04-21 14:25:05 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop:disabled { background-color: transparent; }
|
2016-01-27 11:25:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> text {
|
2018-09-10 13:22:09 +00:00
|
|
|
|
@extend %spinbutton_horz_entry;
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-23 07:40:29 +00:00
|
|
|
|
/* :not here just to bump specificity above that of the list button styling */
|
|
|
|
|
> button.image-button.up:not(.flat),
|
|
|
|
|
> button.image-button.down:not(.flat) {
|
2016-03-12 14:03:07 +00:00
|
|
|
|
min-height: 16px;
|
2016-02-03 17:32:51 +00:00
|
|
|
|
margin: 0;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
color: mix($fg_color, $base_color, 90%);
|
2014-06-18 11:26:35 +00:00
|
|
|
|
background-image: none;
|
2015-10-08 15:18:50 +00:00
|
|
|
|
border-style: none none none solid;
|
|
|
|
|
border-color: transparentize($borders_color, 0.7);
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
box-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-08-28 13:42:17 +00:00
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-08 15:18:50 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
color: $fg_color;
|
2016-01-12 00:03:47 +00:00
|
|
|
|
background-color: $base_hover_color;
|
2015-10-08 15:18:50 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-04-19 20:45:05 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
color: transparentize($insensitive_fg_color, 0.7);
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-08 15:18:50 +00:00
|
|
|
|
&:active {
|
|
|
|
|
background-color: transparentize(black, 0.9);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
2015-10-08 15:18:50 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-03-04 16:51:48 +00:00
|
|
|
|
&:dir(ltr):last-child { border-radius: 0 $button_radius $button_radius 0; }
|
2016-04-19 20:45:05 +00:00
|
|
|
|
|
2019-03-04 16:51:48 +00:00
|
|
|
|
&:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-10 15:42:40 +00:00
|
|
|
|
|
|
|
|
|
// OSD horizontal
|
|
|
|
|
.osd &:not(.vertical) {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> text {
|
2018-09-10 13:22:09 +00:00
|
|
|
|
@extend %spinbutton_horz_entry;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-23 08:16:55 +00:00
|
|
|
|
> button.image-button.up:not(.flat),
|
|
|
|
|
> button.image-button.down:not(.flat) {
|
2014-10-29 17:10:39 +00:00
|
|
|
|
@include button(undecorated);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
color: $osd_fg_color;
|
|
|
|
|
border-style: none none none solid;
|
|
|
|
|
border-color: transparentize($osd_borders_color, 0.3);
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
box-shadow: none;
|
2015-11-21 01:30:54 +00:00
|
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@include button(undecorated);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2014-10-29 17:10:39 +00:00
|
|
|
|
background-color: transparentize($osd_fg_color, 0.9);
|
2015-11-21 01:30:54 +00:00
|
|
|
|
-gtk-icon-shadow: 0 1px black;
|
2014-10-29 17:10:39 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2014-10-29 17:10:39 +00:00
|
|
|
|
@include button(undecorated);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
|
color: $osd_insensitive_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2015-11-21 01:30:54 +00:00
|
|
|
|
-gtk-icon-shadow: none;
|
2014-10-29 17:10:39 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-03-04 16:51:48 +00:00
|
|
|
|
&:dir(ltr):last-child { border-radius: 0 $button_radius $button_radius 0; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-03-04 16:51:48 +00:00
|
|
|
|
&:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
|
2014-10-29 17:10:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-10 15:42:40 +00:00
|
|
|
|
|
|
|
|
|
// Vertical
|
2015-10-08 15:18:50 +00:00
|
|
|
|
&.vertical {
|
2016-01-27 11:25:49 +00:00
|
|
|
|
// in the vertical configuration, we treat the spinbutton
|
|
|
|
|
// as a box, and tweak the style of the entry in the middle
|
|
|
|
|
// so that it's linked
|
2016-02-03 14:03:39 +00:00
|
|
|
|
|
|
|
|
|
// FIXME: this should not be set at all, but otherwise it gets the wrong
|
|
|
|
|
// color
|
|
|
|
|
&:disabled { color: $insensitive_fg_color; }
|
2016-04-17 21:40:29 +00:00
|
|
|
|
|
2016-03-11 13:42:49 +00:00
|
|
|
|
&:drop(active) {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> text {
|
2019-02-20 13:08:44 +00:00
|
|
|
|
@extend %entry;
|
|
|
|
|
|
2016-02-03 14:03:39 +00:00
|
|
|
|
min-height: 32px;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
padding: 0;
|
2016-01-27 11:25:49 +00:00
|
|
|
|
border-radius: 0;
|
2020-02-07 20:42:32 +00:00
|
|
|
|
|
|
|
|
|
> selection { @extend %selected_items; }
|
2020-06-26 23:55:19 +00:00
|
|
|
|
> block-cursor { @include entry(block_cursor); }
|
2016-01-27 11:25:49 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> button {
|
2016-02-03 14:03:39 +00:00
|
|
|
|
min-height: 32px;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
padding: 0;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-18 11:26:19 +00:00
|
|
|
|
&.up { @extend %top_button; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-27 11:25:49 +00:00
|
|
|
|
&.down { @extend %bottom_button; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
%top_button {
|
2019-04-08 15:40:38 +00:00
|
|
|
|
border-bottom-style: none;
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +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;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-10 15:42:40 +00:00
|
|
|
|
|
|
|
|
|
// OSD vertical
|
2020-01-23 23:50:39 +00:00
|
|
|
|
.osd &.vertical > button:first-child {
|
2015-10-10 15:42:40 +00:00
|
|
|
|
@include button(osd);
|
2016-03-11 13:42:49 +00:00
|
|
|
|
|
2015-10-10 15:42:40 +00:00
|
|
|
|
&:hover { @include button(osd-hover);}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-10 15:42:40 +00:00
|
|
|
|
&:active { @include button(osd-active); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled { @include button(osd-insensitive); }
|
2015-10-10 15:42:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Misc
|
2016-03-20 22:33:25 +00:00
|
|
|
|
treeview &:not(.vertical) {
|
|
|
|
|
min-height: 0;
|
|
|
|
|
border-style: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> text {
|
2016-03-20 22:33:25 +00:00
|
|
|
|
min-height: 0;
|
|
|
|
|
padding: 1px 2px;
|
2014-12-17 17:29:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-06 19:37:55 +00:00
|
|
|
|
|
|
|
|
|
font-feature-settings: "tnum";
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/**************
|
|
|
|
|
* ComboBoxes *
|
|
|
|
|
**************/
|
2020-06-15 13:18:04 +00:00
|
|
|
|
dropdown > popover.menu.background > contents { padding: 0; } //allow search entries with no margin
|
|
|
|
|
|
2020-08-09 19:43:46 +00:00
|
|
|
|
dropdown > button > box {
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-11 22:09:12 +00:00
|
|
|
|
dropdown,
|
2015-11-02 19:22:49 +00:00
|
|
|
|
combobox {
|
2016-01-09 13:36:05 +00:00
|
|
|
|
arrow {
|
2015-12-21 22:45:58 +00:00
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-18 12:52:00 +00:00
|
|
|
|
// align menu labels with the button label
|
|
|
|
|
> popover.menu > contents modelbutton {
|
|
|
|
|
padding-left: 9px;
|
|
|
|
|
padding-right: 9px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-15 23:55:59 +00:00
|
|
|
|
&.linked {
|
2019-12-01 01:43:16 +00:00
|
|
|
|
button:nth-child(2) {
|
|
|
|
|
&:dir(ltr) { @extend %linked_not_left; }
|
|
|
|
|
&:dir(rtl) { @extend %linked_not_right; }
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-03-11 13:42:49 +00:00
|
|
|
|
|
|
|
|
|
&:drop(active) { // FIXME: untested
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
button.combo { @extend %button_basic_drop_active; }
|
2016-03-11 13:42:49 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2020-06-15 13:18:04 +00:00
|
|
|
|
// newstyle
|
|
|
|
|
popover {
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
listview {
|
|
|
|
|
|
|
|
|
|
margin: 8px 0;
|
|
|
|
|
|
|
|
|
|
&>row {
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
|
outline-color: $alt_focus_border_color;
|
|
|
|
|
color: $text-color;
|
|
|
|
|
background-color: $menu_selected_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search { //drodowns with searchboxes on top
|
2020-10-22 15:08:32 +00:00
|
|
|
|
border-radius: $popover_radius;
|
2020-06-15 13:18:04 +00:00
|
|
|
|
padding: 3px 10px;
|
2020-10-22 15:08:32 +00:00
|
|
|
|
border-radius: 3px;
|
|
|
|
|
margin: 4px 4px -4px 4px;
|
2020-06-15 13:18:04 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-15 14:23:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-15 13:18:04 +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-01-09 13:36:05 +00:00
|
|
|
|
|
2020-08-02 09:48:54 +00:00
|
|
|
|
.linked:not(.vertical) > filechooserbutton > combobox,
|
|
|
|
|
.linked:not(.vertical) > appchooserbutton > combobox,
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked:not(.vertical) > combobox {
|
2019-12-01 01:43:16 +00:00
|
|
|
|
&:dir(ltr) {
|
|
|
|
|
&:not(:first-child) > box > button.combo { @extend %linked_not_left; }
|
|
|
|
|
&:not(:last-child) > box > button.combo { @extend %linked_not_right; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
&:not(:first-child) > box > button.combo { @extend %linked_not_right; }
|
|
|
|
|
&:not(:last-child) > box > button.combo { @extend %linked_not_left; }
|
|
|
|
|
}
|
2014-08-06 10:23:47 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-08-02 09:48:54 +00:00
|
|
|
|
.linked.vertical > filechooserbutton > combobox,
|
|
|
|
|
.linked.vertical > appchooserbutton > combobox,
|
2019-04-08 15:40:38 +00:00
|
|
|
|
.linked.vertical > combobox {
|
2019-12-01 01:43:16 +00:00
|
|
|
|
&:not(:first-child) > box > button.combo { @extend %linked_not_top; }
|
|
|
|
|
&:not(:last-child) > box > button.combo { @extend %linked_not_bottom; }
|
2019-04-08 15:40:38 +00:00
|
|
|
|
}
|
2014-08-06 10:23:47 +00:00
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/************
|
|
|
|
|
* Toolbars *
|
|
|
|
|
************/
|
2016-03-03 17:01:58 +00:00
|
|
|
|
%toolbar {
|
|
|
|
|
padding: 4px;
|
2020-08-25 15:09:45 +00:00
|
|
|
|
border-spacing: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
background-color: $bg_color;
|
2016-03-03 17:01:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-05-04 14:51:11 +00:00
|
|
|
|
.toolbar,
|
2016-03-03 17:01:58 +00:00
|
|
|
|
toolbar {
|
|
|
|
|
@extend %toolbar;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2015-12-03 18:28:57 +00:00
|
|
|
|
// on OSD
|
|
|
|
|
.osd & { background-color: transparent; }
|
|
|
|
|
|
|
|
|
|
// stand-alone OSD toolbars
|
|
|
|
|
&.osd {
|
2016-03-03 17:01:58 +00:00
|
|
|
|
padding: 13px;
|
2014-10-30 10:50:27 +00:00
|
|
|
|
border: none;
|
2014-10-30 12:18:48 +00:00
|
|
|
|
border-radius: 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
|
background-color: $osd_bg_color;
|
2015-12-03 18:28:57 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&.left,
|
|
|
|
|
&.right,
|
|
|
|
|
&.top,
|
|
|
|
|
&.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
|
|
|
|
|
}
|
2015-12-29 20:34:16 +00:00
|
|
|
|
|
|
|
|
|
// toolbar separators
|
2020-08-25 15:09:45 +00:00
|
|
|
|
&.horizontal > separator { margin: 4px 0; }
|
|
|
|
|
&.vertical > separator { margin: 0 4px; }
|
2014-07-08 09:22:59 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-02-03 04:17:23 +00:00
|
|
|
|
//searchbar & location-bar
|
2020-08-25 15:09:45 +00:00
|
|
|
|
searchbar > revealer > box {
|
|
|
|
|
padding: 6px;
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
@extend %toolbar;
|
2018-02-16 20:19:04 +00:00
|
|
|
|
|
2020-08-25 15:09:45 +00:00
|
|
|
|
@extend %darkbar;
|
2018-02-16 20:19:04 +00:00
|
|
|
|
|
2020-08-25 15:09:45 +00:00
|
|
|
|
border-width: 0 0 1px;
|
2018-02-04 21:24:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 20:48:31 +00:00
|
|
|
|
%darkbar {
|
2014-06-13 14:32:44 +00:00
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
$_bg: mix($bg_color, $borders_color, 70%);
|
|
|
|
|
background-color: $_bg;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
|
background-color: $backdrop_dark_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
box-shadow: none;
|
2016-03-19 18:56:15 +00:00
|
|
|
|
transition: $backdrop_transition;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-01 11:13:10 +00:00
|
|
|
|
/**************
|
|
|
|
|
* GtkInfoBar *
|
|
|
|
|
**************/
|
|
|
|
|
infobar {
|
|
|
|
|
> revealer > box {
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-spacing: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.action:hover > revealer > box {
|
|
|
|
|
background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 47%), 30%),
|
|
|
|
|
desaturate(darken(invert($selected_bg_color), 42%), 70%));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.info,
|
|
|
|
|
&.question,
|
|
|
|
|
&.warning,
|
|
|
|
|
&.error {
|
|
|
|
|
> revealer > box {
|
|
|
|
|
border-bottom: 1px solid lighten($borders_color, 5%);
|
|
|
|
|
background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%),
|
|
|
|
|
desaturate(darken(invert($selected_bg_color), 40%), 70%));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//close button for info and searchbar (#3215)
|
|
|
|
|
|
|
|
|
|
infobar .close,
|
|
|
|
|
searchbar .close {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
padding: 4px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(hover); }
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2020-04-24 12:56:52 +00:00
|
|
|
|
/*****************
|
|
|
|
|
* Title buttons *
|
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
|
|
windowcontrols {
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
|
2020-04-26 15:24:20 +00:00
|
|
|
|
&:not(.empty) {
|
|
|
|
|
&.start:dir(ltr),
|
|
|
|
|
&.end:dir(rtl) {
|
|
|
|
|
margin-right: 7px;
|
|
|
|
|
}
|
2020-04-24 12:56:52 +00:00
|
|
|
|
|
2020-04-26 15:24:20 +00:00
|
|
|
|
&.start:dir(rtl),
|
|
|
|
|
&.end:dir(ltr) {
|
|
|
|
|
margin-left: 7px;
|
|
|
|
|
}
|
2020-04-24 12:56:52 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
@extend %button_basic;
|
|
|
|
|
|
|
|
|
|
@extend %button_basic_flat;
|
|
|
|
|
|
2020-05-06 19:59:44 +00:00
|
|
|
|
border-radius: 9999px;
|
|
|
|
|
padding: 6px;
|
|
|
|
|
margin: 0 2px;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
min-height: 0;
|
2020-04-24 12:56:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/***************
|
|
|
|
|
* Header bars *
|
|
|
|
|
***************/
|
2015-12-21 15:18:04 +00:00
|
|
|
|
%titlebar,
|
|
|
|
|
headerbar {
|
2016-01-08 19:56:40 +00:00
|
|
|
|
padding: 0 6px;
|
|
|
|
|
min-height: 46px;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
|
border-style: solid;
|
2016-04-16 12:28:29 +00:00
|
|
|
|
border-color: $alt_borders_color;
|
2015-12-22 10:53:27 +00:00
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
2019-02-06 12:46:00 +00:00
|
|
|
|
@include headerbar_fill(darken($bg_color, 10%));
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
background-image: none;
|
2014-07-07 18:32:16 +00:00
|
|
|
|
box-shadow: inset 0 1px $top_hilight;
|
2016-03-19 18:56:15 +00:00
|
|
|
|
|
|
|
|
|
transition: $backdrop_transition;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
2015-04-28 14:52:46 +00:00
|
|
|
|
padding-left: 12px;
|
|
|
|
|
padding-right: 12px;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
font-weight: bold;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
.subtitle {
|
2014-09-03 15:01:43 +00:00
|
|
|
|
font-size: smaller;
|
2015-04-28 14:52:46 +00:00
|
|
|
|
padding-left: 12px;
|
|
|
|
|
padding-right: 12px;
|
2016-03-14 09:53:59 +00:00
|
|
|
|
|
2014-07-07 12:17:51 +00:00
|
|
|
|
@extend .dim-label;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
2019-02-06 12:46:00 +00:00
|
|
|
|
/* Darken switchbuttons for headerbars. issue #1588 */
|
2019-10-12 16:26:54 +00:00
|
|
|
|
stackswitcher > button:checked,
|
2019-02-06 12:46:00 +00:00
|
|
|
|
button.toggle:checked {
|
|
|
|
|
|
|
|
|
|
background: if($variant == 'light', image(darken($bg_color, 17%)), image(darken($bg_color, 9%)));
|
|
|
|
|
border-color: darken($borders_color, 3%);
|
|
|
|
|
border-top-color: darken($borders_color, 8%);
|
|
|
|
|
&:backdrop {
|
|
|
|
|
@include button(backdrop-active);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-31 07:16:51 +00:00
|
|
|
|
// squared corners when the window is maximized, tiled, or fullscreen
|
2016-01-09 13:36:05 +00:00
|
|
|
|
.tiled &,
|
2017-08-18 23:12:23 +00:00
|
|
|
|
.tiled-top &,
|
|
|
|
|
.tiled-left &,
|
|
|
|
|
.tiled-right &,
|
|
|
|
|
.tiled-bottom &,
|
2017-05-31 07:16:51 +00:00
|
|
|
|
.maximized &,
|
|
|
|
|
.fullscreen & {
|
|
|
|
|
&:backdrop, & {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
|
|
&.default-decoration {
|
2016-02-15 15:56:01 +00:00
|
|
|
|
min-height: 28px;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
padding: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-04-24 12:56:52 +00:00
|
|
|
|
windowcontrols {
|
|
|
|
|
button,
|
|
|
|
|
menubutton {
|
|
|
|
|
min-height: 26px;
|
|
|
|
|
min-width: 26px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2019-06-13 19:31:48 +00:00
|
|
|
|
|
2020-04-24 12:56:52 +00:00
|
|
|
|
menubutton button {
|
|
|
|
|
min-height: 20px;
|
|
|
|
|
min-width: 20px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 4px;
|
|
|
|
|
}
|
2019-06-13 19:31:48 +00:00
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
}
|
2016-04-15 14:51:29 +00:00
|
|
|
|
|
|
|
|
|
.solid-csd & {
|
2016-04-15 16:00:37 +00:00
|
|
|
|
&:backdrop, & {
|
2016-04-15 16:28:26 +00:00
|
|
|
|
&:dir(rtl), &:dir(ltr) { // specificity bump
|
|
|
|
|
margin-left: -1px;
|
|
|
|
|
margin-right: -1px;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-04-15 16:00:37 +00:00
|
|
|
|
}
|
2016-04-15 14:51:29 +00:00
|
|
|
|
}
|
2016-02-26 11:53:02 +00:00
|
|
|
|
}
|
2016-01-09 09:19:47 +00:00
|
|
|
|
|
2016-02-26 11:53:02 +00:00
|
|
|
|
headerbar {
|
2020-08-25 14:21:40 +00:00
|
|
|
|
> windowhandle > box {
|
|
|
|
|
&,
|
|
|
|
|
> box.start,
|
|
|
|
|
> box.end {
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-13 00:09:10 +00:00
|
|
|
|
|
2016-05-20 13:39:08 +00:00
|
|
|
|
// add vertical margins to common widget on the headerbar to avoid them spanning the whole height
|
2016-01-09 10:25:08 +00:00
|
|
|
|
entry,
|
2016-02-03 17:32:51 +00:00
|
|
|
|
spinbutton,
|
2018-09-07 10:32:36 +00:00
|
|
|
|
separator:not(.sidebar),
|
2019-10-18 09:44:32 +00:00
|
|
|
|
button,
|
|
|
|
|
menubutton {
|
2016-01-09 09:19:47 +00:00
|
|
|
|
margin-top: 6px;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
2019-10-18 09:44:32 +00:00
|
|
|
|
|
|
|
|
|
// Reset margins for buttons inside menubutton
|
|
|
|
|
menubutton > button {
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-05-20 13:39:08 +00:00
|
|
|
|
switch {
|
2019-03-19 14:59:05 +00:00
|
|
|
|
margin-top: 10px;
|
|
|
|
|
margin-bottom: 10px;
|
2016-05-20 13:39:08 +00:00
|
|
|
|
}
|
2018-09-07 11:04:59 +00:00
|
|
|
|
|
|
|
|
|
&.titlebar headerbar:not(.titlebar) {
|
|
|
|
|
// Drop the background of non-titlebar nested headerbars. This is needed to
|
|
|
|
|
// work around headerbar sliding animation issues without refactoring
|
|
|
|
|
// Adwaita's support of titlebars and headerbars as it may break
|
|
|
|
|
// applications.
|
|
|
|
|
// See https://gitlab.gnome.org/GNOME/gtk/issues/1264 for more information.
|
|
|
|
|
background: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-22 10:53:27 +00:00
|
|
|
|
|
2015-12-21 15:18:04 +00:00
|
|
|
|
.titlebar:not(headerbar) {
|
|
|
|
|
window.csd > & {
|
|
|
|
|
// in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
|
|
|
|
|
padding: 0;
|
2015-12-22 10:53:27 +00:00
|
|
|
|
background-color: transparent;
|
2015-12-21 15:18:04 +00:00
|
|
|
|
background-image: none;
|
2015-12-22 10:53:27 +00:00
|
|
|
|
border-style: none;
|
2015-12-21 15:18:04 +00:00
|
|
|
|
border-color: transparent;
|
2015-12-22 10:53:27 +00:00
|
|
|
|
box-shadow: none;
|
2015-12-21 15:18:04 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2018-07-24 12:37:57 +00:00
|
|
|
|
separator { background-color: $borders_color; } // FIXME: use darker border?
|
2016-02-26 11:53:02 +00:00
|
|
|
|
|
2015-12-21 15:18:04 +00:00
|
|
|
|
@extend %titlebar;
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-11 19:02:39 +00:00
|
|
|
|
// Development versions of apps to use a differently styled headerbar
|
|
|
|
|
|
2019-08-11 08:30:01 +00:00
|
|
|
|
window.devel {
|
2020-01-24 05:12:05 +00:00
|
|
|
|
headerbar.titlebar {
|
2019-08-11 08:30:01 +00:00
|
|
|
|
$c: darken($bg_color, 10%);
|
2020-01-13 21:19:12 +00:00
|
|
|
|
$gradient: cross-fade(10% -gtk-icontheme("system-run-symbolic"), image(transparent)) 90% 0/256px 256px no-repeat,
|
2019-08-11 08:30:01 +00:00
|
|
|
|
linear-gradient(to right, transparent 65%, transparentize($selected_bg_color, 0.8)),
|
|
|
|
|
linear-gradient(to top, darken($c, 3%), $c 3px, lighten($c, 6%));
|
|
|
|
|
@if $variant == 'dark' {
|
2020-01-13 21:19:12 +00:00
|
|
|
|
$gradient: cross-fade(10% -gtk-icontheme("system-run-symbolic"), image(transparent)) 90% 0/256px 256px no-repeat,
|
2019-08-11 08:30:01 +00:00
|
|
|
|
linear-gradient(to right, transparent 65%, transparentize($selected_bg_color, 0.9)),
|
|
|
|
|
linear-gradient(to top, lighten($c, 3%) 3px, lighten($c, 5%));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
background: $bg_color $gradient;
|
|
|
|
|
|
|
|
|
|
&:backdrop {
|
2020-01-13 21:19:12 +00:00
|
|
|
|
background: $bg_color cross-fade(10% -gtk-icontheme("system-run-symbolic"), image(transparent)) 90% 0/256px 256px no-repeat,
|
2019-08-11 08:30:01 +00:00
|
|
|
|
image($bg_color); /* background-color would flash */
|
|
|
|
|
}
|
2018-05-11 19:02:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-07-22 12:33:44 +00:00
|
|
|
|
/************
|
|
|
|
|
* Pathbars *
|
|
|
|
|
************/
|
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
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
pathbar > button {
|
2016-03-08 15:06:55 +00:00
|
|
|
|
&.text-button, &.image-button, & {
|
|
|
|
|
padding-left: 4px;
|
|
|
|
|
padding-right: 4px;
|
2014-07-22 12:33:44 +00:00
|
|
|
|
}
|
2014-09-26 15:05:17 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&.text-button.image-button label {
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
}
|
2014-07-22 12:33:44 +00:00
|
|
|
|
|
2016-03-08 15:06:55 +00:00
|
|
|
|
&.text-button.image-button, & {
|
|
|
|
|
label:last-child { padding-right: 8px; }
|
|
|
|
|
label:first-child { padding-left: 8px; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
padding-left: 4px;
|
|
|
|
|
padding-right: 4px;
|
|
|
|
|
}
|
2016-03-14 03:08:47 +00:00
|
|
|
|
|
|
|
|
|
&.slider-button {
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
}
|
2016-03-08 15:06:55 +00:00
|
|
|
|
}
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
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
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/**************
|
|
|
|
|
* Tree Views *
|
|
|
|
|
**************/
|
2020-04-15 12:53:19 +00:00
|
|
|
|
|
|
|
|
|
$_treeview_borders_color: if($variant=='light',mix($borders_color, $base_color,80%),mix($fg_color, $base_color, 20%));
|
|
|
|
|
$_treeview_backdrop_borders_color: if($variant=='light',mix($backdrop_borders_color, $base_color, 80%),mix($backdrop_fg_color, $base_color, 20%));
|
2020-06-04 12:42:55 +00:00
|
|
|
|
columnview.view,
|
2015-10-30 21:37:32 +00:00
|
|
|
|
treeview.view {
|
2020-04-15 12:53:19 +00:00
|
|
|
|
border-left-color: $_treeview_borders_color; // this is actually the tree lines color,
|
|
|
|
|
border-top-color: $_treeview_borders_color; // while this is the grid lines color, better then nothing
|
2014-10-15 18:41:19 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
|
2015-06-25 17:55:51 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
&:focus, & {
|
|
|
|
|
border-radius: 0;
|
2020-04-30 14:15:04 +00:00
|
|
|
|
outline-color: $alt_focus_border_color;
|
2014-11-15 18:08:13 +00:00
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
2014-10-15 18:41:19 +00:00
|
|
|
|
}
|
2014-11-28 16:03:53 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2014-11-28 16:03:53 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
2016-02-16 01:11:12 +00:00
|
|
|
|
|
2014-11-28 16:03:53 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 40%);
|
|
|
|
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-30 18:36:28 +00:00
|
|
|
|
&.separator {
|
|
|
|
|
min-height: 2px;
|
2020-04-15 12:53:19 +00:00
|
|
|
|
color: $_treeview_borders_color;
|
2015-01-10 18:04:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-10 11:53:37 +00:00
|
|
|
|
&:backdrop {
|
2020-04-15 12:53:19 +00:00
|
|
|
|
border-left-color: $_treeview_backdrop_borders_color;
|
|
|
|
|
border-top: $_treeview_backdrop_borders_color;
|
2014-07-10 12:59:08 +00:00
|
|
|
|
}
|
2020-01-23 23:50:39 +00:00
|
|
|
|
|
2016-03-20 23:41:31 +00:00
|
|
|
|
&:drop(active) {
|
2020-01-07 22:13:32 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2020-01-23 23:50:39 +00:00
|
|
|
|
|
|
|
|
|
> dndtarget:drop(active) {
|
2014-12-11 14:35:38 +00:00
|
|
|
|
border-style: solid none;
|
|
|
|
|
border-width: 1px;
|
2016-03-21 18:42:54 +00:00
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
|
|
|
|
|
|
&.after { border-top-style: none; }
|
|
|
|
|
|
|
|
|
|
&.before { border-bottom-style: none; }
|
2014-12-11 05:18:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
|
&.expander {
|
2018-06-20 20:11:59 +00:00
|
|
|
|
// GtkTreeView uses the larger of the expander’s min-width and min-height
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
min-height: 16px;
|
2014-07-10 12:59:08 +00:00
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
2016-02-16 01:11:12 +00:00
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-05-06 17:34:12 +00:00
|
|
|
|
color: mix($text_color, $base_color, 70%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-05-06 17:34:12 +00:00
|
|
|
|
&:hover { color: $text_color; }
|
2016-02-16 01:11:12 +00:00
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 70%);
|
2016-02-16 01:11:12 +00:00
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
|
&:hover { color: $selected_fg_color; }
|
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
|
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
2014-07-10 11:53:37 +00:00
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
|
&.progressbar { // progress bar in treeviews
|
|
|
|
|
@if $variant == light { color: $base_color; }
|
2014-12-17 17:29:02 +00:00
|
|
|
|
|
2016-03-15 16:02:01 +00:00
|
|
|
|
background-color: $selected_bg_color;
|
2019-06-07 08:46:42 +00:00
|
|
|
|
background-image: image($selected_bg_color);
|
|
|
|
|
box-shadow: none;
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
|
&:selected {
|
2016-03-15 16:02:01 +00:00
|
|
|
|
&:focus, & {
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
2014-12-17 17:29:02 +00:00
|
|
|
|
@if $variant == 'light' {
|
|
|
|
|
color: $selected_bg_color;
|
2019-06-07 08:46:42 +00:00
|
|
|
|
|
2014-12-17 17:29:02 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-15 16:02:01 +00:00
|
|
|
|
@else { box-shadow: inset 0 1px transparentize(white, 0.95); }
|
|
|
|
|
|
2019-06-07 08:46:42 +00:00
|
|
|
|
background-image: image($base_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-15 16:02:01 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
@if $variant == 'light' {
|
|
|
|
|
color: $selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
}
|
2014-09-29 18:11:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
|
&.trough { // progress bar trough in treeviews
|
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
|
&:selected {
|
2016-03-15 16:02:01 +00:00
|
|
|
|
&:focus, & {
|
|
|
|
|
background-color: if($variant == 'light',
|
|
|
|
|
transparentize($selected_fg_color, 0.7),
|
|
|
|
|
darken($selected_bg_color, 10%));
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-07-10 11:53:37 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> header {
|
|
|
|
|
> button {
|
2015-10-30 21:37:32 +00:00
|
|
|
|
$_column_header_color: mix($fg_color, $base_color, 50%);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
|
|
|
|
@extend %column_header_button;
|
|
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
|
color: $_column_header_color;
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-shadow: none;
|
2014-06-16 14:45:24 +00:00
|
|
|
|
box-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@extend %column_header_button;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
|
color: mix($_column_header_color, $fg_color, 50%);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
transition: none; //I shouldn't need this
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
|
&:active {
|
|
|
|
|
@extend %column_header_button;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2015-10-30 21:37:32 +00:00
|
|
|
|
color: $fg_color;
|
|
|
|
|
transition: none; //I shouldn't need this
|
|
|
|
|
}
|
2014-06-16 14:45:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 21:30:32 +00:00
|
|
|
|
button.dnd,
|
2015-10-30 21:37:32 +00:00
|
|
|
|
header.button.dnd { // for treeview-like derive widgets
|
2016-02-14 21:30:32 +00:00
|
|
|
|
&:active, &:selected, &:hover, & {
|
|
|
|
|
padding: 0 6px;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
color: $base_color;
|
2016-02-14 21:30:32 +00:00
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
border-style: none;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
border-radius: 0;
|
2016-02-14 21:30:32 +00:00
|
|
|
|
box-shadow: inset 0 0 0 1px $base_color;
|
|
|
|
|
text-shadow: none;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
transition: none;
|
2016-02-14 21:30:32 +00:00
|
|
|
|
}
|
2015-10-30 21:37:32 +00:00
|
|
|
|
}
|
2016-05-06 16:50:37 +00:00
|
|
|
|
|
|
|
|
|
acceleditor > label { background-color: $selected_bg_color; } // see tests/testaccel to test
|
2014-07-08 12:35:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-16 14:45:24 +00:00
|
|
|
|
%column_header_button {
|
2016-02-14 21:30:32 +00:00
|
|
|
|
padding: 0 6px;
|
2014-06-16 14:45:24 +00:00
|
|
|
|
background-image: none;
|
2020-10-19 13:37:20 +00:00
|
|
|
|
border-style: none none solid solid;
|
2020-04-15 12:53:19 +00:00
|
|
|
|
border-color: $_treeview_borders_color;
|
2016-04-17 21:40:29 +00:00
|
|
|
|
border-radius: 0;
|
|
|
|
|
text-shadow: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2014-06-16 14:45:24 +00:00
|
|
|
|
border-color: $bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
background-image: none;
|
2014-06-16 14:45:24 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2017-05-17 16:09:59 +00:00
|
|
|
|
&:last-child { &:backdrop, & { border-right-style: none; }}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2014-09-29 18:11:49 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/***************
|
|
|
|
|
* Popovers *
|
|
|
|
|
***************/
|
|
|
|
|
|
2019-05-05 23:53:02 +00:00
|
|
|
|
popover.background {
|
|
|
|
|
background-color: transparent;
|
2019-09-02 16:43:41 +00:00
|
|
|
|
font: initial; // Decouple the font of popovers from their entry/textview
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-09-02 16:34:05 +00:00
|
|
|
|
> arrow,
|
|
|
|
|
> contents {
|
2020-05-06 19:19:03 +00:00
|
|
|
|
$_popover_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
|
|
|
|
|
|
2020-05-13 17:18:45 +00:00
|
|
|
|
background-color: $menu_color;
|
2020-05-06 19:19:03 +00:00
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
border: 1px solid $_popover_border;
|
2019-09-02 16:34:05 +00:00
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.7);
|
|
|
|
|
}
|
2019-06-27 08:40:22 +00:00
|
|
|
|
|
2020-08-01 08:31:53 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-02 16:34:05 +00:00
|
|
|
|
> contents {
|
|
|
|
|
padding: 8px;
|
2019-06-27 08:40:22 +00:00
|
|
|
|
border-radius: $popover_radius;
|
2014-11-14 18:34:09 +00:00
|
|
|
|
|
2019-09-02 16:34:05 +00:00
|
|
|
|
> list,
|
|
|
|
|
> .view,
|
|
|
|
|
> toolbar {
|
|
|
|
|
border-style: none;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
separator { margin: 3px; }
|
|
|
|
|
|
|
|
|
|
list separator { margin: 0; }
|
2016-02-05 13:10:36 +00:00
|
|
|
|
}
|
2014-11-14 18:34:09 +00:00
|
|
|
|
|
2019-09-02 16:34:05 +00:00
|
|
|
|
.osd &,
|
|
|
|
|
&.touch-selection,
|
|
|
|
|
&.magnifier {
|
2014-06-13 14:32:44 +00:00
|
|
|
|
background-color: transparent;
|
2014-11-14 18:34:09 +00:00
|
|
|
|
|
2019-09-02 16:34:05 +00:00
|
|
|
|
> arrow,
|
|
|
|
|
> contents {
|
2015-12-09 13:52:03 +00:00
|
|
|
|
@extend %osd;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2015-12-09 13:52:03 +00:00
|
|
|
|
border: 1px solid transparentize(white, 0.9);
|
2019-09-02 16:34:05 +00:00
|
|
|
|
box-shadow: none;
|
2015-12-09 13:52:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-07 17:27:11 +00:00
|
|
|
|
|
2019-09-02 16:34:05 +00:00
|
|
|
|
&.touch-selection,
|
|
|
|
|
&.magnifier {
|
|
|
|
|
button { @extend %osd_button; }
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-03 15:12:32 +00:00
|
|
|
|
magnifier {
|
|
|
|
|
background-color: $base_color;
|
|
|
|
|
}
|
2016-10-29 15:34:49 +00:00
|
|
|
|
|
2020-11-17 00:07:24 +00:00
|
|
|
|
/**********************
|
|
|
|
|
* Popover Base Menus *
|
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
|
|
$_menu-padding: 12px; //inner menuitem padding
|
|
|
|
|
//global $menu-margin for outside menuitems
|
|
|
|
|
|
|
|
|
|
popover.menu {
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
box.inline-buttons {
|
|
|
|
|
padding: 0 $_menu-padding;
|
|
|
|
|
|
|
|
|
|
button.image-button.model {
|
|
|
|
|
@include button(undecorated);
|
|
|
|
|
|
|
|
|
|
min-height: 30px;
|
|
|
|
|
min-width: 30px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
outline: none;
|
|
|
|
|
transition: none;
|
|
|
|
|
|
|
|
|
|
&:selected { background: image($menu_selected_color); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
box.circular-buttons {
|
|
|
|
|
padding: $_menu-padding $_menu-padding 6px;
|
|
|
|
|
|
|
|
|
|
button.circular.image-button.model {
|
|
|
|
|
@extend %list_button;
|
|
|
|
|
|
|
|
|
|
padding: 11px;
|
|
|
|
|
&:focus {
|
|
|
|
|
background-color: $menu_selected_color;
|
|
|
|
|
border-color: $menu_selected_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > arrow,
|
|
|
|
|
&.background > contents {
|
|
|
|
|
background-color: $menu_color;
|
|
|
|
|
padding: $menu-margin;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.background separator {
|
|
|
|
|
margin: 6px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
accelerator {
|
|
|
|
|
color: gtkalpha(currentColor,0.55);
|
|
|
|
|
|
|
|
|
|
&:dir(ltr) { margin-left: $_menu-padding; }
|
|
|
|
|
&:dir(rtl) { margin-right: $_menu-padding; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check,
|
|
|
|
|
radio {
|
|
|
|
|
@include check('menu', 'transparent', $text_color);
|
|
|
|
|
|
|
|
|
|
&:hover { @include check('menu-active', 'transparent', $text_color); }
|
|
|
|
|
&:active { @include check('menu-active', 'transparent', $text_color); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//only menu radios have a border
|
|
|
|
|
radio { border-color: $borders_color;
|
|
|
|
|
&:active { border-color: transparentize($borders_color,0.5); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
arrow.left,
|
|
|
|
|
radio.left,
|
|
|
|
|
check.left {
|
|
|
|
|
margin-left: -2px;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
arrow.right,
|
|
|
|
|
radio.right,
|
|
|
|
|
check.right {
|
|
|
|
|
margin-left: 6px;
|
|
|
|
|
margin-right: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
modelbutton {
|
|
|
|
|
min-height: 30px;
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
padding: 0 $_menu-padding;
|
|
|
|
|
border-radius: $menu-margin;
|
|
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
|
color: $text-color;
|
|
|
|
|
background-color: $menu_selected_color;
|
|
|
|
|
}
|
|
|
|
|
&:selected:active {
|
|
|
|
|
//@extend %selected_items;
|
|
|
|
|
//color: $selected_fg_color;
|
|
|
|
|
background-color: darken($bg_color,14%); // matching buttons
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label.title {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
padding: 4px ($_menu-padding + 20px); //this will fall apart with font sizing
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// initial styling for popover menu and bar
|
|
|
|
|
menubar {
|
|
|
|
|
padding: 0px;
|
|
|
|
|
box-shadow: inset 0 -1px transparentize(black, 0.9);
|
|
|
|
|
|
|
|
|
|
> item {
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
|
|
|
|
|
&:selected { //Seems like it :hover even with keyboard focus
|
|
|
|
|
box-shadow: inset 0 -3px $selected_bg_color;
|
|
|
|
|
color: $link_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > item popover.menu.background > contents {
|
|
|
|
|
padding: $menu-margin;
|
|
|
|
|
}
|
|
|
|
|
//nested submenus
|
|
|
|
|
& > item popover.menu popover.menu {
|
|
|
|
|
padding: 0 0 4px 0;
|
|
|
|
|
}
|
|
|
|
|
& > item popover.menu.background popover.menu.background > contents {
|
|
|
|
|
margin: 0;
|
|
|
|
|
border-radius: $popover_radius; //including top
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-11-08 20:01:09 +00:00
|
|
|
|
/*************
|
|
|
|
|
* Notebooks *
|
|
|
|
|
*************/
|
2015-10-27 02:11:56 +00:00
|
|
|
|
notebook {
|
2020-05-15 07:32:41 +00:00
|
|
|
|
@include focus-ring("> header > tabs > tab:checked", $offset: -2px, $focus-state: 'focus:focus-visible');
|
2020-04-30 14:15:04 +00:00
|
|
|
|
|
2019-09-13 12:45:54 +00:00
|
|
|
|
> header {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
padding: 1px;
|
2016-01-29 15:32:43 +00:00
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
background-color: $dark_fill;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> tabs { margin: -1px; }
|
2016-03-15 18:02:11 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&.top {
|
2016-01-29 15:32:43 +00:00
|
|
|
|
border-bottom-style: solid;
|
|
|
|
|
> tabs {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
margin-bottom: -2px;
|
2016-01-29 15:32:43 +00:00
|
|
|
|
> tab {
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:hover { box-shadow: inset 0 -4px $borders_color; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
|
|
|
|
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:checked { box-shadow: inset 0 -4px $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&.bottom {
|
2016-01-29 15:32:43 +00:00
|
|
|
|
border-top-style: solid;
|
|
|
|
|
> tabs {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
margin-top: -2px;
|
2016-01-29 15:32:43 +00:00
|
|
|
|
> tab {
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:hover { box-shadow: inset 0 4px $borders_color; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:checked { box-shadow: inset 0 4px $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
|
|
|
|
|
&.left {
|
|
|
|
|
border-right-style: solid;
|
|
|
|
|
> tabs {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
margin-right: -2px;
|
2016-01-29 15:32:43 +00:00
|
|
|
|
> tab {
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:hover { box-shadow: inset -4px 0 $borders_color; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:checked { box-shadow: inset -4px 0 $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
|
|
|
|
|
&.right {
|
|
|
|
|
border-left-style: solid;
|
|
|
|
|
> tabs {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
margin-left: -2px;
|
2016-01-29 15:32:43 +00:00
|
|
|
|
> tab {
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:hover { box-shadow: inset 4px 0 $borders_color; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2020-06-23 17:54:54 +00:00
|
|
|
|
&:checked { box-shadow: inset 4px 0 $selected_bg_color; }
|
2015-11-08 23:11:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-15 17:39:50 +00:00
|
|
|
|
&.top > tabs > arrow {
|
|
|
|
|
@extend %notebook_vert_arrows;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-15 17:39:50 +00:00
|
|
|
|
border-top-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bottom > tabs > arrow {
|
|
|
|
|
@extend %notebook_vert_arrows;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-15 17:39:50 +00:00
|
|
|
|
border-bottom-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@at-root %notebook_vert_arrows {
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
margin-right: -5px;
|
|
|
|
|
padding-left: 4px;
|
|
|
|
|
padding-right: 4px;
|
|
|
|
|
|
|
|
|
|
&.down { -gtk-icon-source: -gtk-icontheme('pan-start-symbolic'); }
|
|
|
|
|
|
|
|
|
|
&.up { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.left > tabs > arrow {
|
|
|
|
|
@extend %notebook_horz_arrows;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-15 17:39:50 +00:00
|
|
|
|
border-left-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.right > tabs > arrow {
|
|
|
|
|
@extend %notebook_horz_arrows;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-15 17:39:50 +00:00
|
|
|
|
border-right-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@at-root %notebook_horz_arrows {
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
margin-bottom: -5px;
|
|
|
|
|
padding-top: 4px;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
|
|
|
|
|
&.down { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
|
|
|
|
|
|
|
|
|
|
&.up { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-13 23:25:04 +00:00
|
|
|
|
> tabs > arrow {
|
2016-02-14 01:35:28 +00:00
|
|
|
|
@extend %button_basic;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@extend %button_basic_flat;
|
2016-02-13 23:25:04 +00:00
|
|
|
|
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
2016-03-12 18:02:48 +00:00
|
|
|
|
&:hover:not(:active):not(:backdrop) {
|
2016-02-15 17:39:50 +00:00
|
|
|
|
background-clip: padding-box;
|
2016-02-13 23:25:04 +00:00
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: transparentize(white, 0.7);
|
2016-02-15 17:39:50 +00:00
|
|
|
|
border-color: transparent;
|
2016-02-13 23:25:04 +00:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-12 18:25:46 +00:00
|
|
|
|
&:disabled { @include button(undecorated); }
|
2016-02-12 23:24:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> tabs > tab {
|
2020-04-30 14:15:04 +00:00
|
|
|
|
transition: $focus_transition;
|
2016-02-16 19:27:06 +00:00
|
|
|
|
min-height: 30px;
|
|
|
|
|
min-width: 30px;
|
|
|
|
|
padding: 3px 12px;
|
|
|
|
|
|
2020-06-23 17:54:54 +00:00
|
|
|
|
color: $fg_color;
|
|
|
|
|
font-weight: normal;
|
2016-02-16 19:27:06 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
border-width: 1px; // for reorderable tabs
|
|
|
|
|
border-color: transparent; //
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&:hover {
|
2020-06-23 17:54:54 +00:00
|
|
|
|
color: $fg_color;
|
|
|
|
|
background-color: darken($bg_color,4%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&.reorderable-page {
|
|
|
|
|
border-color: transparentize($borders_color, 0.7);
|
|
|
|
|
background-color: transparentize($bg_color, 0.8);
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
&:not(:checked) {
|
|
|
|
|
outline-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-27 02:48:46 +00:00
|
|
|
|
&:checked {
|
2016-01-29 15:32:43 +00:00
|
|
|
|
color: $fg_color;
|
|
|
|
|
&.reorderable-page {
|
|
|
|
|
border-color: transparentize($borders_color, 0.5);
|
|
|
|
|
background-color: transparentize($bg_color, 0.5);
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&:hover { background-color: transparentize($bg_color, 0.3); }
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
// colors the button like the label, overridden otherwise
|
|
|
|
|
button.flat {
|
2020-05-18 20:51:02 +00:00
|
|
|
|
color: gtkalpha(currentColor, 0.3);
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&:hover { color: currentColor; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 17:09:28 +00:00
|
|
|
|
padding: 0;
|
2016-02-16 19:27:06 +00:00
|
|
|
|
margin-top: 4px;
|
|
|
|
|
margin-bottom: 4px;
|
2016-01-29 15:32:43 +00:00
|
|
|
|
// FIXME: generalize .small-button?
|
2016-02-15 13:25:30 +00:00
|
|
|
|
min-width: 20px;
|
|
|
|
|
min-height: 20px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&:last-child {
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
margin-right: -4px;
|
2014-06-24 12:04:26 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&:first-child {
|
|
|
|
|
margin-left: -4px;
|
|
|
|
|
margin-right: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-18 10:08:04 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&.top,
|
|
|
|
|
&.bottom {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> tabs {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
padding-left: 4px;
|
|
|
|
|
padding-right: 4px;
|
|
|
|
|
|
|
|
|
|
&:not(:only-child) {
|
|
|
|
|
margin-left: 3px;
|
|
|
|
|
margin-right: 3px;
|
|
|
|
|
|
|
|
|
|
&:first-child { margin-left: -1px; }
|
|
|
|
|
&:last-child { margin-right: -1px; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> tab {
|
2016-01-29 15:32:43 +00:00
|
|
|
|
margin-left: 4px;
|
|
|
|
|
margin-right: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&.reorderable-page { border-style: none solid; }
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-07-02 15:52:36 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&.left,
|
|
|
|
|
&.right {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> tabs {
|
2016-03-15 18:02:11 +00:00
|
|
|
|
padding-top: 4px;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
|
|
|
|
|
&:not(:only-child) {
|
|
|
|
|
margin-top: 3px;
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
|
|
|
|
|
&:first-child { margin-top: -1px; }
|
|
|
|
|
&:last-child { margin-bottom: -1px; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> tab {
|
2016-01-29 15:32:43 +00:00
|
|
|
|
margin-top: 4px;
|
|
|
|
|
margin-bottom: 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
&.reorderable-page { border-style: solid none; }
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-29 15:32:43 +00:00
|
|
|
|
}
|
2016-02-26 18:01:19 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.top > tabs > tab { padding-bottom: 4px; }
|
|
|
|
|
&.bottom > tabs > tab { padding-top: 4px; }
|
2016-01-29 15:32:43 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-09-13 12:45:54 +00:00
|
|
|
|
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
|
2016-01-29 15:32:43 +00:00
|
|
|
|
background-color: $base_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2015-11-08 20:01:09 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-01-29 15:32:43 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/**************
|
|
|
|
|
* Scrollbars *
|
|
|
|
|
**************/
|
2015-11-05 05:20:50 +00:00
|
|
|
|
scrollbar {
|
2016-03-08 13:00:01 +00:00
|
|
|
|
$_slider_min_length: 40px;
|
2016-03-05 00:39:13 +00:00
|
|
|
|
|
|
|
|
|
background-color: $scrollbar_bg_color;
|
|
|
|
|
transition: 300ms $ease-out-quad;
|
2015-01-16 17:32:16 +00:00
|
|
|
|
|
2016-03-05 00:39:13 +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; }
|
2014-11-06 11:39:34 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> range > trough > slider {
|
2016-03-05 01:01:16 +00:00
|
|
|
|
min-width: 6px;
|
|
|
|
|
min-height: 6px;
|
2016-03-05 00:39:13 +00:00
|
|
|
|
margin: -1px;
|
|
|
|
|
border: 4px solid transparent;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
background-color: $scrollbar_slider_color;
|
|
|
|
|
|
|
|
|
|
&:hover { background-color: $scrollbar_slider_hover_color; }
|
|
|
|
|
|
|
|
|
|
&:hover:active { background-color: $scrollbar_slider_active_color; }
|
|
|
|
|
|
|
|
|
|
&:disabled { background-color: transparent; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> range.fine-tune {
|
|
|
|
|
> trough > slider {
|
2016-03-05 20:04:52 +00:00
|
|
|
|
min-width: 4px;
|
|
|
|
|
min-height: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.horizontal > trough > slider { border-width: 5px 4px; }
|
|
|
|
|
&.vertical > trough > slider { border-width: 4px 5px; }
|
2016-01-09 22:00:09 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
|
&.overlay-indicator {
|
2016-03-05 00:39:13 +00:00
|
|
|
|
&:not(.dragging):not(.hovering) {
|
2016-03-05 01:09:22 +00:00
|
|
|
|
border-color: transparent;
|
2015-04-17 13:33:04 +00:00
|
|
|
|
opacity: 0.4;
|
2016-03-05 00:39:13 +00:00
|
|
|
|
background-color: transparent;
|
2015-01-16 17:32:16 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> range > trough > slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
|
margin: 0;
|
2016-03-05 00:39:13 +00:00
|
|
|
|
min-width: 3px;
|
|
|
|
|
min-height: 3px;
|
2015-01-16 17:32:16 +00:00
|
|
|
|
background-color: $fg_color;
|
2016-03-05 00:39:13 +00:00
|
|
|
|
border: 1px solid if($variant == 'light', white, black);
|
2015-01-16 17:32:16 +00:00
|
|
|
|
}
|
2020-01-25 20:05:14 +00:00
|
|
|
|
|
|
|
|
|
&.horizontal {
|
|
|
|
|
> range > trough > slider {
|
|
|
|
|
margin: 0 2px;
|
|
|
|
|
min-width: $_slider_min_length;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.vertical {
|
|
|
|
|
> range > trough > slider {
|
|
|
|
|
margin: 2px 0;
|
|
|
|
|
min-height: $_slider_min_length;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-05 00:39:13 +00:00
|
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
|
2016-03-05 00:39:13 +00:00
|
|
|
|
&.dragging,
|
|
|
|
|
&.hovering { opacity: 0.8; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.horizontal > range > trough > slider { min-width: $_slider_min_length; }
|
|
|
|
|
&.vertical > range > trough > slider { min-height: $_slider_min_length; }
|
2014-11-06 22:57:40 +00:00
|
|
|
|
}
|
2014-10-11 12:31:08 +00:00
|
|
|
|
|
2016-03-05 01:09:22 +00:00
|
|
|
|
treeview ~ scrollbar.vertical {
|
|
|
|
|
border-top: 1px solid $borders_color;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/**********
|
|
|
|
|
* Switch *
|
|
|
|
|
**********/
|
2015-10-23 01:42:20 +00:00
|
|
|
|
switch {
|
2014-08-28 10:48:32 +00:00
|
|
|
|
font-weight: bold;
|
2014-09-03 15:01:43 +00:00
|
|
|
|
font-size: smaller;
|
2016-04-16 11:41:32 +00:00
|
|
|
|
|
2015-10-23 01:42:20 +00:00
|
|
|
|
// similar to the .scale
|
|
|
|
|
border: 1px solid $borders_color;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
border-radius: 14px;
|
2015-10-23 01:42:20 +00:00
|
|
|
|
color: $fg_color;
|
2016-04-16 11:41:32 +00:00
|
|
|
|
background-color: $dark_fill;
|
2015-10-23 01:42:20 +00:00
|
|
|
|
text-shadow: 0 1px transparentize(black, 0.9);
|
2020-04-30 14:15:04 +00:00
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
|
|
|
|
@include focus-ring($offset: 0, $outer: true);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-23 17:14:57 +00:00
|
|
|
|
&:checked {
|
2016-04-16 11:41:32 +00:00
|
|
|
|
color: $selected_fg_color;
|
2020-05-13 17:18:45 +00:00
|
|
|
|
border-color: $switch_borders_color;
|
|
|
|
|
background-color: $switch_bg_color;
|
|
|
|
|
text-shadow: 0 1px transparentize($switch_borders_color, 0.5),
|
2016-01-09 13:36:05 +00:00
|
|
|
|
0 0 2px transparentize(white, 0.4);
|
2015-10-23 01:42:20 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2016-01-09 13:36:05 +00:00
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
|
border-color: $borders_color;
|
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
|
text-shadow: none;
|
2015-10-23 01:42:20 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> slider {
|
2015-12-23 17:57:04 +00:00
|
|
|
|
margin: -1px;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
min-width: 24px;
|
|
|
|
|
min-height: 24px;
|
2014-08-28 13:42:17 +00:00
|
|
|
|
border: 1px solid;
|
2020-04-22 09:51:27 +00:00
|
|
|
|
border-color: $borders_color;
|
2019-02-06 12:46:00 +00:00
|
|
|
|
border-radius: 50%;
|
2016-03-20 23:44:47 +00:00
|
|
|
|
transition: $button_transition;
|
|
|
|
|
|
2020-04-22 09:51:27 +00:00
|
|
|
|
@include button(normal, $edge: $shadow_color);
|
2015-10-23 15:12:01 +00:00
|
|
|
|
}
|
2019-06-27 08:55:18 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> image { color: transparent; } /* only show i / o for the accessible theme */
|
2019-02-06 12:46:00 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&:hover > slider {
|
2019-06-27 08:55:18 +00:00
|
|
|
|
@if $variant == 'light' {
|
|
|
|
|
@include button(hover-alt, $edge: $shadow_color);
|
|
|
|
|
}
|
|
|
|
|
@else {
|
|
|
|
|
@include button(hover-alt, $c: lighten($bg_color,6%), $edge: $shadow_color);
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-13 17:18:45 +00:00
|
|
|
|
&:checked > slider { border: 1px solid $switch_borders_color; }
|
2015-10-23 15:12:01 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&:disabled > slider { @include button(insensitive); }
|
2015-10-23 15:12:01 +00:00
|
|
|
|
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-05 18:53:43 +00:00
|
|
|
|
row:selected & {
|
2020-04-30 14:15:04 +00:00
|
|
|
|
outline-color: $alt_focus_border_color;
|
|
|
|
|
|
2014-09-06 15:02:20 +00:00
|
|
|
|
@if $variant == 'light' {
|
|
|
|
|
box-shadow: none;
|
2020-05-13 17:18:45 +00:00
|
|
|
|
border-color: $switch_borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-13 17:18:45 +00:00
|
|
|
|
> slider { &:checked, & { border-color: $switch_borders_color; } }
|
2014-09-06 15:02:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*************************
|
|
|
|
|
* Check and Radio items *
|
|
|
|
|
*************************/
|
|
|
|
|
// draw regular check and radio items using our PNG assets
|
|
|
|
|
// all assets are rendered from assets.svg. never add pngs directly
|
|
|
|
|
|
2014-08-21 12:32:41 +00:00
|
|
|
|
|
2014-08-19 16:45:15 +00:00
|
|
|
|
//selection-mode
|
2019-03-11 13:57:19 +00:00
|
|
|
|
@each $check_state, $check_icon, $check_color, $check_background in
|
2020-03-06 12:13:37 +00:00
|
|
|
|
('', 'none', 'transparent', $checkradio_bg_color),
|
|
|
|
|
(':hover', 'none', 'transparent', $checkradio_bg_color),
|
|
|
|
|
(':active', 'none', 'transparent', $checkradio_bg_color),
|
|
|
|
|
(':backdrop', 'none', 'transparent', '#{desaturate($checkradio_bg_color, 100%)}'),
|
|
|
|
|
(':checked', '-gtk-icontheme(\'object-select-symbolic\')', $osd_fg_color, $checkradio_bg_color),
|
|
|
|
|
(':checked:hover', '-gtk-icontheme(\'object-select-symbolic\')', $osd_fg_color, $checkradio_bg_color),
|
|
|
|
|
(':checked:active', '-gtk-icontheme(\'object-select-symbolic\')', $osd_fg_color, $checkradio_bg_color),
|
|
|
|
|
(':backdrop:checked', '-gtk-icontheme(\'object-select-symbolic\')', '#{transparentize($osd_fg_color, 0.2)}', '#{desaturate($checkradio_bg_color, 100%)}'), {
|
2019-03-11 13:57:19 +00:00
|
|
|
|
|
|
|
|
|
.view.content-view.check#{$check_state}:not(list),
|
|
|
|
|
.content-view .tile check#{$check_state}:not(list) {
|
|
|
|
|
margin: 4px;
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
color: #{$check_color};
|
|
|
|
|
background-color: #{$check_background};
|
|
|
|
|
border-radius: 5px;
|
2017-03-02 11:39:02 +00:00
|
|
|
|
background-image: none;
|
2019-03-11 13:57:19 +00:00
|
|
|
|
transition: 200ms;
|
2017-03-02 11:39:02 +00:00
|
|
|
|
box-shadow: none;
|
2017-03-06 14:34:38 +00:00
|
|
|
|
border-width: 0;
|
2019-03-11 13:57:19 +00:00
|
|
|
|
-gtk-icon-source: #{$check_icon};
|
|
|
|
|
-gtk-icon-shadow: none;
|
2014-08-19 16:45:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-07 03:45:30 +00:00
|
|
|
|
checkbutton {
|
2019-09-28 06:45:11 +00:00
|
|
|
|
border-spacing: 4px;
|
2020-04-30 14:15:04 +00:00
|
|
|
|
border-radius: $button_radius;
|
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
|
|
|
|
&.text-button {
|
|
|
|
|
// this is for a nice focus on check and radios text
|
2020-05-18 11:00:11 +00:00
|
|
|
|
padding: 4px;
|
2020-04-30 14:15:04 +00:00
|
|
|
|
}
|
2014-06-18 08:11:11 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2016-01-21 02:12:10 +00:00
|
|
|
|
check,
|
|
|
|
|
radio {
|
|
|
|
|
min-height: 14px;
|
|
|
|
|
min-width: 14px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
-gtk-icon-source: none;
|
2016-03-11 15:34:30 +00:00
|
|
|
|
|
2019-11-15 12:16:07 +00:00
|
|
|
|
& {
|
|
|
|
|
// for unchecked
|
|
|
|
|
$_c: if($variant=='light', white, $bg_color);
|
|
|
|
|
|
|
|
|
|
@each $state, $t in ("", "normal"),
|
|
|
|
|
(":hover", "hover"),
|
|
|
|
|
(":active", "active"),
|
2020-05-18 20:51:02 +00:00
|
|
|
|
(":disabled", "insensitive") {
|
2019-11-15 12:16:07 +00:00
|
|
|
|
&#{$state} {
|
|
|
|
|
@include check($t, $_c);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-21 02:12:10 +00:00
|
|
|
|
|
2019-11-15 12:16:07 +00:00
|
|
|
|
& {
|
|
|
|
|
// for checked
|
|
|
|
|
@each $t in (':checked'), (':indeterminate') {
|
|
|
|
|
&#{$t} {
|
|
|
|
|
@each $state, $t in ("", "normal"),
|
|
|
|
|
(":hover", "hover"),
|
|
|
|
|
(":active", "active"),
|
2020-05-18 20:51:02 +00:00
|
|
|
|
(":disabled", "insensitive") {
|
2019-11-15 12:16:07 +00:00
|
|
|
|
&#{$state} {
|
|
|
|
|
@include check($t, $checkradio_bg_color, $checkradio_fg_color, $checked: true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-04 23:35:49 +00:00
|
|
|
|
}
|
2019-11-15 12:16:07 +00:00
|
|
|
|
|
2016-01-21 02:12:10 +00:00
|
|
|
|
@if $variant == 'light' {
|
|
|
|
|
// the borders of the light variant versions of checks and radios are too similar in luminosity to the selected background
|
|
|
|
|
// color, hence we need special casing.
|
2020-03-06 12:13:37 +00:00
|
|
|
|
row:selected & { border-color: $checkradio_borders_color; }
|
2016-01-21 02:12:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-11 15:34:30 +00:00
|
|
|
|
.osd & {
|
|
|
|
|
@include button(osd);
|
|
|
|
|
|
|
|
|
|
&:hover { @include button(osd); }
|
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
|
&:disabled { @include button(osd-insensitive); }
|
|
|
|
|
}
|
2016-01-21 02:12:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-16 01:11:12 +00:00
|
|
|
|
%check,
|
2016-01-21 02:12:10 +00:00
|
|
|
|
check {
|
|
|
|
|
border-radius: 3px;
|
2017-11-15 23:07:52 +00:00
|
|
|
|
-gtk-icon-size: 14px;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2017-10-28 19:22:24 +00:00
|
|
|
|
&:checked { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/check-symbolic.symbolic.png")),
|
|
|
|
|
-gtk-recolor(url("assets/check@2-symbolic.symbolic.png"))); }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2017-10-28 19:22:24 +00:00
|
|
|
|
&:indeterminate { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/dash-symbolic.symbolic.png")),
|
|
|
|
|
-gtk-recolor(url("assets/dash@2-symbolic.symbolic.png"))); }
|
2015-12-16 17:27:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-16 01:11:12 +00:00
|
|
|
|
%radio,
|
2016-01-21 02:12:10 +00:00
|
|
|
|
radio {
|
|
|
|
|
border-radius: 100%;
|
2017-11-15 23:07:52 +00:00
|
|
|
|
-gtk-icon-size: 14px;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2017-10-28 19:22:24 +00:00
|
|
|
|
&:checked { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/bullet-symbolic.symbolic.png")),
|
|
|
|
|
-gtk-recolor(url("assets/bullet@2-symbolic.symbolic.png"))); }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2017-10-28 19:22:24 +00:00
|
|
|
|
&:indeterminate { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/dash-symbolic.symbolic.png")),
|
|
|
|
|
-gtk-recolor(url("assets/dash@2-symbolic.symbolic.png"))); }
|
2016-01-21 02:12:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 12:11:15 +00:00
|
|
|
|
treeview.view check,
|
|
|
|
|
treeview.view radio {
|
|
|
|
|
&:selected {
|
|
|
|
|
&:focus, & {
|
2019-07-23 16:24:34 +00:00
|
|
|
|
color: $checkradio_fg_color;
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-02-16 01:11:12 +00:00
|
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-16 12:11:15 +00:00
|
|
|
|
treeview.view radio:selected { &:focus, & { @extend %radio; }} // This is a workaround
|
|
|
|
|
|
2016-02-16 01:11:12 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/************
|
|
|
|
|
* GtkScale *
|
|
|
|
|
************/
|
2015-12-03 11:18:17 +00:00
|
|
|
|
%scale_trough {
|
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
background-color: $dark_fill;
|
|
|
|
|
|
2020-03-26 14:35:01 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
|
border-color: $insensitive_borders_color;
|
|
|
|
|
}
|
2015-12-03 11:18:17 +00:00
|
|
|
|
|
|
|
|
|
// ...on selected list rows
|
2020-04-30 14:15:04 +00:00
|
|
|
|
row:selected & {
|
|
|
|
|
&:disabled, & {
|
|
|
|
|
outline-color: $alt_focus_border_color;
|
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-03 11:18:17 +00:00
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
|
background-color: transparentize($osd_borders_color, 0.2);
|
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled { background-color: $osd_insensitive_bg_color; }
|
2015-12-03 11:18:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%scale_highlight {
|
|
|
|
|
border: 1px solid $selected_borders_color;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2015-12-03 11:18:17 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ...on selected list rows
|
2016-04-16 11:19:41 +00:00
|
|
|
|
row:selected & { &:disabled, & { border-color: $selected_borders_color; }}
|
2015-12-03 11:18:17 +00:00
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
border-color: $osd_borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled { border-color: transparent; }
|
2015-12-03 11:18:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-06 12:04:14 +00:00
|
|
|
|
scale {
|
2016-02-24 21:36:14 +00:00
|
|
|
|
// sizing
|
2017-05-15 12:07:03 +00:00
|
|
|
|
$_marks_length: 6px;
|
2016-03-02 20:34:03 +00:00
|
|
|
|
$_marks_distance: 6px;
|
|
|
|
|
|
2016-02-25 16:49:12 +00:00
|
|
|
|
min-height: 10px;
|
|
|
|
|
min-width: 10px;
|
|
|
|
|
padding: 12px;
|
2016-02-24 21:36:14 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
@include focus-ring("> trough", $offset: 10px);
|
|
|
|
|
|
2016-03-15 15:12:40 +00:00
|
|
|
|
// those are inside the trough node, I need them to show their own border over the trough one, so negative margin
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2020-04-30 14:15:04 +00:00
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> fill,
|
|
|
|
|
> highlight { margin: -1px; }
|
2016-02-20 15:07:00 +00:00
|
|
|
|
|
2016-03-15 15:12:40 +00:00
|
|
|
|
// the slider is inside the trough, so to have make it bigger there's a negative margin
|
2016-05-19 15:05:46 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> slider {
|
|
|
|
|
min-height: 18px;
|
|
|
|
|
min-width: 18px;
|
|
|
|
|
margin: -9px;
|
|
|
|
|
}
|
2016-02-20 15:07:00 +00:00
|
|
|
|
}
|
2014-11-12 16:30:59 +00:00
|
|
|
|
|
2016-03-15 15:12:40 +00:00
|
|
|
|
// click-and-hold the slider to activate
|
2016-02-25 16:49:12 +00:00
|
|
|
|
&.fine-tune {
|
2016-03-04 17:36:36 +00:00
|
|
|
|
&.horizontal {
|
2016-03-04 19:08:19 +00:00
|
|
|
|
padding-top: 9px;
|
|
|
|
|
padding-bottom: 9px;
|
|
|
|
|
min-height: 16px;
|
2016-03-04 17:36:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.vertical {
|
2016-03-04 19:08:19 +00:00
|
|
|
|
padding-left: 9px;
|
|
|
|
|
padding-right: 9px;
|
|
|
|
|
min-width: 16px;
|
2016-03-04 17:36:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-15 15:12:40 +00:00
|
|
|
|
// to make the trough grow in fine-tune mode
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider { margin: -6px; }
|
2016-03-02 22:07:37 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > fill,
|
|
|
|
|
> trough > highlight,
|
|
|
|
|
> trough {
|
2016-03-02 22:07:37 +00:00
|
|
|
|
border-radius: 5px;
|
2015-11-07 00:28:56 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
|
// the backing bit
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-03-01 20:53:44 +00:00
|
|
|
|
@extend %scale_trough;
|
|
|
|
|
}
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
|
// the colored part of the backing bit
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > highlight { @extend %scale_highlight; }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2015-12-03 11:18:17 +00:00
|
|
|
|
// this is another differently styled part of the backing bit, the most relevant use case is for example
|
|
|
|
|
// in media player to indicate how much video stream as been cached
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > fill {
|
2015-12-03 11:18:17 +00:00
|
|
|
|
@extend %scale_trough;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-04-16 11:19:41 +00:00
|
|
|
|
&:backdrop, & { background-color: $borders_color; }
|
2015-12-03 11:18:17 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2020-05-18 20:51:02 +00:00
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: transparent;
|
2015-12-03 11:18:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OSD
|
|
|
|
|
.osd & {
|
|
|
|
|
background-color: mix($osd_fg_color, $osd_borders_color, 25%);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2015-12-24 23:43:03 +00:00
|
|
|
|
&:disabled {
|
2020-05-18 20:51:02 +00:00
|
|
|
|
border-color: transparent;
|
|
|
|
|
background-color: transparent;
|
2015-12-03 11:18:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-02-17 14:18:59 +00:00
|
|
|
|
@include button(normal-alt, $edge: $shadow_color);
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-04-17 16:19:38 +00:00
|
|
|
|
border: 1px solid darken($alt_borders_color, 3%);
|
2015-12-02 20:03:03 +00:00
|
|
|
|
border-radius: 100%;
|
2016-03-20 23:46:44 +00:00
|
|
|
|
transition: $button_transition;
|
2016-03-24 12:15:23 +00:00
|
|
|
|
transition-property: background, border, box-shadow;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2016-02-17 14:18:59 +00:00
|
|
|
|
&:hover { @include button(hover-alt, $edge: $shadow_color); }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
|
|
|
|
&:active { border-color: $selected_borders_color; }
|
|
|
|
|
|
2016-04-17 16:19:38 +00:00
|
|
|
|
&:disabled { @include button(insensitive); }
|
2015-11-06 12:04:14 +00:00
|
|
|
|
|
2015-12-03 10:38:50 +00:00
|
|
|
|
// ...on selected list rows
|
2016-04-16 11:19:41 +00:00
|
|
|
|
row:selected & { &:disabled, & { border-color: $selected_borders_color; } }
|
2015-12-03 10:38:50 +00:00
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
// OSD
|
2015-11-05 05:20:50 +00:00
|
|
|
|
.osd & {
|
2015-12-02 20:03:03 +00:00
|
|
|
|
@include button(osd);
|
|
|
|
|
border-color: darken($osd_borders_color, 3%);
|
|
|
|
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
|
|
|
|
|
2016-04-19 19:58:24 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@include button(osd-hover);
|
|
|
|
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
|
|
|
|
}
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2016-04-19 19:58:24 +00:00
|
|
|
|
&:active {
|
|
|
|
|
@include button(osd-active);
|
|
|
|
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
|
|
|
|
}
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2016-04-19 19:58:24 +00:00
|
|
|
|
&:disabled {
|
|
|
|
|
@include button(osd-insensitive);
|
|
|
|
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
|
|
|
|
}
|
2014-06-14 12:49:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-03 15:18:12 +00:00
|
|
|
|
|
2020-05-06 19:37:55 +00:00
|
|
|
|
> value {
|
|
|
|
|
color: gtkalpha(currentColor, 0.55);
|
|
|
|
|
font-feature-settings: "tnum";
|
|
|
|
|
}
|
2016-03-06 05:08:47 +00:00
|
|
|
|
|
2016-03-02 22:07:37 +00:00
|
|
|
|
&.horizontal {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> marks {
|
2018-01-10 08:29:45 +00:00
|
|
|
|
color: gtkalpha(currentColor, 0.55);
|
|
|
|
|
&.top { margin-bottom: $_marks_distance; }
|
|
|
|
|
&.bottom { margin-top: $_marks_distance; }
|
|
|
|
|
|
|
|
|
|
indicator {
|
|
|
|
|
background-color: currentColor;
|
|
|
|
|
min-height: $_marks_length;
|
|
|
|
|
min-width: 1px;
|
|
|
|
|
}
|
2016-03-02 22:07:37 +00:00
|
|
|
|
}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-08-26 16:56:04 +00:00
|
|
|
|
> value.left { margin-right: 9px; }
|
|
|
|
|
> value.right { margin-left: 9px; }
|
2018-01-10 09:10:11 +00:00
|
|
|
|
|
2019-04-01 09:48:45 +00:00
|
|
|
|
&.fine-tune >marks {
|
|
|
|
|
&.top { margin-top: 3px; }
|
|
|
|
|
&.bottom { margin-bottom: 3px; }
|
|
|
|
|
|
|
|
|
|
indicator { min-height: ($_marks_length - 3px); }
|
|
|
|
|
}
|
2016-02-29 05:13:54 +00:00
|
|
|
|
}
|
2016-04-19 20:55:55 +00:00
|
|
|
|
|
2016-03-02 22:07:37 +00:00
|
|
|
|
&.vertical {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> marks {
|
2018-01-10 08:29:45 +00:00
|
|
|
|
color: gtkalpha(currentColor, 0.55);
|
|
|
|
|
&.top { margin-right: $_marks_distance; }
|
|
|
|
|
&.bottom { margin-left: $_marks_distance; }
|
|
|
|
|
|
|
|
|
|
indicator {
|
|
|
|
|
background-color: currentColor;
|
|
|
|
|
min-height: 1px;
|
|
|
|
|
min-width: $_marks_length;
|
|
|
|
|
}
|
2016-03-02 22:07:37 +00:00
|
|
|
|
}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2019-08-26 16:56:04 +00:00
|
|
|
|
> value.top { margin-bottom: 9px; }
|
|
|
|
|
> value.bottom { margin-top: 9px; }
|
2018-01-10 09:10:11 +00:00
|
|
|
|
|
2019-04-01 09:48:45 +00:00
|
|
|
|
&.fine-tune >marks {
|
|
|
|
|
&.top { margin-left: 3px; }
|
|
|
|
|
&.bottom { margin-right: 3px; }
|
|
|
|
|
|
|
|
|
|
indicator { min-height: ($_marks_length - 3px); }
|
|
|
|
|
}
|
2016-02-29 05:13:54 +00:00
|
|
|
|
}
|
2016-04-19 20:55:55 +00:00
|
|
|
|
|
2015-12-03 17:39:19 +00:00
|
|
|
|
// *WARNING* scale with marks madness following
|
|
|
|
|
|
|
|
|
|
// FIXME: OSD and selected list rows missing, I don't feel like adding the other 144 assets needed for those...
|
2015-12-04 17:47:28 +00:00
|
|
|
|
$suffix: if($variant == 'light', '', '-dark');
|
2015-12-03 17:39:19 +00:00
|
|
|
|
|
2016-02-22 10:16:32 +00:00
|
|
|
|
@each $dir_class, $dir_infix in ('horizontal', 'horz'),
|
|
|
|
|
('vertical', 'vert') {
|
2016-05-19 15:05:46 +00:00
|
|
|
|
@each $marks_infix, $marks_class in ('scale-has-marks-above', 'marks-before:not(.marks-after)'),
|
|
|
|
|
('scale-has-marks-below', 'marks-after:not(.marks-before)') {
|
2016-02-22 10:16:32 +00:00
|
|
|
|
@each $state, $state_infix in ('', ''),
|
2016-05-19 15:05:46 +00:00
|
|
|
|
(':hover', '-hover'),
|
|
|
|
|
(':active', '-active'),
|
|
|
|
|
(':disabled', '-insensitive'),
|
|
|
|
|
(':backdrop', '-backdrop'),
|
|
|
|
|
(':backdrop:disabled', '-backdrop-insensitive') {
|
|
|
|
|
&.#{$dir_class}.#{$marks_class} {
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-02-22 10:16:32 +00:00
|
|
|
|
&#{$state} {
|
2016-03-15 15:12:40 +00:00
|
|
|
|
// an asymmetric slider asset is used here, so the margins are uneven, the smaller
|
|
|
|
|
// margin is set on the point side.
|
2016-03-04 19:08:19 +00:00
|
|
|
|
margin: -10px;
|
2016-02-22 10:16:32 +00:00
|
|
|
|
$_scale_asset: 'assets/slider-#{$dir_infix}-#{$marks_infix}#{$state_infix}#{$suffix}';
|
|
|
|
|
border-style: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
2016-04-19 20:55:55 +00:00
|
|
|
|
background-color: transparent;
|
2016-02-22 10:16:32 +00:00
|
|
|
|
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png'));
|
|
|
|
|
|
|
|
|
|
$_scale_slider_bg_pos: bottom;
|
2016-05-19 15:05:46 +00:00
|
|
|
|
|
2016-02-24 21:36:14 +00:00
|
|
|
|
@if $dir_class == 'horizontal' {
|
|
|
|
|
min-height: 26px;
|
|
|
|
|
min-width: 22px;
|
|
|
|
|
|
2016-02-22 10:16:32 +00:00
|
|
|
|
@if $marks_infix == 'scale-has-marks-above' {
|
2016-03-04 19:08:19 +00:00
|
|
|
|
margin-top: -14px;
|
2016-02-24 21:36:14 +00:00
|
|
|
|
|
2016-02-22 10:16:32 +00:00
|
|
|
|
$_scale_slider_bg_pos: top;
|
2016-02-20 15:07:00 +00:00
|
|
|
|
}
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-03-04 19:08:19 +00:00
|
|
|
|
@else { margin-bottom: -14px; }
|
2015-12-03 17:39:19 +00:00
|
|
|
|
}
|
2016-02-22 10:29:43 +00:00
|
|
|
|
|
2016-02-22 10:16:32 +00:00
|
|
|
|
@else {
|
2016-02-24 21:36:14 +00:00
|
|
|
|
min-height: 22px;
|
|
|
|
|
min-width: 26px;
|
|
|
|
|
|
|
|
|
|
@if $marks_infix == 'scale-has-marks-above' {
|
2016-03-04 19:08:19 +00:00
|
|
|
|
margin-left: -14px;
|
2016-02-24 21:36:14 +00:00
|
|
|
|
|
|
|
|
|
$_scale_slider_bg_pos: left bottom;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@else {
|
2016-03-04 19:08:19 +00:00
|
|
|
|
margin-right: -14px;
|
2016-02-24 21:36:14 +00:00
|
|
|
|
|
|
|
|
|
$_scale_slider_bg_pos: right bottom;
|
|
|
|
|
}
|
2016-02-22 10:16:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
background-position: $_scale_slider_bg_pos;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
box-shadow: none;
|
2015-12-03 17:39:19 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-02 22:07:37 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.fine-tune > trough > slider {
|
2016-03-02 22:07:37 +00:00
|
|
|
|
@if $dir_class == 'horizontal' {
|
2019-04-01 09:48:45 +00:00
|
|
|
|
// bigger negative margins to make the trough grow here as well
|
|
|
|
|
margin: -7px -10px;
|
|
|
|
|
|
2016-03-02 22:07:37 +00:00
|
|
|
|
@if $marks_infix == 'scale-has-marks-above' { margin-top: -11px; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-03-02 22:07:37 +00:00
|
|
|
|
@else { margin-bottom: -11px; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@else {
|
2019-04-01 09:48:45 +00:00
|
|
|
|
margin: -10px -7px;
|
|
|
|
|
|
2016-03-02 22:07:37 +00:00
|
|
|
|
@if $marks_infix == 'scale-has-marks-above' { margin-left: -11px; }
|
2016-03-12 14:03:07 +00:00
|
|
|
|
|
2016-03-02 22:07:37 +00:00
|
|
|
|
@else { margin-right: -11px; }
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-03 17:39:19 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-22 09:54:32 +00:00
|
|
|
|
|
|
|
|
|
&.color {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
min-height: 0;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-04-19 19:58:24 +00:00
|
|
|
|
background-image: image($borders_color);
|
2016-03-10 12:35:08 +00:00
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.horizontal {
|
|
|
|
|
padding: 0 0 15px 0;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
background-position: 0 -3px;
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2020-08-21 12:41:13 +00:00
|
|
|
|
&:dir(ltr), &:dir(rtl) { // specificity bump
|
2016-05-19 15:05:46 +00:00
|
|
|
|
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
|
|
|
|
margin-bottom: -15px;
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
}
|
2016-03-10 12:35:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-22 09:54:32 +00:00
|
|
|
|
&.vertical {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
&:dir(ltr) {
|
|
|
|
|
padding: 0 0 0 15px;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
padding-left: 4px;
|
|
|
|
|
background-position: 3px 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-03-18 17:38:48 +00:00
|
|
|
|
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
margin-left: -15px;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
padding: 0 15px 0 0;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
padding-right: 4px;
|
|
|
|
|
background-position: -3px 0;
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-03-18 17:38:48 +00:00
|
|
|
|
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
margin-right: -15px;
|
|
|
|
|
margin-left: 6px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.fine-tune {
|
|
|
|
|
&.horizontal {
|
2016-05-19 15:05:46 +00:00
|
|
|
|
&:dir(ltr), &:dir(rtl) { // specificity bump
|
|
|
|
|
padding: 0 0 12px 0;
|
2016-03-10 12:35:08 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-05-19 15:05:46 +00:00
|
|
|
|
padding-bottom: 7px;
|
|
|
|
|
background-position: 0 -6px;
|
|
|
|
|
}
|
2016-03-10 12:35:08 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-05-19 15:05:46 +00:00
|
|
|
|
margin-bottom: -15px;
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
}
|
2016-03-10 12:35:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.vertical {
|
|
|
|
|
&:dir(ltr) {
|
|
|
|
|
padding: 0 0 0 12px;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
padding-left: 7px;
|
|
|
|
|
background-position: 6px 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
margin-left: -15px;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
padding: 0 12px 0 0;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
padding-right: 7px;
|
|
|
|
|
background-position: -6px 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > slider {
|
2016-03-10 12:35:08 +00:00
|
|
|
|
margin-right: -15px;
|
|
|
|
|
margin-left: 6px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-22 09:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-14 12:49:20 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
/*****************
|
|
|
|
|
* Progress bars *
|
|
|
|
|
*****************/
|
|
|
|
|
progressbar {
|
2015-12-21 10:28:45 +00:00
|
|
|
|
// sizing
|
|
|
|
|
&.horizontal {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
|
|
|
|
min-width: 150px;
|
|
|
|
|
&, > progress { min-height: 2px; }
|
|
|
|
|
}
|
2015-12-21 10:28:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.vertical {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
|
|
|
|
min-height: 80px;
|
|
|
|
|
&, > progress { min-width: 2px; }
|
|
|
|
|
}
|
2015-12-21 10:28:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.horizontal > trough > progress { margin: 0 -1px; } // the progress node is positioned after the trough border
|
|
|
|
|
&.vertical > trough > progress { margin: -1px 0; } // this moves it over it.
|
2015-12-21 10:28:45 +00:00
|
|
|
|
|
|
|
|
|
|
2015-12-03 10:38:50 +00:00
|
|
|
|
// FIXME: insensitive state missing and some other state should be set probably
|
2015-12-02 20:03:03 +00:00
|
|
|
|
font-size: smaller;
|
|
|
|
|
color: transparentize($fg_color, 0.6);
|
2020-05-06 19:37:55 +00:00
|
|
|
|
font-feature-settings: "tnum";
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough { @extend %scale_trough; }
|
2015-12-02 20:03:03 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough > progress {
|
2018-09-26 20:41:27 +00:00
|
|
|
|
@extend %scale_highlight; /* share most of scales' */
|
|
|
|
|
/* override insensitive that is specific to progress */
|
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: $insensitive_fg_color;
|
|
|
|
|
border-color: $insensitive_fg_color;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
border-radius: 1.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
&.left {
|
2015-12-21 10:50:56 +00:00
|
|
|
|
border-top-left-radius: 2px;
|
|
|
|
|
border-bottom-left-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
&.right {
|
2015-12-21 10:50:56 +00:00
|
|
|
|
border-top-right-radius: 2px;
|
|
|
|
|
border-bottom-right-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
&.top {
|
2015-12-21 10:50:56 +00:00
|
|
|
|
border-top-right-radius: 2px;
|
|
|
|
|
border-top-left-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-02 20:03:03 +00:00
|
|
|
|
&.bottom {
|
2015-12-21 10:50:56 +00:00
|
|
|
|
border-bottom-right-radius: 2px;
|
|
|
|
|
border-bottom-left-radius: 2px;
|
2015-12-02 20:03:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-09 19:05:41 +00:00
|
|
|
|
&.osd { // progressbar.osd used for epiphany page loading progress
|
2015-12-20 04:24:27 +00:00
|
|
|
|
min-width: 3px;
|
|
|
|
|
min-height: 3px;
|
2016-01-09 19:05:41 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2015-12-04 18:04:17 +00:00
|
|
|
|
border-style: none;
|
2015-12-04 21:02:36 +00:00
|
|
|
|
border-radius: 0;
|
2015-12-04 18:04:17 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> progress {
|
|
|
|
|
border-style: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
2015-12-04 18:04:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-11-23 15:00:57 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough.empty > progress { all: unset; } // makes the progress indicator disappear, when the fraction is 0
|
2015-12-02 20:03:03 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
|
|
/*************
|
|
|
|
|
* Level Bar *
|
|
|
|
|
*************/
|
2019-10-04 18:16:11 +00:00
|
|
|
|
|
2019-11-19 16:46:18 +00:00
|
|
|
|
$levelbar_size: 9px;
|
2019-10-04 18:16:11 +00:00
|
|
|
|
$levelbar_border_radius: 3px;
|
|
|
|
|
|
2015-11-11 05:26:32 +00:00
|
|
|
|
levelbar {
|
2017-08-12 15:13:11 +00:00
|
|
|
|
&.horizontal {
|
2020-02-04 08:44:03 +00:00
|
|
|
|
trough > block {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
min-height: $levelbar_size;
|
|
|
|
|
border-radius: $levelbar_border_radius;
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
border-radius: 0 $levelbar_border_radius $levelbar_border_radius 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:dir(ltr) {
|
|
|
|
|
border-radius: $levelbar_border_radius 0 0 $levelbar_border_radius;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.empty,&.full {
|
|
|
|
|
border-radius: $levelbar_border_radius;
|
|
|
|
|
}
|
2017-08-12 15:13:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-19 16:46:18 +00:00
|
|
|
|
// segmented level bar
|
|
|
|
|
&.discrete {
|
2020-02-04 08:44:03 +00:00
|
|
|
|
trough > block {
|
2019-11-19 16:46:18 +00:00
|
|
|
|
min-height: 2px;
|
|
|
|
|
margin: 1px;
|
|
|
|
|
min-width: 24px;
|
|
|
|
|
border-radius:0;
|
|
|
|
|
&:first-child {border-radius: 2px 0 0 2px;}
|
|
|
|
|
&:last-child {
|
|
|
|
|
border-radius: 0 2px 2px 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-08-12 15:13:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.vertical {
|
2020-02-04 08:44:03 +00:00
|
|
|
|
trough > block {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
min-width: $levelbar_size;
|
|
|
|
|
border-radius: $levelbar_border_radius;
|
2017-08-12 15:13:11 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-02-04 08:44:03 +00:00
|
|
|
|
&.discrete > trough > block {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
min-width: $levelbar_size - 7px;
|
2017-08-12 15:13:11 +00:00
|
|
|
|
margin: 1px 0;
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> trough {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
padding: 0;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-10-04 18:16:11 +00:00
|
|
|
|
// level bar colours
|
2020-02-04 08:44:03 +00:00
|
|
|
|
> trough > block {
|
2016-04-28 13:45:12 +00:00
|
|
|
|
border: 1px solid;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&.low {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
border-color: if($variant == 'light', darken($warning_color, 10%), $borders_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
background-color: $warning_color;
|
|
|
|
|
}
|
|
|
|
|
|
2016-04-28 13:45:12 +00:00
|
|
|
|
&.high,
|
|
|
|
|
&:not(.empty) {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
border-color: if($variant == 'light', darken($selected_bg_color, 10%), $borders_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.full {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
border-color: if($variant == 'light', darken($success_color, 10%), $borders_color);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
background-color: $success_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.empty {
|
2019-10-04 18:16:11 +00:00
|
|
|
|
background-color: darken($bg_color, 5%);
|
|
|
|
|
border-color: $borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2016-01-29 03:10:02 +00:00
|
|
|
|
/****************
|
|
|
|
|
* Print dialog *
|
|
|
|
|
*****************/
|
2020-06-06 06:13:00 +00:00
|
|
|
|
window.dialog.print {
|
2017-10-07 02:50:03 +00:00
|
|
|
|
drawing {
|
2016-02-03 15:06:05 +00:00
|
|
|
|
color: $fg_color;
|
2019-12-24 17:28:45 +00:00
|
|
|
|
background: none;
|
2017-10-07 02:50:03 +00:00
|
|
|
|
border: none;
|
2016-01-29 03:10:02 +00:00
|
|
|
|
padding: 0;
|
|
|
|
|
|
2017-10-07 02:50:03 +00:00
|
|
|
|
paper {
|
2019-12-24 17:28:45 +00:00
|
|
|
|
background: white;
|
|
|
|
|
color: #2e3436;
|
2017-10-07 02:50:03 +00:00
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-29 03:10:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-12 14:03:07 +00:00
|
|
|
|
.dialog-action-box { margin: 12px; }
|
2016-01-29 03:10:02 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/**********
|
|
|
|
|
* Frames *
|
|
|
|
|
**********/
|
2016-12-18 19:06:33 +00:00
|
|
|
|
frame,
|
2014-06-13 14:32:44 +00:00
|
|
|
|
.frame {
|
|
|
|
|
border: 1px solid $borders_color;
|
2015-11-05 12:44:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-06 15:54:40 +00:00
|
|
|
|
frame {
|
|
|
|
|
border-radius: $window_radius;
|
|
|
|
|
|
|
|
|
|
> label {
|
|
|
|
|
margin: 4px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-25 15:09:45 +00:00
|
|
|
|
actionbar > revealer > box {
|
2015-12-19 03:37:57 +00:00
|
|
|
|
padding: 6px;
|
2020-08-25 15:09:45 +00:00
|
|
|
|
border-spacing: 6px;
|
2016-03-08 19:09:18 +00:00
|
|
|
|
border-top: 1px solid $borders_color;
|
2015-12-19 03:37:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
|
scrolledwindow {
|
|
|
|
|
// This is used when content is touch-dragged past boundaries.
|
|
|
|
|
// draws a box on top of the content, the size changes programmatically.
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overshoot {
|
2015-11-04 12:30:19 +00:00
|
|
|
|
&.top {
|
|
|
|
|
@include overshoot(top);
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
|
&.bottom {
|
|
|
|
|
@include overshoot(bottom);
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
|
&.left {
|
|
|
|
|
@include overshoot(left);
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-04 12:30:19 +00:00
|
|
|
|
&.right {
|
|
|
|
|
@include overshoot(right);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> junction { // the small square between two scrollbars
|
2019-12-22 10:40:30 +00:00
|
|
|
|
// Only color the top-left (or top right in RTL) pixel, to visually connect
|
|
|
|
|
// the borders of the two scrollbars.
|
|
|
|
|
|
|
|
|
|
background: $borders_color,
|
|
|
|
|
linear-gradient(to bottom, transparent 1px, $scrollbar_bg_color 1px),
|
|
|
|
|
linear-gradient(to right, transparent 1px, $scrollbar_bg_color 1px);
|
2015-11-04 12:30:19 +00:00
|
|
|
|
|
2019-12-22 10:40:30 +00:00
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
background: $borders_color,
|
|
|
|
|
linear-gradient(to bottom, transparent 1px, $scrollbar_bg_color 1px),
|
|
|
|
|
linear-gradient(to left, transparent 1px, $scrollbar_bg_color 1px);
|
|
|
|
|
}
|
2015-11-04 12:30:19 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//vbox and hbox separators
|
2015-10-25 20:28:38 +00:00
|
|
|
|
separator {
|
2019-10-07 17:05:12 +00:00
|
|
|
|
background: lighten($borders_color, 5%);
|
2015-12-14 20:56:56 +00:00
|
|
|
|
min-width: 1px;
|
|
|
|
|
min-height: 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*********
|
|
|
|
|
* Lists *
|
|
|
|
|
*********/
|
2020-06-04 12:42:55 +00:00
|
|
|
|
listview,
|
2020-09-22 01:35:15 +00:00
|
|
|
|
list {
|
2016-01-21 03:53:47 +00:00
|
|
|
|
color: $text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
background-color: $base_color;
|
|
|
|
|
border-color: $borders_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&:backdrop {
|
2019-11-25 15:39:33 +00:00
|
|
|
|
color: $backdrop_text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-08-17 11:18:07 +00:00
|
|
|
|
> row { padding: 2px; }
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> row.expander { padding: 0px; }
|
|
|
|
|
> row.expander .row-header { padding: 2px; }
|
2019-04-13 00:25:16 +00:00
|
|
|
|
|
2020-11-11 18:07:31 +00:00
|
|
|
|
&.horizontal row.separator,
|
2020-11-13 22:18:05 +00:00
|
|
|
|
&.separators.horizontal > row:not(.separator) {
|
2020-09-22 01:35:15 +00:00
|
|
|
|
border-left: 1px solid $_treeview_borders_color;
|
2019-10-06 03:46:50 +00:00
|
|
|
|
}
|
2020-11-11 18:07:31 +00:00
|
|
|
|
&:not(.horizontal) row.separator,
|
2020-11-13 22:18:05 +00:00
|
|
|
|
&.separators:not(.horizontal) > row:not(.separator) {
|
2020-11-11 18:07:31 +00:00
|
|
|
|
border-bottom: 1px solid $_treeview_borders_color;
|
2019-04-13 00:25:16 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
row {
|
|
|
|
|
transition: all 150ms $ease-out-quad;
|
2015-10-23 14:58:17 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
@include focus-ring();
|
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
&:hover { transition: none; }
|
2015-10-23 14:58:17 +00:00
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
&.activatable {
|
|
|
|
|
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
|
2015-10-23 14:58:17 +00:00
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
&:hover { background-color: if(variant == light, transparentize($fg_color, 0.9), transparentize($fg_color, 0.95)); }
|
2015-10-23 14:58:17 +00:00
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
&:active { box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8); }
|
2014-07-14 16:29:08 +00:00
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-14 16:22:31 +00:00
|
|
|
|
&.has-open-popup,
|
|
|
|
|
&:hover { background-color: mix($fg_color, $selected_bg_color, 10%); }
|
2014-09-02 19:25:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-07-13 13:01:11 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
&:selected {
|
|
|
|
|
outline-color: $alt_focus_border_color;
|
|
|
|
|
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
}
|
2014-10-16 12:12:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-22 01:37:04 +00:00
|
|
|
|
columnview {
|
|
|
|
|
// move padding to child cells
|
|
|
|
|
> listview > row {
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
// align horizontal sizing with header buttons
|
|
|
|
|
> cell {
|
|
|
|
|
padding: 8px 6px;
|
|
|
|
|
|
2020-10-19 13:37:20 +00:00
|
|
|
|
&:not(:first-child) {
|
|
|
|
|
border-left: 1px solid transparent;
|
2020-09-22 01:37:04 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// make column separators visible when :show-column-separators is true
|
|
|
|
|
&.column-separators > listview > row > cell {
|
2020-10-19 13:37:20 +00:00
|
|
|
|
border-left-color: $_treeview_borders_color;
|
2020-09-22 01:37:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// shrink vertically for .data-table
|
|
|
|
|
&.data-table > listview > row > cell {
|
|
|
|
|
padding-top: 2px;
|
|
|
|
|
padding-bottom: 2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-06 09:55:04 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Data Tables *
|
|
|
|
|
* treeview like tables with individual focusable cells *
|
|
|
|
|
* https://gitlab.gnome.org/GNOME/gtk/-/issues/2929 *
|
|
|
|
|
********************************************************/
|
|
|
|
|
|
2020-09-22 01:40:15 +00:00
|
|
|
|
columnview row:not(:selected) cell editablelabel:not(.editing):focus-within {
|
|
|
|
|
outline: 2px solid $focus_border_color;
|
|
|
|
|
}
|
2020-08-06 09:55:04 +00:00
|
|
|
|
|
2020-09-22 01:40:15 +00:00
|
|
|
|
columnview row:not(:selected) cell editablelabel.editing:focus-within {
|
|
|
|
|
outline: 2px solid $selected_bg_color;
|
|
|
|
|
}
|
2020-08-06 09:55:04 +00:00
|
|
|
|
|
2020-09-22 01:40:15 +00:00
|
|
|
|
columnview row:not(:selected) cell editablelabel.editing text selection {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
}
|
2020-08-06 09:55:04 +00:00
|
|
|
|
|
2020-08-17 11:18:07 +00:00
|
|
|
|
/*******************************************************
|
|
|
|
|
* Rich Lists *
|
|
|
|
|
* Large list usually containing lots of widgets *
|
|
|
|
|
* https://gitlab.gnome.org/GNOME/gtk/-/issues/3073 *
|
|
|
|
|
*******************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.rich-list { /* rich lists usually containing other widgets than just labels/text */
|
|
|
|
|
& > row {
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
min-height: 32px; /* should be tall even when only containing a label */
|
|
|
|
|
|
|
|
|
|
& > box {
|
|
|
|
|
border-spacing: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-16 12:12:13 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*********************
|
|
|
|
|
* App Notifications *
|
|
|
|
|
*********************/
|
2020-08-25 15:09:45 +00:00
|
|
|
|
.app-notification {
|
2014-08-26 14:54:19 +00:00
|
|
|
|
@extend %osd;
|
2016-03-14 09:53:59 +00:00
|
|
|
|
|
2014-09-04 17:18:13 +00:00
|
|
|
|
padding: 10px;
|
2020-08-25 15:09:45 +00:00
|
|
|
|
border-spacing: 10px;
|
2015-12-03 18:28:57 +00:00
|
|
|
|
border-radius: 0 0 5px 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
|
background-color: $osd_bg_color;
|
2014-08-26 14:54:19 +00:00
|
|
|
|
background-image: linear-gradient(to bottom, transparentize(black, 0.8),
|
|
|
|
|
transparent 2px);
|
|
|
|
|
background-clip: padding-box;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-03 18:28:57 +00:00
|
|
|
|
button { @extend %osd_button; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-12-22 18:48:32 +00:00
|
|
|
|
border { border: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*************
|
|
|
|
|
* Expanders *
|
|
|
|
|
*************/
|
2015-11-07 05:42:37 +00:00
|
|
|
|
expander {
|
2019-10-13 19:00:40 +00:00
|
|
|
|
min-width: 16px;
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-10-13 19:00:40 +00:00
|
|
|
|
&:disabled { color: $insensitive_fg_color; }
|
2018-01-01 21:21:52 +00:00
|
|
|
|
|
2019-10-13 19:00:40 +00:00
|
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
}
|
2018-09-01 02:59:06 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
expander-widget {
|
|
|
|
|
@include focus-ring("> box > title");
|
|
|
|
|
|
|
|
|
|
> box > title {
|
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
border-radius: $button_radius;
|
|
|
|
|
|
|
|
|
|
&:hover > expander {
|
|
|
|
|
color: lighten($fg_color,30%); //only lightens the icon
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-14 12:31:23 +00:00
|
|
|
|
.navigation-sidebar,
|
2020-01-07 22:40:49 +00:00
|
|
|
|
placessidebar,
|
2020-01-07 21:16:05 +00:00
|
|
|
|
stackswitcher,
|
2020-01-07 20:43:50 +00:00
|
|
|
|
expander-widget {
|
|
|
|
|
&:not(decoration):not(window):drop(active):focus,
|
|
|
|
|
&:not(decoration):not(window):drop(active) {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/************
|
|
|
|
|
* Calendar *
|
|
|
|
|
***********/
|
2015-10-28 10:44:34 +00:00
|
|
|
|
calendar {
|
2014-10-18 14:57:39 +00:00
|
|
|
|
color: $text_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
|
border: 1px solid $borders_color;
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
2020-01-27 09:28:42 +00:00
|
|
|
|
> header {
|
|
|
|
|
border-bottom: 1px solid $borders_color;
|
|
|
|
|
|
|
|
|
|
> button {
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
background: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
2020-09-23 03:58:40 +00:00
|
|
|
|
> button:backdrop {
|
|
|
|
|
background: none;
|
|
|
|
|
}
|
2020-01-27 09:28:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-02-04 13:03:17 +00:00
|
|
|
|
> grid {
|
|
|
|
|
> label.day-name {
|
|
|
|
|
}
|
2016-03-14 09:53:59 +00:00
|
|
|
|
|
2020-02-04 13:03:17 +00:00
|
|
|
|
> label.week-number {
|
|
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
2020-02-13 17:40:20 +00:00
|
|
|
|
> label.today {
|
|
|
|
|
box-shadow: inset 0px -2px $borders_color;
|
|
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-17 06:15:14 +00:00
|
|
|
|
> label:focus {
|
|
|
|
|
outline-color: $focus_border_color;
|
|
|
|
|
outline-offset: -2px;
|
|
|
|
|
outline-width: 2px;
|
|
|
|
|
outline-style: solid;
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-04 13:03:17 +00:00
|
|
|
|
> label.day-number {
|
|
|
|
|
padding: 4px;
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
2020-02-04 13:03:17 +00:00
|
|
|
|
&:selected{
|
|
|
|
|
@extend %selected_items;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-02-04 13:03:17 +00:00
|
|
|
|
> label.day-number.other-month {
|
|
|
|
|
color: gtkalpha(currentColor, 0.3);
|
|
|
|
|
}
|
2015-08-27 02:59:55 +00:00
|
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/***********
|
|
|
|
|
* Dialogs *
|
|
|
|
|
***********/
|
2020-05-20 07:07:24 +00:00
|
|
|
|
window.dialog.message { // Message Dialog styling
|
2014-07-05 14:30:43 +00:00
|
|
|
|
.titlebar {
|
2016-01-15 16:56:49 +00:00
|
|
|
|
min-height: 20px;
|
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: $bg_color;
|
2014-07-05 14:30:43 +00:00
|
|
|
|
border-style: none;
|
2016-01-15 16:56:49 +00:00
|
|
|
|
border-top-left-radius: 7px;
|
|
|
|
|
border-top-right-radius: 7px;
|
2014-07-05 14:30:43 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-04-11 22:58:40 +00:00
|
|
|
|
box.dialog-vbox.vertical {
|
|
|
|
|
border-spacing: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-31 12:10:02 +00:00
|
|
|
|
& label.title {
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
font-size: 15pt;
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
|
&.csd { // rounded bottom border styling for csd version
|
|
|
|
|
&.background {
|
2014-07-07 15:56:29 +00:00
|
|
|
|
// bigger radius for better antialiasing
|
2019-02-06 12:46:00 +00:00
|
|
|
|
border-bottom-left-radius: $window_radius+1;
|
|
|
|
|
border-bottom-right-radius: $window_radius+1;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
|
.dialog-action-area button {
|
2016-01-15 16:56:49 +00:00
|
|
|
|
padding: 10px 14px; // labels are not vertically centered on message dialog, this is a workaround
|
2014-07-05 14:30:43 +00:00
|
|
|
|
border-radius: 0;
|
2014-09-02 21:32:50 +00:00
|
|
|
|
border-left-style: solid;
|
2014-07-05 14:30:43 +00:00
|
|
|
|
border-right-style: none;
|
|
|
|
|
border-bottom-style: none;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-18 11:26:19 +00:00
|
|
|
|
&:first-child{
|
|
|
|
|
border-left-style: none;
|
|
|
|
|
border-bottom-left-radius: 7px;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-02-18 11:26:19 +00:00
|
|
|
|
&:last-child {
|
|
|
|
|
border-bottom-right-radius: 7px;
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-15 16:56:49 +00:00
|
|
|
|
filechooser {
|
2014-07-15 17:09:58 +00:00
|
|
|
|
.dialog-action-box {
|
|
|
|
|
border-top: 1px solid $borders_color;
|
|
|
|
|
}
|
2016-02-16 19:39:25 +00:00
|
|
|
|
|
2016-02-16 19:44:16 +00:00
|
|
|
|
#pathbarbox { border-bottom: 1px solid $bg_color; }
|
2014-06-14 06:45:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-28 08:34:47 +00:00
|
|
|
|
|
|
|
|
|
filechooserbutton>button>box {
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
}
|
2016-03-12 13:21:01 +00:00
|
|
|
|
filechooserbutton:drop(active) {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/***********
|
|
|
|
|
* Sidebar *
|
|
|
|
|
***********/
|
2014-10-20 13:22:42 +00:00
|
|
|
|
.sidebar {
|
2020-11-17 00:07:24 +00:00
|
|
|
|
padding: $menu-margin;
|
2016-03-09 14:35:25 +00:00
|
|
|
|
border-style: none;
|
2015-05-06 21:07:17 +00:00
|
|
|
|
background-color: mix($bg_color, $base_color, 50%);
|
2014-10-21 11:51:22 +00:00
|
|
|
|
|
2018-09-07 10:32:36 +00:00
|
|
|
|
&:not(separator) {
|
|
|
|
|
@at-root %sidebar_left,
|
|
|
|
|
&:dir(ltr),
|
|
|
|
|
&.left,
|
|
|
|
|
&.left:dir(rtl) {
|
|
|
|
|
border-right: 1px solid $borders_color;
|
|
|
|
|
border-left-style: none;
|
|
|
|
|
}
|
2016-03-09 14:35:25 +00:00
|
|
|
|
|
2019-03-04 15:30:43 +00:00
|
|
|
|
@at-root %sidebar_right,
|
2018-09-07 10:32:36 +00:00
|
|
|
|
&:dir(rtl),
|
|
|
|
|
&.right {
|
|
|
|
|
border-left: 1px solid $borders_color;
|
|
|
|
|
border-right-style: none;
|
|
|
|
|
}
|
2016-03-09 14:35:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-15 12:52:41 +00:00
|
|
|
|
list { background-color: transparent; }
|
2016-03-09 14:35:25 +00:00
|
|
|
|
|
|
|
|
|
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
|
2014-10-20 13:22:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
|
stacksidebar {
|
2016-01-09 13:36:05 +00:00
|
|
|
|
row {
|
2015-11-06 04:42:19 +00:00
|
|
|
|
padding: 10px 4px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
> label {
|
2015-11-06 04:42:19 +00:00
|
|
|
|
padding-left: 6px;
|
|
|
|
|
padding-right: 6px;
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
|
&.needs-attention > label {
|
|
|
|
|
@extend %needs_attention;
|
2016-03-14 09:53:59 +00:00
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
|
background-size: 6px 6px, 0 0;
|
|
|
|
|
}
|
2015-05-06 21:07:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-15 18:20:52 +00:00
|
|
|
|
|
2018-09-07 10:32:36 +00:00
|
|
|
|
separator.sidebar {
|
|
|
|
|
background-color: $borders_color;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2020-09-14 09:48:43 +00:00
|
|
|
|
/**********************
|
|
|
|
|
* Navigation Sidebar *
|
|
|
|
|
**********************/
|
2020-08-15 13:45:39 +00:00
|
|
|
|
|
2020-09-14 09:48:43 +00:00
|
|
|
|
.navigation-sidebar {
|
2020-11-17 00:07:24 +00:00
|
|
|
|
padding: $menu-margin 0; //only vertical padding. horizontal row size would clip
|
2020-08-15 13:45:39 +00:00
|
|
|
|
|
2020-09-14 09:48:43 +00:00
|
|
|
|
> row {
|
2015-11-06 04:42:19 +00:00
|
|
|
|
// Needs overriding of the GtkListBoxRow padding
|
2016-02-16 17:23:09 +00:00
|
|
|
|
min-height: 36px;
|
2020-11-17 00:07:24 +00:00
|
|
|
|
padding: 0px 2px;
|
|
|
|
|
border-radius: $menu-margin;
|
|
|
|
|
margin: 0 $menu-margin;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
|
// Using margins/padding directly in the SidebarRow
|
|
|
|
|
// will make the animation of the new bookmark row jump
|
2016-03-20 23:22:01 +00:00
|
|
|
|
> revealer { padding: 0 14px; }
|
|
|
|
|
|
2020-09-14 12:31:23 +00:00
|
|
|
|
expander {
|
|
|
|
|
margin: 0 8px 0 0;
|
|
|
|
|
|
|
|
|
|
&:dir(rtl) { margin: 0 0 0 8px; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-13 14:01:01 +00:00
|
|
|
|
&:selected {
|
2020-11-13 17:24:10 +00:00
|
|
|
|
background-color: $menu_selected_color;
|
|
|
|
|
color: $fg_color;
|
2020-07-13 14:01:01 +00:00
|
|
|
|
|
2020-08-13 17:40:00 +00:00
|
|
|
|
&:focus-visible:focus-within {
|
2020-07-13 14:01:01 +00:00
|
|
|
|
outline-width: 0;
|
2020-07-13 14:01:01 +00:00
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
background-color: $selected_bg_color;
|
2020-11-13 17:24:10 +00:00
|
|
|
|
&:hover { color: $selected_fg_color; background-color: darken($selected_bg_color,10%); }
|
2020-07-13 14:01:01 +00:00
|
|
|
|
}
|
2020-07-13 14:01:01 +00:00
|
|
|
|
&:hover:not(:last-child) { /* FIXME: dirty specificity bump */
|
2020-11-13 17:24:10 +00:00
|
|
|
|
color: $fg_color;
|
|
|
|
|
background-color: darken($menu_selected_color,5%);
|
2020-07-13 14:01:01 +00:00
|
|
|
|
}
|
2020-07-13 14:01:01 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 14:29:39 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
color: $fg_color;
|
2020-11-13 17:24:10 +00:00
|
|
|
|
background-color: darken($menu_selected_color, 5%);
|
2020-08-09 14:29:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-20 22:37:40 +00:00
|
|
|
|
&:disabled { color: $insensitive_fg_color; }
|
2020-09-14 09:48:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************
|
|
|
|
|
* File chooser *
|
|
|
|
|
****************/
|
|
|
|
|
|
|
|
|
|
$_placesidebar_icons_opacity: 0.7;
|
|
|
|
|
|
|
|
|
|
row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sidebar icons
|
|
|
|
|
// see bug #786613 for details
|
|
|
|
|
// on this oddity
|
|
|
|
|
|
|
|
|
|
/* this should be more generic, only using .navigation-sidebar
|
|
|
|
|
https://gitlab.gnome.org/GNOME/gtk/-/issues/2929
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
placessidebar {
|
|
|
|
|
row:not(:last-child) { //FIXME: specificty bump hack
|
|
|
|
|
padding: 0;
|
2016-03-20 22:37:40 +00:00
|
|
|
|
|
2016-03-19 19:13:06 +00:00
|
|
|
|
image.sidebar-icon {
|
2015-11-06 04:42:19 +00:00
|
|
|
|
&:dir(ltr) { padding-right: 8px; }
|
|
|
|
|
&:dir(rtl) { padding-left: 8px; }
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-03-19 19:13:06 +00:00
|
|
|
|
label.sidebar-label {
|
2015-11-06 04:42:19 +00:00
|
|
|
|
&:dir(ltr) { padding-right: 2px; }
|
|
|
|
|
&:dir(rtl) { padding-left: 2px; }
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
|
@at-root button.sidebar-button {
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@extend %button_basic_flat;
|
2016-03-12 18:35:56 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@extend %button_selected_flat;
|
2016-02-16 19:17:43 +00:00
|
|
|
|
min-height: 26px;
|
|
|
|
|
min-width: 26px;
|
|
|
|
|
margin-top: 3px;
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
padding: 0;
|
2015-11-06 04:42:19 +00:00
|
|
|
|
border-radius: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-14 17:33:40 +00:00
|
|
|
|
// in the sidebar case it makes no sense to click the selected row
|
|
|
|
|
&:selected:active { box-shadow: none; }
|
2015-09-01 16:14:45 +00:00
|
|
|
|
|
2016-03-14 17:33:40 +00:00
|
|
|
|
&.sidebar-placeholder-row {
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
min-height: 2px;
|
2016-04-19 19:58:24 +00:00
|
|
|
|
background-image: image($drop_target_color);
|
2016-03-14 17:33:40 +00:00
|
|
|
|
background-clip: content-box;
|
|
|
|
|
}
|
2015-09-01 16:43:48 +00:00
|
|
|
|
|
2016-03-14 17:33:40 +00:00
|
|
|
|
&.sidebar-new-bookmark-row { color: $selected_bg_color; }
|
2015-09-01 16:14:45 +00:00
|
|
|
|
|
2016-03-14 17:33:40 +00:00
|
|
|
|
&:drop(active):not(:disabled) {
|
|
|
|
|
color: $drop_target_color;
|
|
|
|
|
box-shadow: inset 0 1px $drop_target_color,
|
|
|
|
|
inset 0 -1px $drop_target_color;
|
2016-03-14 17:46:56 +00:00
|
|
|
|
|
|
|
|
|
&:selected {
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
background-color: $drop_target_color;
|
|
|
|
|
}
|
2016-03-14 17:33:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-06 04:42:19 +00:00
|
|
|
|
placesview {
|
2015-10-23 04:05:18 +00:00
|
|
|
|
.server-list-button > image {
|
2015-09-24 09:04:39 +00:00
|
|
|
|
transition: 200ms $ease-out-quad;
|
|
|
|
|
-gtk-icon-transform: rotate(0turn);
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-23 04:05:18 +00:00
|
|
|
|
.server-list-button:checked > image {
|
2015-09-24 09:04:39 +00:00
|
|
|
|
transition: 200ms $ease-out-quad;
|
|
|
|
|
-gtk-icon-transform: rotate(-0.5turn);
|
|
|
|
|
}
|
2015-09-24 12:49:30 +00:00
|
|
|
|
|
2020-07-13 14:01:01 +00:00
|
|
|
|
row.activatable:hover { }
|
2016-03-24 10:33:33 +00:00
|
|
|
|
|
2019-04-29 06:47:24 +00:00
|
|
|
|
> actionbar > revealer > box > box{
|
|
|
|
|
border-spacing: 6px;
|
2016-03-24 10:33:33 +00:00
|
|
|
|
}
|
2015-09-24 09:04:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-10-21 11:51:22 +00:00
|
|
|
|
/*********
|
|
|
|
|
* Paned *
|
|
|
|
|
*********/
|
2015-12-16 02:06:53 +00:00
|
|
|
|
paned {
|
2016-01-09 11:05:31 +00:00
|
|
|
|
> separator {
|
2015-12-09 05:17:51 +00:00
|
|
|
|
min-width: 1px;
|
|
|
|
|
min-height: 1px;
|
2016-01-09 11:31:41 +00:00
|
|
|
|
-gtk-icon-source: none; // defeats the ugly default handle decoration
|
2016-01-09 12:04:27 +00:00
|
|
|
|
border-style: none; // just to be sure
|
2016-01-09 11:31:41 +00:00
|
|
|
|
background-color: transparent;
|
2020-08-21 12:41:13 +00:00
|
|
|
|
// workaround, using background instead of a border since the border will get rendered twice (?)
|
2016-04-19 19:58:24 +00:00
|
|
|
|
background-image: image($borders_color);
|
2016-01-09 11:31:41 +00:00
|
|
|
|
background-size: 1px 1px;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
2016-04-19 19:58:24 +00:00
|
|
|
|
&:selected { background-image: image($selected_bg_color); } // FIXME is this needed?
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-09 12:04:27 +00:00
|
|
|
|
&.wide {
|
|
|
|
|
min-width: 5px;
|
|
|
|
|
min-height: 5px;
|
2016-03-17 09:32:35 +00:00
|
|
|
|
background-color: $bg_color;
|
2016-04-19 19:58:24 +00:00
|
|
|
|
background-image: image($borders_color), image($borders_color);
|
2016-01-09 12:35:48 +00:00
|
|
|
|
background-size: 1px 1px, 1px 1px;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
}
|
2015-12-16 02:06:53 +00:00
|
|
|
|
}
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
2016-01-09 11:31:41 +00:00
|
|
|
|
&.horizontal > separator {
|
|
|
|
|
background-repeat: repeat-y;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-09 11:31:41 +00:00
|
|
|
|
&:dir(ltr) {
|
|
|
|
|
margin: 0 -8px 0 0;
|
|
|
|
|
padding: 0 8px 0 0;
|
|
|
|
|
background-position: left;
|
|
|
|
|
}
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
|
margin: 0 0 0 -8px;
|
|
|
|
|
padding: 0 0 0 8px;
|
|
|
|
|
background-position: right;
|
|
|
|
|
}
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
|
|
|
|
&.wide {
|
2016-03-17 09:32:35 +00:00
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2016-01-09 12:35:48 +00:00
|
|
|
|
background-repeat: repeat-y, repeat-y;
|
|
|
|
|
background-position: left, right;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
}
|
2015-12-16 02:06:53 +00:00
|
|
|
|
}
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
2016-01-09 11:05:31 +00:00
|
|
|
|
&.vertical > separator {
|
2015-12-16 02:06:53 +00:00
|
|
|
|
margin: 0 0 -8px 0;
|
|
|
|
|
padding: 0 0 8px 0;
|
2016-01-09 11:31:41 +00:00
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
|
background-position: top;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
|
|
|
|
|
&.wide {
|
2016-03-17 09:32:35 +00:00
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2016-01-09 12:35:48 +00:00
|
|
|
|
background-repeat: repeat-x, repeat-x;
|
|
|
|
|
background-position: bottom, top;
|
2016-01-09 12:04:27 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-21 11:25:17 +00:00
|
|
|
|
|
2018-03-01 03:52:27 +00:00
|
|
|
|
/**************
|
|
|
|
|
* GtkVideo *
|
|
|
|
|
**************/
|
|
|
|
|
|
|
|
|
|
video {
|
|
|
|
|
& image.osd {
|
|
|
|
|
min-width: 64px;
|
|
|
|
|
min-height: 64px;
|
|
|
|
|
border-radius: 32px;
|
|
|
|
|
}
|
|
|
|
|
background: black;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/************
|
|
|
|
|
* Tooltips *
|
|
|
|
|
************/
|
2015-11-10 17:26:05 +00:00
|
|
|
|
tooltip {
|
2014-09-06 14:02:34 +00:00
|
|
|
|
&.background {
|
|
|
|
|
// background-color needs to be set this way otherwise it gets drawn twice
|
|
|
|
|
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
|
|
|
|
|
background-color: transparentize(black, 0.2);
|
|
|
|
|
background-clip: padding-box;
|
2020-08-21 12:41:13 +00:00
|
|
|
|
border: 1px solid $tooltip_borders_color; // this subtle border is meant to
|
2014-09-06 14:02:34 +00:00
|
|
|
|
// not make the tooltip melt with
|
|
|
|
|
// very dark backgrounds
|
2020-01-23 23:50:39 +00:00
|
|
|
|
color: white;
|
2014-09-06 14:02:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-13 18:36:26 +00:00
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
border-radius: $window_radius;
|
2014-09-05 14:17:00 +00:00
|
|
|
|
box-shadow: none; // otherwise it gets inherited by windowframe.csd
|
2020-08-15 13:44:03 +00:00
|
|
|
|
|
|
|
|
|
> box {
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/*****************
|
|
|
|
|
* Color Chooser *
|
|
|
|
|
*****************/
|
2015-10-31 01:44:19 +00:00
|
|
|
|
colorswatch {
|
|
|
|
|
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
|
2016-01-08 15:31:30 +00:00
|
|
|
|
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
|
|
|
|
|
// applied to the overlay box.
|
2014-10-29 18:50:58 +00:00
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
2020-04-30 20:40:21 +00:00
|
|
|
|
@include focus-ring($width: 4px, $offset: -2px);
|
2020-04-30 14:15:04 +00:00
|
|
|
|
|
2016-04-17 16:17:07 +00:00
|
|
|
|
&:drop(active), & { border-style: none; } // FIXME: implement a proper drop(active) state
|
2016-01-09 14:30:20 +00:00
|
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
|
$_colorswatch_radius: 5px;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
|
// base color corners rounding
|
|
|
|
|
// to avoid the artifacts caused by rounded corner anti-aliasing the base color
|
|
|
|
|
// sports a bigger radius.
|
|
|
|
|
// nth-child is needed by the custom color strip.
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&.top {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
|
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-top-left-radius: $_colorswatch_radius;
|
|
|
|
|
border-top-right-radius: $_colorswatch_radius;
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
&.bottom {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius;
|
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&.left,
|
|
|
|
|
&:first-child:not(.top) {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-top-left-radius: $_colorswatch_radius;
|
|
|
|
|
border-bottom-left-radius: $_colorswatch_radius;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
|
|
|
|
&.right,
|
|
|
|
|
&:last-child:not(.bottom) {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-top-right-radius: $_colorswatch_radius;
|
|
|
|
|
border-bottom-right-radius: $_colorswatch_radius;
|
|
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-09-16 16:02:24 +00:00
|
|
|
|
&.dark {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2017-09-16 16:02:24 +00:00
|
|
|
|
color: white;
|
2020-08-07 23:33:38 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-08-07 23:33:38 +00:00
|
|
|
|
&.activatable:hover > overlay {
|
|
|
|
|
border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color);
|
2017-09-16 16:02:24 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-08 15:31:30 +00:00
|
|
|
|
|
2017-09-16 16:02:24 +00:00
|
|
|
|
&.light {
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2017-09-16 16:02:24 +00:00
|
|
|
|
color: black;
|
2020-08-07 23:33:38 +00:00
|
|
|
|
}
|
2017-09-16 16:02:24 +00:00
|
|
|
|
|
2020-08-07 23:33:38 +00:00
|
|
|
|
&.activatable:hover > overlay {
|
|
|
|
|
border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color);
|
2017-09-16 16:02:24 +00:00
|
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 00:19:12 +00:00
|
|
|
|
&:drop(active) {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.light > overlay {
|
2016-03-21 00:19:12 +00:00
|
|
|
|
border-color: $drop_target_color;
|
|
|
|
|
box-shadow: inset 0 0 0 2px if($variant == 'light', darken($drop_target_color, 7%), $borders_color),
|
|
|
|
|
inset 0 0 0 1px $drop_target_color;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
&.dark > overlay {
|
2016-03-21 00:19:12 +00:00
|
|
|
|
border-color: $drop_target_color;
|
|
|
|
|
box-shadow: inset 0 0 0 2px if($variant == 'light', transparentize(black, 0.7), $borders_color),
|
|
|
|
|
inset 0 0 0 1px $drop_target_color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border: 1px solid if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
2020-08-07 23:33:38 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-08-07 23:33:38 +00:00
|
|
|
|
&.activatable:hover > overlay {
|
|
|
|
|
box-shadow: inset 0 1px transparentize(white, 0.6),
|
|
|
|
|
inset 0 -1px transparentize(black, 0.8);
|
2014-10-08 15:23:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&#add-color-button {
|
2019-05-01 17:18:39 +00:00
|
|
|
|
border-radius: $_colorswatch_radius 0 0 $_colorswatch_radius;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-01-08 15:31:30 +00:00
|
|
|
|
&:only-child { border-radius: $_colorswatch_radius; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
@include button(normal);
|
2020-08-07 23:33:38 +00:00
|
|
|
|
}
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-08-07 23:33:38 +00:00
|
|
|
|
&.activatable:hover > overlay {
|
|
|
|
|
@include button(hover);
|
2016-01-08 15:31:30 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
2016-01-08 15:31:30 +00:00
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
opacity: 0.5;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay {
|
2016-01-08 15:31:30 +00:00
|
|
|
|
border-color: transparentize(black, 0.4);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
row:selected & { box-shadow: 0 0 0 2px $selected_fg_color; }
|
2016-01-29 16:48:45 +00:00
|
|
|
|
|
|
|
|
|
&#editor-color-sample {
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> overlay { border-radius: 4.5px; }
|
2016-01-29 16:48:45 +00:00
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-30 14:15:04 +00:00
|
|
|
|
plane {
|
|
|
|
|
transition: $focus_transition;
|
|
|
|
|
|
|
|
|
|
@include focus-ring($offset: 2px, $outer: true);
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-11 17:01:36 +00:00
|
|
|
|
// colorscale popup
|
|
|
|
|
colorchooser .popover.osd { border-radius: 5px; }
|
2014-06-24 08:25:49 +00:00
|
|
|
|
|
2014-07-08 16:24:28 +00:00
|
|
|
|
/********
|
|
|
|
|
* Misc *
|
|
|
|
|
********/
|
2015-09-08 18:10:51 +00:00
|
|
|
|
.content-view {
|
|
|
|
|
background-color: darken($bg_color,7%);
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2016-12-31 00:29:14 +00:00
|
|
|
|
&:hover { -gtk-icon-filter: brightness(1.2); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-09-14 09:58:13 +00:00
|
|
|
|
.tile {
|
|
|
|
|
margin: 2px;
|
|
|
|
|
background-color: if($variant=='light', transparent, black);
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
&:active, &:selected { background-color: if($variant=='light', transparent, $selected_bg_color); }
|
|
|
|
|
&:disabled { background-color: if($variant=='light', transparent, $insensitive_bg_color); }
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
> rubberband { @extend rubberband; }
|
2020-09-14 09:48:43 +00:00
|
|
|
|
|
2015-09-08 18:10:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-06-18 10:33:04 +00:00
|
|
|
|
.scale-popup {
|
2016-02-14 13:21:01 +00:00
|
|
|
|
.osd & { @extend %osd; }
|
2015-06-18 10:33:04 +00:00
|
|
|
|
|
2016-02-14 13:21:01 +00:00
|
|
|
|
.osd & button.flat { //FIXME: quick hack, redo properly
|
|
|
|
|
border-style: none;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
2015-06-18 10:33:04 +00:00
|
|
|
|
|
2015-10-30 03:17:41 +00:00
|
|
|
|
button { // +/- buttons on GtkVolumeButton popup
|
2015-06-18 10:33:04 +00:00
|
|
|
|
&:hover {
|
|
|
|
|
@extend %undecorated_button;
|
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
2014-07-08 16:24:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
/**********************
|
|
|
|
|
* Window Decorations *
|
|
|
|
|
*********************/
|
2020-05-02 08:25:12 +00:00
|
|
|
|
window {
|
2014-06-13 14:32:44 +00:00
|
|
|
|
// lamefun trick to get rounded borders regardless of CSD use
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
|
|
|
|
|
// this needs to be transparent
|
|
|
|
|
// see bug #722563
|
2014-06-18 16:09:43 +00:00
|
|
|
|
$_wm_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
|
|
|
|
|
$_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize($borders_color, 0.1));
|
|
|
|
|
|
2020-05-20 07:33:07 +00:00
|
|
|
|
&.csd {
|
|
|
|
|
box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
|
|
|
|
|
0 0 0 1px $_wm_border; //doing borders with box-shadow
|
|
|
|
|
margin: 0px;
|
2020-11-12 17:19:00 +00:00
|
|
|
|
border-radius: $window_radius;
|
2020-05-25 08:36:29 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
// the transparent shadow here is to enforce that the shadow extents don't
|
|
|
|
|
// change when we go to backdrop, to prevent jumping windows.
|
|
|
|
|
// The biggest shadow should be in the same order then in the active state
|
|
|
|
|
// or the jumping will happen during the transition.
|
|
|
|
|
box-shadow: 0 3px 9px 1px transparent,
|
|
|
|
|
0 2px 6px 2px transparentize(black, 0.8),
|
|
|
|
|
0 0 0 1px $_wm_border_backdrop;
|
|
|
|
|
transition: $backdrop_transition;
|
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
2020-11-12 17:17:52 +00:00
|
|
|
|
&.popup {
|
|
|
|
|
border-radius: $menu_radius;
|
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
|
|
|
|
0 0 0 1px transparentize($_wm_border, 0.1);
|
|
|
|
|
}
|
2014-10-22 18:46:54 +00:00
|
|
|
|
|
2020-11-12 17:17:52 +00:00
|
|
|
|
&.dialog.message {
|
|
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
|
|
|
|
0 0 0 1px transparentize($_wm_border, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.solid-csd {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: solid 1px $borders_color;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
box-shadow: inset 0 0 0 3px $headerbar_color, inset 0 1px $top_hilight;
|
|
|
|
|
|
|
|
|
|
&:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
|
|
|
|
|
}
|
2020-05-20 07:33:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.maximized,
|
|
|
|
|
&.fullscreen,
|
|
|
|
|
&.tiled,
|
|
|
|
|
&.tiled-top,
|
|
|
|
|
&.tiled-left,
|
|
|
|
|
&.tiled-right,
|
|
|
|
|
&.tiled-bottom { border-radius: 0; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-20 07:33:07 +00:00
|
|
|
|
&.popup { box-shadow: none; }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2014-12-18 13:18:50 +00:00
|
|
|
|
// server-side decorations as used by mutter
|
2020-05-20 07:33:07 +00:00
|
|
|
|
&.ssd { box-shadow: 0 0 0 1px $_wm_border; } //just doing borders, wm draws actual shadows
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2020-05-20 07:33:07 +00:00
|
|
|
|
}
|
2016-04-15 14:51:29 +00:00
|
|
|
|
|
2020-05-20 07:33:07 +00:00
|
|
|
|
tooltip.csd {
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
box-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-09-02 21:28:21 +00:00
|
|
|
|
// catch all extend :)
|
|
|
|
|
|
|
|
|
|
%selected_items {
|
|
|
|
|
background-color: $selected_bg_color;
|
2016-03-12 18:32:42 +00:00
|
|
|
|
|
2016-03-19 19:13:06 +00:00
|
|
|
|
@at-root %nobg_selected_items, & {
|
|
|
|
|
color: $selected_fg_color;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@at-root %selected_items_disabled,
|
2016-03-19 19:13:06 +00:00
|
|
|
|
&:disabled { color: mix($selected_fg_color, $selected_bg_color, 50%); }
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2019-12-01 01:43:16 +00:00
|
|
|
|
@at-root %selected_items_backdrop,
|
2016-03-19 19:13:06 +00:00
|
|
|
|
&:backdrop {
|
|
|
|
|
color: $backdrop_selected_fg_color;
|
|
|
|
|
|
|
|
|
|
&:disabled { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
|
|
|
|
}
|
2015-09-01 16:43:48 +00:00
|
|
|
|
}
|
2014-09-02 21:28:21 +00:00
|
|
|
|
}
|
2014-10-01 04:45:23 +00:00
|
|
|
|
|
2016-04-18 15:45:55 +00:00
|
|
|
|
.monospace { font-family: monospace; }
|
2015-06-18 10:01:12 +00:00
|
|
|
|
|
2016-02-14 13:33:30 +00:00
|
|
|
|
|
2015-06-18 10:01:12 +00:00
|
|
|
|
/**********************
|
|
|
|
|
* Touch Copy & Paste *
|
|
|
|
|
*********************/
|
|
|
|
|
//touch selection handlebars for the Popover.osd above
|
2015-11-10 04:47:08 +00:00
|
|
|
|
cursor-handle {
|
2015-06-18 10:01:12 +00:00
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
border-style: none;
|
2018-06-12 10:33:03 +00:00
|
|
|
|
min-width: 20px;
|
|
|
|
|
min-height: 24px;
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
padding-right: 20px;
|
|
|
|
|
padding-top: 24px;
|
|
|
|
|
padding-bottom: 24px;
|
2016-01-09 13:36:05 +00:00
|
|
|
|
|
2015-06-18 10:01:12 +00:00
|
|
|
|
@each $s,$as in ('',''),
|
2015-06-18 11:08:45 +00:00
|
|
|
|
(':hover','-hover'),
|
|
|
|
|
(':active','-active') { //no need for insensitive and backdrop
|
2016-01-09 13:36:05 +00:00
|
|
|
|
&.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
|
|
|
|
|
$_url: 'assets/text-select-start#{$as}#{$asset_suffix}';
|
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
|
|
|
|
|
$_url: 'assets/text-select-end#{$as}#{$asset_suffix}';
|
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
|
|
|
|
|
$_url: 'assets/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}';
|
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-08 00:13:13 +00:00
|
|
|
|
shortcuts-section {
|
|
|
|
|
margin: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-08 02:45:49 +00:00
|
|
|
|
.shortcuts-search-results {
|
|
|
|
|
margin: 20px;
|
|
|
|
|
border-spacing: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-09 17:03:26 +00:00
|
|
|
|
// shortcut window keys
|
2019-10-18 04:20:35 +00:00
|
|
|
|
shortcut {
|
|
|
|
|
border-spacing: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
shortcut > .keycap {
|
2016-01-09 17:03:26 +00:00
|
|
|
|
min-width: 20px;
|
|
|
|
|
min-height: 25px;
|
2016-02-15 12:07:37 +00:00
|
|
|
|
margin-top: 2px;
|
2016-01-09 17:03:26 +00:00
|
|
|
|
padding-bottom: 3px;
|
|
|
|
|
padding-left: 6px;
|
|
|
|
|
padding-right: 6px;
|
|
|
|
|
|
2016-02-15 12:07:37 +00:00
|
|
|
|
color: $fg_color;
|
2016-01-09 17:03:26 +00:00
|
|
|
|
background-color: $base_color;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
border-color: if($variant == 'light', mix($borders_color, $bg_color, 50%), $borders_color);
|
2015-10-11 20:40:48 +00:00
|
|
|
|
border-radius: 5px;
|
2016-01-09 17:03:26 +00:00
|
|
|
|
box-shadow: if($variant == 'light', inset 0 -3px mix($base_color, $bg_color, 20%), inset 0 -3px mix($borders_color, $base_color, 60%));
|
|
|
|
|
font-size: smaller;
|
|
|
|
|
|
2015-10-11 20:40:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-12 17:30:30 +00:00
|
|
|
|
:not(decoration):not(window):drop(active):focus,
|
|
|
|
|
:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
|
2016-03-14 18:19:43 +00:00
|
|
|
|
border-color: $drop_target_color;
|
|
|
|
|
box-shadow: inset 0 0 0 1px $drop_target_color;
|
2016-03-29 13:06:11 +00:00
|
|
|
|
caret-color: $drop_target_color;
|
2016-02-14 13:44:57 +00:00
|
|
|
|
}
|
2015-12-08 03:11:52 +00:00
|
|
|
|
|
2019-10-12 16:26:54 +00:00
|
|
|
|
stackswitcher > button.text-button { min-width: 100px; } // FIXME aggregate with buttons
|
2015-12-16 00:39:57 +00:00
|
|
|
|
|
2019-10-12 16:26:54 +00:00
|
|
|
|
stackswitcher.circular {
|
|
|
|
|
border-spacing: 12px;
|
2017-08-11 15:54:15 +00:00
|
|
|
|
|
2019-10-12 16:26:54 +00:00
|
|
|
|
// FIXME aggregate with buttons
|
|
|
|
|
> button.circular,
|
|
|
|
|
> button.text-button.circular {
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-02-06 12:46:00 +00:00
|
|
|
|
/*************
|
|
|
|
|
* App Icons *
|
|
|
|
|
*************/
|
|
|
|
|
/* Outline for low res icons */
|
|
|
|
|
.lowres-icon {
|
2019-04-29 13:06:32 +00:00
|
|
|
|
-gtk-icon-shadow: 0 -1px rgba(0,0,0,0.05),
|
|
|
|
|
1px 0 rgba(0,0,0,0.1),
|
|
|
|
|
0 1px rgba(0,0,0,0.3),
|
|
|
|
|
-1px 0 rgba(0,0,0,0.1);
|
2019-02-06 12:46:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Drapshadow for large icons */
|
|
|
|
|
.icon-dropshadow {
|
2020-05-06 19:15:19 +00:00
|
|
|
|
-gtk-icon-shadow: 0 1px 12px rgba(0,0,0,0.05),
|
|
|
|
|
0 -1px rgba(0,0,0,0.05),
|
|
|
|
|
1px 0 rgba(0,0,0,0.1),
|
|
|
|
|
0 1px rgba(0,0,0,0.3),
|
|
|
|
|
-1px 0 rgba(0,0,0,0.1);
|
2019-02-06 12:46:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-09-02 15:56:14 +00:00
|
|
|
|
/*********
|
|
|
|
|
* Emoji *
|
|
|
|
|
********/
|
|
|
|
|
|
2019-11-14 15:04:18 +00:00
|
|
|
|
popover.emoji-picker > contents {
|
|
|
|
|
padding: 0;
|
2019-11-03 08:38:11 +00:00
|
|
|
|
|
2019-11-14 15:04:18 +00:00
|
|
|
|
entry.search { margin: 5px; }
|
2019-11-03 08:38:11 +00:00
|
|
|
|
}
|
2017-08-11 15:54:15 +00:00
|
|
|
|
|
|
|
|
|
button.emoji-section {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
border-width: 3px;
|
|
|
|
|
border-style: none none solid;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
2019-11-14 15:04:18 +00:00
|
|
|
|
margin: 2px 8px 4px;
|
2017-08-11 15:54:15 +00:00
|
|
|
|
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;
|
|
|
|
|
|
2019-11-14 15:04:18 +00:00
|
|
|
|
&:dir(ltr):not(:last-child) { margin-right: 0; }
|
|
|
|
|
&:dir(rtl):not(:last-child) { margin-left: 0; }
|
2019-11-03 08:38:11 +00:00
|
|
|
|
|
|
|
|
|
&:hover { border-color: if($variant == 'light', $borders_color, transparentize($fg_color, .9)); }
|
2017-09-02 15:56:14 +00:00
|
|
|
|
&:checked { border-color: $selected_bg_color; }
|
2017-08-11 15:54:15 +00:00
|
|
|
|
|
2017-09-02 15:56:14 +00:00
|
|
|
|
label {
|
|
|
|
|
padding: 0;
|
2017-09-02 15:54:47 +00:00
|
|
|
|
|
|
|
|
|
opacity: 0.55;
|
2017-09-02 15:56:14 +00:00
|
|
|
|
}
|
2017-09-02 15:54:47 +00:00
|
|
|
|
|
|
|
|
|
&:hover label { opacity: 0.775; }
|
|
|
|
|
&:checked label { opacity: 1; }
|
2017-09-02 15:56:14 +00:00
|
|
|
|
}
|
2017-08-11 15:54:15 +00:00
|
|
|
|
|
2020-01-23 16:26:52 +00:00
|
|
|
|
popover.emoji-picker emoji {
|
2017-08-11 15:54:15 +00:00
|
|
|
|
font-size: x-large;
|
|
|
|
|
padding: 6px;
|
2019-11-14 15:04:18 +00:00
|
|
|
|
border-radius: 6px;
|
2017-08-11 15:54:15 +00:00
|
|
|
|
|
2020-03-17 04:28:57 +00:00
|
|
|
|
&:focus,
|
2019-11-14 15:04:18 +00:00
|
|
|
|
&:hover {
|
2017-09-02 15:56:14 +00:00
|
|
|
|
background: $selected_bg_color;
|
|
|
|
|
}
|
2017-08-11 15:54:15 +00:00
|
|
|
|
}
|
2017-08-19 18:06:47 +00:00
|
|
|
|
|
2020-01-23 23:50:39 +00:00
|
|
|
|
emoji-completion-row > box {
|
2017-08-19 18:06:47 +00:00
|
|
|
|
border-spacing: 10px;
|
|
|
|
|
padding: 2px 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-23 18:27:56 +00:00
|
|
|
|
emoji-completion-row:focus,
|
|
|
|
|
emoji-completion-row:hover {
|
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
|
color: $selected_fg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
emoji-completion-row emoji:focus,
|
|
|
|
|
emoji-completion-row emoji:hover {
|
2020-05-13 17:18:45 +00:00
|
|
|
|
background-color: $menu_selected_color;
|
2018-12-10 20:22:56 +00:00
|
|
|
|
}
|
2019-05-29 03:07:02 +00:00
|
|
|
|
|
2020-01-23 18:27:56 +00:00
|
|
|
|
popover.entry-completion > contents {
|
2019-05-29 03:07:02 +00:00
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2019-06-09 15:24:37 +00:00
|
|
|
|
|
2019-10-06 12:08:46 +00:00
|
|
|
|
statusbar {
|
|
|
|
|
padding: 6px 10px 6px 10px;
|
|
|
|
|
}
|