by roundabout, Saturday, 20 April 2019, 14:47:01 (1555771621), pushed by roundabout, Sunday, 11 May 2025, 13:22:36 (1746969756)
Author identity: nana-4 <hnmaigo@gmail.com>
c4397df574cf8bb93170ebb2b3086e2d2d89c596
src/_sass/gtk/_common-3.20.scss
@@ -218,6 +218,8 @@ entry {
&:focus { @include entry(checked); }
&:drop(active) { @include entry(hover); }
&:disabled { @include entry(disabled); }
&.flat {
@@ -271,10 +273,6 @@ entry {
}
}
&:drop(active) {
// box-shadow: inset 0 0 0 2px $primary;
}
.osd & {
}
}
@@ -299,6 +297,8 @@ entry {
&:focus { @include entry(raised-focus); }
&:drop(active) { @include entry(raised-hover); }
&:disabled { @include entry(raised-disabled); }
// entry error and warning style
@@ -413,6 +413,8 @@ button {
&:checked:disabled { @include button(checked-disabled); }
&:drop(active) { @extend button:hover; }
@at-root %flat_button, &.flat {
@at-root %simple_flat_button, & {
@include button(flat-normal);
@@ -471,10 +473,6 @@ button {
-gtk-outline-radius: $corner-radius;
}
}
&:drop(active) {
// box-shadow: inset 0 0 0 2px $primary;
}
}
@at-root %button_selected {
@@ -815,10 +813,6 @@ spinbutton {
// color
&:disabled { color: $text-disabled; }
&:drop(active) {
box-shadow: none;
}
entry {
@extend %entry_raised;
@@ -917,12 +911,6 @@ combobox {
&:only-child { @extend %linked_entry:only-child; }
}
&:drop(active) { // FIXME: untested
box-shadow: none;
// button.combo { @extend %button_basic:drop(active); }
}
}
// the combo is a composite widget so the way we do button linking doesn't
@@ -1432,10 +1420,11 @@ treeview.view {
color: $divider;
}
// FIXME: box-shadow, background-color and background-image are not available here.
&:drop(active) {
border-style: solid none;
border-width: 1px;
border-color: $primary;
border-width: 9999px;
border-color: $overlay-hover;
&.after { border-top-style: none; }
@@ -1888,6 +1877,15 @@ notebook {
}
}
// FIXME: The tab node doesn't have :drop(active), instead its child box has it.
> box {
transition: $transition;
margin: -$container-padding -12px;
padding: $container-padding 12px;
&:drop(active) { @extend tab:hover; }
}
// colors the button like the label, overridden otherwise
button.flat {
@extend %small_button;
@@ -3035,18 +3033,11 @@ placessidebar {
@extend %small_button;
}
&.sidebar-placeholder-row {
min-height: 2px;
padding: 0 8px;
background-image: image($primary);
background-clip: content-box;
}
&.sidebar-placeholder-row { background-color: $overlay-hover; }
&.sidebar-new-bookmark-row { color: $primary; }
&:drop(active):not(:disabled) {
box-shadow: inset 0 0 0 2px $primary;
}
&:drop(active) { @extend row:hover; }
}
}
@@ -3254,19 +3245,13 @@ colorswatch {
&.light { color: on(light); }
&:drop(active) {
box-shadow: none;
&.light overlay { box-shadow: $shadow-1, 0 0 0 2px $primary; }
&.dark overlay { box-shadow: $shadow-1, 0 0 0 2px $primary; }
}
overlay {
transition: $transition-shadow;
box-shadow: $shadow-1;
&:hover { box-shadow: $shadow-2; }
&:drop(active) { box-shadow: $shadow-2; }
}
&#add-color-button {
@@ -3459,8 +3444,6 @@ cursor-handle {
}
:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
transition: $transition;
box-shadow: $shadow-1, inset 0 0 0 2px $primary;
caret-color: $primary;
}