Initial commit
This commit is contained in:
27
gtk-3.20/widgets/_action-bars.scss
Normal file
27
gtk-3.20/widgets/_action-bars.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
/***************
|
||||
* Action bars *
|
||||
***************/
|
||||
|
||||
.action-bar {
|
||||
background-color: darken($bg_color, 10%);
|
||||
border: solid $borders_color;
|
||||
border-width: 1px 0 0 0;
|
||||
color: $fg_color;
|
||||
box-shadow: none;
|
||||
|
||||
&:backdrop {
|
||||
background-color: darken($backdrop_bg_color, 10%);
|
||||
box-shadow: none;
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-radius: 6px 6px 0px 0px;
|
||||
border-width: 1px 1px 0px 1px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-radius: 0 0 6px 6px;
|
||||
border-width: 0px 1px 1px 1px;
|
||||
}
|
||||
}
|
23
gtk-3.20/widgets/_app-notifications.scss
Normal file
23
gtk-3.20/widgets/_app-notifications.scss
Normal file
@@ -0,0 +1,23 @@
|
||||
/*********************
|
||||
* App Notifications *
|
||||
*********************/
|
||||
.app-notification,
|
||||
.app-notification.frame {
|
||||
@extend %osd;
|
||||
|
||||
padding: 10px;
|
||||
border-radius: 0 0 5px 5px;
|
||||
background-color: $osd_bg_color;
|
||||
background-image: linear-gradient(to bottom, transparentize(black, 0.8),
|
||||
transparent 2px);
|
||||
background-clip: padding-box;
|
||||
|
||||
&:backdrop {
|
||||
background-image: none;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
button { @extend %osd_button; }
|
||||
|
||||
border { border: none; }
|
||||
}
|
178
gtk-3.20/widgets/_base-states.scss
Normal file
178
gtk-3.20/widgets/_base-states.scss
Normal file
@@ -0,0 +1,178 @@
|
||||
/***************
|
||||
* Base States *
|
||||
***************/
|
||||
.background {
|
||||
color: $fg_color;
|
||||
background-color: $bg_color;
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_fg_color;
|
||||
background-color: $backdrop_bg_color;
|
||||
text-shadow: none;
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
|
||||
*:disabled { -gtk-icon-effect: dim; }
|
||||
|
||||
.gtkstyle-fallback {
|
||||
color: $fg_color;
|
||||
background-color: $bg_color;
|
||||
|
||||
&:hover {
|
||||
color: $fg_color;
|
||||
background-color: lighten($bg_color, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: $fg_color;
|
||||
background-color: darken($bg_color, 10%);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $insensitive_fg_color;
|
||||
background-color: $insensitive_bg_color;
|
||||
}
|
||||
|
||||
&:selected {
|
||||
color: $selected_fg_color;
|
||||
background-color: $selected_bg_color;
|
||||
}
|
||||
}
|
||||
|
||||
.view,
|
||||
%view {
|
||||
color: $text_color;
|
||||
background-color: $base_color;
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_text_color;
|
||||
background-color: $backdrop_base_color;
|
||||
}
|
||||
|
||||
&:selected {
|
||||
&:focus, & {
|
||||
@extend %selected_items;
|
||||
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.view,
|
||||
textview {
|
||||
text {
|
||||
@extend %view;
|
||||
|
||||
selection { &:focus, & { @extend %selected_items; }}
|
||||
}
|
||||
}
|
||||
|
||||
textview border { background-color: mix($bg_color, $base_color, 50%); }
|
||||
|
||||
iconview { @extend .view; }
|
||||
|
||||
.rubberband,
|
||||
rubberband {
|
||||
border: 1px solid darken($selected_bg_color, 10%);
|
||||
background-color: transparentize(darken($selected_bg_color, 10%), 0.3);
|
||||
}
|
||||
|
||||
flowbox {
|
||||
rubberband { @extend rubberband; }
|
||||
|
||||
flowboxchild {
|
||||
padding: 3px;
|
||||
border-radius: 3px;
|
||||
|
||||
&:selected {
|
||||
@extend %selected_items;
|
||||
|
||||
outline-offset: -2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
caret-color: currentColor; // this shouldn't be needed.
|
||||
|
||||
&.separator {
|
||||
@extend .dim-label;
|
||||
|
||||
color: $fg_color;
|
||||
|
||||
&:backdrop { color: $backdrop_fg_color; }
|
||||
}
|
||||
|
||||
row:selected &,
|
||||
&:selected { @extend %nobg_selected_items; }
|
||||
|
||||
selection {
|
||||
background-color: $selected_bg_color;
|
||||
color: $selected_fg_color;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $insensitive_fg_color;
|
||||
|
||||
selection { @extend %selected_items:disabled; }
|
||||
|
||||
&:backdrop { color: $backdrop_insensitive_color; }
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_fg_color;
|
||||
|
||||
selection { @extend %selected_items:backdrop; }
|
||||
}
|
||||
}
|
||||
|
||||
.dim-label {
|
||||
opacity: 0.55;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
assistant {
|
||||
.sidebar {
|
||||
background-color: $base_color;
|
||||
border-top: 1px solid $borders_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_base_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
||||
|
||||
&.csd .sidebar { border-top-style: none; }
|
||||
|
||||
.sidebar label { padding: 6px 12px; }
|
||||
|
||||
.sidebar label.highlight { background-color: mix($bg_color, $fg_color, 80%); }
|
||||
}
|
||||
|
||||
%osd, .osd {
|
||||
color: $osd_fg_color;
|
||||
border: none;
|
||||
background-color: $osd_bg_color;
|
||||
background-clip: padding-box;
|
||||
outline-color: transparentize($osd_fg_color, 0.7);
|
||||
text-shadow: 0 1px black;
|
||||
-gtk-icon-shadow: 0 1px black;
|
||||
|
||||
&:backdrop {
|
||||
text-shadow: none;
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
*:selected {
|
||||
background: $selected_bg_color;
|
||||
color: $selected_fg_color;
|
||||
}
|
554
gtk-3.20/widgets/_buttons.scss
Normal file
554
gtk-3.20/widgets/_buttons.scss
Normal file
@@ -0,0 +1,554 @@
|
||||
/***********
|
||||
* Buttons *
|
||||
***********/
|
||||
// stuff for .needs-attention
|
||||
$_dot_color: if($variant=='light', $selected_bg_color,
|
||||
lighten($selected_bg_color,15%));
|
||||
@keyframes needs_attention {
|
||||
from {
|
||||
background-image: -gtk-gradient(radial,
|
||||
center center, 0,
|
||||
center center, 0.01,
|
||||
to($_dot_color),
|
||||
to(transparent));
|
||||
}
|
||||
|
||||
to {
|
||||
background-image: -gtk-gradient(radial,
|
||||
center center, 0,
|
||||
center center, 0.5,
|
||||
to($selected_bg_color),
|
||||
to(transparent));
|
||||
}
|
||||
}
|
||||
|
||||
%button,
|
||||
button {
|
||||
@at-root %button_basic, & {
|
||||
|
||||
min-height: 24px;
|
||||
min-width: 16px;
|
||||
padding: 4px 8px;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
transition: $button_transition;
|
||||
|
||||
@include button(normal);
|
||||
|
||||
&.flat {
|
||||
@include button(undecorated);
|
||||
// to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
|
||||
// to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
|
||||
// it won't fade out when the pointer leave the button allocation area. To make the transition more evident
|
||||
// in this case the duration is increased.
|
||||
transition: none;
|
||||
|
||||
&:hover {
|
||||
transition: $button_transition;
|
||||
transition-duration: 500ms;
|
||||
|
||||
&:active { transition: $button_transition; }
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@include button(hover,$selected_bg_color,$selected_fg_color);
|
||||
-gtk-icon-effect: highlight;
|
||||
}
|
||||
|
||||
&:active,
|
||||
&:checked {
|
||||
@include button(active,darken($selected_bg_color,5%),$selected_fg_color);
|
||||
|
||||
transition-duration: 50ms;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
&.flat, & {
|
||||
@include button(backdrop);
|
||||
|
||||
transition: $backdrop_transition;
|
||||
-gtk-icon-effect: none;
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(backdrop-active); }
|
||||
|
||||
&:disabled {
|
||||
@include button(backdrop-insensitive);
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(backdrop-insensitive-active); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.flat { &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }}
|
||||
|
||||
&:disabled {
|
||||
@include button(insensitive);
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(insensitive-active); }
|
||||
}
|
||||
|
||||
&.image-button {
|
||||
min-width: 24px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
&.text-button {
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
&.text-button.image-button {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
|
||||
label {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&:drop(active) {
|
||||
color: $drop_target_color;
|
||||
border-color: $drop_target_color;
|
||||
box-shadow: inset 0 0 0 1px $drop_target_color;
|
||||
}
|
||||
}
|
||||
|
||||
@at-root %button_selected, & {
|
||||
row:selected & {
|
||||
@if $variant == 'light' { border-color: $selected_borders_color; }
|
||||
|
||||
&.flat:not(:active):not(:checked):not(:hover):not(disabled) {
|
||||
color: $selected_fg_color;
|
||||
border-color: transparent;
|
||||
|
||||
&:backdrop { color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// big standalone buttons like in Documents pager
|
||||
&.osd {
|
||||
min-width: 24px;
|
||||
min-height: 32px;
|
||||
|
||||
&.image-button { min-width: 32px; }
|
||||
|
||||
color: $osd_fg_color;
|
||||
border-radius: 5px;
|
||||
outline-color: transparentize($osd_fg_color, 0.7); //FIXME: define a color var?
|
||||
|
||||
@include button(osd);
|
||||
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
|
||||
&:hover {
|
||||
@include button(osd-hover);
|
||||
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:active,
|
||||
&:checked {
|
||||
@include button(osd-active);
|
||||
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
&:backdrop, & {
|
||||
@include button(osd-insensitive);
|
||||
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
@include button(osd-backdrop);
|
||||
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
//overlay / OSD style
|
||||
@at-root %osd_button,
|
||||
.osd & {
|
||||
@include button(osd);
|
||||
|
||||
&:hover { @include button(osd-hover); }
|
||||
|
||||
&:active,
|
||||
&:checked { &:backdrop, & { @include button(osd-active); }}
|
||||
|
||||
&:disabled { &:backdrop, & { @include button(osd-insensitive); }}
|
||||
|
||||
&:backdrop { @include button(osd-backdrop); }
|
||||
|
||||
&.flat {
|
||||
@include button(undecorated);
|
||||
|
||||
box-shadow: none; //FIXME respect no edge on the button mixin
|
||||
text-shadow: 0 1px black;
|
||||
-gtk-icon-shadow: 0 1px black;
|
||||
|
||||
&:hover { @include button(osd-hover); }
|
||||
|
||||
&:disabled {
|
||||
@include button(osd-insensitive);
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:backdrop { @include button(undecorated); }
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(osd-active); }
|
||||
}
|
||||
}
|
||||
|
||||
// Suggested and Destructive Action buttons
|
||||
@each $b_type, $b_color in (suggested-action, $purple),
|
||||
(destructive-action, $destructive_color) {
|
||||
&.#{$b_type} {
|
||||
@include button(normal, $b_color, white);
|
||||
|
||||
&.flat {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $b_color; //FIXME: does it work on the dark variant?
|
||||
}
|
||||
|
||||
&:hover { @include button(hover, $b_color, white); }
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(active, $b_color, white); }
|
||||
|
||||
&:backdrop,
|
||||
&.flat:backdrop {
|
||||
@include button(backdrop, $b_color, white);
|
||||
label { color: transparentize(white, 0.5);}
|
||||
&:active,
|
||||
&:checked { @include button(backdrop-active, $b_color, white); }
|
||||
|
||||
&:disabled {
|
||||
@include button(backdrop-insensitive, $b_color, white);
|
||||
label { color: transparentize(white, 0.5);}
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(backdrop-insensitive-active, $b_color, white); }
|
||||
}
|
||||
}
|
||||
|
||||
&.flat {
|
||||
&:backdrop, &:disabled, &:backdrop:disabled {
|
||||
@include button(undecorated);
|
||||
|
||||
color: transparentize($b_color, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
@include button(insensitive, $b_color, white);
|
||||
label { color: transparentize($selected_fg_color, 0.2); }
|
||||
&:active,
|
||||
&:checked { @include button(insensitive-active, $b_color, white); }
|
||||
}
|
||||
|
||||
.osd & {
|
||||
@include button(osd, $b_color);
|
||||
|
||||
&:hover { @include button(osd-hover, $b_color); }
|
||||
|
||||
&:active,
|
||||
&:checked { &:backdrop, & { @include button(osd-active, $b_color); }}
|
||||
|
||||
&:disabled { &:backdrop, & { @include button(osd-insensitive, $b_color); }}
|
||||
|
||||
&:backdrop { @include button(osd-backdrop, $b_color); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.stack-switcher > & {
|
||||
// to position the needs attention dot, padding is added to the button
|
||||
// child, a label needs just lateral padding while an icon needs vertical
|
||||
// padding added too.
|
||||
|
||||
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
|
||||
|
||||
> label {
|
||||
padding-left: 6px; // label padding
|
||||
padding-right: 6px; //
|
||||
}
|
||||
|
||||
> image {
|
||||
padding-left: 6px; // image padding
|
||||
padding-right: 6px; //
|
||||
padding-top: 3px; //
|
||||
padding-bottom: 3px; //
|
||||
}
|
||||
|
||||
&.text-button {
|
||||
// compensate text-button paddings
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
&.image-button {
|
||||
// we want image buttons to have a 1:1 aspect ratio, so compensation
|
||||
// of the padding added to the GtkImage is needed
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
&.needs-attention {
|
||||
> label,
|
||||
> image { @extend %needs_attention; }
|
||||
|
||||
&:active,
|
||||
&:checked {
|
||||
> label,
|
||||
> image {
|
||||
animation: none;
|
||||
background-image: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//inline-toolbar buttons
|
||||
.inline-toolbar &, .inline-toolbar &:backdrop {
|
||||
border-radius: 2px;
|
||||
border-width: 1px;
|
||||
@extend %linked;
|
||||
}
|
||||
|
||||
.primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need shadows
|
||||
|
||||
.linked > &,
|
||||
.linked > &:hover,
|
||||
.linked > &:active,
|
||||
.linked > &:checked,
|
||||
.linked > &:backdrop { @extend %linked; }
|
||||
|
||||
.linked.vertical > &,
|
||||
.linked.vertical > &:hover,
|
||||
.linked.vertical > &:active,
|
||||
.linked.vertical > &:checked,
|
||||
.linked.vertical > &:backdrop { @extend %linked_vertical; }
|
||||
}
|
||||
|
||||
%needs_attention {
|
||||
animation: needs_attention 150ms ease-in;
|
||||
$_dot_shadow: _text_shadow_color();
|
||||
$_dot_shadow_r: if($variant=='light',0.5,0.45);
|
||||
background-image: -gtk-gradient(radial,
|
||||
center center, 0,
|
||||
center center, 0.5,
|
||||
to($_dot_color),
|
||||
to(transparent)),
|
||||
-gtk-gradient(radial,
|
||||
center center, 0,
|
||||
center center, $_dot_shadow_r,
|
||||
to($_dot_shadow),
|
||||
to(transparent));
|
||||
background-size: 6px 6px, 6px 6px;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
@if $variant == 'light' { background-position: right 3px, right 4px; }
|
||||
|
||||
@else { background-position: right 3px, right 2px; }
|
||||
|
||||
&:backdrop { background-size: 6px 6px, 0 0;}
|
||||
|
||||
&:dir(rtl) {
|
||||
@if $variant == 'light' { background-position: left 3px, left 4px; }
|
||||
|
||||
@else { background-position: left 3px, left 2px; }
|
||||
}
|
||||
}
|
||||
|
||||
toolbar {
|
||||
button {
|
||||
&:hover { @include button(normal,darken($bg_color,7%));}
|
||||
&:active { @include button(normal,darken($bg_color,12%));}
|
||||
}
|
||||
}
|
||||
// all the following is for the +|- buttons on inline toolbars, that way
|
||||
// should really be deprecated...
|
||||
.inline-toolbar toolbutton > button { // redefining the button look is
|
||||
// needed since those are flat...
|
||||
@include button(undecorated);
|
||||
|
||||
&:hover { color: $selected_bg_color; }
|
||||
|
||||
&:active,
|
||||
&:checked{ color: darken($selected_bg_color, 5%); }
|
||||
|
||||
&:disabled {
|
||||
color: $backdrop_text_color;
|
||||
|
||||
&:active,
|
||||
&:checked { color: transparentize(darken($selected_bg_color, 5%),0.7); }
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_text_color;
|
||||
|
||||
&:active,
|
||||
&:checked { color: darken($selected_bg_color, 5%); }
|
||||
|
||||
&:disabled {
|
||||
color: $backdrop_text_color;
|
||||
|
||||
&:active,
|
||||
&:checked { color: transparentize(darken($selected_bg_color, 5%),0.7); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// More inline toolbar buttons
|
||||
toolbar.inline-toolbar toolbutton,
|
||||
toolbar.inline-toolbar toolbutton:backdrop {
|
||||
> button.flat {
|
||||
&:backdrop {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
%linked_middle {
|
||||
border: 1px solid $borders_color;
|
||||
border-radius: 0;
|
||||
border-right-style: none;
|
||||
box-shadow: inset 0px 1px 0px 0px $top_highlight;
|
||||
}
|
||||
|
||||
%linked {
|
||||
@extend %linked_middle;
|
||||
|
||||
&:first-child {
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-right-style: solid;
|
||||
}
|
||||
|
||||
&:only-child {
|
||||
border-radius: 3px;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
|
||||
%linked_vertical_middle {
|
||||
border-style: solid solid none solid;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
%linked_vertical{
|
||||
@extend %linked_vertical_middle;
|
||||
|
||||
&:first-child {
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom-left-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
&:only-child {
|
||||
border-radius: 3px;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
|
||||
%undecorated_button {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: inset 0 1px transparentize(white,1),
|
||||
0 1px transparentize(white, 1);
|
||||
text-shadow: none;
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
|
||||
/* menu buttons */
|
||||
modelbutton.flat,
|
||||
.menuitem.button.flat {
|
||||
min-height: 26px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
border-radius: 3px;
|
||||
outline-offset: -2px;
|
||||
|
||||
@extend %undecorated_button;
|
||||
|
||||
&:hover { background-color: $popover_hover_color; }
|
||||
|
||||
&:selected { @extend %selected_items; }
|
||||
|
||||
&:backdrop,
|
||||
&:backdrop:hover { @extend %undecorated_button; }
|
||||
|
||||
// FIXME: remove the following when the checks/radios rewrite lands
|
||||
check:last-child,
|
||||
radio:last-child { margin-left: 8px; }
|
||||
|
||||
check:first-child,
|
||||
radio:first-child { margin-right: 8px; }
|
||||
}
|
||||
|
||||
modelbutton.flat arrow {
|
||||
background: none;
|
||||
|
||||
&:hover { background: none; }
|
||||
|
||||
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
|
||||
|
||||
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||
}
|
||||
|
||||
button.color {
|
||||
padding: 4px;
|
||||
|
||||
colorswatch:only-child {
|
||||
&, overlay { border-radius: 0; }
|
||||
|
||||
@if $variant == 'light' {
|
||||
box-shadow: 0 1px _text_shadow_color();
|
||||
|
||||
&:disabled,
|
||||
&:backdrop { box-shadow: none; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
notebook, list, .view, popover {
|
||||
button {
|
||||
box-shadow: inset 0px 0px 0px 1px $borders_color;
|
||||
&:backdrop {
|
||||
box-shadow: inset 0px 0px 0px 1px $borders_color;
|
||||
}
|
||||
}
|
||||
.linked > button {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
59
gtk-3.20/widgets/_calendar.scss
Normal file
59
gtk-3.20/widgets/_calendar.scss
Normal file
@@ -0,0 +1,59 @@
|
||||
/************
|
||||
* Calendar *
|
||||
***********/
|
||||
calendar {
|
||||
color: $text_color;
|
||||
border: 1px solid $borders_color;
|
||||
|
||||
&:selected {
|
||||
@extend %selected_items;
|
||||
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
&.header {
|
||||
border-bottom: 1px solid transparentize(black, 0.9);
|
||||
border-radius: 0;
|
||||
|
||||
&:backdrop { border-color: transparentize(black, 0.9); }
|
||||
}
|
||||
|
||||
&.button {
|
||||
@extend %undecorated_button;
|
||||
|
||||
color: transparentize($fg_color, 0.55);
|
||||
|
||||
&:hover {
|
||||
@extend %undecorated_button;
|
||||
|
||||
color: $fg_color;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
@extend %undecorated_button;
|
||||
|
||||
color: transparentize($backdrop_fg_color,0.55);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
@extend %undecorated_button;
|
||||
|
||||
color: transparentize($insensitive_fg_color,0.55);
|
||||
}
|
||||
}
|
||||
|
||||
&:indeterminate,
|
||||
&:indeterminate:backdrop { color: gtkalpha(currentColor, 0.55); }
|
||||
|
||||
&.highlight,
|
||||
&.highlight:backdrop {
|
||||
font-size: smaller;
|
||||
color: $fg_color;
|
||||
}
|
||||
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_text_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
165
gtk-3.20/widgets/_checks-radios.scss
Normal file
165
gtk-3.20/widgets/_checks-radios.scss
Normal file
@@ -0,0 +1,165 @@
|
||||
/*************************
|
||||
* 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
|
||||
|
||||
|
||||
// unchecked
|
||||
@each $s,$un in ('','-unchecked'),
|
||||
(':hover', '-unchecked-hover'),
|
||||
(':active', '-unchecked-active'),
|
||||
(':backdrop', '-unchecked'),
|
||||
(':disabled', '-unchecked'),
|
||||
(':disabled:backdrop', '-unchecked') {
|
||||
check#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png")), -gtk-scaled(url("../assets/checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
radio#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/radio#{$un}.png"),url("../assets/radio#{$un}@2.png")), -gtk-scaled(url("../assets/radio#{$un}.png"),url("../assets/radio#{$un}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// checked
|
||||
@each $s,$ch in (':checked', '-checked'),
|
||||
(':checked:hover', '-checked-hover'),
|
||||
(':checked:active', '-checked-active'),
|
||||
(':checked:backdrop', '-checked'),
|
||||
(':checked:disabled', '-checked'),
|
||||
(':checked:disabled:backdrop', '-checked') {
|
||||
check#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$ch}.png"),url("../assets/checkbox#{$ch}@2.png")), -gtk-scaled(url("../assets/checkbox#{$ch}.png"),url("../assets/checkbox#{$ch}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
radio#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/radio#{$ch}.png"),url("../assets/radio#{$ch}@2.png")), -gtk-scaled(url("../assets/radio#{$ch}.png"),url("../assets/radio#{$ch}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// mixed
|
||||
@each $s,$mx in (':indeterminate', '-mixed'),
|
||||
(':indeterminate:hover', '-mixed-hover'),
|
||||
(':indeterminate:active', '-mixed-active'),
|
||||
(':indeterminate:backdrop', '-mixed'),
|
||||
(':indeterminate:disabled', '-mixed-insensitive'),
|
||||
(':indeterminate:disabled:backdrop', '-mixed-insensitive') {
|
||||
check#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$mx}.png"),url("../assets/checkbox#{$mx}@2.png")), -gtk-scaled(url("../assets/checkbox#{$mx}.png"),url("../assets/checkbox#{$mx}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
radio#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/radio#{$mx}.png"),url("../assets/radio#{$mx}@2.png")), -gtk-scaled(url("../assets/radio#{$mx}.png"),url("../assets/radio#{$mx}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// unchecked:selected
|
||||
@each $s,$un in (':selected','-unchecked'),
|
||||
(':hover:selected', '-unchecked'),
|
||||
(':active:selected', '-unchecked'),
|
||||
(':backdrop:selected', '-unchecked'),
|
||||
(':disabled:selected', '-unchecked'),
|
||||
(':disabled:backdrop:selected', '-unchecked') {
|
||||
check#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png")), -gtk-scaled(url("../assets/checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
radio#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-radio#{$un}.png"),url("../assets/selected-radio#{$un}@2.png")), -gtk-scaled(url("../assets/selected-radio#{$un}.png"),url("../assets/selected-radio#{$un}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// checked:selected
|
||||
@each $s,$ch in (':checked:selected', '-checked'),
|
||||
(':checked:hover:selected', '-checked'),
|
||||
(':checked:active:selected', '-checked'),
|
||||
(':checked:backdrop:selected', '-checked'),
|
||||
(':checked:disabled:selected', '-checked'),
|
||||
(':checked:disabled:backdrop:selected', '-checked') {
|
||||
check#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$ch}.png"),url("../assets/checkbox#{$ch}@2.png")), -gtk-scaled(url("../assets/checkbox#{$ch}.png"),url("../assets/checkbox#{$ch}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
radio#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-radio#{$ch}.png"),url("../assets/selected-radio#{$ch}@2.png")), -gtk-scaled(url("../assets/selected-radio#{$ch}.png"),url("../assets/selected-radio#{$ch}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// mixed:selected
|
||||
@each $s,$mx in (':indeterminate:selected', '-mixed'),
|
||||
(':indeterminate:hover:selected', '-mixed'),
|
||||
(':indeterminate:active:selected', '-mixed'),
|
||||
(':indeterminate:backdrop:selected', '-mixed'),
|
||||
(':indeterminate:disabled:selected', '-mixed'),
|
||||
(':indeterminate:disabled:backdrop:selected', '-mixed') {
|
||||
check#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-checkbox#{$mx}.png"),url("../assets/selected-checkbox#{$mx}@2.png")), -gtk-scaled(url("../assets/selected-checkbox#{$mx}.png"),url("../assets/selected-checkbox#{$mx}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
radio#{$s}{
|
||||
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-radio#{$mx}.png"),url("../assets/selected-radio#{$mx}@2.png")), -gtk-scaled(url("../assets/selected-radio#{$mx}.png"),url("../assets/selected-radio#{$mx}@2.png")));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// selection-mode unchecked
|
||||
@each $s,$un in ('','-unchecked'),
|
||||
(':hover', '-unchecked-hover'),
|
||||
(':active', '-unchecked-active'),
|
||||
(':backdrop', '-unchecked-backdrop'),
|
||||
(':disabled', '-unchecked-insensitive'),
|
||||
(':disabled:backdrop', '-unchecked-backdrop-insensitive') {
|
||||
.view.content-view check#{$s},
|
||||
.view.content-view.check#{$s}{
|
||||
-gtk-icon-source: -gtk-scaled(url("../assets/selection-mode-checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png"));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
.view.content-view radio#{$s},
|
||||
.view.content-view.radio#{$s}{
|
||||
-gtk-icon-source: -gtk-scaled(url("../assets/selection-mode-radio#{$un}.png"),url("../assets/radio#{$un}@2.png"));
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
checkbutton.text-button, radiobutton.text-button {
|
||||
// this is for a nice focus on check and radios text
|
||||
padding: 2px 0;
|
||||
outline-offset: 0;
|
||||
|
||||
label:not(:only-child) {
|
||||
&:first-child { margin-left: 4px; }
|
||||
&:last-child { margin-right: 4px; }
|
||||
}
|
||||
}
|
||||
|
||||
check,
|
||||
radio {
|
||||
margin: 0 4px;
|
||||
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
border: none;
|
||||
|
||||
menu menuitem & {
|
||||
margin: 0; // this is a workaround for a menu check/radio size allocation issue
|
||||
|
||||
&, &:hover, &:disabled { //FIXME use button reset mixin
|
||||
min-height: 14px;
|
||||
min-width: 14px;
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
-gtk-icon-shadow: none;
|
||||
color: inherit;
|
||||
border-color: currentColor;
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
}
|
139
gtk-3.20/widgets/_color-chooser.scss
Normal file
139
gtk-3.20/widgets/_color-chooser.scss
Normal file
@@ -0,0 +1,139 @@
|
||||
/*****************
|
||||
* Color Chooser *
|
||||
*****************/
|
||||
colorswatch {
|
||||
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
|
||||
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
|
||||
// applied to the overlay box.
|
||||
|
||||
&, &:drop(active) { border-style: none; } // FIXME: implement a proper drop(active) state
|
||||
|
||||
$_colorswatch_radius: 5px;
|
||||
$_colorswatch_overlay_shadow: if($variant == 'light', inset 0 2px 2px -3px transparentize(black, 0.3),
|
||||
inset 0 3px 2px -2px transparentize(black, 0.5));
|
||||
|
||||
// base color corners rounding
|
||||
// to avoid the artifacts caused by rounded corner anti-aliasing the base color
|
||||
// sports a bigger radius.
|
||||
// nth-child is needed by the custom color strip.
|
||||
|
||||
&.top {
|
||||
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
||||
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
||||
|
||||
overlay {
|
||||
border-top-left-radius: $_colorswatch_radius;
|
||||
border-top-right-radius: $_colorswatch_radius;
|
||||
}
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
||||
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
||||
|
||||
overlay {
|
||||
border-bottom-left-radius: $_colorswatch_radius;
|
||||
border-bottom-right-radius: $_colorswatch_radius;
|
||||
}
|
||||
}
|
||||
|
||||
&.left,
|
||||
&:first-child:not(.top) {
|
||||
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
||||
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
||||
|
||||
overlay {
|
||||
border-top-left-radius: $_colorswatch_radius;
|
||||
border-bottom-left-radius: $_colorswatch_radius;
|
||||
}
|
||||
}
|
||||
|
||||
&.right,
|
||||
&:last-child:not(.bottom) {
|
||||
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
||||
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
||||
|
||||
overlay {
|
||||
border-top-right-radius: $_colorswatch_radius;
|
||||
border-bottom-right-radius: $_colorswatch_radius;
|
||||
}
|
||||
}
|
||||
|
||||
&.dark overlay {
|
||||
color: $selected_fg_color;
|
||||
|
||||
&:hover { border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color); }
|
||||
|
||||
&:backdrop { color: $backdrop_selected_fg_color; }
|
||||
}
|
||||
|
||||
&.light overlay {
|
||||
color: $text_color;
|
||||
|
||||
&:hover { border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color); }
|
||||
|
||||
&:backdrop { color: $backdrop_text_color; }
|
||||
}
|
||||
|
||||
&:drop(active) {
|
||||
box-shadow: none;
|
||||
|
||||
&.light overlay {
|
||||
border-color: $drop_target_color;
|
||||
box-shadow: inset 0 0 0 2px if($variant == 'light', darken($drop_target_color, 7%), $borders_color),
|
||||
inset 0 0 0 1px $drop_target_color;
|
||||
}
|
||||
|
||||
&.dark overlay {
|
||||
border-color: $drop_target_color;
|
||||
box-shadow: inset 0 0 0 2px if($variant == 'light', transparentize(black, 0.7), $borders_color),
|
||||
inset 0 0 0 1px $drop_target_color;
|
||||
}
|
||||
}
|
||||
|
||||
overlay {
|
||||
box-shadow: $_colorswatch_overlay_shadow;
|
||||
border: 1px solid if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
||||
|
||||
&:hover { box-shadow: inset 0 1px transparentize(white, 0.7); }
|
||||
|
||||
&:backdrop, &:backdrop:hover {
|
||||
border-color: if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
&#add-color-button {
|
||||
border-radius: $_colorswatch_radius $_colorswatch_radius 0 0;
|
||||
|
||||
&:only-child { border-radius: $_colorswatch_radius; }
|
||||
|
||||
overlay {
|
||||
@include button(normal);
|
||||
|
||||
&:hover { @include button(hover); }
|
||||
|
||||
&:backdrop { @include button(backdrop); }
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
|
||||
overlay {
|
||||
border-color: transparentize(black, 0.4);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
row:selected & { box-shadow: 0 0 0 2px $selected_fg_color; }
|
||||
|
||||
&#editor-color-sample {
|
||||
border-radius: 4px;
|
||||
|
||||
overlay { border-radius: 4.5px; }
|
||||
}
|
||||
}
|
||||
|
||||
// colorscale popup
|
||||
colorchooser .popover.osd { border-radius: 5px; }
|
41
gtk-3.20/widgets/_comboboxes.scss
Normal file
41
gtk-3.20/widgets/_comboboxes.scss
Normal file
@@ -0,0 +1,41 @@
|
||||
/**************
|
||||
* ComboBoxes *
|
||||
**************/
|
||||
combobox {
|
||||
arrow {
|
||||
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
&.linked {
|
||||
button:nth-child(2) {
|
||||
&:dir(ltr) { @extend %linked:last-child; }
|
||||
&:dir(rtl) { @extend %linked:first-child; }
|
||||
}
|
||||
}
|
||||
|
||||
&:drop(active) { // FIXME: untested
|
||||
box-shadow: none;
|
||||
|
||||
button.combo { @extend %button_basic:drop(active); }
|
||||
}
|
||||
}
|
||||
|
||||
.linked > combobox > box > button.combo {
|
||||
// the combo is a composite widget so the way we do button linking doesn't
|
||||
// work, special case needed. See
|
||||
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
|
||||
|
||||
&:dir(ltr),
|
||||
&:dir(rtl) { @extend %linked_middle; } // specificity bump
|
||||
}
|
||||
|
||||
.linked:not(.vertical) > combobox:first-child > box > button.combo { @extend %linked:first-child; }
|
||||
.linked:not(.vertical) > combobox:last-child > box > button.combo { @extend %linked:last-child; }
|
||||
.linked:not(.vertical) > combobox:only-child > box > button.combo {@extend %linked:only-child; }
|
||||
|
||||
.linked.vertical > combobox > box > button.combo { @extend %linked_vertical_middle; }
|
||||
.linked.vertical > combobox:first-child > box > button.combo { @extend %linked_vertical:first-child;}
|
||||
.linked.vertical > combobox:last-child > box > button.combo { @extend %linked_vertical:last-child; }
|
||||
.linked.vertical > combobox:only-child > box > button.combo { @extend %linked_vertical:only-child; }
|
66
gtk-3.20/widgets/_dialogs.scss
Normal file
66
gtk-3.20/widgets/_dialogs.scss
Normal file
@@ -0,0 +1,66 @@
|
||||
/***********
|
||||
* Dialogs *
|
||||
***********/
|
||||
messagedialog { // Message Dialog styling
|
||||
.titlebar:not(headerbar) {
|
||||
background-color: transparentize(if($variant=='light', $headerbar_color, $bg_color), 0.05);
|
||||
}
|
||||
.titlebar {
|
||||
min-height: 20px;
|
||||
background-image: none;
|
||||
background-color: transparentize(if($variant=='light', $headerbar_color, $bg_color), 0.05);
|
||||
border-style: none;
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
|
||||
&.csd { // rounded bottom border styling for csd version
|
||||
&.background {
|
||||
background-color: transparentize(if($variant=='light', $headerbar_color, $bg_color), 0.05);
|
||||
color: if($variant=='light', $headerbar_fg_color, $fg_color);
|
||||
|
||||
// bigger radius for better antialiasing
|
||||
border-bottom-left-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
.dialog-action-area button {
|
||||
padding: 10px 14px; // labels are not vertically centered on message dialog, this is a workaround
|
||||
border-radius: 0;
|
||||
border-left-style: solid;
|
||||
border-right-style: none;
|
||||
border-bottom-style: none;
|
||||
background-color: transparent;
|
||||
color: if($variant=='light', $headerbar_fg_color, $fg_color);
|
||||
box-shadow: none;
|
||||
|
||||
&:hover {
|
||||
background-color: transparentize($selected_bg_color, 0.1);
|
||||
}
|
||||
|
||||
&:first-child{
|
||||
border-left-style: none;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
filechooser {
|
||||
.dialog-action-box {
|
||||
border-top: 1px solid $borders_color;
|
||||
|
||||
&:backdrop { border-top-color: $backdrop_borders_color; }
|
||||
}
|
||||
|
||||
#pathbarbox { border-bottom: 1px solid $bg_color; }
|
||||
}
|
||||
|
||||
filechooserbutton:drop(active) {
|
||||
box-shadow: none;
|
||||
border-color: transparent;
|
||||
}
|
181
gtk-3.20/widgets/_entries.scss
Normal file
181
gtk-3.20/widgets/_entries.scss
Normal file
@@ -0,0 +1,181 @@
|
||||
/****************
|
||||
* Text Entries *
|
||||
****************/
|
||||
|
||||
%entry,
|
||||
entry {
|
||||
%entry_basic, & {
|
||||
min-height: 32px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
border: 1px solid;
|
||||
border-radius: 3px;
|
||||
transition: all 200ms $ease-out-quad;
|
||||
|
||||
@include entry(normal);
|
||||
|
||||
image { // icons inside the entry
|
||||
&.left { padding-left: 0; padding-right: 6px; }
|
||||
&.right { padding-left: 6px; padding-right: 0; }
|
||||
}
|
||||
|
||||
undershoot {
|
||||
&.left { @include undershoot(left); }
|
||||
&.right { @include undershoot(right); }
|
||||
}
|
||||
|
||||
&.flat {
|
||||
&:focus, & {
|
||||
min-height: 0;
|
||||
padding: 2px;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus { @include entry(focus); }
|
||||
|
||||
&:disabled { @include entry(insensitive); }
|
||||
|
||||
&:backdrop {
|
||||
@include entry(backdrop);
|
||||
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
&:backdrop:disabled { @include entry(backdrop-insensitive); }
|
||||
|
||||
selection { &:focus, & { @extend %selected_items; }}
|
||||
|
||||
// entry error and warning style
|
||||
@each $e_type, $e_color in (error, $error_color),
|
||||
(warning, $warning_color) {
|
||||
&.#{$e_type} {
|
||||
@include entry(normal);
|
||||
color: $e_color;
|
||||
border-color: entry_focus_border($e_color);
|
||||
|
||||
&:focus { @include entry(focus, $e_color); }
|
||||
|
||||
&:selected { &:focus, & { background-color: $e_color; }}
|
||||
}
|
||||
}
|
||||
|
||||
& image { // entry icons colors
|
||||
color: mix($fg_color, $base_color, 80%);
|
||||
|
||||
&:hover { color: $fg_color; }
|
||||
|
||||
&:active { color: $selected_bg_color; }
|
||||
|
||||
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
|
||||
}
|
||||
|
||||
&:drop(active) {
|
||||
&:focus, & {
|
||||
border-color: $drop_target_color;
|
||||
box-shadow: inset 0 0 0 1px $drop_target_color;
|
||||
}
|
||||
}
|
||||
|
||||
.osd & {
|
||||
@include entry(osd);
|
||||
|
||||
&:focus { @include entry(osd-focus); }
|
||||
|
||||
&:backdrop { @include entry(osd-backdrop); }
|
||||
|
||||
&:disabled { @include entry(osd-insensitive); }
|
||||
}
|
||||
}
|
||||
|
||||
progress {
|
||||
margin: 2px -6px;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
border-radius: 0;
|
||||
border-width: 0 0 2px;
|
||||
border-color: $selected_bg_color;
|
||||
border-style: solid;
|
||||
box-shadow: none;
|
||||
|
||||
&:backdrop { background-color: transparent; }
|
||||
}
|
||||
|
||||
// linked entries
|
||||
.linked:not(.vertical) > & { @extend %linked; }
|
||||
.linked:not(.vertical) > &:focus + &,
|
||||
.linked:not(.vertical) > &:focus + button,
|
||||
.linked:not(.vertical) > &:focus + combobox > box > button.combo { border-left-color: entry_focus_border(); }
|
||||
|
||||
.linked:not(.vertical) > &:focus { border-color: entry_focus_border(); }
|
||||
|
||||
.linked:not(.vertical) > &:drop(active) + &,
|
||||
.linked:not(.vertical) > &:drop(active) + button,
|
||||
.linked:not(.vertical) > &:drop(active) + combobox > box > button.combo { border-left-color: $drop_target_color; }
|
||||
|
||||
// Vertically linked entries
|
||||
// FIXME: take care of "colored" entries
|
||||
.linked.vertical > & {
|
||||
@extend %linked_vertical;
|
||||
|
||||
// brighter border between linked entries
|
||||
&:not(:disabled) + entry:not(:disabled),
|
||||
&:not(:disabled) + %entry:not(:disabled) {
|
||||
border-top-color: mix($borders_color, $base_color, 30%);
|
||||
background-image: linear-gradient(to bottom, $base_color, $base_color);
|
||||
|
||||
&:backdrop {
|
||||
border-top-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
|
||||
background-image: linear-gradient(to bottom, $backdrop_base_color, $backdrop_base_color);
|
||||
}
|
||||
}
|
||||
|
||||
// brighter border between linked insensitive entries
|
||||
&:disabled + %entry:disabled,
|
||||
&:disabled + entry:disabled { border-top-color: mix($borders_color, $base_color, 30%); }
|
||||
|
||||
// color back the top border of a linked focused entry following another entry and add back the focus shadow.
|
||||
// :not(:only-child) is a specificity bump hack.
|
||||
+ %entry:focus:not(:only-child),
|
||||
+ entry:focus:not(:only-child) { border-top-color: entry_focus_border(); }
|
||||
|
||||
+ %entry:drop(active):not(:only-child),
|
||||
+ entry:drop(active):not(:only-child) { border-top-color: $drop_target_color; }
|
||||
|
||||
// this takes care of coloring the top border of the focused entry subsequent widget.
|
||||
// :not(:only-child) is a specificity bump hack.
|
||||
&:focus:not(:only-child) {
|
||||
+ %entry,
|
||||
+ entry,
|
||||
+ button,
|
||||
+ combobox > box > button.combo { border-top-color: entry_focus_border(); }
|
||||
}
|
||||
|
||||
&:drop(active):not(:only-child) {
|
||||
+ %entry,
|
||||
+ entry,
|
||||
+ button,
|
||||
+ combobox > box > button.combo { border-top-color: $drop_target_color; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
treeview entry {
|
||||
&:focus {
|
||||
&:dir(rtl), &:dir(ltr) { // specificity bump hack
|
||||
background-color: $base_color;
|
||||
transition-property: color, background;
|
||||
}
|
||||
}
|
||||
|
||||
&.flat, & {
|
||||
border-radius: 0;
|
||||
background-image: none;
|
||||
background-color: $base_color;
|
||||
|
||||
&:focus { border-color: $selected_bg_color; }
|
||||
}
|
||||
}
|
16
gtk-3.20/widgets/_expanders.scss
Normal file
16
gtk-3.20/widgets/_expanders.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
/*************
|
||||
* Expanders *
|
||||
*************/
|
||||
expander {
|
||||
arrow {
|
||||
min-width: 16px;
|
||||
min-height: 16px;
|
||||
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||
|
||||
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
||||
|
||||
&:hover { color: lighten($fg_color,30%); } //only lightens the arrow
|
||||
|
||||
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||
}
|
||||
}
|
102
gtk-3.20/widgets/_file-chooser.scss
Normal file
102
gtk-3.20/widgets/_file-chooser.scss
Normal file
@@ -0,0 +1,102 @@
|
||||
/****************
|
||||
* File chooser *
|
||||
****************/
|
||||
$_placesidebar_icons_opacity: 0.7;
|
||||
|
||||
placessidebar {
|
||||
> viewport.frame { border-style: none; }
|
||||
|
||||
row {
|
||||
// Needs overriding of the GtkListBoxRow padding
|
||||
min-height: 36px;
|
||||
padding: 0px;
|
||||
|
||||
// Using margins/padding directly in the SidebarRow
|
||||
// will make the animation of the new bookmark row jump
|
||||
> revealer { padding: 0 14px; }
|
||||
|
||||
&:selected { color: $selected_fg_color; }
|
||||
|
||||
&:disabled { color: $insensitive_fg_color; }
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_fg_color;
|
||||
|
||||
&:selected { color: $backdrop_selected_fg_color; }
|
||||
|
||||
&:disabled { color: $backdrop_insensitive_color; }
|
||||
}
|
||||
|
||||
image.sidebar-icon {
|
||||
opacity: $_placesidebar_icons_opacity; // dim the device icons
|
||||
|
||||
&:dir(ltr) { padding-right: 8px; }
|
||||
&:dir(rtl) { padding-left: 8px; }
|
||||
}
|
||||
|
||||
label.sidebar-label {
|
||||
&:dir(ltr) { padding-right: 2px; }
|
||||
&:dir(rtl) { padding-left: 2px; }
|
||||
}
|
||||
|
||||
@at-root button.sidebar-button {
|
||||
@extend %button_basic.flat;
|
||||
|
||||
@extend %button_selected.flat;
|
||||
|
||||
min-height: 26px;
|
||||
min-width: 26px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
padding: 0;
|
||||
border-radius: 100%;
|
||||
-gtk-outline-radius: 100%;
|
||||
|
||||
&:not(:hover):not(:active),
|
||||
&:backdrop { > image { opacity: $_placesidebar_icons_opacity; }}
|
||||
}
|
||||
|
||||
// in the sidebar case it makes no sense to click the selected row
|
||||
&:selected:active { box-shadow: none; }
|
||||
|
||||
&.sidebar-placeholder-row {
|
||||
padding: 0 8px;
|
||||
min-height: 2px;
|
||||
background-image: image($drop_target_color);
|
||||
background-clip: content-box;
|
||||
}
|
||||
|
||||
&.sidebar-new-bookmark-row { color: $selected_bg_color; }
|
||||
|
||||
&:drop(active):not(:disabled) {
|
||||
color: $drop_target_color;
|
||||
box-shadow: inset 0 1px $drop_target_color,
|
||||
inset 0 -1px $drop_target_color;
|
||||
|
||||
&:selected {
|
||||
color: $selected_fg_color;
|
||||
background-color: $drop_target_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
placesview {
|
||||
.server-list-button > image {
|
||||
transition: 200ms $ease-out-quad;
|
||||
-gtk-icon-transform: rotate(0turn);
|
||||
}
|
||||
|
||||
.server-list-button:checked > image {
|
||||
transition: 200ms $ease-out-quad;
|
||||
-gtk-icon-transform: rotate(-0.5turn);
|
||||
}
|
||||
|
||||
row.activatable:hover { background-color: transparent; }
|
||||
|
||||
// this selects the "connect to server" label
|
||||
> actionbar > revealer > box > label {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
}
|
33
gtk-3.20/widgets/_floating-bar.scss
Normal file
33
gtk-3.20/widgets/_floating-bar.scss
Normal file
@@ -0,0 +1,33 @@
|
||||
/****************
|
||||
* Floating Bar *
|
||||
****************/
|
||||
.floating-bar {
|
||||
background-color: $bg_color;
|
||||
border-width: 1px;
|
||||
border-style: solid solid none;
|
||||
border-color: $borders_color;
|
||||
border-radius: 3px 3px 0 0;
|
||||
box-shadow: inset 0 1px $top_highlight;
|
||||
|
||||
&.bottom {
|
||||
|
||||
&.left {
|
||||
border-left-style: none;
|
||||
border-top-left-radius: 0;
|
||||
}
|
||||
|
||||
&.right {
|
||||
border-right-style: none;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
> button {
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_bg_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
87
gtk-3.20/widgets/_frames.scss
Normal file
87
gtk-3.20/widgets/_frames.scss
Normal file
@@ -0,0 +1,87 @@
|
||||
/**********
|
||||
* Frames *
|
||||
**********/
|
||||
frame > border,
|
||||
.frame {
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: 1px solid $borders_color;
|
||||
|
||||
&.flat { border-style: none; }
|
||||
|
||||
&:backdrop { border-color: $backdrop_borders_color; }
|
||||
}
|
||||
|
||||
actionbar > revealer > box {
|
||||
padding: 6px;
|
||||
border-top: 1px solid $borders_color;
|
||||
|
||||
&:backdrop { border-color: $backdrop_borders_color; }
|
||||
}
|
||||
|
||||
scrolledwindow {
|
||||
viewport.frame { // avoid double borders when viewport inside scrolled window
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
// This is used when content is touch-dragged past boundaries.
|
||||
// draws a box on top of the content, the size changes programmatically.
|
||||
overshoot {
|
||||
&.top {
|
||||
@include overshoot(top);
|
||||
|
||||
&:backdrop { @include overshoot(top, backdrop); }
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
@include overshoot(bottom);
|
||||
|
||||
&:backdrop { @include overshoot(bottom, backdrop); }
|
||||
}
|
||||
|
||||
&.left {
|
||||
@include overshoot(left);
|
||||
|
||||
&:backdrop { @include overshoot(left, backdrop); }
|
||||
}
|
||||
|
||||
&.right {
|
||||
@include overshoot(right);
|
||||
|
||||
&:backdrop { @include overshoot(right, backdrop); }
|
||||
}
|
||||
}
|
||||
|
||||
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
|
||||
undershoot {
|
||||
&.top { @include undershoot(top); }
|
||||
|
||||
&.bottom { @include undershoot(bottom); }
|
||||
|
||||
&.left { @include undershoot(left); }
|
||||
|
||||
&.right { @include undershoot(right); }
|
||||
}
|
||||
|
||||
junction { // the small square between two scrollbars
|
||||
border-color: transparent;
|
||||
// the border image is used to add the missing dot between the borders, details, details, details...
|
||||
border-image: linear-gradient(to bottom, $borders_color 1px, transparent 1px) 0 0 0 1 / 0 1px stretch;
|
||||
background-color: $scrollbar_bg_color;
|
||||
|
||||
&:dir(rtl) { border-image-slice: 0 1 0 0; }
|
||||
|
||||
&:backdrop {
|
||||
border-image-source: linear-gradient(to bottom, $backdrop_borders_color 1px, transparent 1px);
|
||||
background-color: $backdrop_scrollbar_bg_color;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//vbox and hbox separators
|
||||
separator {
|
||||
background: transparentize(black, 0.9);
|
||||
}
|
206
gtk-3.20/widgets/_granite.scss
Normal file
206
gtk-3.20/widgets/_granite.scss
Normal file
@@ -0,0 +1,206 @@
|
||||
/************
|
||||
* Popovers *
|
||||
************/
|
||||
|
||||
GraniteWidgetsPopOver {
|
||||
|
||||
-GraniteWidgetsPopOver-arrow-width: 21;
|
||||
-GraniteWidgetsPopOver-arrow-height: 10;
|
||||
-GraniteWidgetsPopOver-border-radius: 8px;
|
||||
-GraniteWidgetsPopOver-border-width: 0;
|
||||
-GraniteWidgetsPopOver-shadow-size: 12;
|
||||
|
||||
border: 1px solid $base_color;
|
||||
background: $base_color;
|
||||
color: $fg_color;
|
||||
|
||||
.button {
|
||||
background-image: none;
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
&:active,
|
||||
&:active:hover, {
|
||||
color: $selected_bg_color;
|
||||
}
|
||||
}
|
||||
|
||||
> .frame {
|
||||
border:none;
|
||||
}
|
||||
|
||||
.sidebar.view {
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
GraniteWidgetsStaticNotebook .frame {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.popover_bg {
|
||||
background-color: $base_color;
|
||||
background-image: none;
|
||||
border: 1px solid $base_color;
|
||||
color: $fg_color;
|
||||
}
|
||||
|
||||
|
||||
/***********
|
||||
* Welcome *
|
||||
**********/
|
||||
|
||||
GraniteWidgetsWelcome {
|
||||
background-color: $base_color;
|
||||
|
||||
GtkLabel {
|
||||
color: $fg_color;
|
||||
}
|
||||
|
||||
.h1,.h3 {
|
||||
color: transparentize($fg_color, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
/**************
|
||||
* Source List *
|
||||
***************/
|
||||
|
||||
.source-list {
|
||||
-GtkTreeView-horizontal-separator: 1px;
|
||||
-GtkTreeView-vertical-separator: 6px;
|
||||
|
||||
background-color: $bg_color;
|
||||
border: solid $borders_color;
|
||||
color: $fg_color;
|
||||
border-right-width: 1px;
|
||||
|
||||
&:backdrop {}
|
||||
|
||||
.category-expander {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.badge {
|
||||
background-image: none;
|
||||
background-color: transparentize(black, 0.6);
|
||||
color: $bg_color;
|
||||
border-radius: 10px;
|
||||
padding: 0 6px;
|
||||
margin: 0 3px;
|
||||
border-width: 0;
|
||||
|
||||
&:selected:backdrop,
|
||||
&:selected:hover:backdrop {
|
||||
background-color: transparentize(black, 0.8);
|
||||
color: darken($bg_color, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
row,
|
||||
.list-row {
|
||||
border:none;
|
||||
padding: 0;
|
||||
|
||||
> GtkLabel,
|
||||
> label {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**************
|
||||
* Text Styles *
|
||||
**************/
|
||||
|
||||
.h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.h2 {
|
||||
font-weight: 300;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.h3 {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.h4,
|
||||
.category-label {
|
||||
font-size: 12px;
|
||||
padding: 6px;
|
||||
color: transparentize($fg_color, 0.7);
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px transparentize(white,0.8);
|
||||
}
|
||||
|
||||
|
||||
/**************
|
||||
* Storage Bar *
|
||||
**************/
|
||||
.storage-bar {
|
||||
|
||||
.trough {
|
||||
border: none;
|
||||
box-shadow:0 1px 0 0 $bottom_highlight;
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
padding: 8px 6px;
|
||||
}
|
||||
|
||||
.fill-block {
|
||||
background-color: $yellow;
|
||||
border:none;
|
||||
box-shadow: inset 0 1px 0 0 transparentize(black, 0.9), inset 0 -1px 0 0 transparentize(black, 0.9);
|
||||
|
||||
transition: all 200ms ease-in-out;
|
||||
|
||||
padding: 8px 6px;
|
||||
|
||||
&:first-child {
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-left-width: 1px;
|
||||
box-shadow: inset 0 1px 0 0 transparentize(black, 0.9),
|
||||
inset 1px 0 0 transparentize(black, 0.9),
|
||||
inset 0 -1px 0 0 transparentize(black, 0.9);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
box-shadow: inset 0 1px 0 0 transparentize(black, 0.9),
|
||||
inset -1px 0 0 transparentize(black, 0.9),
|
||||
inset 0 -1px 0 0 transparentize(black, 0.9);
|
||||
}
|
||||
|
||||
&.empty-block {
|
||||
background-color: $base_color;
|
||||
}
|
||||
|
||||
&.app {
|
||||
background-color: $blue;
|
||||
}
|
||||
|
||||
&.audio {
|
||||
background-color: $orange;
|
||||
}
|
||||
|
||||
&.photo {
|
||||
background-color: $red;
|
||||
}
|
||||
|
||||
&.video {
|
||||
background-color: $purple;
|
||||
}
|
||||
|
||||
.legend {
|
||||
padding: 12px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
313
gtk-3.20/widgets/_header-bars.scss
Normal file
313
gtk-3.20/widgets/_header-bars.scss
Normal file
@@ -0,0 +1,313 @@
|
||||
/***************
|
||||
* Header bars *
|
||||
***************/
|
||||
%titlebar,
|
||||
headerbar {
|
||||
padding: 0 6px;
|
||||
min-height: 34px;
|
||||
background-color: $headerbar_color;
|
||||
color: $headerbar_fg_color;
|
||||
border-radius: 0;
|
||||
|
||||
&:backdrop {
|
||||
border-color: $backdrop_borders_color;
|
||||
background-image: none;
|
||||
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: smaller;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
|
||||
@extend .dim-label;
|
||||
}
|
||||
|
||||
%linked-header {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
border-right-style: none;
|
||||
box-shadow: none;
|
||||
|
||||
&:first-child {
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
border-right-style: solid;
|
||||
}
|
||||
|
||||
&:only-child {
|
||||
border-radius: 0px;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
entry { min-height: 24px; }
|
||||
button {
|
||||
@include button(normal-header);
|
||||
min-height: 34px;
|
||||
&:hover {
|
||||
@include button(hover-header, transparent, $purple);
|
||||
}
|
||||
&:active,
|
||||
&:checked {
|
||||
@include button(active-header, transparent, $purple);
|
||||
}
|
||||
|
||||
&:backdrop,
|
||||
&:disabled,
|
||||
&:backdrop:disabled {
|
||||
@include button(backdrop-header,transparent,transparentize(white,0.7));
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
&:hover,
|
||||
&:active,
|
||||
&:checked {
|
||||
background-color: transparent;
|
||||
color: $selected_bg_color;
|
||||
box-shadow: none;
|
||||
// @include button(hover-header,transparent,transparentize(white,0.7));
|
||||
}
|
||||
}
|
||||
|
||||
@each $b_type, $b_color in (suggested-action, $cyan),
|
||||
(destructive-action, $destructive_color) {
|
||||
&.#{$b_type} {
|
||||
font-weight: bold;
|
||||
min-height: 24px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 3px;
|
||||
@include button(normal, $b_color, white);
|
||||
|
||||
&:hover { @include button(hover, $b_color, white); }
|
||||
|
||||
&:active { @include button(active, $b_color, white); }
|
||||
|
||||
&:disabled {
|
||||
@include button(insensitive, $b_color, white);
|
||||
label {color: transparentize(white,0.5);}
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
@include button(backdrop, $b_color, white);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
&:backdrop:disabled { @include button(backdrop-insensitive, $b_color, white); }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//Reset style
|
||||
&.titlebutton {
|
||||
color: transparent;
|
||||
box-shadow: none;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:checked,
|
||||
&:backdrop,
|
||||
&:backdrop:hover,* {
|
||||
color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.linked > button,
|
||||
.linked > button:hover,
|
||||
.linked > button:active,
|
||||
.linked > button:checked,
|
||||
.linked > button:backdrop { @extend %linked-header; }
|
||||
.linked > button:active,
|
||||
.linked > button:checked{
|
||||
&:backdrop{
|
||||
color: $backdrop_selected_bg_color;
|
||||
label{
|
||||
color: $backdrop_selected_bg_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
// End reset style
|
||||
|
||||
&.selection-mode {
|
||||
$_hc: mix($top_highlight,$selected_bg_color, 50%); // highlight color
|
||||
|
||||
color: $selected_fg_color;
|
||||
text-shadow: 0 -1px transparentize(black, 0.5);
|
||||
border-color: $selected_borders_color;
|
||||
|
||||
@include headerbar_fill($selected_bg_color, $_hc);
|
||||
|
||||
&:backdrop {
|
||||
background-color: $selected_bg_color;
|
||||
background-image: none;
|
||||
box-shadow: inset 0 1px mix($top_highlight, $selected_bg_color, 60%);
|
||||
}
|
||||
|
||||
.subtitle:link { @extend *:link:selected; }
|
||||
|
||||
button {
|
||||
@include button(normal, $selected_bg_color, $selected_fg_color);
|
||||
|
||||
&.flat { @include button(undecorated); }
|
||||
|
||||
&:hover { @include button(hover, $selected_bg_color, $selected_fg_color); }
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(active, $selected_bg_color, $selected_fg_color); }
|
||||
|
||||
&:backdrop {
|
||||
&.flat, & {
|
||||
@include button(backdrop, $selected_bg_color, $selected_fg_color);
|
||||
|
||||
-gtk-icon-effect: none;
|
||||
border-color: $selected_borders_color;
|
||||
|
||||
&:active,
|
||||
&:checked {
|
||||
@include button(backdrop-active, $selected_bg_color, $selected_fg_color);
|
||||
|
||||
border-color: $selected_borders_color;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
@include button(backdrop-insensitive, $selected_bg_color, $selected_fg_color);
|
||||
|
||||
border-color: $selected_borders_color;
|
||||
|
||||
&:active, &:checked {
|
||||
@include button(backdrop-insensitive-active, $selected_bg_color, $selected_fg_color);
|
||||
|
||||
border-color: $selected_borders_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.flat { &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }}
|
||||
|
||||
&:disabled {
|
||||
@include button(insensitive, $selected_bg_color, $selected_fg_color);
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(insensitive-active, $selected_bg_color, $selected_fg_color); }
|
||||
}
|
||||
|
||||
&.suggested-action {
|
||||
@include button(normal, $cyan, white);
|
||||
|
||||
&:hover { @include button(hover, $cyan, white); }
|
||||
|
||||
&:active { @include button(active, $cyan, white); }
|
||||
|
||||
&:disabled { @include button(insensitive, $cyan, white); }
|
||||
|
||||
&:backdrop { @include button(backdrop, $cyan, white); }
|
||||
|
||||
&:backdrop:disabled { @include button(backdrop-insensitive, $cyan, white); }
|
||||
}
|
||||
}
|
||||
|
||||
.selection-menu {
|
||||
&:backdrop, & {
|
||||
border-color: transparentize($selected_bg_color, 1);
|
||||
background-image: linear-gradient(to bottom, transparentize($selected_bg_color, 1), transparentize($selected_bg_color, 1));
|
||||
box-shadow: none;
|
||||
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);
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tiled &,
|
||||
.maximized & {
|
||||
&.titlebar {
|
||||
@if $variant == 'light' { box-shadow: none; }
|
||||
@else { box-shadow: inset 0 -1px $bottom_highlight; }
|
||||
}
|
||||
&:backdrop, & { border-radius: 0; }
|
||||
} // squared corners when the window is maximized or tiled
|
||||
|
||||
&.default-decoration {
|
||||
padding: 4px;
|
||||
min-height: 28px;
|
||||
|
||||
button.titlebutton {
|
||||
min-height: 26px;
|
||||
min-width: 26px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
headerbar {
|
||||
// add vertical margins to common widget on the headerbar to avoid them spanning the whole height
|
||||
entry,
|
||||
spinbutton,
|
||||
separator {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
switch {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
separator { background: transparent; }
|
||||
}
|
||||
|
||||
.background:not(.tiled):not(.maximized) .titlebar {
|
||||
@if $variant == 'light' { box-shadow: inset 0 1px lighten($headerbar_color, 5%); }
|
||||
@else { box-shadow: inset 0 1px $top_highlight,inset 0 -1px $bottom_highlight; }
|
||||
|
||||
|
||||
&:backdrop, & {
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
headerbar {
|
||||
window:not(.tiled):not(.maximized) separator:first-child + &, // tackles the paned container case
|
||||
window:not(.tiled):not(.maximized) &:first-child { &:backdrop, & { border-top-left-radius: 4px; }}
|
||||
|
||||
window:not(.tiled):not(.maximized) &:last-child { &:backdrop, & { border-top-right-radius: 4px; }}
|
||||
}
|
||||
|
||||
.titlebar:not(headerbar) {
|
||||
window.csd > & {
|
||||
// in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
border-style: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
> separator {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
@extend %titlebar;
|
||||
}
|
119
gtk-3.20/widgets/_infobars.scss
Normal file
119
gtk-3.20/widgets/_infobars.scss
Normal file
@@ -0,0 +1,119 @@
|
||||
/**************
|
||||
* GtkInfoBar *
|
||||
**************/
|
||||
%infobar,
|
||||
infobar {
|
||||
text-shadow: none;
|
||||
color: $fg_color;
|
||||
background-color: $bg_color;
|
||||
border-bottom:1px solid darken($bg_color,10%);
|
||||
box-shadow: 0 1px 0 0 transparentize(black, 0.95),
|
||||
0 1px 2px 0 transparentize(black, 0.85);
|
||||
|
||||
}
|
||||
|
||||
%color_infobar {
|
||||
|
||||
@extend %infobar;
|
||||
|
||||
text-shadow: none;
|
||||
color: $selected_fg_color;
|
||||
border:none;
|
||||
|
||||
.label {
|
||||
color: $selected_fg_color;
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_selected_fg_color;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 2px;
|
||||
border: none;
|
||||
background: transparentize($base_color, 0.02);
|
||||
color: $fg_color;
|
||||
box-shadow: 0 1px 0 0 transparentize(black, 0.8);
|
||||
|
||||
.label {
|
||||
color: $fg_color;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: $base_color;
|
||||
color: $fg_color;
|
||||
|
||||
box-shadow: 0 1px 2px 0 transparentize(black, 0.6);
|
||||
|
||||
&:backdrop {
|
||||
background: transparentize($base_color, 0.2);
|
||||
color: transparentize($fg_color, 0.5);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
box-shadow: 0 1px 2px 0 transparentize(black, 0.6);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
background: transparentize($base_color, 0.4);
|
||||
color: transparentize($fg_color, 0.5);
|
||||
box-shadow: none;
|
||||
|
||||
&:backdrop {
|
||||
background: transparentize($base_color, 0.5);
|
||||
color: transparentize($fg_color, 0.5);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
background: transparentize($base_color, 0.2);
|
||||
color: transparentize($fg_color, 0.5);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
@extend %color_infobar;
|
||||
background-color: $info_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color:lighten($info_color,10%);
|
||||
color: $backdrop_selected_fg_color;
|
||||
}
|
||||
}
|
||||
|
||||
.warning {
|
||||
@extend %color_infobar;
|
||||
background-color: $warning_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color:lighten($warning_color,10%);
|
||||
color: $backdrop_selected_fg_color;
|
||||
}
|
||||
}
|
||||
|
||||
.question {
|
||||
@extend %color_infobar;
|
||||
background-color: $question_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color:lighten($question_color,10%);
|
||||
color: $backdrop_selected_fg_color;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.error {
|
||||
@extend %color_infobar;
|
||||
background-color: $error_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color:lighten($error_color,10%);
|
||||
color: $backdrop_selected_fg_color;
|
||||
}
|
||||
}
|
62
gtk-3.20/widgets/_level-bars.scss
Normal file
62
gtk-3.20/widgets/_level-bars.scss
Normal file
@@ -0,0 +1,62 @@
|
||||
/*************
|
||||
* Level Bar *
|
||||
*************/
|
||||
levelbar {
|
||||
block {
|
||||
min-width: 32px;
|
||||
min-height: 6px;
|
||||
}
|
||||
|
||||
&.vertical block {
|
||||
min-width: 6px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
&:backdrop { transition: $backdrop_transition; }
|
||||
|
||||
trough {
|
||||
padding: 3px;
|
||||
border-radius: 3px;
|
||||
background-color: if($variant == 'light' ,transparentize(white,0.2),transparentize(black,0.86));
|
||||
box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
|
||||
&:backdrop {
|
||||
background-color: if($variant == 'light' ,transparentize(white,0.4),transparentize(black,0.94));
|
||||
box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
}
|
||||
}
|
||||
|
||||
&.horizontal.discrete block { margin: 0 1px; }
|
||||
|
||||
&.vertical.discrete block { margin: 1px 0; }
|
||||
|
||||
block {
|
||||
border-radius: 2px;
|
||||
|
||||
&:backdrop { box-shadow: none; }
|
||||
|
||||
&.low {
|
||||
background-color: $warning_color;
|
||||
|
||||
&:backdrop { border-color: $warning_color; };
|
||||
}
|
||||
|
||||
&.high,
|
||||
&:not(.empty) {
|
||||
background-color: $cyan;
|
||||
|
||||
&:backdrop { border-color: $cyan; }
|
||||
}
|
||||
|
||||
&.full {
|
||||
background-color: $success_color;
|
||||
|
||||
&:backdrop { border-color: $success_color; };
|
||||
}
|
||||
|
||||
&.empty {
|
||||
background-color: transparentize(black,0.86);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
49
gtk-3.20/widgets/_links.scss
Normal file
49
gtk-3.20/widgets/_links.scss
Normal file
@@ -0,0 +1,49 @@
|
||||
/*********
|
||||
* Links *
|
||||
*********/
|
||||
*:link {
|
||||
color: $link_color;
|
||||
|
||||
&:visited {
|
||||
color: $link_visited_color;
|
||||
|
||||
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 60%); }
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: lighten($link_color,10%);
|
||||
|
||||
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 90%); }
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: $link_color;
|
||||
|
||||
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
|
||||
}
|
||||
|
||||
&:backdrop { &:backdrop:hover, &:backdrop:hover:selected, & { color: $selected_bg_color; }}
|
||||
|
||||
@at-root %link_selected,
|
||||
&:selected,
|
||||
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
|
||||
}
|
||||
|
||||
button:link,
|
||||
button:visited {
|
||||
@extend %undecorated_button;
|
||||
|
||||
@extend *:link;
|
||||
|
||||
text-shadow: none;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:checked {
|
||||
@extend %undecorated_button;
|
||||
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
> label { text-decoration-line: underline; }
|
||||
}
|
47
gtk-3.20/widgets/_lists.scss
Normal file
47
gtk-3.20/widgets/_lists.scss
Normal file
@@ -0,0 +1,47 @@
|
||||
/*********
|
||||
* Lists *
|
||||
*********/
|
||||
list {
|
||||
color: $text_color;
|
||||
background-color: $base_color;
|
||||
border-color: $borders_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_base_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
||||
|
||||
row {
|
||||
padding: 8px 14px;
|
||||
transition: all 150ms $ease-out-quad;
|
||||
|
||||
label {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
&:hover { transition: none; }
|
||||
|
||||
&:backdrop { transition: $backdrop_transition; }
|
||||
|
||||
&.activatable {
|
||||
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
|
||||
|
||||
&:hover { background-color: if(variant == light, transparentize($fg_color, 0.9), transparentize($fg_color, 0.95)); }
|
||||
|
||||
&:active { box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8); }
|
||||
|
||||
&:backdrop:hover { background-color: transparent; }
|
||||
|
||||
&:selected {
|
||||
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
|
||||
|
||||
&.has-open-popup,
|
||||
&:hover { background-color: transparentize($selected_bg_color, 0.2); }
|
||||
|
||||
&:backdrop { background-color: $backdrop_selected_bg_color; }
|
||||
}
|
||||
}
|
||||
|
||||
&:selected { @extend %selected_items; }
|
||||
}
|
127
gtk-3.20/widgets/_menus.scss
Normal file
127
gtk-3.20/widgets/_menus.scss
Normal file
@@ -0,0 +1,127 @@
|
||||
/*********
|
||||
* Menus *
|
||||
*********/
|
||||
menubar,
|
||||
.menubar {
|
||||
background-color: $headerbar_color;
|
||||
color: $headerbar_fg_color;
|
||||
-GtkWidget-window-dragging: true;
|
||||
padding: 0px;
|
||||
box-shadow: inset 0 -1px transparentize(black, 0.9);
|
||||
|
||||
> menuitem {
|
||||
min-height: 16px;
|
||||
padding: 4px 8px;
|
||||
|
||||
&:hover { //Seems like it :hover even with keyboard focus
|
||||
box-shadow: inset 0 -3px $selected_bg_color;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $insensitive_fg_color;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menu,
|
||||
.menu,
|
||||
.context-menu {
|
||||
margin: 4px;
|
||||
padding: 2px 0px;
|
||||
background-color: $menu_color;
|
||||
border: 1px solid $borders_color; // adds borders in a non composited env
|
||||
|
||||
.csd & { border: none; } // axes borders in a composited env
|
||||
|
||||
&:backdrop { background-color: $backdrop_menu_color; }
|
||||
|
||||
menuitem {
|
||||
min-height: 16px;
|
||||
min-width: 40px;
|
||||
padding: 4px 6px;
|
||||
text-shadow: none;
|
||||
|
||||
&:hover {
|
||||
color: $selected_fg_color;
|
||||
background-color: $selected_bg_color;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $insensitive_fg_color;
|
||||
&:backdrop { color: $backdrop_insensitive_color; }
|
||||
}
|
||||
|
||||
&:backdrop,
|
||||
&:backdrop:hover {
|
||||
color: $backdrop_fg_color;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// submenu indicators
|
||||
arrow {
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
|
||||
&:dir(ltr) {
|
||||
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&:dir(rtl) {
|
||||
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
// avoids labels color being overridden, see
|
||||
// https://bugzilla.gnome.org/show_bug.cgi?id=767058
|
||||
label { &:dir(rtl), &:dir(ltr) { color: inherit; }}
|
||||
}
|
||||
|
||||
// overflow arrows
|
||||
> arrow {
|
||||
@include button(undecorated);
|
||||
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
padding: 4px;
|
||||
background-color: $menu_color;
|
||||
border-radius: 0;
|
||||
|
||||
&.top {
|
||||
margin-top: -6px;
|
||||
border-bottom: 1px solid mix($fg_color, $base_color, 10%);
|
||||
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
margin-bottom: -6px;
|
||||
border-top: 1px solid mix($fg_color, $base_color, 10%);
|
||||
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
||||
}
|
||||
|
||||
&:hover { background-color: mix($fg_color, $base_color, 10%); }
|
||||
|
||||
&:backdrop { background-color: $backdrop_menu_color; }
|
||||
|
||||
&:disabled {
|
||||
color: transparent;
|
||||
background-color: transparent;
|
||||
border-color: transparent ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menuitem {
|
||||
accelerator { color: gtkalpha(currentColor,0.55); }
|
||||
|
||||
check,
|
||||
radio {
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
|
||||
&:dir(ltr) { margin-right: 7px; }
|
||||
&:dir(rtl) { margin-left: 7px; }
|
||||
}
|
||||
}
|
62
gtk-3.20/widgets/_misc.scss
Normal file
62
gtk-3.20/widgets/_misc.scss
Normal file
@@ -0,0 +1,62 @@
|
||||
/********
|
||||
* Misc *
|
||||
********/
|
||||
//content view (grid/list)
|
||||
.content-view {
|
||||
background-color: darken($bg_color,7%);
|
||||
|
||||
&:hover { -gtk-icon-effect: highlight; }
|
||||
|
||||
&:backdrop { background-color: darken($bg_color,7%); }
|
||||
|
||||
rubberband { @extend rubberband; }
|
||||
}
|
||||
|
||||
.scale-popup {
|
||||
.osd & { @extend %osd; }
|
||||
|
||||
.osd & button.flat { //FIXME: quick hack, redo properly
|
||||
border-style: none;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
button { // +/- buttons on GtkVolumeButton popup
|
||||
&:hover {
|
||||
@extend %undecorated_button;
|
||||
background-color: transparentize($fg_color,0.9);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
&:backdrop { &:hover, &:disabled, & { @extend %undecorated_button; }}
|
||||
}
|
||||
}
|
||||
|
||||
/************
|
||||
* Assistant *
|
||||
*************/
|
||||
|
||||
assistant {
|
||||
|
||||
border-bottom-left-radius:4px;
|
||||
border-bottom-right-radius:4px;
|
||||
|
||||
.sidebar {
|
||||
background-color: $base_color;
|
||||
border-top: 1px solid $borders_color;
|
||||
|
||||
border-bottom-left-radius:4px;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_base_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
||||
|
||||
&.csd .sidebar { border-top-style: none; }
|
||||
|
||||
.sidebar GtkLabel,
|
||||
.sidebar label { padding: 6px 12px; }
|
||||
|
||||
.sidebar GtkLabel.highlight,
|
||||
.sidebar label.highlight { background-color: mix($bg_color, $fg_color, 80%); }
|
||||
}
|
273
gtk-3.20/widgets/_notebooks.scss
Normal file
273
gtk-3.20/widgets/_notebooks.scss
Normal file
@@ -0,0 +1,273 @@
|
||||
/*************
|
||||
* Notebooks *
|
||||
*************/
|
||||
notebook {
|
||||
> header {
|
||||
padding: 1px;
|
||||
border-color: $borders_color;
|
||||
border-width: 0px;
|
||||
background-color: $bg_color;
|
||||
|
||||
&:backdrop {
|
||||
border-color: $backdrop_borders_color;
|
||||
background-color: $backdrop_bg_color;
|
||||
}
|
||||
|
||||
tabs { margin: -1px; }
|
||||
|
||||
&.top {
|
||||
border-bottom-style: solid;
|
||||
> tabs {
|
||||
margin-bottom: -2px;
|
||||
> tab {
|
||||
|
||||
|
||||
&:backdrop { box-shadow: none; }
|
||||
|
||||
&:checked {
|
||||
background-color: $base_color;
|
||||
&:hover{background-color: $base_color;}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
border-top-style: solid;
|
||||
> tabs {
|
||||
margin-top: -2px;
|
||||
> tab {
|
||||
|
||||
|
||||
&:backdrop { box-shadow: none; }
|
||||
|
||||
&:checked { background-color: $base_color; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.left {
|
||||
border-right-style: solid;
|
||||
> tabs {
|
||||
margin-right: -2px;
|
||||
> tab {
|
||||
|
||||
|
||||
&:backdrop { box-shadow: none; }
|
||||
|
||||
&:checked { background-color: $base_color; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.right {
|
||||
border-left-style: solid;
|
||||
> tabs {
|
||||
margin-left: -2px;
|
||||
> tab {
|
||||
|
||||
|
||||
&:backdrop { box-shadow: none; }
|
||||
|
||||
&:checked { background-color: $base_color; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.top > tabs > arrow {
|
||||
@extend %notebook_vert_arrows;
|
||||
|
||||
border-top-style: none;
|
||||
}
|
||||
|
||||
&.bottom > tabs > arrow {
|
||||
@extend %notebook_vert_arrows;
|
||||
|
||||
border-bottom-style: none;
|
||||
}
|
||||
|
||||
@at-root %notebook_vert_arrows {
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
|
||||
&.down { -gtk-icon-source: -gtk-icontheme('pan-start-symbolic'); }
|
||||
|
||||
&.up { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
|
||||
}
|
||||
|
||||
&.left > tabs > arrow {
|
||||
@extend %notebook_horz_arrows;
|
||||
|
||||
border-left-style: none;
|
||||
}
|
||||
|
||||
&.right > tabs > arrow {
|
||||
@extend %notebook_horz_arrows;
|
||||
|
||||
border-right-style: none;
|
||||
}
|
||||
|
||||
@at-root %notebook_horz_arrows {
|
||||
margin-top: -5px;
|
||||
margin-bottom: -5px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
|
||||
&.down { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
|
||||
|
||||
&.up { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||
}
|
||||
|
||||
> tabs > arrow {
|
||||
@extend %button_basic;
|
||||
|
||||
@extend %button_basic.flat;
|
||||
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
border-radius: 0;
|
||||
|
||||
&:hover:not(:active):not(:backdrop) {
|
||||
background-clip: padding-box;
|
||||
background-image: none;
|
||||
background-color: transparentize(white, 0.7);
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:disabled { @include button(undecorated); }
|
||||
}
|
||||
|
||||
tab {
|
||||
min-height: 30px;
|
||||
min-width: 30px;
|
||||
padding: 3px 12px;
|
||||
|
||||
outline-offset: -5px;
|
||||
|
||||
color: $insensitive_fg_color;
|
||||
font-weight: bold;
|
||||
|
||||
border-width: 1px; // for reorderable tabs
|
||||
border-color: transparent; //
|
||||
|
||||
&:hover {
|
||||
color: mix($insensitive_fg_color, $fg_color, 50%);
|
||||
|
||||
&.reorderable-page {
|
||||
border-color: transparentize($borders_color, 0.7);
|
||||
background-color: transparentize($bg_color, 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
color: mix($backdrop_fg_color, $backdrop_bg_color, 60%);
|
||||
|
||||
&.reorderable-page {
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&:checked {
|
||||
color: $fg_color;
|
||||
&.reorderable-page {
|
||||
border-color: transparentize($borders_color, 0.5);
|
||||
background-color: transparentize($bg_color, 0.5);
|
||||
|
||||
&:hover { background-color: transparentize($bg_color, 0.3); }
|
||||
}
|
||||
}
|
||||
|
||||
&:backdrop:checked {
|
||||
color: $backdrop_fg_color;
|
||||
|
||||
&.reorderable-page {
|
||||
border-color: $backdrop_borders_color;
|
||||
background-color: $backdrop_base_color;
|
||||
}
|
||||
}
|
||||
|
||||
// colors the button like the label, overridden otherwise
|
||||
button.flat {
|
||||
&:hover { background: transparent; box-shadow: none; color: $red; }
|
||||
|
||||
&, &:backdrop { color: gtkalpha(currentColor, 0.3); }
|
||||
|
||||
padding: 0;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
// FIXME: generalize .small-button?
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
|
||||
&:last-child {
|
||||
margin-left: 4px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-left: -4px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.top,
|
||||
&.bottom {
|
||||
tabs {
|
||||
padding-left: 0.5px;
|
||||
padding-right: 0.5px;
|
||||
|
||||
&:not(:only-child) {
|
||||
margin-left: 0.5px;
|
||||
margin-right: 0.5px;
|
||||
|
||||
&:first-child { margin-left: 0.5px; }
|
||||
&:last-child { margin-right: 0.5px; }
|
||||
}
|
||||
|
||||
tab {
|
||||
margin-left: 0.5px;
|
||||
margin-right: 0.5px;
|
||||
|
||||
&.reorderable-page { border-style: none solid; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.left,
|
||||
&.right {
|
||||
tabs {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
|
||||
&:not(:only-child) {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
|
||||
&:first-child { margin-top: -1px; }
|
||||
&:last-child { margin-bottom: -1px; }
|
||||
}
|
||||
|
||||
tab {
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
&.reorderable-page { border-style: solid none; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.top tab { padding-bottom: 4px; }
|
||||
&.bottom tab { padding-top: 4px; }
|
||||
}
|
||||
|
||||
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
|
||||
background-color: $base_color;
|
||||
|
||||
&:backdrop { background-color: $backdrop_base_color; }
|
||||
}
|
||||
}
|
69
gtk-3.20/widgets/_paned.scss
Normal file
69
gtk-3.20/widgets/_paned.scss
Normal file
@@ -0,0 +1,69 @@
|
||||
/*********
|
||||
* Paned *
|
||||
*********/
|
||||
paned {
|
||||
> separator {
|
||||
min-width: 1px;
|
||||
min-height: 1px;
|
||||
-gtk-icon-source: none; // defeats the ugly default handle decoration
|
||||
border-style: none; // just to be sure
|
||||
background-color: transparent;
|
||||
// workaround, using background istead of a border since the border will get rendered twice (?)
|
||||
background-image: image($borders_color);
|
||||
background-size: 1px 1px;
|
||||
|
||||
&:selected { background-image: image($selected_bg_color); } // FIXME is this needed?
|
||||
|
||||
&:backdrop { background-image: image($backdrop_borders_color); }
|
||||
|
||||
&.wide {
|
||||
min-width: 5px;
|
||||
min-height: 5px;
|
||||
background-color: $bg_color;
|
||||
background-image: image($borders_color), image($borders_color);
|
||||
background-size: 1px 1px, 1px 1px;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_bg_color;
|
||||
background-image: image($backdrop_borders_color),
|
||||
image($backdrop_borders_color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.horizontal > separator {
|
||||
background-repeat: repeat-y;
|
||||
|
||||
&:dir(ltr) {
|
||||
margin: 0 -8px 0 0;
|
||||
padding: 0 8px 0 0;
|
||||
background-position: left;
|
||||
}
|
||||
&:dir(rtl) {
|
||||
margin: 0 0 0 -8px;
|
||||
padding: 0 0 0 8px;
|
||||
background-position: right;
|
||||
}
|
||||
|
||||
&.wide {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-repeat: repeat-y, repeat-y;
|
||||
background-position: left, right;
|
||||
}
|
||||
}
|
||||
|
||||
&.vertical > separator {
|
||||
margin: 0 0 -8px 0;
|
||||
padding: 0 0 8px 0;
|
||||
background-repeat: repeat-x;
|
||||
background-position: top;
|
||||
|
||||
&.wide {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-repeat: repeat-x, repeat-x;
|
||||
background-position: bottom, top;
|
||||
}
|
||||
}
|
||||
}
|
29
gtk-3.20/widgets/_pathbars.scss
Normal file
29
gtk-3.20/widgets/_pathbars.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
/************
|
||||
* Pathbars *
|
||||
************/
|
||||
.path-bar button {
|
||||
&.text-button, &.image-button, & {
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
&.text-button.image-button label {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&.text-button.image-button, & {
|
||||
label:last-child { padding-right: 8px; }
|
||||
label:first-child { padding-left: 8px; }
|
||||
}
|
||||
|
||||
image {
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
&.slider-button {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
45
gtk-3.20/widgets/_popovers.scss
Normal file
45
gtk-3.20/widgets/_popovers.scss
Normal file
@@ -0,0 +1,45 @@
|
||||
/***************
|
||||
* Popovers *
|
||||
***************/
|
||||
|
||||
popover.background {
|
||||
padding: 2px;
|
||||
border-radius: 5px;
|
||||
background-color: $popover_bg_color;
|
||||
|
||||
.csd &, & { border: 1px solid $borders_color; }
|
||||
|
||||
box-shadow: 0 1px 6px transparentize(black, 0.6);
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_bg_color;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
> list,
|
||||
> .view,
|
||||
> toolbar {
|
||||
border-style: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.csd &, & {
|
||||
&.touch-selection,
|
||||
&.magnifier {
|
||||
@extend %osd;
|
||||
|
||||
border: 1px solid transparentize(white, 0.9);
|
||||
|
||||
button { @extend %osd_button };
|
||||
}
|
||||
|
||||
&.osd { @extend %osd; }
|
||||
}
|
||||
|
||||
separator { margin: 3px; }
|
||||
|
||||
list separator { margin: 0px; }
|
||||
|
||||
checkbutton,
|
||||
radiobutton { @extend modelbutton.flat; }
|
||||
}
|
18
gtk-3.20/widgets/_print-dialog.scss
Normal file
18
gtk-3.20/widgets/_print-dialog.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
/****************
|
||||
* Print dialog *
|
||||
*****************/
|
||||
printdialog {
|
||||
paper {
|
||||
color: $fg_color;
|
||||
border: 1px solid $borders_color;
|
||||
background: white;
|
||||
padding: 0;
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_fg_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-action-box { margin: 12px; }
|
||||
}
|
56
gtk-3.20/widgets/_progress-bars.scss
Normal file
56
gtk-3.20/widgets/_progress-bars.scss
Normal file
@@ -0,0 +1,56 @@
|
||||
/*****************
|
||||
* Progress bars *
|
||||
*****************/
|
||||
progressbar {
|
||||
// sizing
|
||||
&.horizontal {
|
||||
trough,
|
||||
progress { min-height: 6px; }
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
trough,
|
||||
progress { min-width: 6px; }
|
||||
}
|
||||
|
||||
&.horizontal progress { margin: 0; } // the progress node is positioned after the trough border
|
||||
&.vertical progress { margin: 0; } // this moves it over it.
|
||||
|
||||
|
||||
// FIXME: insensitive state missing and some other state should be set probably
|
||||
font-size: smaller;
|
||||
color: transparentize($fg_color, 0.6);
|
||||
|
||||
&:backdrop {
|
||||
box-shadow: none;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
trough { @extend %scale_trough; }
|
||||
|
||||
&:backdrop trough { @extend %scale_trough:backdrop; } // looks like states are not passed to the trough component here
|
||||
|
||||
progress {
|
||||
@extend %scale_highlight;
|
||||
}
|
||||
|
||||
&:backdrop progress { @extend %scale_highlight:backdrop; } // states not passed here as well
|
||||
|
||||
&.osd { // progressbar.osd used for epiphany page loading progress
|
||||
min-width: 3px;
|
||||
min-height: 3px;
|
||||
background-color: transparent;
|
||||
|
||||
trough {
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
progress {
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
419
gtk-3.20/widgets/_scales.scss
Normal file
419
gtk-3.20/widgets/_scales.scss
Normal file
@@ -0,0 +1,419 @@
|
||||
/************
|
||||
* GtkScale *
|
||||
************/
|
||||
$scale_slider_bg: if($variant == 'light', $base_color, lighten($base_color, 10%));
|
||||
$scale_trough_bg: if($variant == 'light', transparentize(black,0.86), lighten(transparentize($bg_color,0.86), 47%));
|
||||
%scale_trough {
|
||||
background-color: $scale_trough_bg;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
margin: 0;
|
||||
|
||||
&:disabled { background-color: transparentize(black,0.86); }
|
||||
|
||||
&:backdrop {
|
||||
background-color: transparentize(black,0.86);
|
||||
transition: $backdrop_transition;
|
||||
|
||||
&:disabled { background-color: transparentize(black,0.86); }
|
||||
}
|
||||
}
|
||||
|
||||
%scale_highlight {
|
||||
border: none;
|
||||
background-color: $selected_bg_color;
|
||||
border-radius: 3px;
|
||||
margin: 0;
|
||||
|
||||
&:disabled {
|
||||
border: none;
|
||||
background-color: transparentize(black, 0.86);
|
||||
}
|
||||
|
||||
&:backdrop,
|
||||
&:active:backdrop {
|
||||
border-color: lighten($selected_bg_color, 5%);
|
||||
background-color: lighten($selected_bg_color, 5%);
|
||||
&:disabled {
|
||||
background-color: transparentize(black, 0.9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
scale {
|
||||
// sizing
|
||||
$_marks_lenght: 6px;
|
||||
$_marks_distance: 6px;
|
||||
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
padding: 8px;
|
||||
|
||||
&.horizontal {
|
||||
trough,
|
||||
progress { min-height: 6px; }
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
trough,
|
||||
progress { min-width: 6px; }
|
||||
}
|
||||
|
||||
// the slider is inside the trough, so to have make it bigger there's a negative margin
|
||||
|
||||
slider {
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
margin: -7px;
|
||||
|
||||
background-color: $scale_slider_bg;
|
||||
box-shadow: inset 0 1px $top_highlight,
|
||||
0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
border-radius: 12px;
|
||||
|
||||
transition: $button_transition;
|
||||
transition-property: background, border, box-shadow;
|
||||
|
||||
&:active {
|
||||
background-color: $purple;
|
||||
|
||||
&:disabled {
|
||||
background-color: $insensitive_bg_color;
|
||||
box-shadow: inset 0 1px $top_highlight,
|
||||
0px 0px 1px 1px rgba(0,0,0,0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// click-and-hold the slider to activate
|
||||
&.fine-tune {
|
||||
&.horizontal {
|
||||
padding-top: 9px;
|
||||
padding-bottom: 9px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
padding-left: 9px;
|
||||
padding-right: 9px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
// to make the trough grow in fine-tune mode
|
||||
slider { margin: -6px; }
|
||||
|
||||
fill,
|
||||
highlight,
|
||||
trough {
|
||||
border-radius: 5px;
|
||||
-gtk-outline-radius: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
// the backing bit
|
||||
trough {
|
||||
@extend %scale_trough;
|
||||
|
||||
outline-offset: 2px;
|
||||
-gtk-outline-radius: 5px;
|
||||
outline-color: transparent;
|
||||
}
|
||||
|
||||
// the colored part of the backing bit
|
||||
highlight { @extend %scale_highlight; }
|
||||
|
||||
// this is another differently styled part of the backing bit, the most relevant use case is for example
|
||||
// in media player to indicate how much video stream as been cached
|
||||
fill {
|
||||
@extend %scale_trough;
|
||||
|
||||
&:backdrop, & { background-color: $borders_color; }
|
||||
|
||||
&:disabled {
|
||||
&:backdrop, & {
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
// OSD
|
||||
.osd & {
|
||||
background-color: mix($osd_fg_color, $osd_borders_color, 25%);
|
||||
|
||||
&:disabled {
|
||||
&:backdrop, & {
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
slider {
|
||||
border-color: $base_color;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
|
||||
background-color: $scale_slider_bg;
|
||||
box-shadow: inset 0 1px $top_highlight,
|
||||
0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
|
||||
&:hover { @include button(hover-alt, $edge: $shadow_color); }
|
||||
|
||||
&:active { border-color: $selected_borders_color; }
|
||||
|
||||
&:disabled {
|
||||
background-color: $insensitive_bg_color;
|
||||
box-shadow: inset 0 1px $top_highlight,
|
||||
0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
&:backdrop,
|
||||
&:backdrop:disabled {
|
||||
transition: $backdrop_transition;
|
||||
|
||||
background-color: $insensitive_bg_color;
|
||||
box-shadow: inset 0 1px $top_highlight,
|
||||
0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
// ...on selected list rows
|
||||
row:selected & { &:disabled, & { border-color: $selected_borders_color; } }
|
||||
|
||||
// OSD
|
||||
.osd & {
|
||||
@include button(osd);
|
||||
border-color: darken($osd_borders_color, 3%);
|
||||
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||
|
||||
&:hover {
|
||||
@include button(osd-hover);
|
||||
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||
}
|
||||
|
||||
&:active {
|
||||
@include button(osd-active);
|
||||
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
@include button(osd-insensitive);
|
||||
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
@include button(osd-backdrop);
|
||||
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||
|
||||
&:disabled {
|
||||
@include button(osd-backdrop-insensitive);
|
||||
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
value { color: gtkalpha(currentColor, 0.4); }
|
||||
|
||||
marks {
|
||||
color: gtkalpha(currentColor, 0.4);
|
||||
|
||||
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
|
||||
(bottom, bottom, top),
|
||||
(top, left, right),
|
||||
(bottom, right, left) {
|
||||
&.#{$marks_class} {
|
||||
margin-#{$marks_margin}: $_marks_distance;
|
||||
margin-#{$marks_pos}: -($_marks_distance + $_marks_lenght);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.fine-tune marks {
|
||||
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
|
||||
(bottom, bottom, top),
|
||||
(top, left, right),
|
||||
(bottom, right, left) {
|
||||
&.#{$marks_class} {
|
||||
margin-#{$marks_margin}: $_marks_distance;
|
||||
margin-#{$marks_pos}: -($_marks_distance + $_marks_lenght - 3px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
indicator {
|
||||
min-height: $_marks_lenght;
|
||||
min-width: 1px;
|
||||
}
|
||||
|
||||
&.fine-tune indicator { min-height: ($_marks_lenght - 3px); }
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
indicator {
|
||||
min-height: 1px;
|
||||
min-width: $_marks_lenght;
|
||||
}
|
||||
|
||||
&.fine-tune indicator { min-width: ($_marks_lenght - 3px); }
|
||||
}
|
||||
|
||||
// *WARNING* scale with marks madness following
|
||||
|
||||
// FIXME: OSD and selected list rows missing, I don't feel like adding the other 144 assets needed for those...
|
||||
$suffix: if($variant == 'light', '', '-dark');
|
||||
|
||||
@each $dir_class, $dir_infix in ('horizontal', 'horz'),
|
||||
('vertical', 'vert') {
|
||||
@each $marks_infix, $marks_class in ('scale-has-marks-above', 'marks-before:not(.marks-after)'),
|
||||
('scale-has-marks-below', 'marks-after:not(.marks-before)') {
|
||||
@each $state, $state_infix in ('', ''),
|
||||
(':hover', '-hover'),
|
||||
(':active', '-active'),
|
||||
(':disabled', '-insensitive'),
|
||||
(':backdrop', '-backdrop'),
|
||||
(':backdrop:disabled', '-backdrop-insensitive') {
|
||||
&.#{$dir_class}.#{$marks_class} {
|
||||
|
||||
slider {
|
||||
&#{$state} {
|
||||
// an asymmetric slider asset is used here, so the margins are uneven, the smaller
|
||||
// margin is set on the point side.
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
margin: -7px;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
|
||||
background-color: $scale_slider_bg;
|
||||
box-shadow: inset 0 1px $top_highlight,
|
||||
0px 0px 1px 1px rgba(0,0,0,0.1);
|
||||
}
|
||||
}
|
||||
|
||||
&.fine-tune slider {
|
||||
// bigger negative margins to make the trough grow here as well
|
||||
margin: -7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.color {
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
|
||||
trough {
|
||||
background-image: image($borders_color);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
padding: 0 0 15px 0;
|
||||
|
||||
trough {
|
||||
padding-bottom: 4px;
|
||||
background-position: 0 -3px;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
slider {
|
||||
&:dir(ltr), &:dir(rtl) { // specificity bumb
|
||||
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
||||
margin-bottom: -15px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
&:dir(ltr) {
|
||||
padding: 0 0 0 15px;
|
||||
|
||||
trough {
|
||||
padding-left: 4px;
|
||||
background-position: 3px 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
slider {
|
||||
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
||||
margin-left: -15px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:dir(rtl) {
|
||||
padding: 0 15px 0 0;
|
||||
|
||||
trough {
|
||||
padding-right: 4px;
|
||||
background-position: -3px 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-top-left-radius: 0;
|
||||
}
|
||||
|
||||
slider {
|
||||
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
||||
margin-right: -15px;
|
||||
margin-left: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.fine-tune {
|
||||
&.horizontal {
|
||||
&:dir(ltr), &:dir(rtl) { // specificity bump
|
||||
padding: 0 0 12px 0;
|
||||
|
||||
trough {
|
||||
padding-bottom: 7px;
|
||||
background-position: 0 -6px;
|
||||
}
|
||||
|
||||
slider {
|
||||
margin-bottom: -15px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
&:dir(ltr) {
|
||||
padding: 0 0 0 12px;
|
||||
|
||||
trough {
|
||||
padding-left: 7px;
|
||||
background-position: 6px 0;
|
||||
}
|
||||
|
||||
slider {
|
||||
margin-left: -15px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
&:dir(rtl) {
|
||||
padding: 0 12px 0 0;
|
||||
|
||||
trough {
|
||||
padding-right: 7px;
|
||||
background-position: -6px 0;
|
||||
}
|
||||
|
||||
slider {
|
||||
margin-right: -15px;
|
||||
margin-left: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
176
gtk-3.20/widgets/_scrollbars.scss
Normal file
176
gtk-3.20/widgets/_scrollbars.scss
Normal file
@@ -0,0 +1,176 @@
|
||||
/**************
|
||||
* Scrollbars *
|
||||
**************/
|
||||
scrollbar {
|
||||
$_slider_min_length: 40px;
|
||||
|
||||
// disable steppers
|
||||
@at-root * {
|
||||
-GtkScrollbar-has-backward-stepper: false;
|
||||
-GtkScrollbar-has-forward-stepper: false;
|
||||
}
|
||||
|
||||
background-color: $scrollbar_bg_color;
|
||||
transition: 300ms $ease-out-quad;
|
||||
|
||||
// scrollbar border
|
||||
&.top { border-bottom: 1px solid $borders_color; }
|
||||
&.bottom { border-top: 1px solid $borders_color; }
|
||||
&.left { border-right: 1px solid $borders_color; }
|
||||
&.right { border-left: 1px solid $borders_color; }
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_scrollbar_bg_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
// slider
|
||||
slider {
|
||||
min-width: 6px;
|
||||
min-height: 6px;
|
||||
margin: -1px;
|
||||
border: 4px solid transparent;
|
||||
border-radius: 8px;
|
||||
background-clip: padding-box;
|
||||
background-color: $scrollbar_slider_color;
|
||||
|
||||
&:hover { background-color: $scrollbar_slider_hover_color; }
|
||||
|
||||
&:hover:active { background-color: $scrollbar_slider_active_color; }
|
||||
|
||||
&:backdrop { background-color: $backdrop_scrollbar_slider_color; }
|
||||
|
||||
&:disabled { background-color: transparent; }
|
||||
}
|
||||
|
||||
&.fine-tune {
|
||||
slider {
|
||||
min-width: 4px;
|
||||
min-height: 4px;
|
||||
}
|
||||
|
||||
&.horizontal slider { border-width: 5px 4px; }
|
||||
&.vertical slider { border-width: 4px 5px; }
|
||||
}
|
||||
|
||||
&.overlay-indicator {
|
||||
&:not(.dragging):not(.hovering) {
|
||||
border-color: transparent;
|
||||
opacity: 0.4;
|
||||
background-color: transparent;
|
||||
|
||||
slider {
|
||||
margin: 0;
|
||||
min-width: 3px;
|
||||
min-height: 3px;
|
||||
background-color: $fg_color;
|
||||
border: 1px solid if($variant == 'light', white, black);
|
||||
}
|
||||
|
||||
button {
|
||||
min-width: 5px;
|
||||
min-height: 5px;
|
||||
background-color: $fg_color;
|
||||
background-clip: padding-box;
|
||||
border-radius: 100%;
|
||||
border: 1px solid if($variant == 'light', white, black);
|
||||
-gtk-icon-source: none;
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
slider {
|
||||
margin: 0 2px;
|
||||
min-width: $_slider_min_length;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 1px 2px;
|
||||
min-width: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
slider {
|
||||
margin: 2px 0;
|
||||
min-height: $_slider_min_length;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 2px 1px;
|
||||
min-height: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.dragging,
|
||||
&.hovering { opacity: 0.8; }
|
||||
}
|
||||
|
||||
&.horizontal slider { min-width: $_slider_min_length; }
|
||||
|
||||
&.vertical slider { min-height: $_slider_min_length; }
|
||||
|
||||
// button styling
|
||||
button {
|
||||
padding: 0;
|
||||
min-width: 12px;
|
||||
min-height: 12px;
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
transition-property: min-height, min-width, color;
|
||||
|
||||
@include button(undecorated);
|
||||
|
||||
color: $scrollbar_slider_color;
|
||||
|
||||
&:hover {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $scrollbar_slider_hover_color;
|
||||
}
|
||||
&:active, &:checked {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $scrollbar_slider_active_color;
|
||||
}
|
||||
&:disabled {
|
||||
@include button(undecorated);
|
||||
|
||||
color: transparentize($scrollbar_slider_color, 0.8);
|
||||
}
|
||||
&:backdrop {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $backdrop_scrollbar_slider_color;
|
||||
|
||||
&:disabled {
|
||||
@include button(undecorated);
|
||||
|
||||
color: transparentize($backdrop_scrollbar_slider_color, 0.8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// button icons
|
||||
&.vertical {
|
||||
button {
|
||||
&.down { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||
|
||||
&.up { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
|
||||
}
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
button {
|
||||
&.down { -gtk-icon-source: -gtk-icontheme('pan-right-symbolic'); }
|
||||
|
||||
&.up { -gtk-icon-source: -gtk-icontheme('pan-left-symbolic'); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
treeview ~ scrollbar.vertical {
|
||||
border-top: 1px solid $borders_color;
|
||||
margin-top: -1px;
|
||||
}
|
126
gtk-3.20/widgets/_sidebar.scss
Normal file
126
gtk-3.20/widgets/_sidebar.scss
Normal file
@@ -0,0 +1,126 @@
|
||||
/***********
|
||||
* Sidebar *
|
||||
***********/
|
||||
.sidebar {
|
||||
border-style: none;
|
||||
border-width: 0;
|
||||
background-color: mix($bg_color, $base_color, 50%);
|
||||
.frame{
|
||||
border: none;
|
||||
}
|
||||
|
||||
@at-root %sidebar_left,
|
||||
&:dir(ltr),
|
||||
&.left,
|
||||
&.left:dir(rtl) {
|
||||
border-right: none;
|
||||
border-left-style: none;
|
||||
}
|
||||
|
||||
@at-root %sidebar_right
|
||||
&:dir(rtl),
|
||||
&.right {
|
||||
border-left: 1px solid $borders_color;
|
||||
border-right-style: none;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_sidebar_bg_color;
|
||||
border-color: $backdrop_borders_color;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
list { background-color: lighten($bg_color, 0.77%); }
|
||||
row{
|
||||
&:selected{
|
||||
&:backdrop{
|
||||
color: $backdrop_selected_bg_color;
|
||||
background: transparent;
|
||||
label{
|
||||
color: $backdrop_selected_bg_color;
|
||||
}
|
||||
}
|
||||
&:hover{
|
||||
background-color: transparentize($selected_bg_color, 0.2);
|
||||
}
|
||||
background: transparent;
|
||||
color: $purple;
|
||||
label{
|
||||
color: $purple;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//elementary os file manager
|
||||
&.source-list{
|
||||
background-color: $headerbar_color;
|
||||
color: #F2EFEA;
|
||||
padding: 4px 0px;
|
||||
&.view{
|
||||
|
||||
&:selected {
|
||||
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
|
||||
|
||||
&.has-open-popup,
|
||||
&:hover { background-color: transparentize($selected_bg_color, 0.2); }
|
||||
|
||||
&:backdrop { background-color: $backdrop_selected_bg_color; }
|
||||
}
|
||||
&:hover, iconview.source-list:hover {
|
||||
background-color: if(variant == light, transparentize($base_color, 0.4), transparentize($base_color, 0.4));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & {
|
||||
border-style: none;
|
||||
border-color: $borders_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stacksidebar {
|
||||
&.sidebar {
|
||||
&:dir(ltr),
|
||||
&.left,
|
||||
&.left:dir(rtl) { list { @extend %sidebar_left; }}
|
||||
|
||||
&:dir(rtl),
|
||||
&.right { list { @extend %sidebar_right; }}
|
||||
}
|
||||
|
||||
row {
|
||||
padding: 10px 4px;
|
||||
|
||||
> label {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
&.needs-attention > label {
|
||||
@extend %needs_attention;
|
||||
|
||||
background-size: 6px 6px, 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
placessidebar {
|
||||
> viewport.frame { border-style: none; }
|
||||
|
||||
row {
|
||||
&.sidebar-new-bookmark-row { color: $selected_bg_color; }
|
||||
|
||||
&:drop(active):not(:disabled) {
|
||||
&, label, image { color: $drop_target_color; }
|
||||
|
||||
box-shadow: inset 0 1px $drop_target_color,
|
||||
inset 0 -1px $drop_target_color;
|
||||
|
||||
&:selected {
|
||||
&, label, image { color: $selected_fg_color; }
|
||||
background-color: $drop_target_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
192
gtk-3.20/widgets/_spinbuttons.scss
Normal file
192
gtk-3.20/widgets/_spinbuttons.scss
Normal file
@@ -0,0 +1,192 @@
|
||||
/*****************
|
||||
* GtkSpinButton *
|
||||
*****************/
|
||||
spinbutton {
|
||||
&:not(.vertical) {
|
||||
// in this horizontal configuration, the whole spinbutton
|
||||
// behaves as the entry, so we extend the entry styling
|
||||
// and nuke the style on the internal entry
|
||||
@extend %entry;
|
||||
|
||||
padding: 0;
|
||||
|
||||
entry {
|
||||
min-width: 28px;
|
||||
// reset all the other props since the spinbutton node is styled here
|
||||
margin: 0;
|
||||
background: none;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
button {
|
||||
min-height: 16px;
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
color: mix($fg_color, $base_color, 90%);
|
||||
background-image: none;
|
||||
border-style: none none none solid;
|
||||
border-color: transparentize($borders_color, 0.7);
|
||||
border-radius: 0;
|
||||
box-shadow: inset 1px 0px 0px 0px rgba(0,0,0,0.07);
|
||||
|
||||
&:dir(rtl) { border-style: none solid none none; }
|
||||
|
||||
&:hover {
|
||||
color: $fg_color;
|
||||
background-color: $base_hover_color;
|
||||
}
|
||||
|
||||
&:disabled { color: transparentize($insensitive_fg_color, 0.7); }
|
||||
|
||||
&:active {
|
||||
background-color: transparentize(black, 0.9);
|
||||
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
|
||||
background-color: transparent;
|
||||
border-color: transparentize($backdrop_borders_color, 0.7);
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
&:backdrop:disabled {
|
||||
color: transparentize($backdrop_insensitive_color,0.7);
|
||||
background-image: none;
|
||||
border-style: none none none solid; // It is needed or it gets overridden
|
||||
box-shadow: inset 1px 0px 0px 0px rgba(0,0,0,0.07);
|
||||
|
||||
&:dir(rtl) { border-style: none solid none none; }
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OSD horizontal
|
||||
.osd &:not(.vertical) {
|
||||
button {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $osd_fg_color;
|
||||
border-style: none none none solid;
|
||||
border-color: transparentize($osd_borders_color, 0.3);
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
-gtk-icon-shadow: 0 1px black;
|
||||
|
||||
&:dir(rtl) { border-style: none solid none none; }
|
||||
|
||||
&:hover {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $osd_fg_color;
|
||||
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
||||
background-color: transparentize($osd_fg_color, 0.9);
|
||||
-gtk-icon-shadow: 0 1px black;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $osd_fg_color;
|
||||
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
||||
-gtk-icon-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
@include button(undecorated);
|
||||
|
||||
color: $osd_insensitive_fg_color;
|
||||
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
||||
-gtk-icon-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:last-child { border-radius: 0 3px 3px 0; }
|
||||
|
||||
&:dir(rtl):first-child { border-radius: 3px 0 0 3px; }
|
||||
}
|
||||
}
|
||||
|
||||
// Vertical
|
||||
&.vertical {
|
||||
// in the vertical configuration, we treat the spinbutton
|
||||
// as a box, and tweak the style of the entry in the middle
|
||||
// so that it's linked
|
||||
|
||||
// FIXME: this should not be set at all, but otherwise it gets the wrong
|
||||
// color
|
||||
&:disabled { color: $insensitive_fg_color; }
|
||||
&:backdrop:disabled { color: $backdrop_insensitive_color; }
|
||||
|
||||
&:drop(active) {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
entry {
|
||||
min-height: 32px;
|
||||
min-width: 32px;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
min-height: 32px;
|
||||
min-width: 32px;
|
||||
padding: 0;
|
||||
border-width: 1px;
|
||||
border-color: $borders_color;
|
||||
box-shadow: 0 1px $top_highlight;
|
||||
|
||||
&.up { @extend %top_button; }
|
||||
|
||||
&.down { @extend %bottom_button; }
|
||||
}
|
||||
|
||||
%top_button {
|
||||
border-radius: 3px 3px 0 0;
|
||||
border-style: solid solid none solid;
|
||||
}
|
||||
|
||||
%bottom_button {
|
||||
border-radius: 0 0 3px 3px;
|
||||
border-style: none solid solid solid;
|
||||
}
|
||||
}
|
||||
|
||||
// OSD vertical
|
||||
.osd &.vertical button:first-child {
|
||||
@include button(osd);
|
||||
|
||||
&:hover { @include button(osd-hover);}
|
||||
|
||||
&:active { @include button(osd-active); }
|
||||
|
||||
&:disabled { @include button(osd-insensitive); }
|
||||
|
||||
&:backdrop { @include button(osd-backdrop); }
|
||||
}
|
||||
|
||||
// Misc
|
||||
treeview &:not(.vertical) {
|
||||
min-height: 0;
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
|
||||
entry {
|
||||
min-height: 0;
|
||||
padding: 1px 2px;
|
||||
}
|
||||
}
|
||||
}
|
27
gtk-3.20/widgets/_spinner.scss
Normal file
27
gtk-3.20/widgets/_spinner.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
/***********
|
||||
* Spinner *
|
||||
***********/
|
||||
|
||||
menu spinner {
|
||||
color: $selected_bg_color;
|
||||
}
|
||||
|
||||
/*********************
|
||||
* Spinner Animation *
|
||||
*********************/
|
||||
@keyframes spin {
|
||||
to { -gtk-icon-transform: rotate(1turn); }
|
||||
}
|
||||
|
||||
spinner {
|
||||
background: none;
|
||||
opacity: 0; // non spinning spinner makes no sense
|
||||
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
|
||||
|
||||
&:checked {
|
||||
opacity: 1;
|
||||
animation: spin 1s linear infinite;
|
||||
|
||||
&:disabled { opacity: 0.5; }
|
||||
}
|
||||
}
|
101
gtk-3.20/widgets/_switches.scss
Normal file
101
gtk-3.20/widgets/_switches.scss
Normal file
@@ -0,0 +1,101 @@
|
||||
/**********
|
||||
* Switch *
|
||||
**********/
|
||||
$_switch_bg: if($variant == 'light', transparentize(black, 0.9), lighten($base_color, 10%));
|
||||
$_switch_slider_bg:$base_color;
|
||||
|
||||
switch {
|
||||
font-size: 1px;
|
||||
font-weight: bold;
|
||||
outline-offset: -4px;
|
||||
transition: all 200ms ease-in;
|
||||
|
||||
border: none;
|
||||
border-radius: 14px;
|
||||
color: transparent;
|
||||
padding: 2px;
|
||||
|
||||
background-color:$_switch_bg;
|
||||
box-shadow: inset 0 0 0 1px transparentize(black, 0.95), 0px 1px $bottom_highlight;
|
||||
|
||||
&:disabled {
|
||||
background-color: $insensitive_bg_color;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
background-color: darken($_switch_bg, 7%);
|
||||
transition: $backdrop_transition;
|
||||
|
||||
&:disabled { background-color: $insensitive_bg_color; }
|
||||
}
|
||||
|
||||
|
||||
&:active,
|
||||
&:checked {
|
||||
background-color: $lime;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $lime;
|
||||
|
||||
slider {
|
||||
&:backdrop {
|
||||
box-shadow:none;
|
||||
background-color:transparentize($base_color, 0.1);
|
||||
border:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Handle
|
||||
slider {
|
||||
padding:2px;
|
||||
min-width: 16px;
|
||||
min-height: 16px;
|
||||
|
||||
border-radius: 100%;
|
||||
transition: $button_transition;
|
||||
background-color: $_switch_slider_bg;
|
||||
|
||||
box-shadow: 0 2px 2px transparentize(black, 0.8),
|
||||
0 1px 2px transparentize(black, 0.8);
|
||||
|
||||
&:backdrop {
|
||||
padding:2px;
|
||||
box-shadow:none;
|
||||
background-color: $base_color;
|
||||
}
|
||||
}
|
||||
|
||||
&:checked slider { }
|
||||
|
||||
&:backdrop {
|
||||
}
|
||||
|
||||
row:selected & {
|
||||
@if $variant == 'light' {
|
||||
box-shadow: none;
|
||||
border-color: $selected_borders_color;
|
||||
|
||||
&:backdrop { border-color: $selected_borders_color; }
|
||||
|
||||
&.slider:dir(rtl) { border-left-color: $borders_color; }
|
||||
&.slider:dir(ltr) { border-right-color: $borders_color; }
|
||||
|
||||
&.slider { &:checked, & { border-color: $selected_borders_color; } }
|
||||
}
|
||||
}
|
||||
|
||||
// Trough
|
||||
trough {
|
||||
|
||||
&:active,
|
||||
&:checked {
|
||||
background-color: $selected_bg_color;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_selected_bg_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
84
gtk-3.20/widgets/_toolbars.scss
Normal file
84
gtk-3.20/widgets/_toolbars.scss
Normal file
@@ -0,0 +1,84 @@
|
||||
/************
|
||||
* Toolbars *
|
||||
************/
|
||||
%toolbar {
|
||||
-GtkWidget-window-dragging: true;
|
||||
padding: 4px;
|
||||
background-color: $bg_color;
|
||||
}
|
||||
|
||||
toolbar {
|
||||
@extend %toolbar;
|
||||
|
||||
padding: 4px 3px 3px 4px;
|
||||
|
||||
// on OSD
|
||||
.osd & { background-color: transparent; }
|
||||
|
||||
// stand-alone OSD toolbars
|
||||
&.osd {
|
||||
padding: 13px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: $osd_bg_color;
|
||||
|
||||
&.left,
|
||||
&.right,
|
||||
&.top,
|
||||
&.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
|
||||
}
|
||||
|
||||
// toolbar separators
|
||||
&.horizontal separator { margin: 0 7px 1px 6px; }
|
||||
&.vertical separator { margin: 6px 1px 7px 0; }
|
||||
|
||||
&:not(.inline-toolbar):not(.osd) {
|
||||
switch,
|
||||
scale,
|
||||
entry,
|
||||
spinbutton,
|
||||
button {
|
||||
margin-right: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//searchbar, location-bar & inline-toolbar
|
||||
.inline-toolbar {
|
||||
@extend %toolbar;
|
||||
|
||||
@extend %darkbar;
|
||||
|
||||
padding: 3px;
|
||||
border-width: 0 1px 1px;
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
|
||||
searchbar,
|
||||
.location-bar {
|
||||
@extend %toolbar;
|
||||
|
||||
@extend %darkbar;
|
||||
|
||||
border-width: 0 0 1px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
%darkbar {
|
||||
border-style: solid;
|
||||
border-color: $borders_color;
|
||||
$_bg: mix($bg_color, $borders_color, 70%);
|
||||
background-color: $_bg;
|
||||
|
||||
&:backdrop {
|
||||
border-color: $backdrop_borders_color;
|
||||
background-color: $backdrop_dark_fill;
|
||||
box-shadow: none;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
}
|
||||
|
||||
searchbar{
|
||||
background: $base_color;
|
||||
}
|
28
gtk-3.20/widgets/_tooltips.scss
Normal file
28
gtk-3.20/widgets/_tooltips.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
/************
|
||||
* Tooltips *
|
||||
************/
|
||||
tooltip {
|
||||
&.background {
|
||||
// background-color needs to be set this way otherwise it gets drawn twice
|
||||
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
|
||||
background-color: transparentize(black, 0.2);
|
||||
background-clip: padding-box;
|
||||
border: 1px solid $tooltip_borders_color; // this suble border is meant to
|
||||
// not make the tooltip melt with
|
||||
// very dark backgrounds
|
||||
}
|
||||
|
||||
padding: 4px; /* not working */
|
||||
border-radius: 5px;
|
||||
box-shadow: none; // otherwise it gets inherited by windowframe.csd
|
||||
text-shadow: 0 1px black;
|
||||
|
||||
// FIXME: we need a border or tooltips vanish on black background.
|
||||
decoration { background-color: transparent; }
|
||||
|
||||
* { // Yeah this is ugly
|
||||
padding: 4px;
|
||||
background-color: transparent;
|
||||
color: white;
|
||||
}
|
||||
}
|
82
gtk-3.20/widgets/_touch-copy-paste.scss
Normal file
82
gtk-3.20/widgets/_touch-copy-paste.scss
Normal file
@@ -0,0 +1,82 @@
|
||||
/**********************
|
||||
* Touch Copy & Paste *
|
||||
*********************/
|
||||
//touch selection handlebars for the Popover.osd above
|
||||
cursor-handle {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
border-style: none;
|
||||
|
||||
@each $s,$as in ('',''),
|
||||
(':hover','-hover'),
|
||||
(':active','-active') { //no need for insensitive and backdrop
|
||||
&.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) {
|
||||
$_url: 'assets/text-select-start#{$as}#{$asset_suffix}';
|
||||
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
||||
url('#{$_url}@2.png'));
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
&.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) {
|
||||
$_url: 'assets/text-select-end#{$as}#{$asset_suffix}';
|
||||
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
||||
url('#{$_url}@2.png'));
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
&.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) {
|
||||
$_url: 'assets/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}';
|
||||
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
|
||||
url('#{$_url}@2.png'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.context-menu { font: initial; } // Decouple the font of context menus from their entry/textview
|
||||
|
||||
button.circular { // FIXME: aggregate to buttons
|
||||
border-radius: 20px;
|
||||
-gtk-outline-radius: 20px;
|
||||
|
||||
label { padding: 0; }
|
||||
}
|
||||
|
||||
// shortcut window keys
|
||||
.keycap {
|
||||
min-width: 20px;
|
||||
min-height: 25px;
|
||||
margin-top: 2px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
|
||||
color: $fg_color;
|
||||
background-color: $base_color;
|
||||
border: 1px solid;
|
||||
border-color: if($variant == 'light', mix($borders_color, $bg_color, 50%), $borders_color);
|
||||
border-radius: 5px;
|
||||
box-shadow: if($variant == 'light', inset 0 -3px mix($base_color, $bg_color, 20%), inset 0 -3px mix($borders_color, $base_color, 60%));
|
||||
font-size: smaller;
|
||||
|
||||
&:backdrop {
|
||||
background-color: $backdrop_base_color;
|
||||
color: $backdrop_fg_color;
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
}
|
||||
|
||||
*:drop(active):focus,
|
||||
*:drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
|
||||
border-color: $drop_target_color;
|
||||
box-shadow: inset 0 0 0 1px $drop_target_color;
|
||||
}
|
||||
|
||||
stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
|
||||
|
||||
stackswitcher button.circular,
|
||||
stackswitcher button.text-button.circular { // FIXME aggregate with buttons
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
padding: 0;
|
||||
}
|
233
gtk-3.20/widgets/_treeviews.scss
Normal file
233
gtk-3.20/widgets/_treeviews.scss
Normal file
@@ -0,0 +1,233 @@
|
||||
/**************
|
||||
* Tree Views *
|
||||
**************/
|
||||
treeview.view {
|
||||
@at-root * {
|
||||
-GtkTreeView-horizontal-separator: 4;
|
||||
-GtkTreeView-grid-line-width: 1;
|
||||
-GtkTreeView-grid-line-pattern: '';
|
||||
-GtkTreeView-tree-line-width: 1;
|
||||
-GtkTreeView-tree-line-pattern: '';
|
||||
-GtkTreeView-expander-size: 16;
|
||||
}
|
||||
|
||||
border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color,
|
||||
border-top-color: $bg_color; // while this is the grid lines color, better then nothing
|
||||
|
||||
rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
|
||||
|
||||
&:selected {
|
||||
&:focus, & {
|
||||
border-radius: 0;
|
||||
|
||||
@extend %selected_items;
|
||||
}
|
||||
|
||||
&:backdrop, & {
|
||||
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
|
||||
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $insensitive_fg_color;
|
||||
|
||||
&:selected {
|
||||
color: mix($selected_fg_color, $selected_bg_color, 40%);
|
||||
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
||||
}
|
||||
|
||||
&:backdrop { color: $backdrop_insensitive_color; }
|
||||
}
|
||||
|
||||
&.separator {
|
||||
min-height: 2px;
|
||||
color: $bg_color;
|
||||
|
||||
&:backdrop { color: transparentize($bg_color, 0.9); }
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
||||
border-top: $backdrop_bg_color;
|
||||
}
|
||||
&:drop(active) {
|
||||
border-style: solid none;
|
||||
border-width: 1px;
|
||||
border-color: $selected_borders_color;
|
||||
|
||||
&.after { border-top-style: none; }
|
||||
|
||||
&.before { border-bottom-style: none; }
|
||||
}
|
||||
|
||||
&.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_selected_fg_color, $selected_bg_color, 70%); }
|
||||
}
|
||||
|
||||
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||
|
||||
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
|
||||
}
|
||||
|
||||
&.progressbar { // progress bar in treeviews
|
||||
@if $variant == light { color: $base_color; }
|
||||
|
||||
border: 1px solid $selected_borders_color;
|
||||
border-radius: 4px;
|
||||
background-color: $selected_bg_color;
|
||||
background-image: linear-gradient(to bottom,
|
||||
$selected_bg_color,
|
||||
darken($selected_bg_color,10%));
|
||||
box-shadow: inset 0 1px if($variant=='light', transparentize(white,0.7),
|
||||
transparentize(white,0.85)),
|
||||
0 1px if($variant=='light', transparentize(black, 0.8),
|
||||
transparentize(black,0.9));
|
||||
|
||||
&:selected {
|
||||
&:focus, & {
|
||||
border-radius: 4px;
|
||||
|
||||
@if $variant == 'light' {
|
||||
color: $selected_bg_color;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@else { box-shadow: inset 0 1px transparentize(white, 0.95); }
|
||||
|
||||
background-image: linear-gradient(to bottom,
|
||||
$base_color,
|
||||
darken($base_color,10%));
|
||||
|
||||
&:backdrop {
|
||||
@if $variant == 'light' {
|
||||
color: $selected_bg_color;
|
||||
border-color: $selected_borders_color; // otherwise it gets inherited by .view(?!?)
|
||||
}
|
||||
|
||||
@else { border-color: $backdrop_base_color; }
|
||||
|
||||
background-color: $backdrop_base_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
@if $variant == 'light' { color: $backdrop_base_color; }
|
||||
|
||||
@else { border-color: $backdrop_base_color; }
|
||||
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.trough { // progress bar trough in treeviews
|
||||
background-color: transparentize($fg_color,0.9);
|
||||
border-radius: 4px;
|
||||
|
||||
&:selected {
|
||||
&:focus, & {
|
||||
background-color: if($variant == 'light',
|
||||
transparentize($selected_fg_color, 0.7),
|
||||
darken($selected_bg_color, 10%));
|
||||
border-radius: 4px;
|
||||
|
||||
@if $variant == 'light' {
|
||||
border-width: 1px 0;
|
||||
border-style: solid;
|
||||
border-color: $selected_bg_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
button {
|
||||
$_column_header_color: mix($fg_color, $base_color, 50%);
|
||||
|
||||
@extend %column_header_button;
|
||||
|
||||
color: $_column_header_color;
|
||||
background-color: $base_color;
|
||||
font-weight: bold;
|
||||
text-shadow: none;
|
||||
box-shadow: none;
|
||||
|
||||
&:hover {
|
||||
@extend %column_header_button;
|
||||
|
||||
color: mix($_column_header_color, $fg_color, 50%);
|
||||
box-shadow: none;
|
||||
transition: none; //I shouldn't need this
|
||||
}
|
||||
|
||||
&:active {
|
||||
@extend %column_header_button;
|
||||
|
||||
color: $fg_color;
|
||||
transition: none; //I shouldn't need this
|
||||
}
|
||||
}
|
||||
|
||||
button:last-child { &:backdrop, & { border-right-style: none; }}
|
||||
}
|
||||
|
||||
button.dnd,
|
||||
header.button.dnd { // for treeview-like derive widgets
|
||||
&:active, &:selected, &:hover, & {
|
||||
padding: 0 6px;
|
||||
transition: none;
|
||||
background-image: none;
|
||||
background-color: $selected_bg_color;
|
||||
color: $base_color;
|
||||
border-radius: 0;
|
||||
border-style: none;
|
||||
box-shadow: inset 0 0 0 1px $base_color;
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
acceleditor > label { background-color: $selected_bg_color; } // see tests/testaccel to test
|
||||
}
|
||||
|
||||
%column_header_button {
|
||||
padding: 0 6px;
|
||||
border-radius: 0;
|
||||
background-image: none;
|
||||
text-shadow: none;
|
||||
border-width: 1px;
|
||||
border-style: none solid solid none;
|
||||
border-color: $bg_color;
|
||||
|
||||
&:disabled {
|
||||
border-color: $bg_color;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
border-color: $backdrop_bg_color;
|
||||
border-style: none solid solid none;
|
||||
color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
||||
background-image: none;
|
||||
background-color: $backdrop_base_color;
|
||||
|
||||
&:disabled {
|
||||
border-color: $backdrop_bg_color;
|
||||
background-image: none;
|
||||
}
|
||||
}
|
||||
}
|
142
gtk-3.20/widgets/_windows.scss
Normal file
142
gtk-3.20/widgets/_windows.scss
Normal file
@@ -0,0 +1,142 @@
|
||||
/**********************
|
||||
* Window Decorations *
|
||||
*********************/
|
||||
decoration {
|
||||
border-radius: 4px 4px 0 0;
|
||||
|
||||
// lamefun trick to get rounded borders regardless of CSD use
|
||||
border-width: 0px;
|
||||
|
||||
// this needs to be transparent
|
||||
// see bug #722563
|
||||
$_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));
|
||||
|
||||
// lamefun trick to get rounded borders regardless of CSD use
|
||||
border-width: 0px;
|
||||
|
||||
box-shadow: 0 2px 4px 2px transparentize(black, 0.8);
|
||||
|
||||
// FIXME rationalize shadows
|
||||
|
||||
// this is used for the resize cursor area
|
||||
margin: 10px;
|
||||
|
||||
&:backdrop {
|
||||
// the transparent shadow here is to enforce that the shadow extents don't
|
||||
// change when we go to backdrop, to prevent jumping windows.
|
||||
// The biggest shadow should be in the same order then in the active state
|
||||
// or the jumping will happen during the transition.
|
||||
box-shadow: 0 2px 4px 2px transparentize(black, 0.85);
|
||||
transition: $backdrop_transition;
|
||||
}
|
||||
|
||||
.maximized &,
|
||||
.fullscreen &,
|
||||
.tiled & { border-radius: 0; }
|
||||
|
||||
.popup & { box-shadow: none; }
|
||||
|
||||
// server-side decorations as used by mutter
|
||||
.ssd & { } //just doing borders, wm draws actual shadows
|
||||
|
||||
.csd.popup & {
|
||||
border-radius: 0;
|
||||
box-shadow: 0 1px 6px transparentize(black, 0.6),
|
||||
0 0 0 1px transparentize($_wm_border,0.1);
|
||||
}
|
||||
|
||||
tooltip.csd & {
|
||||
border-radius: 5px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
messagedialog.csd & {
|
||||
border-radius: 7px;
|
||||
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
||||
0 0 0 1px transparentize($_wm_border,0.1);
|
||||
}
|
||||
|
||||
.solid-csd & {
|
||||
border-radius: 0;
|
||||
margin: 0px;
|
||||
background-color: $backdrop_bg_color;
|
||||
border: solid 1px $backdrop_borders_color;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Window Close button
|
||||
button.titlebutton {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
min-height: 32px;
|
||||
padding: 0 3px;
|
||||
box-shadow: none;
|
||||
|
||||
&.close {
|
||||
background-image: -gtk-scaled(url("../assets/close.png"),url("../assets/close@2.png"));
|
||||
&:hover,&:active {
|
||||
background-image: -gtk-scaled(url("../assets/close_prelight.png"),url("../assets/close_prelight@2.png"));
|
||||
}
|
||||
}
|
||||
&.maximize {
|
||||
background-image: -gtk-scaled(url("../assets/maximize.png"),url("../assets/maximize@2.png"));
|
||||
&:hover,&:active {
|
||||
background-image: -gtk-scaled(url("../assets/maximize_prelight.png"),url("../assets/maximize_prelight@2.png"));
|
||||
}
|
||||
}
|
||||
&.minimize {
|
||||
background-image: -gtk-scaled(url("../assets/min.png"),url("../assets/min@2.png"));
|
||||
&:hover,&:active {
|
||||
background-image: -gtk-scaled(url("../assets/min_prelight.png"),url("../assets/min_prelight@2.png"));
|
||||
}
|
||||
}
|
||||
|
||||
&.close, &.minimize, &.maximize {
|
||||
&:backdrop {
|
||||
background-image: -gtk-scaled(url("../assets/close_unfocused.png"),url("../assets/close_unfocused@2.png"));
|
||||
}
|
||||
}
|
||||
|
||||
.selection-mode & {
|
||||
@extend %button.flat.suggested-action;
|
||||
|
||||
@extend %nobg_selected_items;
|
||||
}
|
||||
|
||||
&:backdrop {
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
headerbar.selection-mode button.titlebutton,
|
||||
.titlebar.selection-mode button.titlebutton {
|
||||
@include _button_text_shadow(white, $selected_bg_color);
|
||||
|
||||
&:backdrop { -gtk-icon-shadow: none; }
|
||||
}
|
||||
|
||||
|
||||
// catch all extend :)
|
||||
|
||||
%selected_items {
|
||||
background-color: $selected_bg_color;
|
||||
|
||||
@at-root %nobg_selected_items, & {
|
||||
color: $selected_fg_color;
|
||||
font-weight: bold;
|
||||
|
||||
@if $variant == 'light' { outline-color: transparentize($selected_fg_color, 0.7); }
|
||||
|
||||
&:disabled { color: mix($selected_fg_color, $selected_bg_color, 50%); }
|
||||
|
||||
&:backdrop {
|
||||
color: $backdrop_selected_fg_color;
|
||||
|
||||
&:disabled { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.monospace { font-family: Monospace; }
|
Reference in New Issue
Block a user