forked from AuroraMiddleware/gtk
Adwaita: fix vertical linked spinbuttons
which I broke in a previous commit...
This commit is contained in:
parent
32b410c77b
commit
183276aa65
@ -336,11 +336,11 @@ entry {
|
||||
|
||||
// linked entries
|
||||
.linked:not(.vertical) > & { @extend %linked; }
|
||||
.linked:not(.vertical) > &:focus + entry,
|
||||
.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) > &:drop(active) + entry,
|
||||
.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; }
|
||||
|
||||
@ -350,7 +350,8 @@ entry {
|
||||
@extend %linked_vertical;
|
||||
|
||||
// brighter border between linked entries
|
||||
&:not(:disabled) + entry:not(:disabled) {
|
||||
&: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);
|
||||
|
||||
@ -361,23 +362,28 @@ entry {
|
||||
}
|
||||
|
||||
// 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; }
|
||||
|
@ -335,45 +335,66 @@ entry progress {
|
||||
spinbutton:not(.vertical) progress:backdrop,
|
||||
entry progress:backdrop {
|
||||
background-color: transparent; }
|
||||
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + entry, .linked:not(.vertical) > spinbutton:focus:not(.vertical) + button, .linked:not(.vertical) > spinbutton:focus:not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:focus + entry, .linked:not(.vertical) >
|
||||
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + spinbutton:not(.vertical), .linked:not(.vertical) > spinbutton:focus:not(.vertical) + button, .linked:not(.vertical) > spinbutton:focus:not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:focus + spinbutton:not(.vertical), .linked:not(.vertical) >
|
||||
entry:focus + button, .linked:not(.vertical) >
|
||||
entry:focus + combobox > box > button.combo {
|
||||
entry:focus + combobox > box > button.combo, .linked:not(.vertical) > spinbutton:focus:not(.vertical) +
|
||||
entry, .linked:not(.vertical) >
|
||||
entry:focus +
|
||||
entry {
|
||||
border-left-color: #0f2b48; }
|
||||
.linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + entry, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + button, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:drop(active) + entry, .linked:not(.vertical) >
|
||||
.linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + spinbutton:not(.vertical), .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + button, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:drop(active) + spinbutton:not(.vertical), .linked:not(.vertical) >
|
||||
entry:drop(active) + button, .linked:not(.vertical) >
|
||||
entry:drop(active) + combobox > box > button.combo {
|
||||
entry:drop(active) + combobox > box > button.combo, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) +
|
||||
entry, .linked:not(.vertical) >
|
||||
entry:drop(active) +
|
||||
entry {
|
||||
border-left-color: #4e9a06; }
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled), .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled) {
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled), .linked.vertical > spinbutton:not(:disabled):not(.vertical) + spinbutton:not(:disabled):not(.vertical), .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled), .linked.vertical >
|
||||
entry:not(:disabled) + spinbutton:not(:disabled):not(.vertical) {
|
||||
border-top-color: #252626;
|
||||
background-image: linear-gradient(to bottom, #292929); }
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled):backdrop, .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled):backdrop {
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled):backdrop, .linked.vertical > spinbutton:not(:disabled):not(.vertical) + spinbutton:not(:disabled):backdrop:not(.vertical), .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled):backdrop, .linked.vertical >
|
||||
entry:not(:disabled) + spinbutton:not(:disabled):backdrop:not(.vertical) {
|
||||
border-top-color: #282929;
|
||||
background-image: linear-gradient(to bottom, #2c2c2c); }
|
||||
.linked.vertical > spinbutton:disabled:not(.vertical) + entry:disabled, .linked.vertical >
|
||||
.linked.vertical > spinbutton:disabled:not(.vertical) + spinbutton:disabled:not(.vertical), .linked.vertical > spinbutton:disabled:not(.vertical) + entry:disabled, .linked.vertical >
|
||||
entry:disabled + spinbutton:disabled:not(.vertical), .linked.vertical >
|
||||
entry:disabled + entry:disabled {
|
||||
border-top-color: #252626; }
|
||||
.linked.vertical > spinbutton:not(.vertical) + spinbutton:focus:not(:only-child):not(.vertical),
|
||||
.linked.vertical > spinbutton:not(.vertical) + entry:focus:not(:only-child), .linked.vertical >
|
||||
entry + spinbutton:focus:not(:only-child):not(.vertical),
|
||||
.linked.vertical >
|
||||
entry + entry:focus:not(:only-child) {
|
||||
border-top-color: #0f2b48; }
|
||||
.linked.vertical > spinbutton:not(.vertical) + spinbutton:drop(active):not(:only-child):not(.vertical),
|
||||
.linked.vertical > spinbutton:not(.vertical) + entry:drop(active):not(:only-child), .linked.vertical >
|
||||
entry + spinbutton:drop(active):not(:only-child):not(.vertical),
|
||||
.linked.vertical >
|
||||
entry + entry:drop(active):not(:only-child) {
|
||||
border-top-color: #4e9a06; }
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + spinbutton:not(.vertical),
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + entry,
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + button,
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + combobox > box > button.combo, .linked.vertical >
|
||||
entry:focus:not(:only-child) + spinbutton:not(.vertical),
|
||||
.linked.vertical >
|
||||
entry:focus:not(:only-child) + entry,
|
||||
.linked.vertical >
|
||||
entry:focus:not(:only-child) + button,
|
||||
.linked.vertical >
|
||||
entry:focus:not(:only-child) + combobox > box > button.combo {
|
||||
border-top-color: #0f2b48; }
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + spinbutton:not(.vertical),
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + entry,
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + button,
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + combobox > box > button.combo, .linked.vertical >
|
||||
entry:drop(active):not(:only-child) + spinbutton:not(.vertical),
|
||||
.linked.vertical >
|
||||
entry:drop(active):not(:only-child) + entry,
|
||||
.linked.vertical >
|
||||
entry:drop(active):not(:only-child) + button,
|
||||
|
@ -335,45 +335,66 @@ entry progress {
|
||||
spinbutton:not(.vertical) progress:backdrop,
|
||||
entry progress:backdrop {
|
||||
background-color: transparent; }
|
||||
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + entry, .linked:not(.vertical) > spinbutton:focus:not(.vertical) + button, .linked:not(.vertical) > spinbutton:focus:not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:focus + entry, .linked:not(.vertical) >
|
||||
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + spinbutton:not(.vertical), .linked:not(.vertical) > spinbutton:focus:not(.vertical) + button, .linked:not(.vertical) > spinbutton:focus:not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:focus + spinbutton:not(.vertical), .linked:not(.vertical) >
|
||||
entry:focus + button, .linked:not(.vertical) >
|
||||
entry:focus + combobox > box > button.combo {
|
||||
entry:focus + combobox > box > button.combo, .linked:not(.vertical) > spinbutton:focus:not(.vertical) +
|
||||
entry, .linked:not(.vertical) >
|
||||
entry:focus +
|
||||
entry {
|
||||
border-left-color: #4a90d9; }
|
||||
.linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + entry, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + button, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:drop(active) + entry, .linked:not(.vertical) >
|
||||
.linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + spinbutton:not(.vertical), .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + button, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) + combobox > box > button.combo, .linked:not(.vertical) >
|
||||
entry:drop(active) + spinbutton:not(.vertical), .linked:not(.vertical) >
|
||||
entry:drop(active) + button, .linked:not(.vertical) >
|
||||
entry:drop(active) + combobox > box > button.combo {
|
||||
entry:drop(active) + combobox > box > button.combo, .linked:not(.vertical) > spinbutton:drop(active):not(.vertical) +
|
||||
entry, .linked:not(.vertical) >
|
||||
entry:drop(active) +
|
||||
entry {
|
||||
border-left-color: #4e9a06; }
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled), .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled) {
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled), .linked.vertical > spinbutton:not(:disabled):not(.vertical) + spinbutton:not(:disabled):not(.vertical), .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled), .linked.vertical >
|
||||
entry:not(:disabled) + spinbutton:not(:disabled):not(.vertical) {
|
||||
border-top-color: #e2e2e0;
|
||||
background-image: linear-gradient(to bottom, #ffffff); }
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled):backdrop, .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled):backdrop {
|
||||
.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled):backdrop, .linked.vertical > spinbutton:not(:disabled):not(.vertical) + spinbutton:not(:disabled):backdrop:not(.vertical), .linked.vertical >
|
||||
entry:not(:disabled) + entry:not(:disabled):backdrop, .linked.vertical >
|
||||
entry:not(:disabled) + spinbutton:not(:disabled):backdrop:not(.vertical) {
|
||||
border-top-color: #e4e4e3;
|
||||
background-image: linear-gradient(to bottom, white); }
|
||||
.linked.vertical > spinbutton:disabled:not(.vertical) + entry:disabled, .linked.vertical >
|
||||
.linked.vertical > spinbutton:disabled:not(.vertical) + spinbutton:disabled:not(.vertical), .linked.vertical > spinbutton:disabled:not(.vertical) + entry:disabled, .linked.vertical >
|
||||
entry:disabled + spinbutton:disabled:not(.vertical), .linked.vertical >
|
||||
entry:disabled + entry:disabled {
|
||||
border-top-color: #e2e2e0; }
|
||||
.linked.vertical > spinbutton:not(.vertical) + spinbutton:focus:not(:only-child):not(.vertical),
|
||||
.linked.vertical > spinbutton:not(.vertical) + entry:focus:not(:only-child), .linked.vertical >
|
||||
entry + spinbutton:focus:not(:only-child):not(.vertical),
|
||||
.linked.vertical >
|
||||
entry + entry:focus:not(:only-child) {
|
||||
border-top-color: #4a90d9; }
|
||||
.linked.vertical > spinbutton:not(.vertical) + spinbutton:drop(active):not(:only-child):not(.vertical),
|
||||
.linked.vertical > spinbutton:not(.vertical) + entry:drop(active):not(:only-child), .linked.vertical >
|
||||
entry + spinbutton:drop(active):not(:only-child):not(.vertical),
|
||||
.linked.vertical >
|
||||
entry + entry:drop(active):not(:only-child) {
|
||||
border-top-color: #4e9a06; }
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + spinbutton:not(.vertical),
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + entry,
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + button,
|
||||
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + combobox > box > button.combo, .linked.vertical >
|
||||
entry:focus:not(:only-child) + spinbutton:not(.vertical),
|
||||
.linked.vertical >
|
||||
entry:focus:not(:only-child) + entry,
|
||||
.linked.vertical >
|
||||
entry:focus:not(:only-child) + button,
|
||||
.linked.vertical >
|
||||
entry:focus:not(:only-child) + combobox > box > button.combo {
|
||||
border-top-color: #4a90d9; }
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + spinbutton:not(.vertical),
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + entry,
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + button,
|
||||
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + combobox > box > button.combo, .linked.vertical >
|
||||
entry:drop(active):not(:only-child) + spinbutton:not(.vertical),
|
||||
.linked.vertical >
|
||||
entry:drop(active):not(:only-child) + entry,
|
||||
.linked.vertical >
|
||||
entry:drop(active):not(:only-child) + button,
|
||||
|
Loading…
Reference in New Issue
Block a user