2014-06-13 14:32:44 +00:00
|
|
|
@function gtkalpha($c,$a) {
|
|
|
|
@return unquote("alpha(#{$c},#{$a})");
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
-GtkToolButton-icon-spacing: 4;
|
|
|
|
-GtkTextView-error-underline-color: $error_color;
|
|
|
|
-GtkPaned-handle-size: 1;
|
|
|
|
|
|
|
|
-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;
|
|
|
|
-GtkWidget-visited-link-color: $link_color;
|
|
|
|
|
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
|
|
|
|
|
|
|
-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 {
|
|
|
|
color: $fg_color;
|
|
|
|
background-color: $bg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.background:backdrop {
|
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
|
|
|
|
|
|
|
color: lighten($fg_color,10%);
|
|
|
|
background-color: $backdrop_bg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
These wildcard seems unavoidable, need to investigate.
|
|
|
|
Wildcards are bad and troublesome, use them with care,
|
|
|
|
or better, just don't.
|
|
|
|
Everytime a wildcard is used a kitten dies, painfully.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*:insensitive {
|
|
|
|
-gtk-image-effect: dim;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
color: $fg_color;
|
|
|
|
background-color: $base_color;
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
|
|
|
&:selected,
|
|
|
|
&:selected:focus,
|
|
|
|
&:selected:hover {
|
|
|
|
@extend %selected_items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-19 17:11:02 +00:00
|
|
|
.rubberband {
|
|
|
|
border: 1px solid $selected_bg_color;
|
|
|
|
background-color: transparentize($selected_bg_color,0.8);
|
|
|
|
}
|
|
|
|
|
2014-07-10 14:55:00 +00:00
|
|
|
/* This is used by GtkScrolledWindow, when rendering the edge
|
|
|
|
* gradient shown when content is touch-dragged past boundaries.
|
|
|
|
* The color is used as a base for such gradient, which is then
|
|
|
|
* stretched/modified as a direct result of user interaction.
|
|
|
|
*/
|
2014-06-30 18:46:59 +00:00
|
|
|
.overshoot {
|
|
|
|
background-color: transparentize($selected_bg_color,0.8);
|
|
|
|
}
|
|
|
|
|
2014-06-30 15:35:38 +00:00
|
|
|
GtkLabel {
|
|
|
|
&:selected,
|
|
|
|
&:selected:focus,
|
|
|
|
&:selected:hover,
|
|
|
|
&:backdrop:selected {
|
|
|
|
@extend %selected_items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-06-13 14:32:44 +00:00
|
|
|
/*********************
|
|
|
|
* Spinner Animation *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
to { -gtk-icon-transform: rotate(1turn); }
|
|
|
|
}
|
|
|
|
|
|
|
|
.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-07-21 16:49:15 +00:00
|
|
|
padding: 5px 8px 6px;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
transition: all 200ms ease-out;
|
|
|
|
@include entry(normal);
|
2014-06-27 12:24:53 +00:00
|
|
|
&.flat, &.flat:focus {
|
|
|
|
padding: 2px;
|
|
|
|
@include entry(normal, $noedge:true);
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
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); }
|
|
|
|
&:selected, &:backdrop:selected {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
}
|
|
|
|
&:selected,
|
|
|
|
&:selected:focus {
|
|
|
|
@extend %selected_items;
|
|
|
|
}
|
|
|
|
&.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; }
|
|
|
|
}
|
|
|
|
.linked & {
|
|
|
|
&:first-child {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
&:dir(rtl) { border-right-style: none;}
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-left-style: none;
|
|
|
|
&:dir(rtl) { border-left-style: solid; }
|
|
|
|
}
|
|
|
|
}
|
2014-07-03 10:29:25 +00:00
|
|
|
&.error {
|
|
|
|
color: $error_color;
|
|
|
|
border-color: $error_color;
|
|
|
|
&:focus { @include entry(focus, $error_color); }
|
|
|
|
&:selected, &:selected:focus {
|
|
|
|
background-color: $error_color;
|
|
|
|
}
|
|
|
|
@if $variant == 'dark' {
|
|
|
|
&:selected:focus { color: $base_color; }
|
|
|
|
&:selected:backdrop { color: $backdrop_base_color; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.warning {
|
|
|
|
color: $warning_color;
|
|
|
|
border-color: $warning_color;
|
|
|
|
&:focus { @include entry(focus, $warning_color); }
|
|
|
|
&:selected, &:selected:focus {
|
|
|
|
background-color: $warning_color;
|
|
|
|
}
|
|
|
|
@if $variant == 'dark' {
|
|
|
|
&:selected:focus { color: $base_color; }
|
|
|
|
&:selected:backdrop { color: $backdrop_base_color; }
|
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********
|
|
|
|
* Buttons *
|
|
|
|
***********/
|
|
|
|
|
2014-07-16 17:42:17 +00:00
|
|
|
@keyframes needs_attention {
|
|
|
|
from {
|
|
|
|
//background-size: 0 0, 0 0;
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.01,
|
|
|
|
to($selected_bg_color),
|
|
|
|
to(transparent));
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
//background-size: 6px 6px, 6px 6px;
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to($selected_bg_color),
|
|
|
|
to(transparent));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
.button {
|
|
|
|
border-radius: 3px;
|
2014-07-01 15:46:24 +00:00
|
|
|
transition: all 200ms ease-out;
|
2014-07-21 16:49:15 +00:00
|
|
|
padding: 5px 8px 6px;
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(normal);
|
2014-06-27 11:15:54 +00:00
|
|
|
&:hover, &.flat: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-06-27 11:15:54 +00:00
|
|
|
&:active, &.flat:active {
|
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-07-15 08:24:08 +00:00
|
|
|
&: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-06-13 14:32:44 +00:00
|
|
|
&:active {
|
|
|
|
@include button(backdrop-active);
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
}
|
|
|
|
&:insensitive:active {
|
|
|
|
@include button(backdrop-insensitive-active);
|
|
|
|
}
|
|
|
|
}
|
2014-06-28 13:05:06 +00:00
|
|
|
//&:selected, &.flat:selected, Why this?
|
|
|
|
//&:selected:focus, &.flat:focus {
|
|
|
|
// @extend %selected_items;
|
|
|
|
//}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
|
|
|
@include button(insensitive);
|
2014-06-27 11:15:54 +00:00
|
|
|
&:active, &.flat:active {
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(insensitive-active);
|
|
|
|
}
|
|
|
|
}
|
2014-07-15 11:01:48 +00:00
|
|
|
&.flat, &.flat:backdrop, &.flat:backdrop:insensitive {
|
2014-06-27 11:15:54 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
// big standalone buttons like in Documents pager
|
|
|
|
&.osd {
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 12px;
|
|
|
|
border-width: 1px 1px 2px 1px;
|
|
|
|
color: $osd_fg_color;
|
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
|
|
|
@include button(osd);
|
|
|
|
&:hover { @include button(osd-hover); }
|
|
|
|
&:active { @include button(osd-active); }
|
|
|
|
&:insensitive { @include button(osd-insensitive); }
|
|
|
|
&:backdrop { @include button(osd-backdrop); }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
//overlay / OSD style
|
|
|
|
.osd & {
|
|
|
|
padding: 6px;
|
2014-07-07 11:26:09 +00:00
|
|
|
border-width: 1px 1px 2px 1px;
|
|
|
|
color: $osd_fg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
@include button(osd);
|
2014-07-07 11:26:09 +00:00
|
|
|
text-shadow: none;
|
|
|
|
icon-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %linked_buttons;
|
2014-07-07 11:26:09 +00:00
|
|
|
&:hover { @include button(osd-hover); @extend %linked_buttons; }
|
|
|
|
&:active { @include button(osd-active); @extend %linked_buttons; }
|
|
|
|
&:insensitive { @include button(osd-insensitive); @extend %linked_buttons; }
|
2014-07-19 08:50:01 +00:00
|
|
|
&:backdrop { @include button(osd-backdrop); @extend %linked_buttons; }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
// Suggested and Destructive Action buttons
|
|
|
|
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
|
|
|
(destructive-action, $destructive_color) {
|
|
|
|
&.#{$b_type} {
|
|
|
|
@include button(normal,$b_color, white);
|
2014-07-21 17:22:24 +00:00
|
|
|
outline-color: transparentize($selected_fg_color, 0.7);
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover {
|
|
|
|
@include button(hover,$b_color, white);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include button(active,$b_color, white);
|
|
|
|
}
|
|
|
|
&:backdrop {
|
2014-06-17 13:55:58 +00:00
|
|
|
@include button(backdrop,$b_color,white);
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(insensitive);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-21 16:49:15 +00:00
|
|
|
&.image-button,
|
|
|
|
&.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-07-16 17:42:17 +00:00
|
|
|
// stack switcher buttons
|
|
|
|
.action-bar .stack-switcher &.image-button,
|
|
|
|
.header-bar .stack-switcher &.image-button {
|
|
|
|
// override the padding since we need to add some padding on the
|
|
|
|
// GtkImage itself to fit the circle
|
|
|
|
padding: 5px 2px;
|
|
|
|
}
|
2014-07-16 17:47:54 +00:00
|
|
|
.action-bar .stack-switcher &.text-button,
|
|
|
|
.header-bar .stack-switcher &.text-button {
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2014-07-21 17:26:41 +00:00
|
|
|
padding-top: 5px; // I need these to not get overridden by radio
|
|
|
|
padding-bottom: 6px; // button style
|
|
|
|
outline-offset: -3px; //
|
|
|
|
|
2014-07-16 17:47:54 +00:00
|
|
|
}
|
2014-07-16 17:42:17 +00:00
|
|
|
.stack-switcher > & {
|
2014-07-21 17:26:41 +00:00
|
|
|
padding-left: 2px; // subtract the padding which will be added to the
|
|
|
|
padding-right: 2px; // GtkLabel
|
2014-07-16 17:42:17 +00:00
|
|
|
> GtkLabel {
|
|
|
|
padding-left: 6px; // label padding
|
|
|
|
padding-right: 6px; //
|
|
|
|
}
|
|
|
|
> GtkImage {
|
|
|
|
padding: 3px 6px; // image padding
|
|
|
|
}
|
|
|
|
&.needs-attention > GtkLabel,
|
|
|
|
&.needs-attention > GtkImage {
|
|
|
|
animation: needs_attention 150ms ease-in;
|
|
|
|
background-image: -gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to($selected_bg_color),
|
|
|
|
to(transparent)),
|
|
|
|
-gtk-gradient(radial,
|
|
|
|
center center, 0,
|
|
|
|
center center, 0.5,
|
|
|
|
to(white),
|
|
|
|
to(transparent));
|
|
|
|
background-size: 6px 6px, 6px 6px;
|
|
|
|
background-repeat: no-repeat;
|
2014-07-22 07:42:22 +00:00
|
|
|
background-position: right 3px, right 4px;
|
2014-07-16 17:42:17 +00:00
|
|
|
&:backdrop { background-size: 6px 6px, 0 0;}
|
|
|
|
}
|
2014-07-22 07:42:22 +00:00
|
|
|
&.needs-attention:active > GtkLabel,
|
|
|
|
&.needs-attention:active > GtkImage {
|
|
|
|
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;
|
|
|
|
@extend %linked_buttons;
|
|
|
|
}
|
|
|
|
|
|
|
|
.primary-toolbar & { icon-shadow: none; } // tango icons don't need added shadows
|
2014-06-24 08:28:19 +00:00
|
|
|
// .separator {
|
|
|
|
// -GtkWidget-wide-separators: true;
|
|
|
|
// -GtkWidget-horizontal-separator: 0;
|
|
|
|
// }
|
2014-07-05 16:18:44 +00:00
|
|
|
.linked &,
|
|
|
|
.linked &:hover,
|
|
|
|
.linked &:active,
|
2014-07-09 17:37:41 +00:00
|
|
|
.linked &:backdrop { @extend %linked_buttons; }
|
|
|
|
|
|
|
|
.linked.vertical &,
|
|
|
|
.linked.vertical &:hover,
|
|
|
|
.linked.vertical &:active,
|
|
|
|
.linked.vertical &:backdrop { @extend %linked_buttons_vertical; }
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-06-28 13:05:06 +00:00
|
|
|
// all the following is for the +|- buttons on inline toolbars, that way
|
2014-07-22 17:13:34 +00:00
|
|
|
// should really be deprecated...
|
2014-06-28 13:05:06 +00:00
|
|
|
.inline-toolbar GtkToolButton > .button { // redefining the button look is
|
2014-07-15 11:01:48 +00:00
|
|
|
// needed since those are flat...
|
2014-06-28 13:05:06 +00:00
|
|
|
@include button(normal, $noedge: true); // the box-shadow outset doesn't work
|
|
|
|
// in this case, hence $noedge
|
|
|
|
&:hover { @include button(hover, $noedge: true); }
|
|
|
|
&:active { @include button(active, $noedge:true); }
|
|
|
|
&:insensitive { @include button(insensitive, $noedge:true); }
|
|
|
|
&:insensitive:active { @include button(insensitive-active, $noedge:true); }
|
|
|
|
&:backdrop { @include button(backdrop); };
|
|
|
|
&:backdrop:active { @include button(backdrop-active); }
|
|
|
|
&:backdrop:insensitive { @include button(backdrop-insensitive); }
|
|
|
|
&:backdrop:insensitive:active { @include button(backdrop-insensitive-active);}
|
|
|
|
}
|
|
|
|
.inline-toolbar.toolbar GtkToolButton { // .inline-toolbar.toolbar here for
|
|
|
|
// higher specificity than the previous
|
|
|
|
// "button look" selector
|
|
|
|
& > .button.flat {
|
|
|
|
border-radius: 0;
|
|
|
|
border-left-style: none;
|
|
|
|
}
|
|
|
|
&:dir(rtl) > .button.flat {}
|
|
|
|
&:first-child > .button.flat {
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
border-left-style: solid;
|
|
|
|
}
|
|
|
|
&:last-child > .button.flat {
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
}
|
|
|
|
&:last-child:dir(rtl) > .button.flat {
|
|
|
|
border-right-style: solid;
|
|
|
|
}
|
|
|
|
&:only-child > .button.flat {
|
|
|
|
border-radius: 3px;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
%linked_buttons {
|
|
|
|
border-radius: 0;
|
|
|
|
border-left-style: none;
|
|
|
|
&:dir(rtl) {
|
|
|
|
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;
|
2014-07-09 17:37:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%linked_buttons_vertical{
|
|
|
|
border-left-style: solid;
|
|
|
|
border-top-style: none;
|
|
|
|
&:first-child {
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 3px 3px 0 0;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-radius: 0 0 3px 3px;
|
|
|
|
}
|
|
|
|
&: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-06-27 11:15:54 +00:00
|
|
|
box-shadow: inset 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;
|
|
|
|
&:hover { background-color: mix($fg_color,$bg_color,10%); }
|
|
|
|
&:selected { @extend %selected_items; }
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
@extend %undecorated_button;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-19 08:50:01 +00:00
|
|
|
GtkColorButton.button {
|
2014-07-18 21:48:33 +00:00
|
|
|
padding: 4px; // Uniform padding on the GtkColorButton
|
|
|
|
GtkColorSwatch {
|
|
|
|
border-radius: 1.5px;
|
|
|
|
box-shadow: inset 0 1px 1px transparentize(black, 0.8),
|
|
|
|
$widget_edge;
|
|
|
|
&: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 {
|
|
|
|
color: $selected_bg_color; //FIXME use a proper color
|
|
|
|
&:hover, &:active, &:visited {
|
|
|
|
color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
|
|
|
|
}
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button:link, .button:visited {
|
2014-06-13 14:32:44 +00:00
|
|
|
color: $selected_bg_color; //FIXME use a proper color
|
|
|
|
@extend %undecorated_button;
|
|
|
|
text-shadow: none;
|
|
|
|
&:hover, &:active {
|
|
|
|
@extend %undecorated_button;
|
2014-06-18 14:07:59 +00:00
|
|
|
color: mix($fg_color, $selected_bg_color, 40%); //FIXME same here
|
2014-06-13 14:32:44 +00:00
|
|
|
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
|
2014-06-18 14:07:59 +00:00
|
|
|
color: $selected_bg_color; //FIXME use a proper color
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* GtkSpinButton *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
.spinbutton {
|
|
|
|
.button {
|
|
|
|
background-image: none;
|
|
|
|
border-width: 0 0 0 1px;
|
|
|
|
border-color: transparentize($borders_color,0.7);
|
2014-06-18 17:40:11 +00:00
|
|
|
color: mix($fg_color,$base_color,95%);
|
2014-06-13 14:32:44 +00:00
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
// padding-left: 6px;
|
|
|
|
// padding-right: 6px;
|
|
|
|
&:dir(rtl) { border-width: 0 1px 0 0; }
|
2014-06-18 17:40:11 +00:00
|
|
|
&:hover {
|
|
|
|
color: $fg_color;
|
2014-07-15 07:11:56 +00:00
|
|
|
background-color: transparentize(black,0.95);
|
2014-06-18 17:40:11 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:insensitive {
|
|
|
|
color: transparentize($insensitive_fg_color,0.7);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
box-shadow: inset 0 2px 3px -1px transparentize(black,0.8);
|
2014-07-15 07:11:56 +00:00
|
|
|
background-color: transparentize(black,0.9);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
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);
|
|
|
|
border-width: 0 0 0 1px; // It is needed or it gets overridden
|
|
|
|
&:dir(rtl) { border-width: 0 1px 0 0; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.vertical {
|
|
|
|
.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;
|
|
|
|
@include button(normal, $noedge: true);
|
|
|
|
&:active {
|
|
|
|
@extend %top_button;
|
|
|
|
@include button(active, $noedge: true);
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
@extend %top_button;
|
|
|
|
@include button(hover, $noedge: true);
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@extend %top_button;
|
|
|
|
@include button(insensitive, $noedge: true);
|
|
|
|
}
|
2014-06-18 11:16:21 +00:00
|
|
|
&:backdrop {
|
|
|
|
@extend %top_button;
|
|
|
|
@include button(backdrop);
|
|
|
|
}
|
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;
|
|
|
|
border-bottom-width: 0;
|
|
|
|
}
|
|
|
|
%bottom_button {
|
|
|
|
border-radius: 0 0 3px 3px;
|
|
|
|
border-top-width: 0;
|
|
|
|
}
|
|
|
|
}
|
2014-06-27 12:24:53 +00:00
|
|
|
/* This is to fix spinbuttons in entries, but I feel like hiding code issues
|
|
|
|
* hence it's commented atm.
|
|
|
|
* 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 {
|
2014-07-21 16:49:15 +00:00
|
|
|
> .button { padding-top: 3px; padding-bottom: 4px; } // Otherwise combos
|
2014-07-07 09:45:13 +00:00
|
|
|
// are bigger then
|
|
|
|
// buttons
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkComboBox-arrow-scaling: 0.5;
|
|
|
|
-GtkComboBox-shadow-type: none;
|
|
|
|
|
|
|
|
box-shadow: 0 1px $borders_edge;
|
|
|
|
|
|
|
|
@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; }
|
|
|
|
.separator {
|
|
|
|
// always disable separators
|
|
|
|
-GtkWidget-wide-separators: true;
|
|
|
|
-GtkWidget-horizontal-separator: 0;
|
|
|
|
-GtkWidget-vertical-separator: 0;
|
|
|
|
}
|
|
|
|
&.combobox-entry .entry {
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.combobox-entry .button, &.combobox-entry .button:backdrop {
|
|
|
|
// It is needed to specify the backdrop button or it gets overridden
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
border-left-style: none;
|
|
|
|
&:dir(rtl) {
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
border-left-style: solid;
|
|
|
|
border-right-style: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Toolbars *
|
|
|
|
************/
|
|
|
|
.toolbar { //FIXME: why is all this being ignored?
|
|
|
|
padding: 6px;
|
|
|
|
background-color: $bg_color;
|
2014-07-13 18:38:43 +00:00
|
|
|
.osd & {
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $osd_bg_color;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
2014-07-08 09:22:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//searchbar & inline-toolbar
|
|
|
|
.inline-toolbar {
|
|
|
|
@extend .toolbar;
|
|
|
|
@extend %inset-bar;
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
padding: 3px;
|
|
|
|
border-radius: 0 0 4px 4px;
|
|
|
|
}
|
|
|
|
.search-bar {
|
|
|
|
@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;
|
|
|
|
box-shadow: inset 0 2px 3px -1px mix($borders_color, $_bg, 60%);
|
|
|
|
//FIXME edge would be nice, but doesn't work
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
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 {
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
|
|
|
border-radius: 7px 7px 0 0;
|
|
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
lighten($bg_color,4%),
|
|
|
|
$bg_color);
|
|
|
|
box-shadow: inset 0 -1px mix($borders_color, $bg_color, 30%), // bottom shade
|
2014-07-07 18:32:16 +00:00
|
|
|
inset 0 1px $top_hilight; // top highlight
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 6px;
|
|
|
|
|
|
|
|
&: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 {
|
|
|
|
font: Bold;
|
|
|
|
padding: 0px 12px;
|
|
|
|
}
|
|
|
|
.subtitle {
|
|
|
|
font-size: 80%;
|
|
|
|
padding: 0 12px;
|
2014-07-07 12:17:51 +00:00
|
|
|
@extend .dim-label;
|
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
|
|
|
|
&:backdrop {
|
|
|
|
border-image: linear-gradient(to bottom,
|
|
|
|
transparentize($backdrop_borders_color,
|
|
|
|
0.5))
|
|
|
|
0 1 / 1px 1px; //FIXME use a proper color
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.selection-mode {
|
|
|
|
color: darken($selected_bg_color, 15%);
|
|
|
|
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-07-07 18:32:16 +00:00
|
|
|
box-shadow: inset 0 -1px mix($selected_borders_color,
|
2014-07-08 10:52:25 +00:00
|
|
|
$selected_bg_color, 35%), //bottom shade
|
|
|
|
inset 0 1px mix($top_hilight,$selected_bg_color, 60%);
|
2014-07-07 18:32:16 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-image: linear-gradient(to bottom, $selected_bg_color);
|
|
|
|
box-shadow: inset 0 1px mix($top_hilight,$selected_bg_color, 60%);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
.button {
|
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, noedge);
|
2014-07-07 18:32:16 +00:00
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color,
|
|
|
|
$noedge: true); }
|
|
|
|
&:active { @include button(active, $selected_bg_color, $selected_fg_color, $noedge: true); }
|
2014-07-19 08:50:01 +00:00
|
|
|
&:insensitive { @include button(insensitive, $selected_bg_color,
|
2014-07-07 18:32:16 +00:00
|
|
|
$selected_fg_color, $noedge: true); }
|
2014-07-19 08:50:01 +00:00
|
|
|
&:backdrop {
|
|
|
|
@include button(backdrop, $selected_bg_color, $selected_fg_color,
|
2014-07-07 18:32:16 +00:00
|
|
|
$noedge: true);
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-07-19 08:50:01 +00:00
|
|
|
&:backdrop:insensitive {
|
|
|
|
@include button(backdrop-insensitive, $selected_bg_color,
|
|
|
|
$selected_fg_color, $noedge: true);
|
2014-06-17 13:55:58 +00:00
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&.suggested-action {
|
|
|
|
@include button($t:normal, $noedge:true);
|
2014-07-07 18:32:16 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
&:hover {
|
|
|
|
@include button($t:hover, $noedge: true);
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include button($t:active, $noedge: true);
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button($t:insensitive, $noedge: true);
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button($t:backdrop, $noedge: true);
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
|
|
|
&:backdrop:insensitive {
|
|
|
|
@include button($t:backdrop-insensitive, $noedge: true);
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-03 10:37:48 +00:00
|
|
|
.selection-menu {
|
2014-07-08 08:46:39 +00:00
|
|
|
border-color: transparentize($selected_bg_color,1);
|
2014-07-08 10:52:25 +00:00
|
|
|
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;
|
|
|
|
GtkArrow { -GtkArrow-arrow-scaling: 1; }
|
|
|
|
.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-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
|
|
|
}
|
|
|
|
.tiled &, .maximized & {
|
|
|
|
border-radius: 0; // squared corners when the window is max'd or tiled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-22 12:33:44 +00:00
|
|
|
/************
|
|
|
|
* Pathbars *
|
|
|
|
************/
|
|
|
|
|
|
|
|
.path-bar .button {
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
&:first-child { padding-left: 8px; }
|
|
|
|
&:last-child { padding-right: 8px; }
|
|
|
|
&:only-child {
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**************
|
|
|
|
* Tree Views *
|
|
|
|
**************/
|
2014-07-10 12:59:08 +00:00
|
|
|
GtkTreeView.view { // treeview grid lines and expanders, unfortunatelly
|
|
|
|
// the tree lines color can't be set
|
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;
|
|
|
|
border-color: $bg_color; // this is actually the line color
|
|
|
|
// :selected is ignored hence no style for it
|
2014-07-10 11:53:37 +00:00
|
|
|
&:backdrop {
|
2014-07-10 12:59:08 +00:00
|
|
|
border-color: $backdrop_bg_color;
|
|
|
|
}
|
|
|
|
&.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; }
|
|
|
|
&:backdrop { color: mix($backdrop_base_color, $selected_bg_color, 70%); }
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
2014-07-10 11:53:37 +00:00
|
|
|
}
|
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-06-16 14:45:24 +00:00
|
|
|
column-header {
|
|
|
|
.button {
|
|
|
|
@extend %column_header_button;
|
|
|
|
$_column_header_color: mix($fg_color,$base_color,50%);
|
|
|
|
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;
|
|
|
|
color: mix($_column_header_color,$fg_color,50%);
|
|
|
|
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,
|
|
|
|
&:last-child.button { //treeview-like derived widgets in Banshee and Evolution
|
|
|
|
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-06-16 14:45:24 +00:00
|
|
|
border-width: 0 1px 1px 0;
|
|
|
|
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-06-16 15:07:27 +00:00
|
|
|
border-width: 0 1px 1px 0;
|
|
|
|
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-07-03 08:30:14 +00:00
|
|
|
GtkTreeView.view.progressbar { //Progressbar in treeview cells
|
|
|
|
@if $variant == 'light' { color: $base_color; }
|
|
|
|
border-radius: 4px;
|
2014-07-10 13:47:57 +00:00
|
|
|
border-color: $selected_borders_color;
|
2014-07-03 08:30:14 +00:00
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
$selected_bg_color,
|
|
|
|
darken($selected_bg_color,10%));
|
2014-07-19 07:59:10 +00:00
|
|
|
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-07-03 08:30:14 +00:00
|
|
|
&:selected {
|
2014-07-19 07:59:10 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
color: $selected_bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
@else { box-shadow: inset 0 1px transparentize(white,0.95); }
|
2014-07-03 08:30:14 +00:00
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
$base_color,
|
|
|
|
darken($base_color,10%));
|
|
|
|
&:backdrop {
|
|
|
|
@if $variant == 'light' { color: $selected_bg_color; }
|
2014-07-19 07:59:10 +00:00
|
|
|
@else { border-color: $backdrop_base_color; }
|
2014-07-03 08:30:14 +00:00
|
|
|
background-color: $backdrop_base_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@if $variant == 'light' { color: $backdrop_base_color; }
|
|
|
|
@else { border-color: $backdrop_base_color; }
|
|
|
|
background-image: none;
|
2014-07-19 07:59:10 +00:00
|
|
|
box-shadow: none;
|
2014-07-03 08:30:14 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*********
|
|
|
|
* Menus *
|
|
|
|
*********/
|
|
|
|
.menubar {
|
|
|
|
padding: 0px;
|
|
|
|
background-color: mix($fg_color,$bg_color,5%); //Uhm?
|
|
|
|
&: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;
|
|
|
|
color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
&: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;
|
|
|
|
//border: 1px solid $borders_color;
|
|
|
|
.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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************
|
|
|
|
* Popovers *
|
|
|
|
***************/
|
|
|
|
|
2014-06-18 11:25:02 +00:00
|
|
|
.popover {
|
2014-06-13 14:32:44 +00:00
|
|
|
margin: 10px;
|
|
|
|
padding: 2px;
|
|
|
|
border-color: $borders-color;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 5px;
|
|
|
|
//background-clip: border-box;
|
|
|
|
background-color: $bg_color;
|
|
|
|
|
|
|
|
box-shadow: 0 2px 3px transparentize(black, 0.5);
|
|
|
|
&:backdrop {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
& > .list,
|
|
|
|
& > .view,
|
2014-07-13 18:38:43 +00:00
|
|
|
& > .toolbar
|
|
|
|
&.osd > .toolbar {
|
|
|
|
border-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
.separator {
|
|
|
|
font-size: 80%;
|
|
|
|
font-weight: bold;
|
|
|
|
color: mix($fg_color, $bg_color, 20%);
|
|
|
|
text-shadow: none;
|
|
|
|
background-color: transparent;
|
|
|
|
icon-shadow: none;
|
|
|
|
border: 0;
|
|
|
|
}
|
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-07-13 18:38:43 +00:00
|
|
|
&.osd { // Also used for touch cut'n'paste overlays
|
2014-06-13 14:32:44 +00:00
|
|
|
// FIXME Doesn't work
|
|
|
|
background-image: none;
|
|
|
|
background-color: $osd_bg_color;
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
color: $osd_fg_color;
|
|
|
|
.button {
|
|
|
|
color: white;
|
|
|
|
text-shadow: none;
|
|
|
|
@include button(osd);
|
|
|
|
&:hover { @include button(osd-hover); };
|
|
|
|
&:active { @include button(osd-active); };
|
|
|
|
&:insensitive { @include button(osd-insensitive); };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//touch selection handlebars for the Popover.osd above
|
2014-07-13 17:34:59 +00:00
|
|
|
.entry.cursor-handle,
|
2014-06-13 14:32:44 +00:00
|
|
|
.cursor-handle {
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
2014-07-13 17:34:59 +00:00
|
|
|
box-shadow: none;
|
|
|
|
border-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
&.top { -gtk-icon-source: -gtk-icontheme('selection-start-symbolic'); }
|
|
|
|
&.bottom { -gtk-icon-source: -gtk-icontheme('selection-end-symbolic'); }
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
* 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;
|
|
|
|
background-color: $base_color;
|
|
|
|
-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;
|
|
|
|
transition: all 200ms ease-out;
|
|
|
|
&: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
|
|
|
|
// FIXME: doesn't work on dark var
|
|
|
|
background-color: mix($bg_color, $borders_color, 70%);
|
|
|
|
|
|
|
|
// this is the shading of the header behind the tabs
|
|
|
|
&.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-06-13 14:32:44 +00:00
|
|
|
GtkLabel { //tab text
|
|
|
|
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-07-08 08:17:02 +00:00
|
|
|
.prelight-page GtkLabel, GtkLabel.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-07-15 11:28:40 +00:00
|
|
|
&:backdrop { // FIXME, it's the same as GtkLabel:backdrop up here
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
|
|
|
|
}
|
2014-07-02 15:52:36 +00:00
|
|
|
}
|
2014-07-08 08:17:02 +00:00
|
|
|
.active-page GtkLabel, GtkLabel.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
|
|
|
|
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;
|
|
|
|
@include button(hover, $noedge: true);
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&:active {
|
2014-06-14 06:42:12 +00:00
|
|
|
@include button(active, $noedge: true);
|
|
|
|
}
|
|
|
|
&: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 {
|
|
|
|
background-clip: padding-box;
|
|
|
|
background-image: none;
|
|
|
|
border-style: solid;
|
|
|
|
-GtkRange-trough-border: 0;
|
|
|
|
-GtkScrollbar-has-backward-stepper: false;
|
|
|
|
-GtkScrollbar-has-forward-stepper: false;
|
|
|
|
-GtkRange-slider-width: 13;
|
|
|
|
-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;
|
|
|
|
.button {
|
|
|
|
border: none;
|
|
|
|
}
|
2014-06-18 07:52:29 +00:00
|
|
|
&.trough { @extend .scrollbars-junction; }
|
2014-06-13 14:32:44 +00:00
|
|
|
&.slider {
|
|
|
|
border-radius: 20px;
|
|
|
|
border: 3px solid transparent; //margin :/
|
|
|
|
background-color: mix($bg_color, $fg_color, 70%);
|
|
|
|
&:hover {
|
|
|
|
background-color: mix($bg_color, $fg_color, 50%);
|
|
|
|
}
|
|
|
|
&:prelight:active {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
&.fine-tune {
|
|
|
|
border-width: 5px;
|
|
|
|
&:prelight:active {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
|
|
|
}
|
2014-07-08 14:36:02 +00:00
|
|
|
&:backdrop, &:insensitive {
|
|
|
|
background-color: mix($bg_color, $fg_color, 90%);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-18 07:52:29 +00:00
|
|
|
.scrollbars-junction { // the small square between two scrollbars
|
2014-07-03 09:01:31 +00:00
|
|
|
border-color: transparent;
|
2014-06-18 07:52:29 +00:00
|
|
|
background-color: darken($bg_color, 5%);
|
|
|
|
&:backdrop { background-color: transparent; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-13 14:32:44 +00:00
|
|
|
/**********
|
|
|
|
* Switch *
|
|
|
|
**********/
|
|
|
|
|
|
|
|
GtkSwitch {
|
2014-07-08 16:24:28 +00:00
|
|
|
// FIXME: backdrop insensinsitive slider on the dark variant
|
2014-07-21 16:49:15 +00:00
|
|
|
-GtkSwitch-slider-width: 47px; // 57px is the right value to make it as tall
|
|
|
|
// as buttons, not doing that for now
|
2014-07-08 16:24:28 +00:00
|
|
|
font: bold condensed 9;
|
|
|
|
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
|
|
|
|
$widget_edge; // otherwise it gets
|
|
|
|
// clipped
|
2014-07-08 16:24:28 +00:00
|
|
|
&.trough {
|
|
|
|
// similar to the .scale
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 3px;
|
|
|
|
border-color: $borders_color;
|
|
|
|
background-color: mix($bg_color,$borders_color,60%);
|
|
|
|
text-shadow: 0 1px transparentize(black, 0.9);
|
|
|
|
&:active {
|
|
|
|
color: white;
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
box-shadow: $widget_edge;
|
|
|
|
text-shadow: 0 0 2px white;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $borders_color;
|
2014-07-08 16:24:28 +00:00
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
box-shadow: $widget_edge;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_fg_color;
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
background-color: $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-07-08 16:24:28 +00:00
|
|
|
color: $backdrop_bg_color;
|
|
|
|
border-color: $selected_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
background-color: $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;
|
|
|
|
background-color: $insensitive_bg_color;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
2014-07-22 08:29:01 +00:00
|
|
|
.list-row:selected & {
|
|
|
|
box-shadow: 0 0 0 1px $selected_fg_color;
|
|
|
|
&:backdrop { box-shadow: 0 0 0 1px $backdrop_base_color; }
|
|
|
|
}
|
|
|
|
&.slider,
|
|
|
|
.list-row:selected &.slider {
|
2014-07-08 16:24:28 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
@include button(normal, $noedge: true);
|
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
|
|
|
transparentize(white,0.85)),
|
|
|
|
inset 0 -2px transparentize($bg_color,0.4),
|
|
|
|
inset 0 -1px mix($bg_color,$borders_color,50%);
|
|
|
|
&:hover {
|
|
|
|
@include button(hover, $noedge: true);
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: inset 0 1px if($variant=='light', white,
|
|
|
|
transparentize(white,0.85)),
|
|
|
|
inset 0 -2px transparentize($bg_color,0.4),
|
|
|
|
inset 0 -1px mix($bg_color,$borders_color,50%);
|
2014-07-08 16:24:28 +00:00
|
|
|
}
|
|
|
|
&:active { border: 1px solid $selected_borders_color; }
|
|
|
|
&:insensitive { @include button(insensitive, $noedge: true); }
|
|
|
|
&:backdrop { @include button(backdrop);
|
|
|
|
&:active{ border-color: $selected_bg_color; }
|
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
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-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
|
|
|
|
|
|
|
|
$asset_suffix: if($variant=='dark', '-dark', '');
|
|
|
|
@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'),
|
|
|
|
(':selected', '-unchecked-active'),
|
|
|
|
(':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'),
|
|
|
|
(':active', '-checked'),
|
|
|
|
(':active:insensitive','-checked-insensitive'),
|
|
|
|
(':hover:active', '-checked-hover'),
|
|
|
|
(':active:selected', '-checked-active'),
|
|
|
|
(':backdrop:active', '-checked-backdrop'),
|
|
|
|
(':backdrop:active:insensitive', '-checked-backdrop-insensitive') {
|
|
|
|
.#{$w}#{$s} {
|
|
|
|
background-image: -gtk-scaled(url("assets/#{$a}#{$as}#{$asset_suffix}.png"),
|
|
|
|
url("assets/#{$a}#{$as}#{$asset_suffix}@2.png"));
|
|
|
|
background-repeat: no-repeat;
|
2014-07-21 16:49:15 +00:00
|
|
|
background-position: center center;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//menu
|
|
|
|
.menuitem.#{$w} {
|
|
|
|
color: transparentize($fg_color,0.9);
|
|
|
|
background-image: none;
|
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
|
|
|
|
&:hover { color: transparentize($selected_fg_color,0.9); }
|
|
|
|
&:active {
|
|
|
|
color: $fg_color;
|
|
|
|
&:hover { color: $selected_fg_color; }
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
background-image: none;
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; };
|
|
|
|
}
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
color: transparentize($insensitive_fg_color,0.9);
|
|
|
|
&:backdrop { color: transparent; }
|
|
|
|
}
|
|
|
|
&:inconsistent {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic');
|
|
|
|
}
|
2014-07-19 08:50:01 +00:00
|
|
|
&:backdrop, &:backdrop:hover {
|
2014-07-02 15:27:12 +00:00
|
|
|
color: transparentize($backdrop_fg_color,0.9);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
2014-06-17 13:41:59 +00:00
|
|
|
//treeview & selection mode icon view
|
2014-06-20 15:25:19 +00:00
|
|
|
.view.#{$w} {
|
|
|
|
// FIXME .cell.check/.radio doesn't needs to be blue in bright var
|
2014-06-13 14:32:44 +00:00
|
|
|
color: transparentize($fg_color,0.9);
|
|
|
|
background-image: none;
|
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
|
|
|
|
&:active {
|
|
|
|
color: $fg_color;
|
|
|
|
&:insensitive {
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_insensitive_color; }
|
|
|
|
}
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
color: transparentize($insensitive_fg_color,0.9);
|
|
|
|
&:backdrop { color: transparent; }
|
|
|
|
}
|
|
|
|
&:inconsistent {
|
|
|
|
-gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic');
|
|
|
|
}
|
2014-06-24 08:25:49 +00:00
|
|
|
&:selected, &:selected:focus {
|
|
|
|
// :selected:focus not to get overridden by .view style
|
2014-06-13 14:32:44 +00:00
|
|
|
color: transparentize($selected_fg_color,0.9);
|
|
|
|
&:active {
|
|
|
|
color: $selected_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_base_color; }
|
|
|
|
}
|
2014-06-24 08:25:49 +00:00
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
color: transparentize($backdrop_fg_color,0.9);
|
|
|
|
&:selected { color: transparentize($backdrop_base_color,0.9); }
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//popover
|
2014-06-18 11:25:02 +00:00
|
|
|
.popover .button.#{$w} {
|
2014-06-13 14:32:44 +00:00
|
|
|
&:hover {
|
|
|
|
color: transparentize($fg_color,0.9);
|
|
|
|
&:active {
|
|
|
|
color: $fg_color;
|
|
|
|
&:selected { color: $selected_fg_color; }
|
|
|
|
&:backdrop { color: $backdrop_fg_color; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-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-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-06-13 14:32:44 +00:00
|
|
|
margin: 10px;
|
2014-06-14 12:49:20 +00:00
|
|
|
&.fine-tune {
|
|
|
|
margin: 8px;
|
2014-06-14 13:31:05 +00:00
|
|
|
outline-offset: -7px;
|
|
|
|
outline-radius: 6px;
|
2014-06-14 12:49:20 +00:00
|
|
|
&.trough { border-radius: 4px; }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&.slider {
|
|
|
|
//FIXME: better gradient on the slider and hover state
|
2014-06-14 08:19:15 +00:00
|
|
|
@include button(normal, $noedge: true);
|
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,
|
|
|
|
inset 0 #{-1px} mix($bg_color,$borders_color,50%);
|
2014-06-14 08:19:15 +00:00
|
|
|
&:hover {
|
|
|
|
@include button(hover, $noedge: true);
|
|
|
|
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,
|
|
|
|
transparentize(white,0.85)),
|
|
|
|
inset 0 #{-2px} if($variant=='light', white,
|
|
|
|
transparentize(white,0.86)),
|
|
|
|
inset 0 #{-1px} mix($bg_color,$borders_color,70%);
|
|
|
|
}
|
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 & {
|
|
|
|
background-image: none;
|
|
|
|
background-color: opacify($osd_borders_color,1);
|
|
|
|
border-width: 1px;
|
|
|
|
box-shadow: none;
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
&:hover { border-color: lighten($osd_borders_color,10%); }
|
|
|
|
&:active { border-color: lighten($osd_borders_color,30%); }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
&.trough {
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 3px;
|
|
|
|
border-color: $borders_color;
|
|
|
|
background-color: mix($bg_color,$borders_color,60%);
|
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9),
|
|
|
|
$widget_edge;
|
|
|
|
&.highlight {
|
|
|
|
border-color: $selected_borders_color;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
box-shadow: $widget_edge;
|
|
|
|
&: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:insensitive, &.hilight:insensitive {
|
|
|
|
border-color: $insensitive_borders_color;
|
|
|
|
background-color: $insensitive_bg_color;
|
|
|
|
box-shadow: $widget_edge;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
border-color: $backdrop_borders_color;
|
|
|
|
background-color: mix($backdrop_bg_color,$borders_color);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&:backdrop:insensitive, .hilight: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
|
|
|
}
|
2014-07-07 11:26:09 +00:00
|
|
|
//OSD troughs
|
|
|
|
.osd & {
|
|
|
|
background-image: none;
|
|
|
|
border-width: 0;
|
|
|
|
//background-color: $osd_borders_color;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-19 08:50:01 +00:00
|
|
|
|
2014-06-14 12:49:20 +00:00
|
|
|
$asset_suffix: if($variant=='dark', '-dark', '');
|
|
|
|
@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
|
|
|
|
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 {
|
|
|
|
margin: 14px 10px 10px;
|
|
|
|
&.fine-tune { margin: 12px 8px 8px; }
|
|
|
|
}
|
|
|
|
%scale_marks_below_horz {
|
|
|
|
margin: 10px 10px 14px;
|
|
|
|
&.fine-tune { margin: 8px 8px 12px; }
|
|
|
|
}
|
|
|
|
%scale_marks_above_vert {
|
|
|
|
margin: 10px 10px 10px 14px;
|
|
|
|
&.fine-tune { margin: 8px 8px 8px 12px; }
|
|
|
|
}
|
|
|
|
%scale_marks_below_vert {
|
|
|
|
margin: 10px 14px 10px 10px;
|
|
|
|
&.fine-tune { margin: 8px 12px 8px 8px; }
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*****************
|
|
|
|
* Progress bars *
|
|
|
|
*****************/
|
|
|
|
|
|
|
|
//FIXME it's a wip ok?
|
|
|
|
|
|
|
|
GtkProgressBar {
|
|
|
|
padding: 0;
|
|
|
|
font-size: 83%;
|
|
|
|
color: transparentize($fg_color, 0.6);
|
2014-07-18 21:30:16 +00:00
|
|
|
box-shadow: inset 1px 1px transparentize(black, 0.9), // needs to be set
|
|
|
|
$widget_edge; // here ot it gets
|
|
|
|
// clipped
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_insensitive_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// moving bit
|
|
|
|
.progressbar {
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
2014-07-19 12:03:28 +00:00
|
|
|
border-radius: 1.5px;
|
2014-06-13 14:32:44 +00:00
|
|
|
border-color: $selected_borders_color;
|
|
|
|
background-color: $selected_bg_color;
|
2014-07-19 13:42:17 +00:00
|
|
|
background-image: linear-gradient(to bottom, $selected_bg_color 2px,
|
|
|
|
lighten($selected_bg_color,6%));
|
2014-07-19 12:03:28 +00:00
|
|
|
$_shadow: if($variant=='light', transparentize(black,0.75),
|
2014-07-19 07:59:10 +00:00
|
|
|
transparentize(black,0.9));
|
|
|
|
box-shadow: 1px 0 $_shadow, -1px 0 $_shadow;
|
2014-07-19 12:03:28 +00:00
|
|
|
&.left {
|
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
box-shadow: 1px 0 $_shadow;
|
|
|
|
}
|
|
|
|
&.right {
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
box-shadow: -1px 0 $_shadow;
|
|
|
|
}
|
|
|
|
&.left.right {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-07-19 07:59:10 +00:00
|
|
|
&.vertical {
|
2014-07-19 13:42:17 +00:00
|
|
|
background-image: linear-gradient(to right, $selected_bg_color 2px,
|
|
|
|
lighten($selected_bg_color,7%));
|
2014-07-19 07:59:10 +00:00
|
|
|
box-shadow: 0 1px $_shadow;
|
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-07-18 21:30:16 +00:00
|
|
|
// box-shadow: inset 1px 1px transparentize($borders_edge,0.8);
|
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 {
|
|
|
|
border-width: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
-GtkProgressBar-xspacing: 0;
|
|
|
|
-GtkProgressBar-yspacing: 2px;
|
|
|
|
-GtkProgressBar-min-horizontal-bar-height: 2px; //FIXME still too tall
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// background
|
|
|
|
GtkProgressBar.trough {
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 3px;
|
|
|
|
border-color: $borders_color;
|
|
|
|
background-color: mix($borders_color,$bg_color, 35%);
|
2014-07-18 21:30:16 +00:00
|
|
|
// box-shadow: inset 1px 1px transparentize(black, 0.9),
|
|
|
|
// $widget_edge;
|
2014-06-13 14:32:44 +00:00
|
|
|
&:backdrop{
|
|
|
|
border-color: $backdrop_borders_color;
|
2014-07-19 08:50:01 +00:00
|
|
|
background-color: $backdrop_dark_fill;
|
2014-06-13 14:32:44 +00:00
|
|
|
box-shadow: 0 1px transparentize(white,1);
|
|
|
|
}
|
|
|
|
&.osd {
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
border-width: 0;
|
|
|
|
//FIXME: there is a margin on top
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*************
|
|
|
|
* Level Bar *
|
|
|
|
*************/
|
|
|
|
|
|
|
|
GtkLevelBar {
|
|
|
|
-GtkLevelBar-min-block-width: 34;
|
|
|
|
-GtkLevelBar-min-block-height: 3;
|
2014-07-19 07:02:07 +00:00
|
|
|
box-shadow: $widget_edge; // needs to be set here to avoid clipping
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GtkLevelBar.vertical {
|
|
|
|
-GtkLevelBar-min-block-width: 3;
|
|
|
|
-GtkLevelBar-min-block-height: 34;
|
|
|
|
}
|
|
|
|
|
|
|
|
.level-bar {
|
|
|
|
&.trough {
|
|
|
|
// FIXME: outset not working
|
|
|
|
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
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: if($variant=='light', darken($selected_bg_color,10%),
|
|
|
|
darken($selected_bg_color,5%));
|
|
|
|
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); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// catch all extend :)
|
|
|
|
|
|
|
|
%selected_items {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
2014-07-03 08:30:14 +00:00
|
|
|
@if $variant == 'light' {
|
|
|
|
outline-color: transparentize($selected_fg_color, 0.7);
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@if $variant == 'light' { color: $backdrop_base_color; }
|
|
|
|
@else { color: $backdrop_fg_color; };
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**********
|
|
|
|
* 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 {
|
|
|
|
.frame { border-radius: 2px; }
|
|
|
|
GtkViewport.frame { // avoid double borders when viewport inside scrolled window
|
|
|
|
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
|
|
|
|
GtkFileChooserButton &,
|
|
|
|
GtkFontButton & {
|
|
|
|
// always disable separators
|
|
|
|
-GtkWidget-wide-separators: true;
|
|
|
|
-GtkWidget-horizontal-separator: 0;
|
|
|
|
-GtkWidget-vertical-separator: 0;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********
|
|
|
|
* Lists *
|
|
|
|
*********/
|
|
|
|
|
2014-06-16 17:57:56 +00:00
|
|
|
.list, .list-row {
|
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;
|
|
|
|
}
|
|
|
|
|
2014-07-14 16:29:08 +00:00
|
|
|
.list-row.button {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
background-color: transparentize($base_color,1); // for the transition
|
|
|
|
border-style: none; // I need no borders here
|
|
|
|
border-radius: 0; // and no rounded corners
|
|
|
|
box-shadow: none; // and no box-shadow
|
|
|
|
&:hover {
|
2014-07-15 07:11:56 +00:00
|
|
|
background-color: mix(black, $base_color, 5%);
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
|
|
|
&:active {
|
2014-07-22 08:27:49 +00:00
|
|
|
box-shadow: inset 0 2px 2px -2px transparentize(black,0.8);
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
|
|
|
&:selected {
|
|
|
|
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black,0.5); }
|
2014-07-15 08:24:08 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: mix(black, $selected_bg_color, 10%);
|
|
|
|
}
|
2014-07-14 16:29:08 +00:00
|
|
|
}
|
|
|
|
&:backdrop:hover {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.list-row:selected {
|
|
|
|
//FIXME %selected_items needs to be a mixin
|
|
|
|
color: $selected_fg_color;
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
&:backdrop {
|
|
|
|
color: $backdrop_base_color;
|
|
|
|
}
|
2014-07-13 13:01:11 +00:00
|
|
|
}
|
|
|
|
|
2014-07-14 16:29:08 +00:00
|
|
|
/*.list-row.button:selected,
|
2014-06-16 17:57:56 +00:00
|
|
|
.list-row:selected {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
&:backdrop { color: $backdrop_base_color;}
|
2014-07-14 16:29:08 +00:00
|
|
|
}*/
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
/*********************
|
|
|
|
* App Notifications *
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
.app-notification {
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
|
|
|
border-radius: 0 0 6px 6px;
|
|
|
|
background-image: linear-gradient(to bottom, mix(black, $bg_color, 6%) 5%,
|
|
|
|
mix(black, $bg_color, 4%));
|
|
|
|
// FIXME no space for outer shadow : box-shadow: 0 1px 1px rgba(0,0,0,.5);
|
|
|
|
padding: 0 4px;
|
|
|
|
.button { padding: 6px; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/*************
|
|
|
|
* Expanders *
|
|
|
|
*************/
|
|
|
|
|
|
|
|
GtkExpander {
|
|
|
|
-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
|
|
|
|
&:active { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Calendar *
|
|
|
|
***********/
|
2014-07-19 08:50:01 +00:00
|
|
|
GtkCalendar {
|
|
|
|
border: 1px solid $borders_color;
|
2014-07-01 12:22:54 +00:00
|
|
|
&.button {
|
2014-07-19 08:50:01 +00:00
|
|
|
@extend %undecorated_button;
|
2014-07-01 12:22:54 +00:00
|
|
|
padding: 0 4px; //FIXME no effect on these pseudobuttons
|
2014-07-19 08:50:01 +00:00
|
|
|
color: mix($fg_color, $base_color, 40%); //we need a dimmed stuff var
|
2014-07-01 12:22:54 +00:00
|
|
|
&:hover {
|
2014-07-19 08:50:01 +00:00
|
|
|
@extend %undecorated_button;
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
&:backdrop, &:backdrop:hover {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
color: mix($backdrop_fg_color, $backdrop_base_color, 50%);
|
|
|
|
}
|
2014-07-01 12:22:54 +00:00
|
|
|
}
|
|
|
|
&.view { border-radius: 2px; }
|
|
|
|
&.header {
|
|
|
|
background: linear-gradient(to bottom,
|
|
|
|
lighten($bg_color,2%),
|
|
|
|
darken($bg_color,2%));
|
|
|
|
border-bottom-color: mix($borders_color,$bg_color,50%);
|
2014-07-19 08:50:01 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-image: linear-gradient(to bottom, $backdrop_bg_color);
|
2014-07-02 13:45:43 +00:00
|
|
|
border-bottom-color: mix($backdrop_borders_color,$backdrop_bg_color,50%);
|
|
|
|
}
|
2014-07-01 12:22:54 +00:00
|
|
|
}
|
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
|
2014-06-13 14:32:44 +00:00
|
|
|
-GtkDialog-button-spacing: 0;
|
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;
|
|
|
|
@include button(normal, $noedge: true);
|
2014-06-13 14:32:44 +00:00
|
|
|
@extend %middle_button;
|
2014-07-05 14:30:43 +00:00
|
|
|
&:hover {
|
|
|
|
@include button(hover, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include button(active, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(insensitive, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button(backdrop, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:backdrop:insensitive {
|
|
|
|
@include button(backdrop-insensitive, $noedge: true);
|
|
|
|
@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} {
|
|
|
|
@include button(normal, $b_color, white, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
&:hover {
|
|
|
|
@include button(hover, $b_color, white, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include button(active, $b_color, white, $noedge: true);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
@include button(backdrop, $b_color, white);
|
|
|
|
@extend %middle_button;
|
|
|
|
&:insensitive {
|
|
|
|
@include button(backdrop-insensitive);
|
|
|
|
@extend %middle_button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:insensitive {
|
|
|
|
@include button(insensitive);
|
|
|
|
@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 {
|
|
|
|
border-right-style: none;
|
|
|
|
border-bottom-style: none;
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
2014-07-05 14:30:43 +00:00
|
|
|
%last_button { border-bottom-right-radius: 7px; }
|
|
|
|
%first_button {
|
|
|
|
border-left-style: none;
|
|
|
|
border-bottom-left-radius: 7px;
|
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 *
|
|
|
|
***********/
|
|
|
|
|
|
|
|
.sidebar,
|
|
|
|
.sidebar .view {
|
|
|
|
border: none;
|
|
|
|
$_sidebar_bg: lighten($bg_color,5%);
|
|
|
|
background-color: $_sidebar_bg;
|
|
|
|
.scrollbar {
|
|
|
|
&.trough {
|
|
|
|
background-color: darken($bg_color,10%);
|
|
|
|
border-radius: 6px;
|
|
|
|
border-width: 2px;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
&.slider {
|
|
|
|
background-color: $_sidebar_bg;
|
|
|
|
&:hover { background-color: lighten($bg_color, 10%); }
|
|
|
|
}
|
|
|
|
}
|
2014-06-14 07:00:21 +00:00
|
|
|
&:backdrop {
|
|
|
|
background-color: lighten($backdrop_bg_color,5%);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
&:selected {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
2014-06-14 07:00:21 +00:00
|
|
|
.separator {
|
|
|
|
color: mix($_sidebar_bg,$borders_color,70%);
|
2014-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
GtkPaned {
|
|
|
|
// This is actually the invisible area of the paned separator, not a margin...
|
2014-06-16 15:12:03 +00:00
|
|
|
margin: 0 8px 8px 0; //drag area of the separator
|
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-06-13 14:32:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.pane-separator {
|
|
|
|
//FIXME abusing a background-image to get rid of the handle decoration
|
|
|
|
//I'd like something better...
|
|
|
|
background-image: linear-gradient(to bottom, $borders_color);
|
|
|
|
&:backdrop {
|
|
|
|
background-image: linear-gradient(to bottom, $backdrop_borders_color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************
|
|
|
|
* GtkInfoBar *
|
|
|
|
**************/
|
|
|
|
GtkInfoBar {
|
|
|
|
border-width: 0;
|
|
|
|
border-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info,
|
|
|
|
.question,
|
|
|
|
.warning,
|
|
|
|
.error {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
text-shadow: 0 1px darken($selected_bg_color, 10%);
|
|
|
|
border-color: darken($selected_bg_color, 10%);
|
|
|
|
.button {
|
|
|
|
@include button(normal, $selected_bg_color, $selected_fg_color, noedge);
|
|
|
|
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color, noedge); }
|
|
|
|
&:active { @include button(active, $selected_bg_color, $selected_fg_color, noedge); }
|
|
|
|
&:insensitive { @include button(insensitive, $selected_bg_color, $selected_fg_color, noedge); }
|
|
|
|
&:backdrop { @include button(backdrop, $selected_bg_color, $selected_fg_color, noedge); }
|
|
|
|
&:backdrop:insensitive { @include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color, noedge); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/************
|
|
|
|
* Tooltips *
|
|
|
|
************/
|
|
|
|
|
|
|
|
.tooltip {
|
|
|
|
color: white;
|
|
|
|
padding: 4px; /* not working */
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: transparentize(black,0.2); //FIXME proper color
|
|
|
|
text-shadow: 0 1px black;
|
|
|
|
// border: 2px solid $borders_color; gnome shell style?
|
|
|
|
}
|
|
|
|
|
|
|
|
.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-07-18 21:48:33 +00:00
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
@if $variant == light {
|
|
|
|
border-color: transparentize(black,0.7);
|
|
|
|
box-shadow: inset 0 1px 1px transparentize(black, 0.8);
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
border-color: $borders_color;
|
|
|
|
box-shadow: inset 0 1px 1px transparentize(black, 0.6);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
&.color-light {
|
|
|
|
&:hover {
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
transparentize(white, 1) 40%,
|
|
|
|
transparentize(white, 0.6));
|
|
|
|
&:backdrop { background-image: none; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.color-dark {
|
|
|
|
&:hover {
|
|
|
|
background-image: linear-gradient(to bottom,
|
|
|
|
transparentize(white, 1) 40%,
|
|
|
|
transparentize(white, 0.8));
|
|
|
|
&:backdrop { background-image: none; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-18 21:48:33 +00:00
|
|
|
&:hover {
|
|
|
|
border-color: if($variant=='light', transparentize(black, 0.5),
|
|
|
|
$backdrop_borders_color);
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
2014-07-18 21:48:33 +00:00
|
|
|
&:backdrop {
|
|
|
|
border-color: if($variant=='light', transparentize(black,0.8),
|
|
|
|
$backdrop_borders_color);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2014-06-13 14:32:44 +00:00
|
|
|
|
|
|
|
&.top {
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
}
|
|
|
|
&.bottom {
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
}
|
|
|
|
&.left, &:first-child {
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
}
|
|
|
|
&.right, &:last-child {
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
}
|
|
|
|
&:only-child {
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
&.color-active-badge {
|
|
|
|
border-width: 2px;
|
|
|
|
&:hover { background-image: none; }
|
|
|
|
&.color-light, &.color-light:hover {
|
|
|
|
color: transparentize(black,0.7);
|
|
|
|
border-color: transparentize(black,0.7);
|
|
|
|
}
|
|
|
|
&.color-dark, &.color-dark:hover {
|
|
|
|
color: transparentize(white,0.5);
|
|
|
|
border-color: transparentize(white,0.5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
GtkColorChooserWidget #add-color-button {
|
|
|
|
border-color: mix($borders_color,$bg_color,50%);
|
|
|
|
background-color: mix($borders_color,$bg_color,50%);
|
|
|
|
color: $bg_color;
|
|
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
|
|
border-color: $borders_color;
|
|
|
|
background-color: $borders_color;
|
|
|
|
}
|
|
|
|
&:backdrop {
|
|
|
|
border-color: mix($backdrop_borders_color,$backdrop_bg_color,50%);
|
|
|
|
background-color: mix($backdrop_borders_color,$backdrop_bg_color,50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-24 08:25:49 +00:00
|
|
|
|
2014-07-08 16:24:28 +00:00
|
|
|
/********
|
|
|
|
* Misc *
|
|
|
|
********/
|
|
|
|
|
2014-07-08 19:33:48 +00:00
|
|
|
.scale-popup .button { // +/- buttons on GtkVolumeButton popup
|
2014-07-08 16:24:28 +00:00
|
|
|
padding: 6px;
|
|
|
|
&:hover {
|
|
|
|
@extend %undecorated_button;
|
|
|
|
background-color: transparentize($fg_color,0.9);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
&:backdrop,
|
|
|
|
&:backdrop:hover,
|
|
|
|
&:backdrop:insensitive { @extend %undecorated_button; }
|
|
|
|
}
|
|
|
|
|
2014-07-08 19:33:48 +00:00
|
|
|
GtkVolumeButton.button { padding: 8px; }
|
|
|
|
|
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
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
&.csd {
|
|
|
|
&.popup {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Window Close button
|
2014-07-21 13:24:08 +00:00
|
|
|
.header-bar .button.titlebutton,
|
|
|
|
.titlebar .button.titlebutton {
|
2014-06-13 14:32:44 +00:00
|
|
|
padding: 8px;
|
|
|
|
border-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
transition-property: border, box-shadow, color;
|
|
|
|
box-shadow: inset 0 1px transparentize(white,1),
|
|
|
|
0 1px transparentize($borders_edge,1);
|
|
|
|
&:hover { @include button(normal); }
|
|
|
|
&:active { @include button(active); }
|
|
|
|
&:backdrop {
|
|
|
|
@include button(backdrop);
|
|
|
|
border-color: transparent;
|
|
|
|
transition-property: border, box-shadow, color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|