- commit
- 28d5c51de73d4c3972afa8f8b5f3f02976e29f25
- parent
- 230b3bdfebc674af7cc06f7ccc529989f9196fec
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-06-03 14:06
Revert "integrate spinbutton into linked" This reverts commit 91308ee64164f3d30d827648515ad5eecd4754a3. - on focus, only the outer border should be colored - some of the rules didn't work currectly because the whole thing gets focus, not the individual buttons
Diffstat
| M | gtk-3.0/widgets/button.css | 43 | +++++++++++++++++++------------------------ |
1 files changed, 19 insertions, 24 deletions
diff --git a/gtk-3.0/widgets/button.css b/gtk-3.0/widgets/button.css
@@ -77,75 +77,55 @@ button.link > label {
77 77 text-decoration: underline;
78 78 }
79 79
80 -1 spinbutton:not(.vertical) > button:not(:nth-child(3)), /* 2 undershoot elements before */
81 -1 spinbutton:not(.vertical) > entry:not(:nth-child(3)), /* 2 undershoot elements before */
82 -1 spinbutton:not(.vertical) > text:not(:first-child),
83 80 .linked:not(.vertical) > button:not(:first-child),
84 81 .linked:not(.vertical) > entry:not(:first-child),
85 82 .linked:not(.vertical) > combobox:not(:first-child) button.combo {
86 83 border-top-left-radius: 0;
87 84 border-bottom-left-radius: 0;
88 85 }
89 -1 spinbutton:not(.vertical) > button:not(:last-child),
90 -1 spinbutton:not(.vertical) > entry:not(:last-child),
91 -1 spinbutton:not(.vertical) > text:not(:last-child),
92 86 .linked:not(.vertical) > button:not(:last-child),
93 87 .linked:not(.vertical) > entry:not(:last-child),
94 88 .linked:not(.vertical) > combobox:not(:last-child) button.combo {
95 89 border-top-right-radius: 0;
96 90 border-bottom-right-radius: 0;
97 91 }
98 -1 spinbutton:not(.vertical) > button:not(:last-child),
99 -1 spinbutton:not(.vertical) > entry:not(:last-child),
100 -1 spinbutton:not(.vertical) > text:not(:last-child),
101 92 .linked:not(.vertical) > button:not(:last-child),
102 93 .linked:not(.vertical) > entry:not(:last-child) {
103 94 border-right-width: 0;
104 95 }
105 -1 spinbutton:not(.vertical) > :focus + button,
106 -1 spinbutton:not(.vertical) > :focus + entry,
107 -1 spinbutton:not(.vertical) > :focus + text,
108 96 .linked:not(.vertical) > :focus + button,
109 97 .linked:not(.vertical) > :focus + entry {
110 98 border-left-color: @focus_color;
111 99 }
112 100
113 -1 spinbutton.vertical > button:not(:nth-child(3)), /* 2 undershoot elements before */
114 -1 spinbutton.vertical > entry:not(:nth-child(3)), /* 2 undershoot elements before */
115 -1 spinbutton.vertical > text:not(:first-child),
116 101 .linked.vertical > button:not(:first-child),
117 102 .linked.vertical > entry:not(:first-child),
118 103 .linked.vertical > combobox:not(:first-child) button.combo {
119 104 border-top-left-radius: 0;
120 105 border-top-right-radius: 0;
121 106 }
122 -1 spinbutton.vertical > button:not(:last-child),
123 -1 spinbutton.vertical > entry:not(:last-child),
124 -1 spinbutton.vertical > text:not(:last-child),
125 107 .linked.vertical > button:not(:last-child),
126 108 .linked.vertical > entry:not(:last-child),
127 109 .linked.vertical > combobox:not(:last-child) button.combo {
128 110 border-bottom-left-radius: 0;
129 111 border-bottom-right-radius: 0;
130 112 }
131 -1 spinbutton.vertical > button:not(:last-child),
132 -1 spinbutton.vertical > entry:not(:last-child),
133 -1 spinbutton.vertical > text:not(:last-child),
134 113 .linked.vertical > button:not(:last-child),
135 114 .linked.vertical > entry:not(:last-child) {
136 115 border-bottom-width: 0;
137 116 }
138 -1 spinbutton.vertical > :focus + button,
139 -1 spinbutton.vertical > :focus + entry,
140 -1 spinbutton.vertical > :focus + text,
141 117 .linked.vertical > :focus + button,
142 118 .linked.vertical > :focus + entry {
143 119 border-top-color: @focus_color;
144 120 }
145 121
-1 122 spinbutton {
-1 123 border-width: 1px;
-1 124 }
146 125 spinbutton text,
147 126 spinbutton entry {
148 127 padding: 3px;
-1 128 border-width: 0;
149 129 }
150 130 spinbutton:not(.vertical) text,
151 131 spinbutton:not(.vertical) entry {
@@ -155,6 +135,21 @@ spinbutton.vertical text,
155 135 spinbutton.vertical entry {
156 136 min-height: 2.5em;
157 137 }
-1 138 spinbutton button {
-1 139 border-radius: 0;
-1 140 }
-1 141 spinbutton:not(.vertical) button {
-1 142 border-width: 0 0 0 1px;
-1 143 }
-1 144 spinbutton.vertical button.up {
-1 145 border-width: 0 0 1px;
-1 146 }
-1 147 spinbutton.vertical button.down {
-1 148 border-width: 1px 0 0;
-1 149 }
-1 150 spinbutton button:focus {
-1 151 border-color: @border_color;
-1 152 }
158 153
159 154 switch {
160 155 border-width: 1px;