2014-06-13 14:32:44 +00:00
|
|
|
@function gtkalpha($c,$a) {
|
|
|
|
@return unquote("alpha(#{$c},#{$a})");
|
|
|
|
}
|
|
|
|
|
2014-10-16 12:36:23 +00:00
|
|
|
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
2015-06-04 17:36:25 +00:00
|
|
|
$asset_suffix: if($variant=='dark', '-dark', '');
|
2014-10-16 12:36:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
-GtkToolButton-icon-spacing: 4;
|
|
|
|
-GtkTextView-error-underline-color: $error_color;
|
|
|
|
|
|
|
|
-GtkCheckButton-indicator-size: 16;
|
|
|
|
-GtkCheckMenuItem-indicator-size: 16;
|
|
|
|
|
|
|
|
// The size for scrollbars. The slider is 2px smaller, but we keep it
|
|
|
|
// up so that the whole area is sensitive to button presses for the
|
|
|
|
// slider. The stepper button is larger in both directions, the slider
|
|
|
|
// only in the width
|
|
|
|
|
|
|
|
-GtkScrolledWindow-scrollbar-spacing: 0;
|
|
|
|
-GtkScrolledWindow-scrollbars-within-bevel: 1;
|
|
|
|
|
|
|
|
-GtkToolItemGroup-expander-size: 11;
|
|
|
|
-GtkExpander-expander-size: 16;
|
|
|
|
-GtkTreeView-expander-size: 11;
|
|
|
|
|
|
|
|
-GtkTreeView-horizontal-separator: 4;
|
|
|
|
|
|
|
|
-GtkMenu-horizontal-padding: 0;
|
|
|
|
-GtkMenu-vertical-padding: 0;
|
|
|
|
|
|
|
|
-GtkWidget-link-color: $link_color;
|
2014-09-26 15:05:17 +00:00
|
|
|
-GtkWidget-visited-link-color: $link_visited_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-06-14 13:37:36 +00:00
|
|
|
-GtkWidget-focus-padding: 2; // FIXME: do we still need these?
|
|
|
|
-GtkWidget-focus-line-width: 1; //
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-11-20 13:19:39 +00:00
|
|
|
-GtkWidget-text-handle-width: 20;
|
2015-06-04 17:36:25 +00:00
|
|
|
-GtkWidget-text-handle-height: 24;
|
2014-11-20 13:19:39 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkDialog-button-spacing: 4;
|
|
|
|
-GtkDialog-action-area-border: 0;
|
|
|
|
|
2014-06-28 05:34:25 +00:00
|
|
|
-GtkStatusbar-shadow-type: none;
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
// We use the outline properties to signal the focus properties
|
|
|
|
// to the adwaita engine: using real CSS properties is faster,
|
|
|
|
// and we don't use any outlines for now.
|
|
|
|
|
|
|
|
outline-color: transparentize($fg_color, 0.7);
|
|
|
|
outline-style: dashed;
|
|
|
|
outline-offset: -3px;
|
|
|
|
outline-width: 1px;
|
|
|
|
outline-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***************
|
|
|
|
* Base States *
|
|
|
|
***************/
|
|
|
|
|
|
|
|
.background {
|
2014-10-17 18:09:17 +00:00
|
|
|
color: $fg_color;
|
2014-10-18 16:02:20 +00:00
|
|
|
background-color: if($variant == 'light', darken($bg_color, 1.5%), $bg_color);
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-10-17 18:09:17 +00:00
|
|
|
&:backdrop {
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
2014-10-17 18:09:17 +00:00
|
|
|
color: $backdrop_fg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $backdrop_bg_color;
|
2014-10-17 18:09:17 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
These wildcard seems unavoidable, need to investigate.
|
|
|
|
Wildcards are bad and troublesome, use them with care,
|
|
|
|
or better, just don't.
|
|
|
|
Everytime a wildcard is used a kitten dies, painfully.
|
|
|
|
*/
|
|
|
|
|
|
|
|
*:insensitive {
|
2014-08-28 13:42:17 +00:00
|
|
|
-gtk-image-effect: dim;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gtkstyle-fallback {
|
|
|
|
background-color: $bg_color;
|
|
|
|
color: $fg_color;
|
|
|
|
&:prelight {
|
|
|
|
background-color: lighten($bg_color, 10%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: darken($bg_color, 10%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
}
|
|
|
|
&:selected {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.view {
|
2014-10-18 14:57:39 +00:00
|
|
|
color: $text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $base_color;
|
2014-12-17 17:29:02 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
2014-10-18 14:57:39 +00:00
|
|
|
color: $backdrop_text_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
2014-12-17 17:29:02 +00:00
|
|
|
|
|
|
|
&:selected {
|
2014-11-15 14:54:20 +00:00
|
|
|
border-radius: 3px;
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %selected_items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-19 17:11:02 +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
|
|
|
}
|
|
|
|
|
2014-10-05 01:40:45 +00:00
|
|
|
.label {
|
2014-08-29 13:32:45 +00:00
|
|
|
&.separator {
|
|
|
|
color: $fg_color;
|
|
|
|
@extend .dim-label;
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
|
|
|
}
|
2014-06-30 15:35:38 +00:00
|
|
|
&:selected,
|
|
|
|
&:selected:focus,
|
2014-08-26 17:24:44 +00:00
|
|
|
&:selected:hover {
|
2014-08-22 10:55:30 +00:00
|
|
|
@extend %selected_items;
|
|
|
|
}
|
2014-08-25 12:15:32 +00:00
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
2014-08-26 17:24:44 +00:00
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
2014-08-25 12:15:32 +00:00
|
|
|
}
|
2014-06-30 15:35:38 +00:00
|
|
|
}
|
|
|
|
|
2014-07-07 11:30:24 +00:00
|
|
|
.dim-label {
|
2014-07-07 12:04:37 +00:00
|
|
|
opacity: 0.55;
|
|
|
|
text-shadow: none;
|
2014-07-07 11:30:24 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 03:07:57 +00:00
|
|
|
GtkAssistant {
|
2014-08-26 15:51:45 +00:00
|
|
|
.sidebar {
|
2014-08-22 03:07:57 +00:00
|
|
|
background-color: $base_color;
|
2014-08-26 15:51:45 +00:00
|
|
|
border-top: 1px solid $borders_color;
|
2014-08-26 16:02:28 +00:00
|
|
|
&:dir(ltr) { border-right: 1px solid $borders_color; }
|
|
|
|
&:dir(rtl) { border-left: 1px solid $borders_color; }
|
2014-08-26 15:51:45 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2014-08-22 03:07:57 +00:00
|
|
|
}
|
2014-08-26 15:51:45 +00:00
|
|
|
&.csd .sidebar { border-top-style: none; }
|
2014-10-05 01:40:45 +00:00
|
|
|
.sidebar .label {
|
2014-08-26 15:51:45 +00:00
|
|
|
padding: 6px 12px;
|
2014-08-22 03:07:57 +00:00
|
|
|
}
|
2014-10-05 01:40:45 +00:00
|
|
|
.sidebar .label.highlight {
|
2014-08-26 15:51:45 +00:00
|
|
|
background-color: mix($bg_color, $fg_color, 80%);
|
2014-08-22 03:07:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-26 17:54:41 +00:00
|
|
|
GtkTextView { // This will get overridden by .view, needed by gedit line numbers
|
|
|
|
background-color: mix($bg_color, $base_color, 50%);
|
|
|
|
&:backdrop { background-color: mix($backdrop_bg_color,
|
|
|
|
$backdrop_base_color, 50%); }
|
|
|
|
}
|
|
|
|
|
2014-10-02 18:40:18 +00:00
|
|
|
.grid-child {
|
2014-09-01 15:42:46 +00:00
|
|
|
padding: 3px;
|
|
|
|
border-radius: 3px;
|
|
|
|
&:selected {
|
|
|
|
@extend %selected_items;
|
|
|
|
outline-offset: -2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-26 14:54:19 +00:00
|
|
|
%osd, .osd {
|
2014-08-22 10:55:30 +00:00
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
|
|
|
background-color: $osd_bg_color;
|
2014-10-29 17:10:39 +00:00
|
|
|
background-clip: padding-box;
|
2014-09-04 13:03:09 +00:00
|
|
|
outline-color: transparentize($osd_fg_color, 0.7);
|
2014-10-29 17:10:39 +00:00
|
|
|
box-shadow: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
text-shadow: 0 1px black;
|
2014-08-26 14:54:19 +00:00
|
|
|
icon-shadow: 0 1px black;
|
2014-08-22 10:55:30 +00:00
|
|
|
&:backdrop { text-shadow: none; }
|
|
|
|
}
|
2014-08-22 03:07:57 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/*********************
|
|
|
|
* Spinner Animation *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
@keyframes spin {
|
2014-08-28 13:42:17 +00:00
|
|
|
to { -gtk-icon-transform: rotate(1turn); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
background-image: none;
|
|
|
|
background-color: blue;
|
|
|
|
opacity: 0; // non spinning spinner makes no sense
|
|
|
|
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
|
|
|
|
&:active {
|
|
|
|
opacity: 1;
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
&:insensitive {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************
|
|
|
|
* Text Entries *
|
|
|
|
****************/
|
|
|
|
|
|
|
|
.entry {
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-07-21 16:49:15 +00:00
|
|
|
padding: 5px 8px 6px;
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-07-23 13:25:22 +00:00
|
|
|
&.image { // icons inside the entry
|
|
|
|
&.left { padding-left: 0; }
|
|
|
|
&.right { padding-right: 0; }
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 3px;
|
2014-10-16 12:36:23 +00:00
|
|
|
transition: all 200ms $ease-out-quad;
|
2014-06-13 14:32:44 +00:00
|
|
|
@include entry(normal);
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-06-27 12:24:53 +00:00
|
|
|
&.flat, &.flat:focus {
|
|
|
|
padding: 2px;
|
2014-09-03 11:18:39 +00:00
|
|
|
@include entry(normal, $edge:none);
|
2014-06-27 12:24:53 +00:00
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:focus { @include entry(focus); }
|
|
|
|
&:insensitive { @include entry(insensitive); }
|
|
|
|
&:backdrop { @include entry(backdrop); }
|
|
|
|
&:backdrop:insensitive { @include entry(backdrop-insensitive); }
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:selected,
|
|
|
|
&:selected:focus {
|
|
|
|
@extend %selected_items;
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.progressbar {
|
|
|
|
margin: 1px;
|
|
|
|
border-radius: 0;
|
|
|
|
border-width: 0 0 2px;
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
border-style: solid;
|
|
|
|
background-image: none;
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
&:backdrop { background-color: transparent; }
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2015-06-25 18:04:32 +00:00
|
|
|
.linked:not(.vertical) > & { @extend %linked; }
|
2015-06-04 14:19:05 +00:00
|
|
|
|
2015-08-27 18:18:40 +00:00
|
|
|
.linked:not(.vertical) > &:focus + .entry,
|
|
|
|
.linked:not(.vertical) > &:focus + .button,
|
|
|
|
.linked:not(.vertical) > &:focus + GtkComboBox > .the-button-in-the-combobox,
|
|
|
|
.linked:not(.vertical) > &:focus + GtkComboBoxText > .the-button-in-the-combobox {
|
|
|
|
border-left-color: entry_focus_border(); // colors the border of the widget following a focused entry
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2015-04-22 15:43:37 +00:00
|
|
|
// entry error and warning style
|
|
|
|
@each $e_type, $e_color in (error, $error_color),
|
|
|
|
(warning, $warning_color) {
|
|
|
|
&.#{$e_type} {
|
|
|
|
color: $e_color;
|
|
|
|
border-color: entry_focus_border($e_color);
|
|
|
|
&:focus { @include entry(focus, $e_color); }
|
|
|
|
&:selected, &:selected:focus { background-color: $e_color; }
|
2014-07-03 10:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-07-23 15:53:31 +00:00
|
|
|
&.image { // entry icons colors
|
2014-12-01 09:14:47 +00:00
|
|
|
color: mix($fg_color, $base_color, 80%);
|
2014-07-23 15:53:31 +00:00
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
&:active { color: $selected_bg_color; }
|
2014-12-01 09:14:47 +00:00
|
|
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
|
2014-07-23 15:53:31 +00:00
|
|
|
}
|
2014-10-04 18:23:10 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
.osd & {
|
|
|
|
@include entry(osd);
|
|
|
|
&:focus { @include entry(osd-focus); }
|
|
|
|
&:backdrop { @include entry(osd-backdrop); }
|
2014-10-30 10:50:27 +00:00
|
|
|
&:insensitive { @include entry(osd-insensitive); }
|
2014-10-29 17:10:39 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2015-04-22 12:42:58 +00:00
|
|
|
// Vertically linked entries
|
|
|
|
// FIXME: take care of "colored" entries
|
|
|
|
.linked.vertical {
|
|
|
|
> .entry { @extend %linked_vertical; }
|
|
|
|
|
2015-04-22 14:09:29 +00:00
|
|
|
// remove the edge hilight and the focus shadow (unfortunatelly)
|
2015-04-22 12:42:58 +00:00
|
|
|
> .entry:not(:last-child) { box-shadow: none; }
|
2015-04-22 14:09:29 +00:00
|
|
|
// add back the focus shadow
|
|
|
|
> .entry:focus:not(:last-child) { box-shadow: entry_focus_shadow(); }
|
2015-04-22 12:42:58 +00:00
|
|
|
|
|
|
|
// brighter border between linked entries
|
|
|
|
> .entry:not(:insensitive) + .entry:not(:insensitive) {
|
|
|
|
border-top-color: mix($borders_color, $base_color, 30%);
|
|
|
|
background-image: linear-gradient(to bottom, $base_color);
|
|
|
|
&:backdrop {
|
|
|
|
border-top-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
|
|
|
|
background-image: linear-gradient(to bottom, $backdrop_base_color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// color back the top border of a linked focused entry following another entry and add back the focus shadow.
|
2015-04-22 14:09:29 +00:00
|
|
|
> .entry + .entry:focus:not(:last-child) {
|
2015-04-22 12:42:58 +00:00
|
|
|
border-top-color: entry_focus_border();
|
|
|
|
box-shadow: entry_focus_shadow();
|
|
|
|
}
|
2015-04-22 14:09:29 +00:00
|
|
|
// just recolor the top border on the last focused entry, since we don't reset the shadow here letting that be
|
|
|
|
// inherited by the entry styling.
|
|
|
|
> .entry + .entry:focus:last-child {
|
|
|
|
border-top-color: entry_focus_border();
|
|
|
|
}
|
2015-04-22 12:42:58 +00:00
|
|
|
|
2015-04-22 14:09:29 +00:00
|
|
|
// this takes care of coloring the top border of the focused entry subsequent widget.
|
|
|
|
// :not(:only-child) is a specificity bump hack.
|
2015-04-22 12:42:58 +00:00
|
|
|
> .entry:focus:not(:only-child) + .entry,
|
|
|
|
> .entry:focus:not(:only-child) + .button,
|
2015-08-27 17:36:18 +00:00
|
|
|
> .entry:focus:not(:only-child) + GtkComboBox > .the-button-in-the-combobox,
|
|
|
|
> .entry:focus:not(:only-child) + GtkComboBoxText > .the-button-in-the-combobox { border-top-color: entry_focus_border(); }
|
2015-04-22 12:42:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/***********
|
|
|
|
* Buttons *
|
|
|
|
***********/
|
|
|
|
|
2014-07-22 17:50:15 +00:00
|
|
|
// stuff for .needs-attention
|
|
|
|
$_dot_color: if($variant=='light', $selected_bg_color,
|
|
|
|
lighten($selected_bg_color,15%));
|
2014-07-16 17:42:17 +00:00
|
|
|
@keyframes needs_attention {
|
|
|
|
from {
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.01,
|
2014-07-22 17:50:15 +00:00
|
|
|
to($_dot_color),
|
2014-07-16 17:42:17 +00:00
|
|
|
to(transparent));
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to($selected_bg_color),
|
|
|
|
to(transparent));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-22 17:50:15 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.button {
|
2014-10-16 10:46:58 +00:00
|
|
|
|
2014-10-16 12:36:23 +00:00
|
|
|
$_button_transition: all 200ms $ease-out-quad;
|
2014-10-16 10:46:58 +00:00
|
|
|
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 3px;
|
2014-07-21 16:49:15 +00:00
|
|
|
padding: 5px 8px 6px;
|
2014-10-16 10:46:58 +00:00
|
|
|
transition: $_button_transition;
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(normal);
|
2014-10-16 10:46:58 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated);
|
|
|
|
// to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
|
|
|
|
// to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
|
|
|
|
// it won't fade out when the pointer leave the button allocation area. To make the transition more evident
|
|
|
|
// in this case the duration is increased.
|
|
|
|
transition: none;
|
|
|
|
&:hover {
|
|
|
|
transition: $_button_transition;
|
|
|
|
transition-duration: 500ms;
|
|
|
|
&:active { transition: $_button_transition; }
|
|
|
|
}
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
&:hover {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(hover);
|
2014-06-18 17:38:14 +00:00
|
|
|
-gtk-image-effect: highlight;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-09-12 17:09:53 +00:00
|
|
|
&:active, &:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(active);
|
2014-07-01 15:46:24 +00:00
|
|
|
transition-duration: 50ms;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
&:backdrop, &.flat:backdrop {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(backdrop);
|
2014-07-08 14:42:10 +00:00
|
|
|
-gtk-image-effect: none;
|
2014-08-14 02:34:30 +00:00
|
|
|
&:active, &:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(backdrop-active);
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
}
|
2014-08-14 02:34:30 +00:00
|
|
|
&:insensitive:active, &:insensitive:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(backdrop-insensitive-active);
|
|
|
|
}
|
|
|
|
}
|
2014-09-09 19:34:05 +00:00
|
|
|
&.flat:backdrop, &.flat:insensitive, &.flat:backdrop:insensitive {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
|
|
|
@include button(insensitive);
|
2014-09-04 13:03:09 +00:00
|
|
|
&:active, &:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(insensitive-active);
|
|
|
|
}
|
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
// big standalone buttons like in Documents pager
|
|
|
|
&.osd {
|
2014-08-22 10:55:30 +00:00
|
|
|
&.image-button { padding: 13px; }
|
2014-07-07 11:26:09 +00:00
|
|
|
color: $osd_fg_color;
|
2014-10-30 12:18:48 +00:00
|
|
|
border-radius: 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
outline-color: transparentize($osd_fg_color, 0.7); //FIXME: define a color var?
|
2014-07-07 11:26:09 +00:00
|
|
|
@include button(osd);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
|
|
@include button(osd-hover);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:active, &:checked {
|
|
|
|
@include button(osd-active);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-10-29 17:10:39 +00:00
|
|
|
box-shadow: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
|
|
|
&:insensitive, &:backdrop:insensitive {
|
|
|
|
@include button(osd-insensitive);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button(osd-backdrop);
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
//overlay / OSD style
|
|
|
|
.osd & {
|
|
|
|
@include button(osd);
|
2014-09-04 13:03:09 +00:00
|
|
|
// there's a problem with sass which prevents it to extend the linked
|
|
|
|
// placeholder as expected, it should just be "@extend %linked;", the
|
|
|
|
// placeholder is basically replicated here
|
2014-08-22 15:25:25 +00:00
|
|
|
//
|
|
|
|
// Workaround START
|
|
|
|
border-radius: 0;
|
|
|
|
border-left-style: none;
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-radius: 0;
|
|
|
|
border-right-style: none;
|
|
|
|
border-left-style: solid
|
|
|
|
}
|
|
|
|
&:first-child {
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
border-left-style: solid;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
&:dir(rtl) { border-right-style: solid; }
|
|
|
|
}
|
|
|
|
&:only-child {
|
|
|
|
border-radius: 3px;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
|
|
|
// Workaround END
|
2014-08-06 11:20:45 +00:00
|
|
|
&:hover {
|
|
|
|
@include button(osd-hover);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
2014-08-22 10:55:30 +00:00
|
|
|
&:active, &:checked, &:backdrop:active, &:backdrop:checked {
|
2014-08-06 11:20:45 +00:00
|
|
|
@include button(osd-active);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
2014-08-22 10:55:30 +00:00
|
|
|
&:insensitive, &:backdrop:insensitive {
|
2014-08-06 11:20:45 +00:00
|
|
|
@include button(osd-insensitive);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button(osd-backdrop);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
2014-10-29 17:10:39 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated);
|
|
|
|
box-shadow: none; //FIXME respect no edge on the button mixin
|
|
|
|
text-shadow: 0 1px black;
|
|
|
|
icon-shadow: 0 1px black;
|
|
|
|
&:hover {
|
|
|
|
@include button(osd-hover);
|
|
|
|
background-clip: padding-box;
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(osd-insensitive);
|
|
|
|
background-image: none;
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop { @include button(undecorated); }
|
|
|
|
&:active, &:checked {
|
|
|
|
@include button(osd-active);
|
|
|
|
background-clip: padding-box;
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
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);
|
2014-09-04 17:13:29 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $b_color; //FIXME: does it work on the dark variant?
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
&:hover { @include button(hover, $b_color, white); }
|
|
|
|
&:active, &:checked { @include button(active, $b_color, white); }
|
2014-09-04 17:13:29 +00:00
|
|
|
&:backdrop, &.flat:backdrop {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(backdrop, $b_color, white);
|
|
|
|
&:active, &:checked {
|
|
|
|
@include button(backdrop-active, $b_color, white);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
2014-09-04 17:02:13 +00:00
|
|
|
@include button(backdrop-insensitive);
|
2014-09-04 13:03:09 +00:00
|
|
|
&:active, &:checked {
|
|
|
|
@include button(backdrop-insensitive-active, $b_color, white);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-09 19:34:05 +00:00
|
|
|
&.flat:backdrop, &.flat:insensitive, &.flat:backdrop:insensitive {
|
2014-09-04 17:13:29 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
color: transparentize($b_color, 0.2);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
2014-09-04 17:02:13 +00:00
|
|
|
@include button(insensitive);
|
2014-09-04 13:03:09 +00:00
|
|
|
&:active, &:checked {
|
|
|
|
@include button(insensitive-active, $b_color, white);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-08-22 10:55:30 +00:00
|
|
|
.osd & {
|
|
|
|
@include button(osd, $b_color);
|
|
|
|
@extend %linked;
|
|
|
|
&:hover {
|
|
|
|
@include button(osd-hover, $b_color);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
|
|
|
&:active, &:checked, &:backdrop:active, &:backdrop:checked {
|
|
|
|
@include button(osd-active, $b_color);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
|
|
|
&:insensitive, &:backdrop:insensitive {
|
|
|
|
@include button(osd-insensitive, $b_color);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button(osd-backdrop, $b_color);
|
|
|
|
@extend %linked;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
|
2014-07-21 16:49:15 +00:00
|
|
|
&.image-button { padding: 8px; }
|
2014-07-21 13:24:08 +00:00
|
|
|
|
2014-07-21 16:49:15 +00:00
|
|
|
&.text-button {
|
|
|
|
padding-left: 16px;
|
|
|
|
padding-right: 16px;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-09-13 10:25:46 +00:00
|
|
|
&.text-button.image-button {
|
|
|
|
// those buttons needs uneven horizontal padding, we want the icon side
|
|
|
|
// to have the image-button padding, while the text side the text-button
|
|
|
|
// one, so we're adding the missing padding to the label depending on
|
|
|
|
// its position inside the button
|
|
|
|
padding: 5px 8px 6px; // same as .button
|
2014-10-05 01:40:45 +00:00
|
|
|
.label:first-child { padding-left: 8px; }
|
|
|
|
.label:last-child { padding-right: 8px; }
|
2014-09-13 10:25:46 +00:00
|
|
|
}
|
|
|
|
|
2014-07-16 17:42:17 +00:00
|
|
|
.stack-switcher > & {
|
2014-09-12 11:46:17 +00:00
|
|
|
// to position the needs attention dot, padding is added to the button
|
|
|
|
// child, a label needs just lateral padding while an icon needs vertical
|
|
|
|
// padding added too.
|
2014-10-16 18:04:04 +00:00
|
|
|
|
|
|
|
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
|
|
|
|
|
2014-10-05 01:40:45 +00:00
|
|
|
> .label {
|
2014-07-16 17:42:17 +00:00
|
|
|
padding-left: 6px; // label padding
|
|
|
|
padding-right: 6px; //
|
|
|
|
}
|
|
|
|
> GtkImage {
|
2014-09-12 11:46:17 +00:00
|
|
|
padding-left: 6px; // image padding
|
|
|
|
padding-right: 6px; //
|
|
|
|
padding-top: 3px; //
|
|
|
|
padding-bottom: 3px; //
|
|
|
|
}
|
|
|
|
&.text-button {
|
|
|
|
padding: 5px 10px 6px; // needed or it will get overridden
|
|
|
|
}
|
|
|
|
&.image-button {
|
|
|
|
// we want image buttons to have a 1:1 aspect ratio, so compensation
|
|
|
|
// of the padding added to the GtkImage is needed
|
|
|
|
padding: 5px 2px;
|
2014-07-16 17:42:17 +00:00
|
|
|
}
|
2014-10-05 01:40:45 +00:00
|
|
|
&.needs-attention > .label,
|
2014-10-02 19:16:30 +00:00
|
|
|
&.needs-attention > GtkImage { @extend %needs_attention; }
|
2014-10-05 01:40:45 +00:00
|
|
|
&.needs-attention:active > .label,
|
2014-08-14 02:34:30 +00:00
|
|
|
&.needs-attention:active > GtkImage,
|
2014-10-05 01:40:45 +00:00
|
|
|
&.needs-attention:checked > .label,
|
2014-08-14 02:34:30 +00:00
|
|
|
&.needs-attention:checked > GtkImage {
|
2014-07-22 07:42:22 +00:00
|
|
|
animation: none;
|
|
|
|
background-image: none;
|
|
|
|
}
|
2014-07-16 17:42:17 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
//inline-toolbar buttons
|
|
|
|
.inline-toolbar &, .inline-toolbar &:backdrop {
|
|
|
|
border-radius: 2px;
|
|
|
|
border-width: 1px;
|
2014-08-06 11:20:45 +00:00
|
|
|
@extend %linked;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
.primary-toolbar & { icon-shadow: none; } // tango icons don't need shadows
|
|
|
|
|
2014-12-03 10:29:12 +00:00
|
|
|
.linked > &,
|
|
|
|
.linked > &:hover,
|
|
|
|
.linked > &:active,
|
|
|
|
.linked > &:checked,
|
|
|
|
.linked > &:backdrop { @extend %linked; }
|
|
|
|
|
|
|
|
.linked.vertical > &,
|
|
|
|
.linked.vertical > &:hover,
|
|
|
|
.linked.vertical > &:active,
|
|
|
|
.linked.vertical > &:checked,
|
|
|
|
.linked.vertical > &:backdrop { @extend %linked_vertical; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-10-02 19:16:30 +00:00
|
|
|
%needs_attention {
|
|
|
|
animation: needs_attention 150ms ease-in;
|
|
|
|
$_dot_shadow: _text_shadow_color();
|
|
|
|
$_dot_shadow_r: if($variant=='light',0.5,0.45);
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to($_dot_color),
|
|
|
|
to(transparent)),
|
|
|
|
-gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, $_dot_shadow_r,
|
|
|
|
to($_dot_shadow),
|
|
|
|
to(transparent));
|
|
|
|
background-size: 6px 6px, 6px 6px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
@if $variant == 'light' { background-position: right 3px, right 4px; }
|
|
|
|
@else { background-position: right 3px, right 2px; }
|
|
|
|
&:backdrop { background-size: 6px 6px, 0 0;}
|
|
|
|
&:dir(rtl) {
|
|
|
|
@if $variant == 'light' { background-position: left 3px, left 4px; }
|
|
|
|
@else { background-position: left 3px, left 2px; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-09-04 22:07:54 +00:00
|
|
|
// all the following is for the +|- buttons on inline toolbars, that way
|
|
|
|
// should really be deprecated...
|
|
|
|
.inline-toolbar GtkToolButton > .button { // redefining the button look is
|
2014-09-05 13:05:25 +00:00
|
|
|
// needed since those are flat...
|
2014-09-04 22:07:54 +00:00
|
|
|
@include button(normal);
|
|
|
|
&:hover { @include button(hover); }
|
2014-09-05 13:05:25 +00:00
|
|
|
&:active,
|
2014-09-04 22:07:54 +00:00
|
|
|
&:checked{ @include button(active); }
|
|
|
|
&:insensitive { @include button(insensitive); }
|
2014-09-05 13:05:25 +00:00
|
|
|
&:insensitive:active,
|
2014-09-04 22:07:54 +00:00
|
|
|
&:insensitive:checked { @include button(insensitive-active); }
|
|
|
|
&:backdrop { @include button(backdrop); };
|
2014-09-05 13:05:25 +00:00
|
|
|
&:backdrop:active,
|
2014-09-04 22:07:54 +00:00
|
|
|
&:backdrop:checked { @include button(backdrop-active); }
|
|
|
|
&:backdrop:insensitive { @include button(backdrop-insensitive); }
|
2014-09-05 13:05:25 +00:00
|
|
|
&:backdrop:insensitive:active,
|
2014-09-04 22:07:54 +00:00
|
|
|
&:backdrop:insensitive:checked {
|
2014-09-05 13:05:25 +00:00
|
|
|
@include button(backdrop-insensitive-active); }
|
2014-09-04 22:07:54 +00:00
|
|
|
}
|
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
// More inline toolbar buttons
|
2014-08-21 09:52:20 +00:00
|
|
|
.inline-toolbar.toolbar GtkToolButton,
|
2014-09-04 13:03:09 +00:00
|
|
|
.inline-toolbar.toolbar GtkToolButton:backdrop {
|
2014-08-06 11:20:45 +00:00
|
|
|
& > .button.flat { @extend %linked_middle; }
|
|
|
|
&:first-child > .button.flat { @extend %linked:first-child; }
|
|
|
|
&:last-child > .button.flat { @extend %linked:last-child; }
|
2014-08-21 09:52:20 +00:00
|
|
|
&:only-child > .button.flat { @extend %linked:only-child; }
|
2014-06-28 13:05:06 +00:00
|
|
|
}
|
|
|
|
|
2014-08-06 11:20:45 +00:00
|
|
|
%linked_middle {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0;
|
2015-06-04 14:19:05 +00:00
|
|
|
border-right-style: none;
|
2014-08-06 11:20:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
%linked {
|
|
|
|
@extend %linked_middle;
|
2014-06-13 14:32:44 +00:00
|
|
|
&:first-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-bottom-left-radius: 3px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:last-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-top-right-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
border-right-style: solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:only-child {
|
|
|
|
border-radius: 3px;
|
|
|
|
border-style: solid;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-04 22:56:48 +00:00
|
|
|
%linked_vertical_middle {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-style: solid solid none solid;
|
2014-10-04 22:56:48 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
%linked_vertical{
|
|
|
|
@extend %linked_vertical_middle;
|
2014-07-09 17:37:41 +00:00
|
|
|
&:first-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-top-right-radius: 3px;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
|
|
|
&:last-child {
|
2015-06-04 14:19:05 +00:00
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
2015-04-22 12:42:58 +00:00
|
|
|
border-style: solid;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
|
|
|
&:only-child {
|
|
|
|
border-radius: 3px;
|
|
|
|
border-style: solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%undecorated_button {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
2014-08-28 16:38:46 +00:00
|
|
|
box-shadow: inset 0 1px transparentize(white,1),
|
|
|
|
0 1px transparentize(white, 1);
|
2014-07-02 15:27:12 +00:00
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* menu buttons */
|
2014-07-02 15:27:12 +00:00
|
|
|
.menuitem.button.flat {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
outline-offset: -1px;
|
2014-12-01 09:14:47 +00:00
|
|
|
&:hover { background-color: mix($fg_color, $bg_color, 10%); }
|
2014-07-02 15:27:12 +00:00
|
|
|
&:selected { @extend %selected_items; }
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
@extend %undecorated_button;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-15 19:43:59 +00:00
|
|
|
|
2014-07-19 08:50:01 +00:00
|
|
|
GtkColorButton.button {
|
2014-10-08 15:47:15 +00:00
|
|
|
padding: 5px; // Uniform padding on the GtkColorButton
|
2015-04-15 19:43:59 +00:00
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
GtkColorSwatch:first-child:last-child { // :first-child:last-child for a specificity bump, it gets overridden by the
|
2015-04-15 19:53:11 +00:00
|
|
|
// colorpicker style, otherwise
|
2014-10-08 15:47:15 +00:00
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: inset 0 1px 1px transparentize(black, 0.9),
|
2014-09-03 12:27:07 +00:00
|
|
|
_widget_edge();
|
2014-10-08 15:47:15 +00:00
|
|
|
&:insensitive,
|
2014-07-18 21:48:33 +00:00
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
}
|
|
|
|
}
|
2014-06-21 03:17:53 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/*********
|
|
|
|
* Links *
|
|
|
|
*********/
|
|
|
|
|
2014-06-18 14:07:59 +00:00
|
|
|
*:link {
|
2014-09-26 15:05:17 +00:00
|
|
|
color: $link_color;
|
|
|
|
&:visited {
|
|
|
|
color: $link_visited_color;
|
|
|
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 60%); }
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
color: lighten($link_color,10%);
|
|
|
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 90%); }
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
color: $link_color;
|
2014-09-01 17:10:50 +00:00
|
|
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
|
2014-06-18 14:07:59 +00:00
|
|
|
}
|
2014-09-01 17:10:50 +00:00
|
|
|
&:backdrop, &:backdrop:hover, &:backdrop:hover:selected {
|
2014-06-18 14:07:59 +00:00
|
|
|
color: $selected_bg_color;
|
|
|
|
}
|
2014-09-26 15:05:17 +00:00
|
|
|
&:selected, *:selected & {
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 80%);
|
|
|
|
}
|
2014-06-18 14:07:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.button:link, .button:visited {
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %undecorated_button;
|
2014-09-01 17:10:50 +00:00
|
|
|
@extend *:link;
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: none;
|
2014-08-14 02:34:30 +00:00
|
|
|
&:hover, &:active, &:checked {
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@extend %undecorated_button; //This shouldn't be needed but avoids
|
|
|
|
//a weird transition which for some reason
|
|
|
|
//makes borders blink on hover
|
|
|
|
}
|
2015-08-10 14:38:04 +00:00
|
|
|
& > .label {
|
2015-07-05 17:31:28 +00:00
|
|
|
text-decoration-line: underline;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* GtkSpinButton *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
.spinbutton {
|
|
|
|
.button {
|
|
|
|
background-image: none;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none none none solid;
|
2014-12-01 09:14:47 +00:00
|
|
|
border-color: transparentize($borders_color, 0.7);
|
|
|
|
color: mix($fg_color, $base_color, 90%);
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
// padding-left: 6px;
|
|
|
|
// padding-right: 6px;
|
2014-08-28 13:42:17 +00:00
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2014-06-18 17:40:11 +00:00
|
|
|
&:hover {
|
|
|
|
color: $fg_color;
|
2014-12-01 09:14:47 +00:00
|
|
|
background-color: transparentize($fg_color, 0.95);
|
2014-06-18 17:40:11 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
2014-12-01 09:14:47 +00:00
|
|
|
color: transparentize($insensitive_fg_color, 0.7);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:active {
|
2014-12-01 09:14:47 +00:00
|
|
|
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
|
|
|
background-color: transparentize(black, 0.9);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
2014-10-07 10:22:38 +00:00
|
|
|
color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
|
2014-12-01 09:14:47 +00:00
|
|
|
border-color: transparentize($backdrop_borders_color, 0.7);
|
2014-07-08 14:54:00 +00:00
|
|
|
background-color: transparent;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:backdrop:insensitive {
|
2014-06-18 11:26:35 +00:00
|
|
|
background-image: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
color: transparentize($backdrop_insensitive_color,0.7);
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none none none solid; // It is needed or it gets overridden
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-29 17:10:39 +00:00
|
|
|
.osd & {
|
|
|
|
.button {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_fg_color;
|
|
|
|
border-style: none none none solid;
|
|
|
|
border-color: transparentize($osd_borders_color, 0.3);
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
icon-shadow: 0 1px black;
|
|
|
|
&:dir(rtl) { border-style: none solid none none; }
|
|
|
|
&:hover {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2014-10-29 17:10:39 +00:00
|
|
|
background-color: transparentize($osd_fg_color, 0.9);
|
|
|
|
icon-shadow: 0 1px black;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2014-10-29 17:10:39 +00:00
|
|
|
icon-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: $osd_insensitive_fg_color;
|
2014-10-30 10:50:27 +00:00
|
|
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
2014-10-29 17:10:39 +00:00
|
|
|
icon-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:last-child { border-radius: 0 3px 3px 0; }
|
|
|
|
&:dir(rtl):first-child { border-radius: 3px 0 0 3px; }
|
|
|
|
}
|
|
|
|
}
|
2014-10-04 22:56:48 +00:00
|
|
|
&.vertical, &.vertical:dir(rtl) { //FIXME: try using linking templates for vertically linked stuff
|
2014-06-13 14:32:44 +00:00
|
|
|
.button {
|
2014-07-21 16:49:15 +00:00
|
|
|
padding-top: 8px; // Same vertical padding as image-buttons
|
|
|
|
padding-bottom: 8px; //
|
2014-06-13 14:32:44 +00:00
|
|
|
&:first-child {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
&:active {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-06-18 11:16:21 +00:00
|
|
|
&:backdrop {
|
|
|
|
@extend %top_button;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $edge:none);
|
2014-06-18 11:16:21 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
@extend %bottom_button;
|
|
|
|
@include button(normal);
|
|
|
|
&:active {
|
|
|
|
@extend %bottom_button;
|
|
|
|
@include button(active);
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
@extend %bottom_button;
|
|
|
|
@include button(hover);
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@extend %bottom_button;
|
|
|
|
@include button(insensitive);
|
|
|
|
}
|
2014-06-18 11:16:21 +00:00
|
|
|
&:backdrop {
|
|
|
|
@extend %bottom_button;
|
|
|
|
@include button(backdrop);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:backdrop:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.entry {
|
|
|
|
// we should remove the bottom edge hilight here, but seems
|
|
|
|
// like buttons are on top of it so it doesn't show up
|
|
|
|
border-radius: 0;
|
2014-07-21 16:49:15 +00:00
|
|
|
padding-left: 3px;
|
|
|
|
padding-right: 3px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
%top_button {
|
|
|
|
border-radius: 3px 3px 0 0;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: solid solid none solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
%bottom_button {
|
|
|
|
border-radius: 0 0 3px 3px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none solid solid solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-12-17 17:29:02 +00:00
|
|
|
GtkTreeView & {
|
|
|
|
&.entry, &.entry:focus {
|
|
|
|
padding: 1px;
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************
|
|
|
|
* ComboBoxes *
|
|
|
|
**************/
|
|
|
|
GtkComboBox {
|
2015-08-27 17:36:18 +00:00
|
|
|
> .the-button-in-the-combobox { padding-top: 3px; padding-bottom: 4px; } // Otherwise combos
|
|
|
|
// are bigger then
|
|
|
|
// buttons
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkComboBox-arrow-scaling: 0.5;
|
|
|
|
-GtkComboBox-shadow-type: none;
|
|
|
|
|
|
|
|
@include _button_text_shadow;
|
|
|
|
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop:insensitive {
|
|
|
|
color: $backdrop_insensitive_color;
|
|
|
|
}
|
|
|
|
.menuitem { text-shadow: none; }
|
2015-01-11 01:25:56 +00:00
|
|
|
.separator.vertical {
|
2014-06-13 14:32:44 +00:00
|
|
|
// always disable separators
|
|
|
|
-GtkWidget-wide-separators: true;
|
|
|
|
}
|
2015-06-04 14:19:05 +00:00
|
|
|
&.combobox-entry .entry {
|
|
|
|
&:dir(ltr) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.combobox-entry .button {
|
|
|
|
&:dir(ltr) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-left-style: none;
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-right-style: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-27 17:36:18 +00:00
|
|
|
.linked > GtkComboBox > .the-button-in-the-combobox,
|
|
|
|
.linked > GtkComboBoxText > .the-button-in-the-combobox {
|
2014-08-06 10:23:47 +00:00
|
|
|
// the combo is a composite widget so the way we do button linkind doesn't
|
|
|
|
// work, special case needed. See
|
|
|
|
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
|
2015-06-04 14:19:05 +00:00
|
|
|
&:dir(ltr),
|
|
|
|
&:dir(rtl) { @extend %linked_middle; } // specificity bump
|
2014-08-06 10:23:47 +00:00
|
|
|
}
|
2015-08-27 17:36:18 +00:00
|
|
|
.linked > GtkComboBox:first-child > .the-button-in-the-combobox,
|
|
|
|
.linked > GtkComboBoxText:first-child > .the-button-in-the-combobox {
|
2014-08-06 11:20:45 +00:00
|
|
|
@extend %linked:first-child;
|
2014-08-06 10:23:47 +00:00
|
|
|
}
|
2015-08-27 17:36:18 +00:00
|
|
|
.linked > GtkComboBox:last-child > .the-button-in-the-combobox,
|
|
|
|
.linked > GtkComboBoxText:last-child > .the-button-in-the-combobox {
|
2014-08-06 11:20:45 +00:00
|
|
|
@extend %linked:last-child;
|
2014-08-06 10:23:47 +00:00
|
|
|
}
|
2015-08-27 17:36:18 +00:00
|
|
|
.linked > GtkComboBox:only-child > .the-button-in-the-combobox,
|
|
|
|
.linked > GtkComboBoxText:only-child > .the-button-in-the-combobox {
|
2014-08-06 11:20:45 +00:00
|
|
|
@extend %linked:only-child;
|
2014-08-06 10:23:47 +00:00
|
|
|
}
|
2015-06-04 14:19:05 +00:00
|
|
|
|
2015-08-27 17:36:18 +00:00
|
|
|
.linked.vertical > GtkComboBoxText > .the-button-in-the-combobox,
|
|
|
|
.linked.vertical > GtkComboBox > .the-button-in-the-combobox { @extend %linked_vertical_middle; }
|
|
|
|
.linked.vertical > GtkComboBoxText:first-child > .the-button-in-the-combobox,
|
|
|
|
.linked.vertical > GtkComboBox:first-child > .the-button-in-the-combobox { @extend %linked_vertical:first-child; }
|
|
|
|
.linked.vertical > GtkComboBoxText:last-child > .the-button-in-the-combobox,
|
|
|
|
.linked.vertical > GtkComboBox:last-child > .the-button-in-the-combobox { @extend %linked_vertical:last-child; }
|
|
|
|
.linked.vertical > GtkComboBoxText:only-child > .the-button-in-the-combobox,
|
|
|
|
.linked.vertical > GtkComboBox:only-child > .the-button-in-the-combobox { @extend %linked_vertical:only-child; }
|
2014-08-06 10:23:47 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/************
|
|
|
|
* Toolbars *
|
|
|
|
************/
|
2014-08-19 10:51:49 +00:00
|
|
|
.toolbar {
|
2014-08-19 17:06:42 +00:00
|
|
|
-GtkWidget-window-dragging: true;
|
2014-08-19 10:51:49 +00:00
|
|
|
padding: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $bg_color;
|
2014-08-22 10:55:30 +00:00
|
|
|
.osd &, &.osd {
|
|
|
|
padding: 13px;
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-10-30 12:18:48 +00:00
|
|
|
border-radius: 5px;
|
2014-10-30 10:50:27 +00:00
|
|
|
background-color: $osd_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-08 09:22:59 +00:00
|
|
|
}
|
|
|
|
|
2014-08-25 17:20:49 +00:00
|
|
|
//searchbar, location-bar & inline-toolbar
|
2014-07-08 09:22:59 +00:00
|
|
|
.inline-toolbar {
|
|
|
|
@extend .toolbar;
|
|
|
|
@extend %inset-bar;
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
padding: 3px;
|
2014-10-30 12:18:48 +00:00
|
|
|
border-radius: 0 0 5px 5px;
|
2014-07-08 09:22:59 +00:00
|
|
|
}
|
2014-08-25 17:20:49 +00:00
|
|
|
.search-bar, .location-bar {
|
2014-07-08 09:22:59 +00:00
|
|
|
@extend .toolbar;
|
|
|
|
@extend %inset-bar;
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
padding: 3px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
%inset-bar {
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
|
|
|
$_bg: mix($bg_color, $borders_color, 70%);
|
|
|
|
background-color: $_bg;
|
2014-08-13 12:27:31 +00:00
|
|
|
box-shadow: inset 0 2px 3px -1px mix($borders_color, $_bg, 60%),
|
2014-09-03 12:27:07 +00:00
|
|
|
_widget_edge();
|
2014-06-13 14:32:44 +00:00
|
|
|
//FIXME edge would be nice, but doesn't work
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
background-color: $backdrop_dark_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************
|
|
|
|
* Header bars *
|
|
|
|
***************/
|
|
|
|
|
|
|
|
.titlebar,
|
|
|
|
.header-bar {
|
2014-09-01 15:31:36 +00:00
|
|
|
padding: 6px;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-width: 0 0 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
|
|
|
border-radius: 7px 7px 0 0;
|
|
|
|
background-color: transparent;
|
2014-09-01 15:31:36 +00:00
|
|
|
|
|
|
|
@include headerbar_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $bg_color;
|
|
|
|
background-image: none;
|
2014-07-07 18:32:16 +00:00
|
|
|
box-shadow: inset 0 1px $top_hilight;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2014-08-28 10:17:10 +00:00
|
|
|
font-weight: bold;
|
2015-04-28 14:52:46 +00:00
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.subtitle {
|
2014-09-03 15:01:43 +00:00
|
|
|
font-size: smaller;
|
2015-04-28 14:52:46 +00:00
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
2014-07-07 12:17:51 +00:00
|
|
|
@extend .dim-label;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.header-bar-separator,
|
|
|
|
& > GtkBox > .separator.vertical {
|
|
|
|
-GtkWidget-wide-separators: true;
|
|
|
|
-GtkWidget-separator-width: 1px;
|
|
|
|
border-width: 0 1px;
|
|
|
|
border-image: linear-gradient(to bottom,
|
|
|
|
transparentize($borders_color,1),
|
|
|
|
$borders_color 30%,
|
|
|
|
$borders_color 70%,
|
|
|
|
transparentize($borders_color,1) 100%)
|
|
|
|
0 1 / 0 1px stretch; //FIXME use a proper color
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
2014-10-31 15:53:23 +00:00
|
|
|
border-image: linear-gradient(to bottom, transparentize($backdrop_borders_color, 0.5))
|
2014-06-13 14:32:44 +00:00
|
|
|
0 1 / 1px 1px; //FIXME use a proper color
|
|
|
|
}
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.selection-mode {
|
2014-09-04 17:41:47 +00:00
|
|
|
$_hc: mix($top_hilight,$selected_bg_color, 50%); // hilight color
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-08-25 13:24:44 +00:00
|
|
|
color: $selected_fg_color;
|
2014-08-29 14:52:21 +00:00
|
|
|
text-shadow: 0 -1px transparentize(black, 0.5);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-image: linear-gradient(to bottom,
|
2014-07-07 18:32:16 +00:00
|
|
|
lighten($selected_bg_color,5%),
|
2014-07-08 10:52:25 +00:00
|
|
|
$selected_bg_color);
|
2014-10-31 15:53:23 +00:00
|
|
|
box-shadow: inset 0 -1px mix($selected_borders_color, $selected_bg_color, 35%), //bottom shade
|
2014-09-04 17:41:47 +00:00
|
|
|
inset 0 1px $_hc;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-image: linear-gradient(to bottom, $selected_bg_color);
|
2014-12-01 09:14:47 +00:00
|
|
|
box-shadow: inset 0 1px mix($top_hilight, $selected_bg_color, 60%);
|
2014-07-07 18:32:16 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-09-01 17:10:50 +00:00
|
|
|
.subtitle:link { @extend *:link:selected; }
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.button {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&.flat { @include button(undecorated); }
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color, $_hc); }
|
|
|
|
|
|
|
|
&:active, &:checked { @include button(active, $selected_bg_color, $selected_fg_color, $_hc); }
|
|
|
|
|
|
|
|
&:backdrop,
|
|
|
|
&.flat:backdrop {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(backdrop, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
-gtk-image-effect: none;
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:checked {
|
|
|
|
@include button(backdrop-active, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&:insensitive {
|
2014-10-31 15:53:23 +00:00
|
|
|
@include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&:insensitive:active,
|
|
|
|
&:insensitive:checked {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(backdrop-insensitive-active, $selected_bg_color,
|
2014-09-04 17:41:47 +00:00
|
|
|
$selected_fg_color, $_hc);
|
2014-09-04 13:03:09 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-07-07 18:32:16 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&.flat:backdrop,
|
|
|
|
&.flat:insensitive,
|
|
|
|
&.flat:insensitive:backdrop {
|
2014-09-04 13:03:09 +00:00
|
|
|
@include button(undecorated);
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-09-04 13:03:09 +00:00
|
|
|
&:insensitive {
|
2014-10-31 15:53:23 +00:00
|
|
|
@include button(insensitive, $selected_bg_color, $selected_fg_color, $_hc);
|
|
|
|
|
|
|
|
&:active, &:checked { @include button(insensitive-active, $selected_bg_color, $selected_fg_color, $_hc); }
|
2014-06-17 13:55:58 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.suggested-action {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(normal, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:hover {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(hover, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:active {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(active, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:insensitive {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(insensitive, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:backdrop {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(backdrop, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-07 18:32:16 +00:00
|
|
|
&:backdrop:insensitive {
|
2014-09-04 17:41:47 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:$_hc);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-03 10:37:48 +00:00
|
|
|
.selection-menu {
|
2014-10-31 15:53:23 +00:00
|
|
|
border-color: transparentize($selected_bg_color, 1);
|
|
|
|
background-image: linear-gradient(to bottom, transparentize($selected_bg_color, 1));
|
2014-07-03 10:37:48 +00:00
|
|
|
box-shadow: none;
|
2014-07-08 10:52:25 +00:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-08 10:52:25 +00:00
|
|
|
GtkArrow { -GtkArrow-arrow-scaling: 1; }
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-08 10:52:25 +00:00
|
|
|
.arrow {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
|
|
|
color: transparentize($selected_fg_color,0.5);
|
|
|
|
icon-shadow: none;
|
2014-07-08 08:46:39 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-07-08 10:52:25 +00:00
|
|
|
&:backdrop { @extend .selection-menu };
|
2014-07-03 10:37:48 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.tiled &, .maximized & {
|
|
|
|
border-radius: 0; // squared corners when the window is max'd or tiled
|
|
|
|
}
|
2014-10-31 15:53:23 +00:00
|
|
|
|
|
|
|
&.default-decoration {
|
|
|
|
padding: 4px;
|
|
|
|
.button { padding: 5px; }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-07-22 12:33:44 +00:00
|
|
|
/************
|
|
|
|
* Pathbars *
|
|
|
|
************/
|
|
|
|
|
|
|
|
.path-bar .button {
|
2014-09-12 12:02:05 +00:00
|
|
|
padding: 5px 6px 6px;
|
2014-07-22 12:33:44 +00:00
|
|
|
&:first-child { padding-left: 8px; }
|
|
|
|
&:last-child { padding-right: 8px; }
|
|
|
|
&:only-child {
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
2014-09-26 15:05:17 +00:00
|
|
|
|
2014-09-12 10:57:52 +00:00
|
|
|
// the following is for spacing the icon and the label inside the home button
|
2014-10-05 01:40:45 +00:00
|
|
|
.label:last-child { padding-left: 2px; }
|
|
|
|
.label:first-child { padding-right: 2px; }
|
|
|
|
.label:only-child { padding-right: 0; padding-left: 0; }
|
2014-09-12 10:57:52 +00:00
|
|
|
GtkImage { padding-top: 1px; }
|
2014-07-22 12:33:44 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**************
|
|
|
|
* Tree Views *
|
|
|
|
**************/
|
2014-10-15 18:41:19 +00:00
|
|
|
GtkTreeView.view {
|
2014-07-10 11:53:37 +00:00
|
|
|
-GtkTreeView-grid-line-width: 1;
|
|
|
|
-GtkTreeView-grid-line-pattern: '';
|
2014-07-10 12:59:08 +00:00
|
|
|
-GtkTreeView-tree-line-width: 1;
|
|
|
|
-GtkTreeView-tree-line-pattern: '';
|
|
|
|
-GtkTreeView-expander-size: 16;
|
2014-10-15 18:41:19 +00:00
|
|
|
|
2014-12-01 09:05:42 +00:00
|
|
|
border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color,
|
2014-10-15 18:41:19 +00:00
|
|
|
border-top-color: $bg_color; // while this is the grid lines color, better then nothing
|
|
|
|
|
2015-06-25 17:55:51 +00:00
|
|
|
&.rubberband { @extend .rubberband; } // to avoid borders being overridden by the previously set props
|
|
|
|
|
2014-12-17 17:29:02 +00:00
|
|
|
&:selected { border-radius: 0; } // rest border radius in lists
|
2014-11-15 18:08:13 +00:00
|
|
|
|
2014-10-15 18:41:19 +00:00
|
|
|
&:selected, &:backdrop:selected {
|
2014-12-01 09:05:42 +00:00
|
|
|
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
|
2014-10-15 18:41:19 +00:00
|
|
|
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
|
|
|
|
}
|
2014-11-28 16:03:53 +00:00
|
|
|
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:selected {
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 40%);
|
|
|
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
|
|
|
}
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
|
|
|
|
2015-01-10 18:04:10 +00:00
|
|
|
&.separator:backdrop {
|
|
|
|
color: transparentize(black, 0.9);
|
|
|
|
}
|
|
|
|
|
2014-07-10 11:53:37 +00:00
|
|
|
&:backdrop {
|
2014-12-01 09:05:42 +00:00
|
|
|
border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
2014-10-15 18:41:19 +00:00
|
|
|
border-top: $backdrop_bg_color;
|
2014-07-10 12:59:08 +00:00
|
|
|
}
|
2014-11-28 16:03:53 +00:00
|
|
|
|
2014-12-11 05:18:32 +00:00
|
|
|
&.dnd {
|
2014-12-11 14:35:38 +00:00
|
|
|
border-style: solid none;
|
|
|
|
border-width: 1px;
|
|
|
|
border-color: mix($fg_color, $selected_bg_color, 50%);
|
2014-12-11 05:18:32 +00:00
|
|
|
}
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
&.expander {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
|
|
|
color: mix($fg_color, $base_color, 70%);
|
|
|
|
&:hover { color: $fg_color; }
|
|
|
|
&:selected {
|
|
|
|
color: mix($selected_fg_color, $selected_bg_color, 70%);
|
|
|
|
&:hover { color: $selected_fg_color; }
|
2014-11-15 14:54:20 +00:00
|
|
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 70%); }
|
2014-07-10 12:59:08 +00:00
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
|
2014-07-10 12:59:08 +00:00
|
|
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
|
2014-07-10 11:53:37 +00:00
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&.progressbar { // progress bar in treeviews
|
|
|
|
@if $variant == light { color: $base_color; }
|
2014-12-17 17:29:02 +00:00
|
|
|
|
|
|
|
border: 1px solid $selected_borders_color;
|
2014-09-29 18:11:49 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
$selected_bg_color,
|
|
|
|
darken($selected_bg_color,10%));
|
|
|
|
box-shadow: inset 0 1px if($variant=='light', transparentize(white,0.7),
|
|
|
|
transparentize(white,0.85)),
|
|
|
|
0 1px if($variant=='light', transparentize(black, 0.8),
|
|
|
|
transparentize(black,0.9));
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:selected {
|
|
|
|
@if $variant == 'light' {
|
|
|
|
color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
@else { box-shadow: inset 0 1px transparentize(white, 0.95); }
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
$base_color,
|
|
|
|
darken($base_color,10%));
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:backdrop {
|
2014-12-17 17:29:02 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
color: $selected_bg_color;
|
|
|
|
border-color: $selected_borders_color; // otherwise it gets inherited by .view(?!?)
|
|
|
|
}
|
2014-09-29 18:11:49 +00:00
|
|
|
@else { border-color: $backdrop_base_color; }
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:backdrop {
|
|
|
|
@if $variant == 'light' { color: $backdrop_base_color; }
|
|
|
|
@else { border-color: $backdrop_base_color; }
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&.trough { // progress bar trough in treeviews
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
border-radius: 4px;
|
2014-12-01 09:14:47 +00:00
|
|
|
|
2014-09-29 18:11:49 +00:00
|
|
|
&:selected {
|
|
|
|
background-color: if($variant == 'light',
|
|
|
|
transparentize($selected_fg_color, 0.7),
|
|
|
|
darken($selected_bg_color, 10%));
|
|
|
|
@if $variant == 'light' {
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-10 11:53:37 +00:00
|
|
|
}
|
|
|
|
|
2014-06-16 14:45:24 +00:00
|
|
|
column-header {
|
|
|
|
.button {
|
|
|
|
@extend %column_header_button;
|
2014-12-01 09:14:47 +00:00
|
|
|
$_column_header_color: mix($fg_color, $base_color, 50%);
|
2014-06-16 14:45:24 +00:00
|
|
|
color: $_column_header_color;
|
2014-07-10 23:36:26 +00:00
|
|
|
background-color: $base_color;
|
2014-06-16 14:45:24 +00:00
|
|
|
font-weight: bold;
|
|
|
|
text-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: none;
|
2014-06-16 14:45:24 +00:00
|
|
|
&:hover {
|
|
|
|
@extend %column_header_button;
|
2014-12-01 09:14:47 +00:00
|
|
|
color: mix($_column_header_color, $fg_color, 50%);
|
2014-06-16 14:45:24 +00:00
|
|
|
box-shadow: none;
|
2014-07-08 12:35:06 +00:00
|
|
|
transition: none; //I shouldn't need this
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@extend %column_header_button;
|
|
|
|
color: $fg_color;
|
2014-07-08 12:35:06 +00:00
|
|
|
transition: none; //I shouldn't need this
|
|
|
|
}
|
|
|
|
&.dnd {
|
|
|
|
@extend column-header.button.dnd;
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-01 13:42:32 +00:00
|
|
|
&:last-child .button,
|
2014-11-06 16:21:50 +00:00
|
|
|
&:last-child .button:backdrop, // set :backdrop too or the border will be visibile there
|
|
|
|
&:last-child.button,
|
|
|
|
&:last-child.button:backdrop { //treeview-like derived widgets in Banshee and Evolution
|
2014-07-01 13:42:32 +00:00
|
|
|
border-right-style: none;
|
|
|
|
}
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
|
|
|
|
2014-07-08 12:35:06 +00:00
|
|
|
column-header.button.dnd { // for treeview-like derive widgets
|
|
|
|
transition: none;
|
|
|
|
color: $selected_bg_color;
|
|
|
|
box-shadow: inset 1px 1px 0 1px $selected_bg_color,
|
|
|
|
inset -1px 0 0 1px $selected_bg_color,
|
|
|
|
inset 1px 1px $base_color, inset -1px 0 $base_color;;
|
|
|
|
&:active { @extend column-header.button.dnd; }
|
|
|
|
&:selected { @extend column-header.button.dnd; }
|
|
|
|
&:hover { @extend column-header.button.dnd; }
|
|
|
|
}
|
|
|
|
|
2014-06-16 14:45:24 +00:00
|
|
|
%column_header_button {
|
2014-07-22 07:58:58 +00:00
|
|
|
padding: 3px 6px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none solid solid none;
|
2014-06-16 14:45:24 +00:00
|
|
|
border-radius: 0;
|
|
|
|
background-image: none;
|
|
|
|
border-color: $bg_color;
|
|
|
|
text-shadow: none;
|
|
|
|
&:insensitive {
|
|
|
|
border-color: $bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-image: none;
|
2014-06-16 14:45:24 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_bg_color;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none solid solid none;
|
2014-12-01 09:14:47 +00:00
|
|
|
color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
2014-06-16 14:45:24 +00:00
|
|
|
background-image: none;
|
2014-07-15 15:58:13 +00:00
|
|
|
background-color: $backdrop_base_color;
|
2014-06-16 14:45:24 +00:00
|
|
|
&:insensitive {
|
|
|
|
border-color: $backdrop_bg_color;
|
|
|
|
background-image: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-29 18:11:49 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*********
|
|
|
|
* Menus *
|
|
|
|
*********/
|
|
|
|
.menubar {
|
2014-08-19 17:06:42 +00:00
|
|
|
-GtkWidget-window-dragging: true;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 0px;
|
2014-08-13 14:19:14 +00:00
|
|
|
box-shadow: inset 0 -1px transparentize(black, 0.9);
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop { background-color: $backdrop_bg_color; }
|
|
|
|
& > .menuitem {
|
|
|
|
padding: 4px 8px;
|
|
|
|
&:hover { //Seems like it :hover even with keyboard focus
|
|
|
|
box-shadow: inset 0 -3px $selected_bg_color;
|
2014-09-26 15:05:17 +00:00
|
|
|
color: $link_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu {
|
2014-07-16 11:25:22 +00:00
|
|
|
margin: 4px;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 0px;
|
|
|
|
background-color: $base_color;
|
2014-10-22 18:46:54 +00:00
|
|
|
border: 1px solid $borders_color; // adds borders in a non composited env
|
|
|
|
.csd & { border: none; } // axes borders in a composited env
|
2014-06-13 14:32:44 +00:00
|
|
|
.menuitem {
|
2014-07-08 19:33:48 +00:00
|
|
|
text-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 4px;
|
|
|
|
&:hover {
|
|
|
|
color: $selected_fg_color;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
|
|
|
//submenu indicators
|
|
|
|
&.arrow { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
|
2014-07-08 19:33:48 +00:00
|
|
|
&.arrow:dir(rtl) {-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl'); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-10 11:53:42 +00:00
|
|
|
&.button { // overlow buttons
|
|
|
|
@extend %undecorated_button;
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 0;
|
2014-10-10 12:01:38 +00:00
|
|
|
&.top { border-bottom: 1px solid mix($fg_color, $base_color, 10%); }
|
|
|
|
&.bottom { border-top: 1px solid mix($fg_color, $base_color, 10%); }
|
2014-10-10 11:53:42 +00:00
|
|
|
&:hover { background-color: mix($fg_color, $base_color, 10%); }
|
|
|
|
&:insensitive {
|
|
|
|
color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent ;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-07-23 10:33:20 +00:00
|
|
|
.menuitem .accelerator { color: gtkalpha(currentColor,0.55); }
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
/***************
|
|
|
|
* Popovers *
|
|
|
|
***************/
|
|
|
|
|
2014-06-18 11:25:02 +00:00
|
|
|
.popover {
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 2px;
|
2014-11-18 14:16:43 +00:00
|
|
|
border: 1px solid $borders_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 5px;
|
2014-10-30 12:21:13 +00:00
|
|
|
background-color: mix($bg_color, $base_color, 50%);
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2015-05-07 08:16:46 +00:00
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.7);
|
2014-11-14 18:34:09 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-11-14 18:34:09 +00:00
|
|
|
|
|
|
|
> .list,
|
|
|
|
> .view,
|
|
|
|
> .toolbar,
|
2014-07-13 18:38:43 +00:00
|
|
|
&.osd > .toolbar {
|
|
|
|
border-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
2014-11-14 18:34:09 +00:00
|
|
|
|
2014-07-03 07:31:51 +00:00
|
|
|
.button.flat,
|
|
|
|
.button.flat:hover {
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: none;
|
|
|
|
transition: none;
|
|
|
|
}
|
2014-11-14 18:34:09 +00:00
|
|
|
|
2014-10-29 17:10:39 +00:00
|
|
|
&.osd { @extend %osd; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* Notebooks and *
|
|
|
|
* Tabs *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
.notebook {
|
|
|
|
// Through me you go to the grief wracked city;
|
|
|
|
// Through me you go to everlasting pain;
|
|
|
|
// Through me you go a pass among lost souls.
|
|
|
|
// ...
|
|
|
|
// Abandon all hope — Ye Who Enter Here
|
|
|
|
padding: 0;
|
2014-08-26 11:46:54 +00:00
|
|
|
background-color: $base_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkNotebook-initial-gap: 10;
|
|
|
|
-GtkNotebook-arrow-spacing: 5;
|
|
|
|
-GtkNotebook-tab-curvature: 0;
|
2014-07-02 15:52:36 +00:00
|
|
|
-GtkNotebook-tab-overlap: -8;
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkNotebook-has-tab-gap: false;
|
|
|
|
-GtkWidget-focus-padding: 0;
|
|
|
|
-GtkWidget-focus-line-width: 0;
|
2014-10-16 12:36:23 +00:00
|
|
|
transition: all 200ms $ease-out-quad;
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
|
|
|
&.frame {
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
// FIXME doesn't work
|
|
|
|
&.top { border-top-width: 0; }
|
|
|
|
&.bottom { border-bottom-width: 0; }
|
|
|
|
&.right { border-right-width: 0; }
|
|
|
|
&.left { border-left-width: 0; }
|
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
|
|
|
}
|
|
|
|
&.header {
|
|
|
|
// FIXME: double borders in some case, can't fix it w/o a class tho
|
2014-10-24 11:01:41 +00:00
|
|
|
// FIXME: doesn't work on dark var
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: mix($bg_color, $borders_color, 70%);
|
|
|
|
|
|
|
|
// this is the shading of the header behind the tabs
|
|
|
|
&.frame {
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
&.top { border-bottom-width: 0; }
|
|
|
|
&.bottom { border-top-width: 0; }
|
|
|
|
&.right { border-left-width: 0; }
|
|
|
|
&.left { border-right-width: 0; }
|
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
|
|
|
}
|
|
|
|
|
|
|
|
$_header_shade: inset 0 2px 3px -1px transparentize(black, 0.85);
|
|
|
|
&.top {
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
inset 0 -1px $borders_color; // border
|
|
|
|
&:backdrop { box-shadow: inset 0 -1px $backdrop_borders_color; }
|
|
|
|
}
|
|
|
|
&.bottom {
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
inset 0 1px $borders_color;
|
|
|
|
&:backdrop { box-shadow: inset 0 1px $backdrop_borders_color; }
|
|
|
|
}
|
|
|
|
&.right {
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
inset 1px 0 $borders_color;
|
|
|
|
&:backdrop { box-shadow: inset 1px 0 $backdrop_borders_color; }
|
|
|
|
}
|
|
|
|
&.left {
|
|
|
|
box-shadow: $_header_shade,
|
|
|
|
inset -1px 0 $borders_color;
|
|
|
|
&:backdrop { box-shadow: inset -1px 0 $backdrop_borders_color; }
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
// same color as backdrop pushed button
|
2014-07-19 08:50:01 +00:00
|
|
|
background-color: $backdrop_dark_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tab {
|
|
|
|
border-width: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
outline-offset: 0;
|
|
|
|
|
|
|
|
$tab_indicator_size: 3px;
|
|
|
|
//vertical tab sizing
|
|
|
|
$vt_vpadding: 8px;
|
|
|
|
$vt_hpadding: 20px;
|
|
|
|
// horizontal tab sizing
|
|
|
|
$ht_vpadding: 5px;
|
|
|
|
$ht_hpadding: 20px;
|
|
|
|
|
|
|
|
//FIXME: we get double border in some cases, not considering the broken
|
|
|
|
//notebook content frame...
|
|
|
|
&.top, &.bottom { padding: $vt_vpadding $vt_hpadding; }
|
|
|
|
&.left, &.right { padding: $ht_vpadding $ht_hpadding; }
|
2014-06-24 11:42:13 +00:00
|
|
|
|
2014-07-02 15:52:36 +00:00
|
|
|
|
2014-06-24 11:42:13 +00:00
|
|
|
/* works for testnotebookdnd, but there's a superfluous border
|
|
|
|
in gedit or web, commented out for now, needs gtk fixes
|
2014-06-18 10:08:04 +00:00
|
|
|
&.reorderable-page {
|
|
|
|
&.top {
|
|
|
|
padding-top: ($vt_vpadding - 1px);
|
|
|
|
border-top-width: 1px;
|
|
|
|
border-left-width: 1px;
|
|
|
|
border-right-width: 1px;
|
|
|
|
}
|
|
|
|
&.bottom {
|
|
|
|
padding-bottom: ($vt_vpadding - 1px);
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
border-left-width: 1px;
|
|
|
|
border-right-width: 1px;
|
|
|
|
}
|
|
|
|
&.left {
|
|
|
|
padding-left: ($ht_hpadding - 1px);
|
|
|
|
border-left-width: 1px;
|
|
|
|
border-top-width: 1px;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
}
|
|
|
|
&.right {
|
|
|
|
padding-right: ($ht_hpadding - 1px);
|
|
|
|
border-right-width: 1px;
|
|
|
|
border-top-width: 1px;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
}
|
|
|
|
}
|
2014-06-24 11:42:13 +00:00
|
|
|
*/
|
|
|
|
&.reorderable-page {
|
|
|
|
&.top, &.bottom {
|
2014-07-03 11:19:11 +00:00
|
|
|
padding-left: 12px; // for a nicer close button
|
|
|
|
padding-right: 12px; // placement
|
2014-06-24 11:42:13 +00:00
|
|
|
border-left-width: 1px;
|
|
|
|
border-right-width: 1px;
|
|
|
|
}
|
|
|
|
&.left, &.right {
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
border-top-width: 1px;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&.top {
|
2014-07-03 11:19:11 +00:00
|
|
|
//padding-bottom: ($vt_vpadding -$tab_indicator_size);
|
2014-06-13 14:32:44 +00:00
|
|
|
border-bottom-width: $tab_indicator_size;
|
|
|
|
}
|
|
|
|
&.bottom {
|
2014-07-03 11:19:11 +00:00
|
|
|
//padding-top: ($vt_vpadding -$tab_indicator_size);
|
2014-06-13 14:32:44 +00:00
|
|
|
border-top-width: $tab_indicator_size;
|
|
|
|
}
|
|
|
|
&.left {
|
2014-07-03 11:19:11 +00:00
|
|
|
//padding-right: ($ht_hpadding -$tab_indicator_size);
|
2014-06-13 14:32:44 +00:00
|
|
|
border-right-width: $tab_indicator_size;
|
|
|
|
}
|
|
|
|
&.right {
|
2014-07-03 11:19:11 +00:00
|
|
|
//padding-left: ($ht_hpadding -$tab_indicator_size);
|
2014-06-13 14:32:44 +00:00
|
|
|
border-left-width: $tab_indicator_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
//here's the interesting stuff
|
2014-06-24 12:04:26 +00:00
|
|
|
&:hover, &.prelight-page {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $borders_color;
|
|
|
|
}
|
2014-06-24 12:04:26 +00:00
|
|
|
&:active, &.active-page, &:backdrop:active {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
2014-06-18 10:08:04 +00:00
|
|
|
@each $_tab, $_border in (top, bottom),
|
|
|
|
(bottom, top),
|
|
|
|
(left, right),
|
|
|
|
(right, left) {
|
2014-06-24 12:04:26 +00:00
|
|
|
&.reorderable-page.#{$_tab} {
|
|
|
|
border-color: transparent;
|
|
|
|
&:hover, &.prelight-page {
|
|
|
|
border-color: transparentize($borders_color,0.7);
|
|
|
|
border-#{$_border}-color: $borders_color;
|
|
|
|
background-color: transparentize($bg_color,0.8);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-06-24 12:04:26 +00:00
|
|
|
&:active, &.active-page {
|
|
|
|
background-color: transparentize($bg_color,0.5);
|
|
|
|
border-color: transparentize($borders_color,0.5);
|
2014-06-18 10:08:04 +00:00
|
|
|
border-#{$_border}-color: $selected_bg_color;
|
2014-06-24 12:04:26 +00:00
|
|
|
&:hover { background-color: transparentize($bg_color,0.3); }
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
border-#{$_border}-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-18 10:08:04 +00:00
|
|
|
}
|
2014-10-05 01:40:45 +00:00
|
|
|
.label { //tab text
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 0 2px; // needed for a nicer focus ring
|
|
|
|
font-weight: bold;
|
2014-07-08 08:17:02 +00:00
|
|
|
color: $insensitive_fg_color;
|
2014-07-02 15:52:36 +00:00
|
|
|
&:backdrop, &.prelight-page:backdrop {
|
2014-06-24 12:04:26 +00:00
|
|
|
color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
|
|
|
|
}
|
2014-07-02 15:52:36 +00:00
|
|
|
}
|
2014-10-05 01:40:45 +00:00
|
|
|
.prelight-page .label, .label.prelight-page {
|
2014-06-13 14:32:44 +00:00
|
|
|
// prelight tab text
|
2014-07-02 15:52:36 +00:00
|
|
|
color: mix($fg_color, $insensitive_fg_color, 50%);
|
2014-10-05 01:40:45 +00:00
|
|
|
&:backdrop { // FIXME, it's the same as .label:backdrop up here
|
2014-07-15 11:28:40 +00:00
|
|
|
color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
|
|
|
|
}
|
2014-07-02 15:52:36 +00:00
|
|
|
}
|
2014-10-05 01:40:45 +00:00
|
|
|
.active-page .label, .label.active-page {
|
2014-06-13 14:32:44 +00:00
|
|
|
// active tab text
|
2014-07-02 15:52:36 +00:00
|
|
|
color: $fg_color;
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
.button { //tab close button
|
2014-09-01 14:27:34 +00:00
|
|
|
padding: 0;
|
2014-06-13 14:32:44 +00:00
|
|
|
border: 1px solid transparent;
|
|
|
|
@extend %undecorated_button;
|
|
|
|
icon-shadow: none;
|
|
|
|
transition: none;
|
2014-06-14 06:42:12 +00:00
|
|
|
color: transparentize($fg_color,0.7);
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover {
|
2014-06-14 06:42:12 +00:00
|
|
|
color: $fg_color;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-06-14 06:42:12 +00:00
|
|
|
background-image: none;
|
|
|
|
box-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:active {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-06-14 06:42:12 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
color: transparentize($backdrop_fg_color,0.7);
|
|
|
|
border-color: transparent;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
& > GtkImage { // this is a hack which makes tabs grow
|
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-08 08:06:57 +00:00
|
|
|
&.arrow {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:hover { color: mix($fg_color, $insensitive_fg_color, 50%); }
|
|
|
|
&:active { color: $fg_color; }
|
|
|
|
&:insensitive {
|
|
|
|
color: transparentize($insensitive_fg_color,0.7);
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
color: transparentize($backdrop_fg_color,0.6);
|
|
|
|
&:insensitive {
|
|
|
|
color: $backdrop_insensitive_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************
|
|
|
|
* Scrollbars *
|
|
|
|
**************/
|
|
|
|
|
|
|
|
.scrollbar {
|
2014-11-06 22:57:40 +00:00
|
|
|
-GtkRange-slider-width: 13;
|
2014-11-06 11:39:34 +00:00
|
|
|
-GtkRange-trough-border: 1;
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkScrollbar-has-backward-stepper: false;
|
|
|
|
-GtkScrollbar-has-forward-stepper: false;
|
|
|
|
-GtkScrollbar-min-slider-length: 42; // minimum size for the slider.
|
|
|
|
// sadly can't be in '.slider'
|
|
|
|
// where it belongs
|
|
|
|
-GtkRange-stepper-spacing: 0;
|
|
|
|
-GtkRange-trough-under-steppers: 1;
|
2014-11-06 22:57:40 +00:00
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
$_slider_margin: 3px;
|
|
|
|
$_slider_fine_tune_margin: 4px;
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.button {
|
|
|
|
border: none;
|
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
&.overlay-indicator {
|
|
|
|
&:not(.dragging):not(.hovering) { // Overlay scrolling indicator
|
2015-04-17 13:33:04 +00:00
|
|
|
opacity: 0.4;
|
2015-01-16 17:32:16 +00:00
|
|
|
|
|
|
|
-GtkRange-slider-width: 5px;
|
|
|
|
|
|
|
|
.slider {
|
|
|
|
margin: 0;
|
|
|
|
background-color: $fg_color;
|
|
|
|
border: 1px solid if($variant==light, white, black);
|
|
|
|
background-clip: padding-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.trough {
|
|
|
|
border-style: none;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
// w/o the following margin tweaks the slider shrinks when hovering/dragging
|
|
|
|
&.vertical .slider {
|
|
|
|
margin-top: $_slider_margin - 1px;
|
|
|
|
margin-bottom: $_slider_margin - 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.horizontal .slider {
|
|
|
|
margin-left: $_slider_margin - 1px;
|
|
|
|
margin-right: $_slider_margin - 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dragging,
|
|
|
|
&.hovering { opacity: 0.7; }
|
|
|
|
}
|
|
|
|
|
2014-11-06 22:57:40 +00:00
|
|
|
// trough coloring
|
2014-11-06 11:39:34 +00:00
|
|
|
.trough {
|
2014-11-06 22:57:40 +00:00
|
|
|
background-color: $scrollbar_bg_color;
|
|
|
|
border: 1px none $borders_color;
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_scrollbar_bg_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
}
|
|
|
|
|
2014-11-06 22:57:40 +00:00
|
|
|
// slider coloring
|
2014-11-06 11:39:34 +00:00
|
|
|
.slider {
|
2015-04-17 13:33:04 +00:00
|
|
|
background-color: mix($fg_color, $bg_color, 60%);
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2015-04-17 13:33:04 +00:00
|
|
|
&:hover { background-color: mix($fg_color, $bg_color, 80%); }
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2014-11-08 16:35:52 +00:00
|
|
|
&:prelight:active { background-color: if($variant=='light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 10%));}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
2014-11-08 16:35:52 +00:00
|
|
|
&:backdrop { background-color: mix($backdrop_fg_color, $backdrop_bg_color, 40%); }
|
2014-11-06 11:39:34 +00:00
|
|
|
|
|
|
|
&:insensitive {
|
2014-11-06 22:57:40 +00:00
|
|
|
background-color: transparent;
|
2014-07-08 14:36:02 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-11-06 11:39:34 +00:00
|
|
|
|
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
// sizing
|
2014-11-13 10:26:40 +00:00
|
|
|
.slider {
|
|
|
|
border-radius: 100px;
|
2015-01-16 17:32:16 +00:00
|
|
|
margin: $_slider_margin;
|
2014-11-13 10:26:40 +00:00
|
|
|
}
|
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
&.fine-tune .slider { margin: $_slider_fine_tune_margin; }
|
2014-11-13 10:26:40 +00:00
|
|
|
|
2014-11-06 22:57:40 +00:00
|
|
|
&.vertical {
|
|
|
|
|
2014-11-13 10:26:40 +00:00
|
|
|
.slider {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-left: 1px + $_slider_margin;
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
margin-left: $_slider_margin;
|
|
|
|
margin-right: 1px + $_slider_margin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fine-tune .slider {
|
|
|
|
margin-left: 1px + $_slider_fine_tune_margin;
|
2014-11-06 22:57:40 +00:00
|
|
|
|
|
|
|
&:dir(rtl) {
|
2015-01-16 17:32:16 +00:00
|
|
|
margin-left: $_slider_fine_tune_margin;
|
|
|
|
margin-right: 1px + $_slider_fine_tune_margin;
|
2014-11-06 22:57:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.trough {
|
|
|
|
border-left-style: solid;
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-left-style: none;
|
|
|
|
border-right-style: solid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.horizontal {
|
|
|
|
|
2015-01-16 17:32:16 +00:00
|
|
|
.slider { margin-top: 1px + $_slider_margin; }
|
|
|
|
|
|
|
|
&.fine-tune .slider { margin-top: 1px + $_slider_fine_tune_margin; }
|
2014-11-06 22:57:40 +00:00
|
|
|
|
|
|
|
.trough { border-top-style: solid; }
|
|
|
|
}
|
|
|
|
}
|
2014-10-11 12:31:08 +00:00
|
|
|
|
|
|
|
.scrollbars-junction,
|
|
|
|
.scrollbars-junction.frame { // the small square between two scrollbars
|
2014-10-11 12:37:16 +00:00
|
|
|
border-color: transparent;
|
2014-11-06 22:57:40 +00:00
|
|
|
// the border image is used to add the missing dot between the borders, details, details, details...
|
|
|
|
border-image: linear-gradient(to bottom, $borders_color 1px, transparent 1px) 0 0 0 1 / 0 1px stretch;
|
|
|
|
background-color: $scrollbar_bg_color;
|
|
|
|
|
|
|
|
&:dir(rtl) { border-image-slice: 0 1 0 0; }
|
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
border-image-source: linear-gradient(to bottom, $backdrop_borders_color 1px, transparent 1px);
|
|
|
|
background-color: $backdrop_scrollbar_bg_color;
|
|
|
|
}
|
2014-06-18 07:52:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**********
|
|
|
|
* Switch *
|
|
|
|
**********/
|
|
|
|
|
|
|
|
GtkSwitch {
|
2014-08-08 21:31:33 +00:00
|
|
|
-GtkSwitch-slider-width: 45px; // 55px is the right value to make it as tall
|
2014-07-21 16:49:15 +00:00
|
|
|
// as buttons, not doing that for now
|
2015-06-29 22:25:44 +00:00
|
|
|
-GtkSwitch-slider-height: 27px;
|
|
|
|
|
2014-08-28 10:48:32 +00:00
|
|
|
font-weight: bold;
|
2014-09-03 15:01:43 +00:00
|
|
|
font-size: smaller;
|
2014-07-08 16:24:28 +00:00
|
|
|
outline-offset: -4px;
|
2014-07-18 21:30:16 +00:00
|
|
|
box-shadow: inset 0 1px transparentize(black, 0.9), // needs to be set here
|
2014-09-03 12:27:07 +00:00
|
|
|
_widget_edge(); // otherwise it gets
|
2014-07-18 21:30:16 +00:00
|
|
|
// clipped
|
2014-07-08 16:24:28 +00:00
|
|
|
&.trough {
|
|
|
|
// similar to the .scale
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid $borders_color;
|
2014-07-08 16:24:28 +00:00
|
|
|
border-radius: 3px;
|
2014-09-06 15:02:20 +00:00
|
|
|
color: $fg_color;
|
2014-12-01 09:14:47 +00:00
|
|
|
background-image: linear-gradient(to bottom, mix($bg_color, $borders_color, 60%));
|
2014-07-08 16:24:28 +00:00
|
|
|
text-shadow: 0 1px transparentize(black, 0.9);
|
|
|
|
&:active {
|
2014-08-08 21:31:33 +00:00
|
|
|
@include progressbar_fill;
|
2014-07-08 16:24:28 +00:00
|
|
|
color: white;
|
|
|
|
border-color: $selected_borders_color;
|
2014-09-03 12:27:07 +00:00
|
|
|
box-shadow: _widget_edge();
|
2014-12-01 09:14:47 +00:00
|
|
|
text-shadow: 0 1px transparentize($selected_borders_color, 0.5),
|
|
|
|
0 0 2px transparentize(white, 0.4);
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $borders_color;
|
2014-08-08 21:31:33 +00:00
|
|
|
background-image: none;
|
2014-07-08 16:24:28 +00:00
|
|
|
background-color: $insensitive_bg_color;
|
2014-09-03 12:27:07 +00:00
|
|
|
box-shadow: _widget_edge();
|
2014-07-08 16:24:28 +00:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-08-13 14:36:15 +00:00
|
|
|
background-image: linear-gradient(to bottom, $backdrop_dark_fill);
|
2014-07-08 16:24:28 +00:00
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
&:active {
|
2014-08-13 14:36:15 +00:00
|
|
|
@if $variant == 'light' { color: $backdrop_bg_color; }
|
|
|
|
border-color: if($variant == 'light', $selected_bg_color,
|
|
|
|
$selected_borders_color);
|
|
|
|
background-image: linear-gradient(to bottom, $selected_bg_color);
|
2014-07-08 16:24:28 +00:00
|
|
|
box-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:insensitive {
|
2014-07-08 16:24:28 +00:00
|
|
|
color: $backdrop_insensitive_color;
|
2014-07-19 09:11:44 +00:00
|
|
|
border-color: $backdrop_borders_color;
|
2014-08-13 14:36:15 +00:00
|
|
|
background-image: none;
|
2014-07-19 09:11:44 +00:00
|
|
|
background-color: $insensitive_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
2014-09-06 15:02:20 +00:00
|
|
|
&.slider {
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-07-08 16:24:28 +00:00
|
|
|
border-radius: 3px;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal);
|
2014-07-08 16:24:28 +00:00
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
2014-12-01 09:14:47 +00:00
|
|
|
transparentize(white, 0.85)),
|
|
|
|
inset 0 -2px transparentize($bg_color, 0.4),
|
|
|
|
inset 0 -1px mix($bg_color, $borders_color, 50%);
|
2014-07-08 16:24:28 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover);
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
2014-12-01 09:14:47 +00:00
|
|
|
transparentize(white, 0.85)),
|
|
|
|
inset 0 -2px transparentize($bg_color, 0.4),
|
|
|
|
inset 0 -1px mix($bg_color, $borders_color, 50%);
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
|
|
|
&:active { border: 1px solid $selected_borders_color; }
|
2014-09-03 12:22:10 +00:00
|
|
|
&:insensitive { @include button(insensitive, $edge:none); }
|
|
|
|
&:backdrop {
|
|
|
|
@include button(backdrop);
|
|
|
|
box-shadow: none;
|
2014-08-13 14:36:15 +00:00
|
|
|
&:active{
|
|
|
|
border-color: if($variant == 'light', $selected_bg_color,
|
|
|
|
$selected_borders_color);
|
|
|
|
}
|
2014-07-08 16:24:28 +00:00
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
2014-09-03 12:22:10 +00:00
|
|
|
box-shadow: none;
|
2014-06-14 08:48:28 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
2014-09-06 15:02:20 +00:00
|
|
|
.list-row:selected & {
|
|
|
|
@if $variant == 'light' {
|
|
|
|
box-shadow: none;
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
&:backdrop { border-color: $selected_borders_color; }
|
|
|
|
&.slider:dir(rtl) { border-left-color: $borders_color; }
|
|
|
|
&.slider:dir(ltr) { border-right-color: $borders_color; }
|
|
|
|
&.slider,
|
|
|
|
&.slider:active { border-color: $selected_borders_color; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
* Check and Radio items *
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
// draw regular check and radio items using our PNG assets
|
|
|
|
// all assets are rendered from assets.svg. never add pngs directly
|
|
|
|
|
|
|
|
@each $w,$a in ('check', 'checkbox'),
|
|
|
|
('radio','radio') {
|
2014-06-24 08:25:49 +00:00
|
|
|
|
|
|
|
//standard checks and radios
|
2014-06-13 14:32:44 +00:00
|
|
|
@each $s,$as in ('','-unchecked'),
|
|
|
|
(':hover', '-unchecked-hover'),
|
2014-08-14 02:34:30 +00:00
|
|
|
(':active', '-unchecked-active'),
|
2014-06-13 14:32:44 +00:00
|
|
|
(':insensitive','-unchecked-insensitive'),
|
|
|
|
(':backdrop', '-unchecked-backdrop'),
|
|
|
|
(':backdrop:insensitive', '-unchecked-backdrop-insensitive'),
|
|
|
|
(':inconsistent', '-mixed'),
|
2014-06-24 18:17:38 +00:00
|
|
|
(':inconsistent:hover', '-mixed-hover'),
|
2014-06-13 14:32:44 +00:00
|
|
|
(':inconsistent:selected', '-mixed-active'),
|
|
|
|
(':inconsistent:backdrop', '-mixed-backdrop'),
|
|
|
|
(':inconsistent:insensitive', '-mixed-insensitive'),
|
|
|
|
(':inconsistent:insensitive:backdrop', '-mixed-backdrop-insensitive'),
|
2014-08-14 02:34:30 +00:00
|
|
|
(':checked', '-checked'),
|
|
|
|
(':checked:insensitive','-checked-insensitive'),
|
|
|
|
(':checked:hover', '-checked-hover'),
|
|
|
|
(':checked:active', '-checked-active'),
|
|
|
|
(':backdrop:checked', '-checked-backdrop'),
|
|
|
|
(':backdrop:checked:insensitive', '-checked-backdrop-insensitive') {
|
2014-06-13 14:32:44 +00:00
|
|
|
.#{$w}#{$s} {
|
2014-08-07 13:42:42 +00:00
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/#{$a}#{$as}#{$asset_suffix}.png"),
|
2014-06-13 14:32:44 +00:00
|
|
|
url("assets/#{$a}#{$as}#{$asset_suffix}@2.png"));
|
2014-08-21 13:03:32 +00:00
|
|
|
icon-shadow: if(str-index($s,"backdrop"), none, 0 1px 0 $borders_edge); //no edge highlight for :backdrop
|
2014-08-27 16:29:32 +00:00
|
|
|
&.button.flat { icon-shadow: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-08-30 12:27:10 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
// the borders of the light variant versions of checks and radios are
|
|
|
|
// too similar in luminosity to the selected background color, hence
|
|
|
|
// we need special casing.
|
2014-10-02 18:40:18 +00:00
|
|
|
.view.#{$w}#{$s}:selected,
|
2014-08-30 12:27:10 +00:00
|
|
|
.list-row:selected .#{$w}#{$s} {
|
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/selected-#{$a}#{$as}#{$asset_suffix}.png"),
|
|
|
|
url("assets/selected-#{$a}#{$as}#{$asset_suffix}@2.png"));
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//menu
|
2014-08-18 08:52:52 +00:00
|
|
|
.menu .menuitem.#{$w} {
|
2014-08-18 12:18:53 +00:00
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-symbolic');
|
2014-08-28 18:33:37 +00:00
|
|
|
color: mix($fg_color, $bg_color, 60%);
|
2014-08-26 18:32:36 +00:00
|
|
|
icon-shadow: none;
|
2014-08-18 12:18:53 +00:00
|
|
|
&:active, &:checked {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:inconsistent {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic');
|
|
|
|
}
|
2014-08-28 18:33:37 +00:00
|
|
|
&:hover { color: $selected_fg_color; }
|
|
|
|
&:insensitive { color: mix($insensitive_fg_color, $bg_color, 50%); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-29 17:47:38 +00:00
|
|
|
//treeview and list-rows
|
2014-10-02 18:40:18 +00:00
|
|
|
.view.check, .view.radio,
|
2014-08-29 17:47:38 +00:00
|
|
|
.list-row .check, list-row .radio {
|
2014-08-21 12:32:41 +00:00
|
|
|
icon-shadow: none;
|
2014-08-26 14:56:22 +00:00
|
|
|
&:selected, &:hover { icon-shadow: none; }
|
2014-08-21 12:32:41 +00:00
|
|
|
}
|
|
|
|
|
2015-01-28 17:22:59 +00:00
|
|
|
//content view (grid/list)
|
|
|
|
.content-view {
|
|
|
|
background-color: darken($bg_color,7%);
|
2015-09-02 15:23:22 +00:00
|
|
|
&:hover { -gtk-image-effect: highlight; }
|
2015-01-28 17:22:59 +00:00
|
|
|
&:backdrop { background-color: darken($bg_color,7%); }
|
|
|
|
}
|
|
|
|
|
2014-08-19 16:45:15 +00:00
|
|
|
//selection-mode
|
|
|
|
@each $s,$as in ('','-selectionmode'),
|
|
|
|
(':hover', '-hover-selectionmode'),
|
|
|
|
(':active', '-active-selectionmode'),
|
|
|
|
(':backdrop', '-backdrop-selectionmode'),
|
|
|
|
(':checked', '-checked-selectionmode'),
|
|
|
|
(':checked:hover', '-checked-hover-selectionmode'),
|
|
|
|
(':checked:active', '-checked-active-selectionmode'),
|
|
|
|
(':backdrop:checked', '-checked-backdrop-selectionmode') {
|
2014-10-02 18:40:18 +00:00
|
|
|
.view.content-view.check#{$s} {
|
2014-08-21 12:32:41 +00:00
|
|
|
icon-shadow: none;
|
2014-08-19 16:45:15 +00:00
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/checkbox#{$as}.png"),
|
|
|
|
url("assets/checkbox#{$as}@2.png"));
|
2014-09-10 18:03:26 +00:00
|
|
|
background-color: transparent;
|
2014-08-19 16:45:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-18 08:11:11 +00:00
|
|
|
GtkCheckButton.text-button, GtkRadioButton.text-button {
|
|
|
|
// this is for a nice focus on check and radios text
|
2014-07-21 16:49:15 +00:00
|
|
|
padding: 1px 2px 4px;
|
2014-06-18 08:11:11 +00:00
|
|
|
outline-offset: 0;
|
2014-07-22 18:09:18 +00:00
|
|
|
&:insensitive,
|
|
|
|
&:insensitive:active,
|
|
|
|
&:insensitive:inconsistent {
|
|
|
|
// set insensitive color, which is overriden otherwise
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
2014-06-18 08:11:11 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/************
|
|
|
|
* GtkScale *
|
|
|
|
************/
|
2014-06-14 12:49:20 +00:00
|
|
|
.scale,
|
|
|
|
.scale.scale-has-marks-above.scale-has-marks-below,
|
|
|
|
.scale.vertical.scale-has-marks-above.scale-has-marks-below {
|
2014-11-12 16:30:59 +00:00
|
|
|
// FIXME: rationalize
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkScale-slider-length: 20;
|
|
|
|
-GtkRange-slider-width: 20;
|
|
|
|
-GtkRange-trough-border: 2;
|
|
|
|
outline-offset: -9px;
|
2014-06-14 13:31:05 +00:00
|
|
|
outline-radius: 4px;
|
2014-11-12 16:30:59 +00:00
|
|
|
|
2014-06-14 12:49:20 +00:00
|
|
|
&.fine-tune {
|
2014-06-14 13:31:05 +00:00
|
|
|
outline-offset: -7px;
|
|
|
|
outline-radius: 6px;
|
2014-11-12 16:30:59 +00:00
|
|
|
&.trough {
|
|
|
|
margin: 8px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
2014-11-12 16:30:59 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&.slider {
|
|
|
|
//FIXME: better gradient on the slider and hover state
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal);
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
border-color: darken($borders_color,3%);
|
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
|
|
|
transparentize(white,0.85)),
|
|
|
|
inset 0 #{-2px} $bg_color,
|
2014-12-01 09:14:47 +00:00
|
|
|
inset 0 #{-1px} mix($bg_color, $borders_color, 50%);
|
2014-06-14 08:19:15 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover);
|
2014-06-14 08:19:15 +00:00
|
|
|
border-color: darken($borders_color,3%);
|
2014-06-14 12:49:20 +00:00
|
|
|
border-radius: 50%; // needed for double marks scales
|
2014-06-14 08:19:15 +00:00
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
2014-12-01 09:14:47 +00:00
|
|
|
transparentize(white, 0.85)),
|
2014-06-14 08:19:15 +00:00
|
|
|
inset 0 #{-2px} if($variant=='light', white,
|
2014-12-01 09:14:47 +00:00
|
|
|
transparentize(white, 0.86)),
|
|
|
|
inset 0 #{-1px} mix($bg_color, $borders_color, 70%);
|
2014-06-14 08:19:15 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
2014-06-14 12:49:20 +00:00
|
|
|
border-style: solid; // needed for double marks scales or they'll get
|
|
|
|
border-radius: 50%; // overridden
|
2014-06-13 14:32:44 +00:00
|
|
|
background-image: linear-gradient(to bottom, $insensitive_bg_color);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
2014-06-14 12:49:20 +00:00
|
|
|
border-style: solid; // needed for double marks scales or they'll get
|
|
|
|
border-radius: 50%; // overridden
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: darken($backdrop_borders_color,3%);
|
|
|
|
background-image: linear-gradient(to bottom, $backdrop_bg_color);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-07-19 09:11:44 +00:00
|
|
|
&:backdrop:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
2014-06-14 08:48:28 +00:00
|
|
|
}
|
2014-07-19 08:50:01 +00:00
|
|
|
&:active {
|
2014-06-14 09:30:22 +00:00
|
|
|
border: 1px solid if($variant=='light',darken($selected_borders_color,3%),
|
2014-07-19 08:50:01 +00:00
|
|
|
darken($selected_bg_color,15%));
|
2014-06-14 09:30:22 +00:00
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
//OSD sliders
|
|
|
|
.osd & {
|
2014-08-22 10:55:30 +00:00
|
|
|
@include button(osd);
|
2014-10-30 10:50:27 +00:00
|
|
|
background-color: opacify($osd_bg_color, 1);
|
2014-08-22 10:55:30 +00:00
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
2014-07-07 11:26:09 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&.trough {
|
2014-11-12 16:30:59 +00:00
|
|
|
margin: 10px;
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid $borders_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 3px;
|
2014-12-01 09:14:47 +00:00
|
|
|
background-color: mix($bg_color, $borders_color, 60%);
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9),
|
2014-09-03 12:27:07 +00:00
|
|
|
_widget_edge();
|
2014-06-13 14:32:44 +00:00
|
|
|
&.highlight {
|
2014-08-07 12:17:50 +00:00
|
|
|
@include progressbar_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-09-03 12:27:07 +00:00
|
|
|
box-shadow: _widget_edge();
|
2014-08-07 12:17:50 +00:00
|
|
|
&.vertical { @include progressbar_fill(vertical); }
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
2014-07-19 09:11:44 +00:00
|
|
|
border-color: if($variant=='light', $selected_bg_color,
|
|
|
|
$selected_borders_color);
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2014-08-07 12:17:50 +00:00
|
|
|
&:insensitive, &.vertical:insensitive {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $insensitive_borders_color;
|
2014-08-07 12:17:50 +00:00
|
|
|
background-image: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $insensitive_bg_color;
|
2014-09-03 12:27:07 +00:00
|
|
|
box-shadow: _widget_edge();
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-12-01 09:14:47 +00:00
|
|
|
background-color: mix($backdrop_bg_color, $borders_color, 50%);
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-08-22 10:55:30 +00:00
|
|
|
&:backdrop:insensitive, .highlight:backdrop:insensitive {
|
2014-07-19 09:11:44 +00:00
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $insensitive_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-09-02 09:01:08 +00:00
|
|
|
|
2014-07-07 11:26:09 +00:00
|
|
|
//OSD troughs
|
|
|
|
.osd & {
|
2014-08-22 10:55:30 +00:00
|
|
|
border-color: $osd_borders_color;
|
2014-07-07 11:26:09 +00:00
|
|
|
box-shadow: none;
|
2014-08-22 10:55:30 +00:00
|
|
|
margin: 9px;
|
|
|
|
&.fine-tune { margin: 7px; }
|
|
|
|
background-color: transparentize($osd_borders_color, 0.2);
|
|
|
|
outline-color: transparentize($osd_fg_color, 0.8);
|
|
|
|
outline-offset: -8px;
|
|
|
|
&.highlight {
|
|
|
|
background-image: none;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
&:insensitive, &:backdrop:insensitive {
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
background-image: none;
|
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-09-02 09:01:08 +00:00
|
|
|
// scales on selected list rows
|
|
|
|
.list-row:selected & {
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
&.trough {
|
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9);
|
|
|
|
&:backdrop { box-shadow: none; }
|
|
|
|
&.highlight:backdrop { border-color: $selected_borders_color; }
|
|
|
|
}
|
|
|
|
&:insensitive,
|
|
|
|
&.trough.highlight:insensitive {
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: mix($selected_fg_color, $selected_bg_color, 50%);
|
|
|
|
background-image: none;
|
|
|
|
&:backdrop { background-color: mix($backdrop_selected_fg_color, $selected_bg_color, 50%); }
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-19 08:50:01 +00:00
|
|
|
|
2014-06-14 12:49:20 +00:00
|
|
|
@each $d,$dn in ('', 'horz'),
|
|
|
|
('.vertical', 'vert') {
|
|
|
|
@each $w,$we in ('scale-has-marks-below','scale_marks_below'),
|
|
|
|
('scale-has-marks-above','scale_marks_above') {
|
|
|
|
.scale#{$d}.#{$w} {
|
|
|
|
-GtkScale-slider-length: 20;
|
|
|
|
-GtkRange-slider-width: 24;
|
|
|
|
-GtkRange-trough-border: 2;
|
2014-07-19 08:50:01 +00:00
|
|
|
|
2015-09-01 16:52:20 +00:00
|
|
|
color: gtkalpha(currentColor, 0.5); // marks color
|
2015-06-23 17:11:15 +00:00
|
|
|
|
2014-06-14 12:49:20 +00:00
|
|
|
@extend %#{$we}_#{$dn};
|
|
|
|
|
|
|
|
@each $s,$as in ('',''),
|
|
|
|
(':hover','-hover'),
|
|
|
|
(':active','-active'),
|
|
|
|
(':insensitive','-insensitive'),
|
|
|
|
(':backdrop','-backdrop'),
|
|
|
|
(':backdrop:insensitive','-backdrop-insensitive') {
|
|
|
|
&.slider#{$s} {
|
|
|
|
$_url: 'assets/slider-#{$dn}-#{$w}#{$as}#{$asset_suffix}';
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-06-14 12:49:20 +00:00
|
|
|
%scale_marks_above_horz {
|
2014-11-29 17:21:12 +00:00
|
|
|
.trough { margin: 14px 10px 10px; }
|
|
|
|
&.fine-tune .trough { margin: 12px 8px 8px; }
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
|
|
|
%scale_marks_below_horz {
|
2014-11-29 17:21:12 +00:00
|
|
|
.trough { margin: 10px 10px 14px; }
|
|
|
|
&.fine-tune .trough { margin: 8px 8px 12px; }
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
|
|
|
%scale_marks_above_vert {
|
2014-11-29 17:21:12 +00:00
|
|
|
.trough { margin: 10px 10px 10px 14px; }
|
|
|
|
&.fine-tune .trough { margin: 8px 8px 8px 12px; }
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
|
|
|
%scale_marks_below_vert {
|
2014-11-29 17:21:12 +00:00
|
|
|
.trough { margin: 10px 14px 10px 10px; }
|
|
|
|
&.fine-tune .trough { margin: 8px 12px 8px 8px; }
|
2014-06-14 12:49:20 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*****************
|
|
|
|
* Progress bars *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
GtkProgressBar {
|
2014-09-13 14:20:44 +00:00
|
|
|
padding: 0;
|
|
|
|
font-size: smaller;
|
|
|
|
color: transparentize($fg_color, 0.6);
|
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9), // needs to be set
|
|
|
|
_widget_edge(); // here ot it gets
|
|
|
|
// clipped
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_insensitive_color;
|
|
|
|
}
|
|
|
|
&.osd {
|
|
|
|
-GtkProgressBar-xspacing: 0;
|
|
|
|
-GtkProgressBar-yspacing: 0;
|
|
|
|
-GtkProgressBar-min-horizontal-bar-height: 3;
|
|
|
|
}
|
2014-10-02 18:40:18 +00:00
|
|
|
&.trough { // background
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
border-radius: 3px;
|
2014-12-01 09:14:47 +00:00
|
|
|
background-color: mix($borders_color, $bg_color, 35%);
|
2014-10-02 18:40:18 +00:00
|
|
|
&:backdrop{
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: $backdrop_dark_fill;
|
|
|
|
box-shadow: 0 1px transparentize(white,1);
|
|
|
|
}
|
|
|
|
&.osd {
|
|
|
|
border-style: none;
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// moving bit
|
|
|
|
.progressbar {
|
2014-08-07 12:17:50 +00:00
|
|
|
@include progressbar_fill;
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid $selected_borders_color;
|
2014-07-19 12:03:28 +00:00
|
|
|
border-radius: 1.5px;
|
2014-07-27 11:39:02 +00:00
|
|
|
box-shadow: none; //needed for clipping
|
2014-07-19 12:03:28 +00:00
|
|
|
&.left {
|
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
}
|
|
|
|
&.right {
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
}
|
|
|
|
&.left.right {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-07-19 07:59:10 +00:00
|
|
|
&.vertical {
|
2014-08-07 12:17:50 +00:00
|
|
|
@include progressbar_fill(vertical);
|
2014-07-19 12:03:28 +00:00
|
|
|
&.bottom {
|
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&.top {
|
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
}
|
2014-07-19 07:59:10 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
2014-07-19 09:11:44 +00:00
|
|
|
border-color: if($variant=='light', $selected_bg_color,
|
|
|
|
$selected_borders_color);
|
2014-07-19 13:42:17 +00:00
|
|
|
background-image: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&.osd {
|
2014-09-13 14:20:44 +00:00
|
|
|
background-image: none;
|
|
|
|
background-color: $selected_bg_color;
|
2014-08-28 13:42:17 +00:00
|
|
|
border-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*************
|
|
|
|
* Level Bar *
|
|
|
|
*************/
|
|
|
|
|
|
|
|
.level-bar {
|
2014-10-02 18:40:18 +00:00
|
|
|
box-shadow: _widget_edge(); // needs to be set here to avoid clipping
|
|
|
|
-GtkLevelBar-min-block-width: 34;
|
|
|
|
-GtkLevelBar-min-block-height: 3;
|
|
|
|
&.vertical {
|
|
|
|
-GtkLevelBar-min-block-width: 3;
|
|
|
|
-GtkLevelBar-min-block-height: 34;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&.trough {
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid;
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 2px;
|
|
|
|
border-radius: 3px;
|
|
|
|
@include entry(normal);
|
|
|
|
&:backdrop {
|
|
|
|
@include entry(backdrop);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.fill-block {
|
|
|
|
// FIXME: it would be nice to set make fill blocks bigger, but we'd need
|
|
|
|
// :nth-child working on discrete indicators
|
2014-08-28 13:42:17 +00:00
|
|
|
border: 1px solid if($variant=='light', darken($selected_bg_color,10%),
|
|
|
|
darken($selected_bg_color,5%));
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $selected_bg_color;
|
|
|
|
box-shadow: 0 1px transparentize(black, 0.9);
|
|
|
|
border-radius: 1px;
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&.indicator-discrete {
|
|
|
|
&.horizontal { margin: 0 1px; }
|
|
|
|
&.vertical { margin: 1px 0; }
|
|
|
|
}
|
|
|
|
&.level-high {
|
|
|
|
border-color: darken($success_color,10%);
|
|
|
|
background-color: $success_color;
|
|
|
|
&:backdrop { border-color: $success_color; }
|
|
|
|
}
|
|
|
|
&.level-low {
|
|
|
|
border-color: darken($warning_color,10%);
|
|
|
|
background-color: $warning_color;
|
|
|
|
&:backdrop { border-color: $warning_color; };
|
|
|
|
}
|
|
|
|
&.empty-fill-block {
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: if($variant=='light', transparentize($fg_color,0.8),
|
|
|
|
transparentize($fg_color,0.9));
|
|
|
|
box-shadow: none;
|
|
|
|
&:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**********
|
|
|
|
* Frames *
|
|
|
|
**********/
|
|
|
|
.frame {
|
|
|
|
border: 1px solid $borders_color;
|
2014-06-27 12:53:31 +00:00
|
|
|
&.flat { border-style: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop { border-color: $backdrop_borders_color; }
|
2014-06-18 10:16:55 +00:00
|
|
|
padding: 0;
|
|
|
|
&.action-bar {
|
|
|
|
padding: 6px;
|
|
|
|
border-width: 1px 0 0;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GtkScrolledWindow {
|
2014-08-28 13:42:17 +00:00
|
|
|
GtkViewport.frame { // avoid double borders when viewport inside
|
|
|
|
// scrolled window
|
2014-06-13 14:32:44 +00:00
|
|
|
border-style: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//vbox and hbox separators
|
|
|
|
.separator {
|
|
|
|
// always disable separators
|
|
|
|
// -GtkWidget-wide-separators: true;
|
|
|
|
color: transparentize(black, 0.9);
|
2014-06-23 18:42:21 +00:00
|
|
|
|
|
|
|
// Font and File button separators
|
2015-01-11 02:09:30 +00:00
|
|
|
GtkFileChooserButton &.vertical,
|
|
|
|
GtkFontButton &.vertical {
|
2014-06-23 18:42:21 +00:00
|
|
|
// always disable separators
|
|
|
|
-GtkWidget-wide-separators: true;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********
|
|
|
|
* Lists *
|
|
|
|
*********/
|
|
|
|
|
2015-09-01 14:03:02 +00:00
|
|
|
.list {
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $base_color;
|
|
|
|
border-color: $borders_color;
|
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-07 15:44:01 +00:00
|
|
|
.list-row,
|
|
|
|
.grid-child {
|
2014-06-28 13:22:23 +00:00
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
|
2015-08-25 00:08:29 +00:00
|
|
|
.list-row.activatable {
|
2015-04-10 14:39:35 +00:00
|
|
|
// let's take care of background colors
|
2014-07-14 16:29:08 +00:00
|
|
|
&:hover {
|
2015-09-01 16:14:45 +00:00
|
|
|
//background-color: mix($fg_color, $base_color, 5%);
|
|
|
|
background-color: if(variant == light, transparentize($fg_color, 0.9), transparentize($fg_color, 0.95));
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
|
|
|
&:active {
|
2014-12-01 09:14:47 +00:00
|
|
|
box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8);
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
2015-04-23 20:45:23 +00:00
|
|
|
&:backdrop:hover { background-color: transparent; }
|
2014-07-14 16:29:08 +00:00
|
|
|
&:selected {
|
2014-12-01 09:14:47 +00:00
|
|
|
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
|
2014-07-15 08:24:08 +00:00
|
|
|
&:hover {
|
2014-10-16 12:22:20 +00:00
|
|
|
background-color: mix($fg_color, $selected_bg_color, 10%);
|
2014-07-15 08:24:08 +00:00
|
|
|
}
|
2014-09-06 15:14:09 +00:00
|
|
|
&:backdrop { background-color: $selected_bg_color; }
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.list-row:selected {
|
2014-09-02 21:28:21 +00:00
|
|
|
@extend %selected_items;
|
2014-09-02 19:25:53 +00:00
|
|
|
.button {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2014-09-06 15:09:08 +00:00
|
|
|
&.flat {
|
|
|
|
@include button(undecorated, $edge:none);
|
|
|
|
color: $selected_fg_color;
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
&:active, &:checked {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
&:backdrop, &.flat:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
&:active, &:checked {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-active, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
|
|
|
&:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2014-09-04 13:03:09 +00:00
|
|
|
&:active, &:checked {
|
|
|
|
@include button(backdrop-insensitive-active, $edge:none);
|
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
|
|
|
}
|
2014-09-02 19:25:53 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-06 15:09:08 +00:00
|
|
|
&.flat:backdrop {
|
|
|
|
@include button(undecorated);
|
|
|
|
color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color);
|
|
|
|
}
|
2014-09-02 19:25:53 +00:00
|
|
|
&:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-09-02 19:25:53 +00:00
|
|
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
2014-09-04 13:03:09 +00:00
|
|
|
&:active, &:checked { @include button(insensitive-active, $edge:none); }
|
2014-09-02 19:25:53 +00:00
|
|
|
}
|
|
|
|
//FIXME: make placeholder with buttons w/o edge to be extended around
|
2014-09-03 12:22:10 +00:00
|
|
|
// istead of repeating everytime this stuff.
|
2014-09-02 19:25:53 +00:00
|
|
|
}
|
2014-07-13 13:01:11 +00:00
|
|
|
}
|
|
|
|
|
2014-10-16 12:12:13 +00:00
|
|
|
// transition
|
2015-08-02 19:55:10 +00:00
|
|
|
.list-row {
|
2015-06-08 17:01:45 +00:00
|
|
|
transition: all 150ms $ease-out-quad;
|
2014-10-16 12:12:13 +00:00
|
|
|
&:hover { transition: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/*********************
|
|
|
|
* App Notifications *
|
|
|
|
*********************/
|
|
|
|
|
2014-09-04 17:18:13 +00:00
|
|
|
.app-notification,
|
|
|
|
.app-notification.frame {
|
2014-08-26 14:54:19 +00:00
|
|
|
@extend %osd;
|
2014-09-04 17:18:13 +00:00
|
|
|
padding: 10px;
|
2014-10-30 10:50:27 +00:00
|
|
|
border: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0 0 6px 6px;
|
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;
|
|
|
|
&:backdrop { background-image: none; }
|
2014-08-22 16:16:23 +00:00
|
|
|
.button {
|
|
|
|
@include button(osd);
|
2014-08-26 14:54:19 +00:00
|
|
|
&.flat {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
icon-shadow: 0 1px black;
|
|
|
|
text-shadow: 0 1px black;
|
|
|
|
&:backdrop,
|
|
|
|
&:insensitive,
|
|
|
|
&:backdrop:insensitive { @extend %undecorated_button; }
|
|
|
|
}
|
2014-08-22 16:16:23 +00:00
|
|
|
&:hover { @include button(osd-hover); }
|
2014-10-30 10:50:27 +00:00
|
|
|
&:active,
|
|
|
|
&:checked,
|
|
|
|
&:backdrop:active,
|
|
|
|
&:backdrop:checked {
|
2014-08-22 16:16:23 +00:00
|
|
|
@include button(osd-active);
|
|
|
|
}
|
2014-10-30 10:50:27 +00:00
|
|
|
&:insensitive,
|
|
|
|
&:backdrop:insensitive {
|
2014-08-22 16:16:23 +00:00
|
|
|
@include button(osd-insensitive);
|
|
|
|
}
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*************
|
|
|
|
* Expanders *
|
|
|
|
*************/
|
|
|
|
|
2014-10-02 18:40:18 +00:00
|
|
|
.expander {
|
2014-06-13 14:32:44 +00:00
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
2014-06-22 18:12:29 +00:00
|
|
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover { color: lighten($fg_color,30%); } //only lightens the arrow
|
2014-08-28 02:17:29 +00:00
|
|
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Calendar *
|
|
|
|
***********/
|
2014-07-19 08:50:01 +00:00
|
|
|
GtkCalendar {
|
2014-10-18 14:57:39 +00:00
|
|
|
color: $text_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
border: 1px solid $borders_color;
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-23 11:26:36 +00:00
|
|
|
&:selected {
|
2014-11-15 14:54:20 +00:00
|
|
|
@extend .view:selected;
|
2014-07-23 11:26:36 +00:00
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-23 11:26:36 +00:00
|
|
|
&.header {
|
2014-10-31 15:44:21 +00:00
|
|
|
border: 1px solid transparentize(black, 0.9);
|
2014-07-23 11:26:36 +00:00
|
|
|
border-radius: 0;
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
|
|
&:backdrop { border-color: transparentize(black, 0.9); }
|
2014-07-23 11:26:36 +00:00
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-01 12:22:54 +00:00
|
|
|
&.button {
|
2014-07-19 08:50:01 +00:00
|
|
|
@extend %undecorated_button;
|
2014-10-18 14:57:39 +00:00
|
|
|
color: transparentize($fg_color, 0.55);
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-07-01 12:22:54 +00:00
|
|
|
&:hover {
|
2014-07-19 08:50:01 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
|
|
|
&:backdrop {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
color: transparentize($backdrop_fg_color,0.55);
|
|
|
|
}
|
2015-08-05 12:05:57 +00:00
|
|
|
|
|
|
|
&:insensitive {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
color: transparentize($insensitive_fg_color,0.55);
|
|
|
|
}
|
2014-07-01 12:22:54 +00:00
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2015-08-27 02:59:55 +00:00
|
|
|
&:inconsistent, &:inconsistent:backdrop { color: gtkalpha(currentColor, 0.55); }
|
|
|
|
&.highlight, &.highlight:backdrop {
|
2015-08-27 14:25:46 +00:00
|
|
|
font-size: smaller;
|
2015-08-27 02:59:55 +00:00
|
|
|
color: $fg_color;
|
|
|
|
}
|
2014-10-31 15:44:21 +00:00
|
|
|
|
2014-12-24 01:36:30 +00:00
|
|
|
|
2014-10-18 14:57:39 +00:00
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_text_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********
|
|
|
|
* Dialogs *
|
|
|
|
***********/
|
|
|
|
|
2014-07-07 17:51:27 +00:00
|
|
|
.message-dialog .dialog-action-area .button {
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
.message-dialog { // Message Dialog styling
|
2015-01-28 17:19:20 +00:00
|
|
|
@if $variant==light {
|
|
|
|
// the bright variant as a slightly darker bg which in this case clashes with the window decoration, overriding
|
|
|
|
&.background { background-color: $bg_color; }
|
|
|
|
}
|
|
|
|
|
2014-07-05 14:30:43 +00:00
|
|
|
.titlebar {
|
|
|
|
border-style: none;
|
|
|
|
box-shadow: inset 0 1px $borders_edge;
|
|
|
|
}
|
|
|
|
&.csd { // rounded bottom border styling for csd version
|
|
|
|
&.background {
|
2014-07-07 15:56:29 +00:00
|
|
|
// bigger radius for better antialiasing
|
|
|
|
border-bottom-left-radius: 9px;
|
|
|
|
border-bottom-right-radius: 9px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-05 14:30:43 +00:00
|
|
|
.dialog-action-area .button {
|
2014-07-07 15:56:29 +00:00
|
|
|
padding: 12px;
|
2014-07-05 14:30:43 +00:00
|
|
|
border-radius: 0;
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $edge:none);
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %middle_button;
|
2014-07-05 14:30:43 +00:00
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:active {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:backdrop:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:none);
|
2014-07-05 14:30:43 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
2014-07-05 16:18:44 +00:00
|
|
|
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
|
|
|
(destructive-action, $destructive_color) {
|
|
|
|
&.#{$b_type} {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
&:hover {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(hover, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:active {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(active, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $b_color, white, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
&:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop-insensitive, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive, $edge:none);
|
2014-07-05 16:18:44 +00:00
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-05 14:30:43 +00:00
|
|
|
&:first-child{ @extend %first_button; }
|
|
|
|
&:last-child { @extend %last_button; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-05 14:30:43 +00:00
|
|
|
%middle_button {
|
2014-09-02 21:32:50 +00:00
|
|
|
border-left-style: solid;
|
2014-07-05 14:30:43 +00:00
|
|
|
border-right-style: none;
|
|
|
|
border-bottom-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-09-04 13:03:09 +00:00
|
|
|
%last_button {
|
2014-09-03 12:22:10 +00:00
|
|
|
border-bottom-right-radius: 7px;
|
2015-04-16 23:07:03 +00:00
|
|
|
outline-bottom-right-radius: 5px;
|
2014-08-29 00:14:16 +00:00
|
|
|
}
|
2014-07-05 14:30:43 +00:00
|
|
|
%first_button {
|
|
|
|
border-left-style: none;
|
|
|
|
border-bottom-left-radius: 7px;
|
2015-04-16 23:07:03 +00:00
|
|
|
outline-bottom-left-radius: 5px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-15 17:09:58 +00:00
|
|
|
GtkFileChooserDialog {
|
|
|
|
.search-bar {
|
|
|
|
background-color: $base_color;
|
|
|
|
border-color: $bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
&:backdrop {
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
border-color: $backdrop_bg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.dialog-action-box {
|
|
|
|
border-top: 1px solid $borders_color;
|
|
|
|
&:backdrop { border-top-color: $backdrop_borders_color; }
|
|
|
|
}
|
2014-06-14 06:45:55 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/***********
|
|
|
|
* Sidebar *
|
|
|
|
***********/
|
|
|
|
|
2014-10-20 13:22:42 +00:00
|
|
|
.sidebar {
|
2014-06-13 14:32:44 +00:00
|
|
|
border: none;
|
2015-05-06 21:07:17 +00:00
|
|
|
background-color: mix($bg_color, $base_color, 50%);
|
2014-10-21 11:51:22 +00:00
|
|
|
|
2014-06-14 07:00:21 +00:00
|
|
|
&:backdrop {
|
2014-10-21 11:51:22 +00:00
|
|
|
background-color: $backdrop_sidebar_bg_color;
|
2014-06-14 07:00:21 +00:00
|
|
|
}
|
2014-10-21 11:51:22 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
&:selected {
|
2014-11-15 14:54:20 +00:00
|
|
|
@extend %selected_items;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-20 13:22:42 +00:00
|
|
|
}
|
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
$_placesidebar_icons_opacity: 0.7;
|
|
|
|
GtkSidebarRow {
|
|
|
|
// Needs overriding of the GtkListBoxRow padding
|
2015-09-01 11:30:07 +00:00
|
|
|
&.list-row {
|
2015-05-06 21:07:17 +00:00
|
|
|
padding: 0px;
|
|
|
|
}
|
|
|
|
// Using margins/padding directly in the SidebarRow
|
|
|
|
// will make the animation of the new bookmark row jump
|
|
|
|
.sidebar-revealer {
|
|
|
|
padding: 4px 14px 4px 12px;
|
|
|
|
}
|
|
|
|
.sidebar-icon {
|
|
|
|
opacity: $_placesidebar_icons_opacity; // dim the device icons
|
2015-06-18 00:07:24 +00:00
|
|
|
&:dir(ltr) { padding-right: 8px; }
|
|
|
|
&:dir(rtl) { padding-left: 8px; }
|
2015-05-06 21:07:17 +00:00
|
|
|
}
|
|
|
|
.sidebar-label {
|
2015-06-18 00:07:24 +00:00
|
|
|
&:dir(ltr) { padding-right: 2px; }
|
|
|
|
&:dir(rtl) { padding-left: 2px; }
|
2015-05-06 21:07:17 +00:00
|
|
|
}
|
|
|
|
}
|
2015-04-15 18:20:52 +00:00
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
GtkPlacesSidebar.sidebar {
|
2015-09-01 16:14:45 +00:00
|
|
|
// in the sidebar case it makes no sense to click the selected row
|
|
|
|
.list-row:selected:active { box-shadow: none; }
|
|
|
|
|
2015-09-01 16:43:48 +00:00
|
|
|
// looks like the label doesn't get all the states so work around
|
|
|
|
.list-row:selected:insensitive .label { @extend %selected_items:insensitive; }
|
|
|
|
.list-row:selected:backdrop:insensitive .label { @extend %selected_items:backdrop:insensitive; }
|
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
.sidebar-placeholder-row {
|
|
|
|
border: solid 1px $selected_bg_color;
|
|
|
|
}
|
2015-09-01 16:14:45 +00:00
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
.sidebar-new-bookmark-row {
|
2015-09-01 16:14:45 +00:00
|
|
|
color: $selected_bg_color;
|
2014-11-05 15:01:28 +00:00
|
|
|
}
|
2015-09-01 16:14:45 +00:00
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
@at-root .sidebar-button.button { // @at-root needded to not change the specificity making button styling inheritance broken
|
|
|
|
// so istead of "GtkPlacesSidebar.sidebar .sidebar-button.button" [specificity 0,0,3,1]
|
|
|
|
// the extended selector ".sidebar-button.button" [specificity 0,0,2,0]
|
2014-11-05 15:01:28 +00:00
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
&.image-button { padding: 5px; }
|
2014-10-21 11:51:22 +00:00
|
|
|
|
2015-05-06 21:07:17 +00:00
|
|
|
@extend .button.flat;
|
|
|
|
border-radius: 100%;
|
|
|
|
outline-radius: 100%;
|
|
|
|
&:not(:hover):not(:active) > GtkImage,
|
|
|
|
&:backdrop > GtkImage { opacity: $_placesidebar_icons_opacity };
|
2014-10-20 13:22:42 +00:00
|
|
|
}
|
2015-09-01 16:14:45 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-10-02 18:40:18 +00:00
|
|
|
.sidebar-item {
|
2014-10-02 19:16:30 +00:00
|
|
|
padding: 10px 4px;
|
2014-10-05 01:40:45 +00:00
|
|
|
> .label {
|
2014-10-02 19:16:30 +00:00
|
|
|
padding-left: 6px;
|
|
|
|
padding-right: 6px;
|
|
|
|
}
|
2014-10-05 01:40:45 +00:00
|
|
|
&.needs-attention > .label {
|
2014-10-02 19:16:30 +00:00
|
|
|
@extend %needs_attention;
|
|
|
|
background-size: 6px 6px, 0 0;
|
|
|
|
}
|
2014-10-02 18:40:18 +00:00
|
|
|
}
|
|
|
|
|
2014-10-21 11:51:22 +00:00
|
|
|
/*********
|
|
|
|
* Paned *
|
|
|
|
*********/
|
|
|
|
|
2014-10-21 11:25:17 +00:00
|
|
|
GtkPaned { // this is for the standard paned separator
|
|
|
|
|
|
|
|
-GtkPaned-handle-size: 1; // sets separator width
|
|
|
|
|
2014-10-21 18:35:02 +00:00
|
|
|
-gtk-icon-source: none; // removes handle decoration
|
2014-10-21 11:25:17 +00:00
|
|
|
margin: 0 8px 8px 0; // drag area of the separator, not a real margin
|
2014-06-14 17:06:26 +00:00
|
|
|
&:dir(rtl) {
|
|
|
|
margin-right: 0;
|
2014-06-16 15:14:20 +00:00
|
|
|
margin-left: 8px;
|
2014-06-14 17:06:26 +00:00
|
|
|
}
|
2014-10-21 11:25:17 +00:00
|
|
|
.pane-separator {
|
2014-10-21 18:35:02 +00:00
|
|
|
background-color: $borders_color;
|
2014-10-21 11:25:17 +00:00
|
|
|
&:backdrop {
|
2014-10-21 18:35:02 +00:00
|
|
|
background-color: $backdrop_borders_color;
|
2014-10-21 11:25:17 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-10-21 11:25:17 +00:00
|
|
|
GtkPaned.wide { // this is for the paned with wide separator
|
|
|
|
-GtkPaned-handle-size: 5; // wider separator here
|
|
|
|
margin: 0; // no need of the invisible drag area so, reset margin
|
|
|
|
.pane-separator {
|
2014-10-21 18:35:02 +00:00
|
|
|
background-color: transparent;
|
2014-10-21 11:25:17 +00:00
|
|
|
border-style: none solid;
|
|
|
|
border-color: $borders_color;
|
|
|
|
border-width: 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-21 11:25:17 +00:00
|
|
|
&.vertical .pane-separator { border-style: solid none;}
|
|
|
|
.pane-separator:backdrop { border-color: $backdrop_borders_color; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-10-21 11:25:17 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**************
|
|
|
|
* GtkInfoBar *
|
|
|
|
**************/
|
|
|
|
GtkInfoBar {
|
|
|
|
border-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info,
|
|
|
|
.question,
|
|
|
|
.warning,
|
|
|
|
.error {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
text-shadow: 0 1px darken($selected_bg_color, 10%);
|
|
|
|
border-color: darken($selected_bg_color, 10%);
|
|
|
|
.button {
|
2014-09-04 13:03:09 +00:00
|
|
|
// FIXME: extend selection mode buttons
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, none);
|
|
|
|
&:hover {
|
|
|
|
@include button(hover, $selected_bg_color, $selected_fg_color, none); }
|
|
|
|
&:active {
|
|
|
|
@include button(active, $selected_bg_color, $selected_fg_color, none); }
|
2014-07-28 10:42:23 +00:00
|
|
|
&:insensitive {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(insensitive,$selected_bg_color,$selected_fg_color,none); }
|
2014-07-28 10:42:23 +00:00
|
|
|
&:backdrop {
|
2014-09-03 12:22:10 +00:00
|
|
|
@include button(backdrop, $selected_bg_color, $selected_fg_color, none);
|
2014-07-28 10:42:23 +00:00
|
|
|
border-color: _border_color($selected_bg_color);
|
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive, $selected_bg_color,
|
2014-09-03 12:22:10 +00:00
|
|
|
$selected_fg_color, none);
|
2014-07-28 10:42:23 +00:00
|
|
|
border-color: _border_color($selected_bg_color);
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-03-05 02:55:11 +00:00
|
|
|
.label:selected,
|
|
|
|
.label:selected:focus,
|
|
|
|
.label:selected:hover {
|
|
|
|
background-color: darken($selected_bg_color, 10%);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Tooltips *
|
|
|
|
************/
|
|
|
|
|
|
|
|
.tooltip {
|
2014-09-06 14:02:34 +00:00
|
|
|
&.background {
|
|
|
|
// background-color needs to be set this way otherwise it gets drawn twice
|
|
|
|
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
|
|
|
|
background-color: transparentize(black, 0.2);
|
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid $tooltip_borders_color; // this suble border is meant to
|
|
|
|
// not make the tooltip melt with
|
|
|
|
// very dark backgrounds
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
color: white;
|
|
|
|
padding: 4px; /* not working */
|
|
|
|
border-radius: 5px;
|
2014-09-05 14:17:00 +00:00
|
|
|
box-shadow: none; // otherwise it gets inherited by windowframe.csd
|
2014-06-13 14:32:44 +00:00
|
|
|
text-shadow: 0 1px black;
|
2014-09-05 14:17:00 +00:00
|
|
|
// FIXME: we need a border or tooltips vanish on black background.
|
2014-09-05 18:57:04 +00:00
|
|
|
&.window-frame.csd {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip * { //Yeah this is ugly
|
|
|
|
padding: 4px;
|
|
|
|
background-color: transparent;
|
2014-06-18 08:01:24 +00:00
|
|
|
color: inherit; // just to be sure
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* Color Chooser *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
GtkColorSwatch {
|
2014-10-15 17:49:13 +00:00
|
|
|
// This widget is made of two boxes one on top of the other, the lower box is GtkColorSwatch {} the other one
|
2015-04-15 19:43:59 +00:00
|
|
|
// is GtkColorSwatch > .overlay {}, GtkColorSwatch has the programmatically set background, so most of the style
|
2014-10-15 17:49:13 +00:00
|
|
|
// is applied to the overlay box.
|
|
|
|
|
2014-10-29 18:50:58 +00:00
|
|
|
$_colorswatch_shadow: inset 0 1px transparentize(black, 0.9), _widget_edge();
|
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
$_colorswatch_radius: 5px;
|
|
|
|
|
2014-10-29 18:50:58 +00:00
|
|
|
box-shadow: $_colorswatch_shadow;
|
|
|
|
|
|
|
|
// take care of colorswatches on selected elements
|
|
|
|
:selected & {
|
|
|
|
box-shadow: none;
|
|
|
|
&.overlay, &.overlay:hover {
|
|
|
|
border-color: $selected_fg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// we need to re-set the shadow here since it get axed by the previous bit
|
|
|
|
&:selected { box-shadow: $_colorswatch_shadow; }
|
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.
|
|
|
|
// The :not() madness is needed since actually the overlay is selectable by GtkColorSwatch > .overlay
|
|
|
|
// and GtkColorSwatch.overlay, I know it's weird, but this is gtk+, not a browser.
|
2014-06-13 14:32:44 +00:00
|
|
|
&.top {
|
2015-04-16 07:57:23 +00:00
|
|
|
border-top-left-radius: $_colorswatch-radius + 1px;
|
|
|
|
border-top-right-radius: $_colorswatch-radius + 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&.bottom {
|
2015-04-16 07:57:23 +00:00
|
|
|
border-bottom-left-radius: $_colorswatch-radius + 1px;
|
|
|
|
border-bottom-right-radius: $_colorswatch-radius + 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-04-16 07:57:23 +00:00
|
|
|
&.left, &:first-child:not(.overlay):not(.top) {
|
|
|
|
border-top-left-radius: $_colorswatch-radius + 1px;
|
|
|
|
border-bottom-left-radius: $_colorswatch-radius + 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-04-16 07:57:23 +00:00
|
|
|
&.right, &:last-child:not(.overlay):not(.bottom) {
|
|
|
|
border-top-right-radius: $_colorswatch-radius + 1px;
|
|
|
|
border-bottom-right-radius: $_colorswatch-radius + 1px;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-04-16 07:57:23 +00:00
|
|
|
&:only-child:not(.overlay) { border-radius: $_colorswatch-radius + 1px; }
|
|
|
|
|
|
|
|
// overlay corner rounding
|
|
|
|
&.top > .overlay {
|
|
|
|
border-top-left-radius: $_colorswatch-radius;
|
|
|
|
border-top-right-radius: $_colorswatch-radius;
|
|
|
|
}
|
|
|
|
&.bottom > .overlay {
|
|
|
|
border-bottom-left-radius: $_colorswatch-radius;
|
|
|
|
border-bottom-right-radius: $_colorswatch-radius;
|
|
|
|
}
|
|
|
|
&:first-child:not(.top) > .overlay {
|
|
|
|
border-top-left-radius: $_colorswatch-radius;
|
|
|
|
border-bottom-left-radius: $_colorswatch-radius;
|
|
|
|
}
|
|
|
|
&:last-child:not(.bottom) > .overlay {
|
|
|
|
border-top-right-radius: $_colorswatch-radius;
|
|
|
|
border-bottom-right-radius: $_colorswatch-radius;
|
|
|
|
}
|
|
|
|
&:only-child > .overlay { border-radius: $_colorswatch-radius; }
|
2014-10-15 17:49:13 +00:00
|
|
|
|
2014-10-08 15:23:45 +00:00
|
|
|
// hover effect
|
2014-10-29 18:50:58 +00:00
|
|
|
&:hover,
|
|
|
|
&:hover:selected {
|
2014-10-08 15:23:45 +00:00
|
|
|
background-image: linear-gradient(135deg, transparentize(white, 0.3),
|
|
|
|
transparentize(white, 1) 50%);
|
|
|
|
box-shadow: inset 0 1px transparentize(white, 0.6),
|
|
|
|
inset 0 -1px if($variant == 'light', transparentize(black, 0.9), transparentize(black, 0.6));
|
2015-04-16 07:57:23 +00:00
|
|
|
&.color-dark { // swatches with colors with luminosity lower than 50% get the color-dark class
|
|
|
|
background-image: linear-gradient(135deg, transparentize(white, 0.5),
|
|
|
|
transparentize(white, 1) 50%);
|
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
}
|
2014-10-29 18:54:43 +00:00
|
|
|
&:backdrop,
|
2015-04-16 07:57:23 +00:00
|
|
|
&:backdrop:selected
|
|
|
|
&.color-dark:backdrop,
|
|
|
|
&.color-dark:backdrop:selected {
|
2014-10-07 03:58:09 +00:00
|
|
|
background-image: none;
|
2014-10-08 15:23:45 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// no hover effect for the colorswatch in the color editor
|
|
|
|
GtkColorEditor & {
|
|
|
|
border-radius: 3px; // same radius as the entry
|
|
|
|
&:hover {
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: inset 0 1px transparentize(black, 0.9), _widget_edge();
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
&:backdrop { box-shadow: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
|
2015-04-16 07:57:23 +00:00
|
|
|
// indicator and keynav outline colors
|
2014-10-08 15:23:45 +00:00
|
|
|
&.color-dark {
|
|
|
|
color: white;
|
2015-08-31 11:59:12 +00:00
|
|
|
outline-color: transparentize(white, 0.5);
|
2014-10-08 15:23:45 +00:00
|
|
|
&:backdrop { color: transparentize(white, 0.7); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-10-08 15:23:45 +00:00
|
|
|
&.color-light {
|
|
|
|
color: black;
|
2015-08-31 11:59:12 +00:00
|
|
|
outline-color: transparentize(black, 0.5);
|
2014-10-08 15:23:45 +00:00
|
|
|
&:backdrop { color: transparentize(black, 0.7); }
|
|
|
|
}
|
|
|
|
|
|
|
|
// border color
|
2014-10-29 18:50:58 +00:00
|
|
|
&.overlay,
|
|
|
|
&.overlay:selected {
|
2014-10-08 15:23:45 +00:00
|
|
|
border: 1px solid if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
|
|
|
&:hover { border-color: if($variant == 'light', transparentize(black, 0.5), black); }
|
|
|
|
}
|
|
|
|
|
|
|
|
// make the add color button looks like, well, a button
|
|
|
|
&#add-color-button {
|
2014-10-15 17:49:13 +00:00
|
|
|
border-style: solid; // the borders are drawn by the overlay for standard colorswatches to have them semi
|
|
|
|
border-width: 1px; // translucent on the colored background, here it's not necessary so they need to be set
|
2014-10-08 15:23:45 +00:00
|
|
|
@include button(normal);
|
|
|
|
&:hover { @include button(hover); }
|
|
|
|
&:backdrop { @include button(backdrop); }
|
2014-10-15 17:49:13 +00:00
|
|
|
.overlay { @include button(undecorated); } // reset the overlay to not cover the button style underneat
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-24 08:25:49 +00:00
|
|
|
|
2014-07-08 16:24:28 +00:00
|
|
|
/********
|
|
|
|
* Misc *
|
|
|
|
********/
|
|
|
|
|
2015-06-18 10:33:04 +00:00
|
|
|
.scale-popup {
|
|
|
|
|
|
|
|
.osd & { @extend %osd; }
|
|
|
|
|
|
|
|
.osd & .button.flat { //FIXME: quick hack, redo properly
|
|
|
|
padding: 6px;
|
|
|
|
border-style: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button { // +/- buttons on GtkVolumeButton popup
|
|
|
|
padding: 6px;
|
|
|
|
&:hover {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
&:backdrop,
|
|
|
|
&:backdrop:hover,
|
|
|
|
&:backdrop:insensitive { @extend %undecorated_button; }
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-18 10:46:00 +00:00
|
|
|
GtkScaleButton.button,
|
|
|
|
GtkVolumeButton.button {
|
|
|
|
// I assume both are image-button *by default*
|
|
|
|
// with the image-button/text-button classes automagically applied depending on the button child these selectors can be deleted.
|
|
|
|
@extend .image-button;
|
|
|
|
|
|
|
|
&.text-button { @extend .text-button }
|
|
|
|
}
|
2014-07-08 19:33:48 +00:00
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**********************
|
|
|
|
* Window Decorations *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
.window-frame {
|
|
|
|
border-radius: 7px 7px 0 0;
|
|
|
|
// lamefun trick to get rounded borders regardless of CSD use
|
|
|
|
border-width: 0px;
|
|
|
|
|
|
|
|
// this needs to be transparent
|
|
|
|
// see bug #722563
|
2014-06-18 16:09:43 +00:00
|
|
|
$_wm_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
|
|
|
|
$_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize($borders_color, 0.1));
|
|
|
|
|
|
|
|
box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
|
2014-06-13 14:32:44 +00:00
|
|
|
0 0 0 1px $_wm_border; //doing borders with box-shadow
|
|
|
|
|
2014-10-22 18:46:54 +00:00
|
|
|
// FIXME rationalize window-frame shadows
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/* this is used for the resize cursor area */
|
|
|
|
margin: 10px;
|
|
|
|
|
|
|
|
&:backdrop {
|
2014-06-18 16:09:43 +00:00
|
|
|
box-shadow: 0 2px 6px 2px transparentize(black, 0.8),
|
|
|
|
0 0 0 1px $_wm_border_backdrop;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&.tiled {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2014-10-22 18:46:54 +00:00
|
|
|
&.popup {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-12-18 13:18:50 +00:00
|
|
|
// server-side decorations as used by mutter
|
|
|
|
&.ssd {
|
|
|
|
box-shadow: 0 0 0 1px $_wm_border; //just doing borders, wm draws actual shadows
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&.csd {
|
2015-03-19 02:54:38 +00:00
|
|
|
&.popup {
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0;
|
2014-06-18 16:09:43 +00:00
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
2014-06-13 14:32:44 +00:00
|
|
|
0 0 0 1px transparentize($_wm_border,0.1);
|
|
|
|
}
|
|
|
|
&.tooltip {
|
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-07-05 14:30:43 +00:00
|
|
|
&.message-dialog {
|
|
|
|
border-radius: 7px;
|
2014-07-07 15:56:29 +00:00
|
|
|
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
|
|
|
0 0 0 1px transparentize($_wm_border,0.1);
|
2014-07-05 14:30:43 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2015-03-11 12:52:21 +00:00
|
|
|
&.solid-csd {
|
|
|
|
border-radius: 0;
|
|
|
|
margin: 4px;
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
border: solid 1px $backdrop_borders_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Window Close button
|
2014-07-21 13:24:08 +00:00
|
|
|
.header-bar .button.titlebutton,
|
|
|
|
.titlebar .button.titlebutton {
|
2014-09-04 13:03:09 +00:00
|
|
|
@extend .button;
|
2014-08-29 14:52:21 +00:00
|
|
|
@extend .button.flat;
|
|
|
|
@extend .image-button;
|
2014-09-04 13:03:09 +00:00
|
|
|
@include _button_text_shadow;
|
|
|
|
&:backdrop { icon-shadow: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-bar.selection-mode .button.titlebutton,
|
|
|
|
.titlebar.selection-mode .button.titlebutton {
|
|
|
|
@include _button_text_shadow(white, $selected_bg_color);
|
|
|
|
&:backdrop { icon-shadow: none; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-09-02 21:28:21 +00:00
|
|
|
|
|
|
|
// catch all extend :)
|
|
|
|
|
|
|
|
%selected_items {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
@if $variant == 'light' {
|
|
|
|
outline-color: transparentize($selected_fg_color, 0.7);
|
|
|
|
}
|
2015-09-01 16:43:48 +00:00
|
|
|
&:insensitive { color: mix($selected_fg_color, $selected_bg_color, 50%); }
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_selected_fg_color;
|
|
|
|
&:insensitive {
|
|
|
|
color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%);
|
|
|
|
}
|
|
|
|
}
|
2014-09-02 21:28:21 +00:00
|
|
|
}
|
2014-10-01 04:45:23 +00:00
|
|
|
|
2015-06-18 10:01:12 +00:00
|
|
|
.monospace {
|
|
|
|
font: Monospace;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* Touch Copy & Paste *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
//touch selection handlebars for the Popover.osd above
|
|
|
|
.entry.cursor-handle,
|
|
|
|
.cursor-handle {
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border-style: none;
|
|
|
|
@each $s,$as in ('',''),
|
2015-06-18 11:08:45 +00:00
|
|
|
(':hover','-hover'),
|
|
|
|
(':active','-active') { //no need for insensitive and backdrop
|
|
|
|
&.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
|
|
|
|
$_url: 'assets/text-select-start#{$as}#{$asset_suffix}';
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
&.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
|
|
|
|
$_url: 'assets/text-select-end#{$as}#{$asset_suffix}';
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
&.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
|
|
|
|
$_url: 'assets/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}';
|
|
|
|
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
|
|
|
url('#{$_url}@2.png'));
|
|
|
|
}
|
2015-06-18 10:01:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-01 11:11:43 +00:00
|
|
|
/* Decouple the font of context menus from their entry/textview */
|
|
|
|
.context-menu {
|
|
|
|
font: initial;
|
|
|
|
}
|
2014-10-07 04:40:55 +00:00
|
|
|
|
2015-06-07 05:11:32 +00:00
|
|
|
.touch-selection {
|
|
|
|
font: initial;
|
|
|
|
color: $osd_fg_color;
|
|
|
|
border: none;
|
2015-06-09 13:02:39 +00:00
|
|
|
background-color: opacify($osd_bg_color,0.2);
|
2015-06-07 05:11:32 +00:00
|
|
|
background-clip: padding-box;
|
|
|
|
outline-color: transparentize($osd_fg_color, 0.7);
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: 0 1px black;
|
|
|
|
icon-shadow: 0 1px black;
|
|
|
|
&:backdrop { text-shadow: none; }
|
2015-06-18 10:01:12 +00:00
|
|
|
.button {
|
2015-06-07 05:11:32 +00:00
|
|
|
@include button(osd);
|
2015-06-18 10:01:12 +00:00
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
&:active, &:checked { @include button(osd-active); }
|
|
|
|
&:insensitive, &:backdrop:insensitive { @include button(osd-insensitive); }
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
2015-06-07 05:11:32 +00:00
|
|
|
}
|
2015-06-09 13:02:39 +00:00
|
|
|
// checkboxes and radios to use the -dark style for OSD style popovers
|
|
|
|
@each $w,$a in ('check', 'checkbox'),
|
|
|
|
('radio','radio') {
|
|
|
|
@each $s,$as in ('','-unchecked'),
|
|
|
|
(':hover', '-unchecked-hover'),
|
|
|
|
(':active', '-unchecked-active'),
|
|
|
|
(':insensitive','-unchecked-insensitive'),
|
|
|
|
(':inconsistent', '-mixed'),
|
|
|
|
(':inconsistent:hover', '-mixed-hover'),
|
|
|
|
(':inconsistent:selected', '-mixed-active'),
|
|
|
|
(':inconsistent:insensitive', '-mixed-insensitive'),
|
|
|
|
(':checked', '-checked'),
|
|
|
|
(':checked:insensitive','-checked-insensitive'),
|
|
|
|
(':checked:hover', '-checked-hover'),
|
|
|
|
(':checked:active', '-checked-active'),
|
|
|
|
(':backdrop:checked', '-checked-backdrop') {
|
|
|
|
.#{$w}#{$s} {
|
|
|
|
icon-shadow: none;
|
|
|
|
-gtk-icon-source: -gtk-scaled(url("assets/#{$a}#{$as}-dark.png"),
|
|
|
|
url("assets/#{$a}#{$as}-dark@2.png"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-06-07 05:11:32 +00:00
|
|
|
}
|
|
|
|
|
2014-12-17 18:42:11 +00:00
|
|
|
// This is used by GtkScrolledWindow, when content is touch-dragged past boundaries.
|
2015-01-29 10:34:01 +00:00
|
|
|
// This draws a box on top of the content, the size changes programmatically.
|
2014-12-17 18:42:11 +00:00
|
|
|
.overshoot {
|
|
|
|
&.top {
|
|
|
|
@include overshoot(top);
|
|
|
|
&:backdrop { @include overshoot(top, backdrop); }
|
|
|
|
}
|
|
|
|
&.bottom {
|
|
|
|
@include overshoot(bottom);
|
|
|
|
&:backdrop { @include overshoot(bottom, backdrop); }
|
|
|
|
}
|
|
|
|
&.left {
|
|
|
|
@include overshoot(left);
|
|
|
|
&:backdrop { @include overshoot(left, backdrop); }
|
|
|
|
}
|
|
|
|
&.right {
|
|
|
|
@include overshoot(right);
|
|
|
|
&:backdrop { @include overshoot(right, backdrop); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-29 10:34:01 +00:00
|
|
|
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
|
2015-04-16 07:57:23 +00:00
|
|
|
.undershoot {
|
2014-12-17 18:42:11 +00:00
|
|
|
&.top {
|
|
|
|
@include undershoot(top);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bottom {
|
|
|
|
@include undershoot(bottom);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.left {
|
|
|
|
@include undershoot(left);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.right {
|
|
|
|
@include undershoot(right);
|
|
|
|
}
|
|
|
|
}
|