- commit
- 91308ee64164f3d30d827648515ad5eecd4754a3
- parent
- adf7fd0fcdb4293537c7f9f74026042ab91c80ac
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-06-02 01:04
integrate spinbutton into linked
Diffstat
| M | gtk-3.0/widgets/button.css | 35 | ++++++++++++++++------------------- |
1 files changed, 16 insertions, 19 deletions
diff --git a/gtk-3.0/widgets/button.css b/gtk-3.0/widgets/button.css
@@ -77,55 +77,67 @@ button.link > label {
77 77 text-decoration: underline;
78 78 }
79 79
-1 80 spinbutton:not(.vertical) > button:not(:nth-child(3)), /* 2 undershoot elements before */
-1 81 spinbutton:not(.vertical) > entry:not(:nth-child(3)), /* 2 undershoot elements before */
80 82 .linked:not(.vertical) > button:not(:first-child),
81 83 .linked:not(.vertical) > entry:not(:first-child),
82 84 .linked:not(.vertical) > combobox:not(:first-child) button.combo {
83 85 border-top-left-radius: 0;
84 86 border-bottom-left-radius: 0;
85 87 }
-1 88 spinbutton:not(.vertical) > button:not(:last-child),
-1 89 spinbutton:not(.vertical) > entry:not(:last-child),
86 90 .linked:not(.vertical) > button:not(:last-child),
87 91 .linked:not(.vertical) > entry:not(:last-child),
88 92 .linked:not(.vertical) > combobox:not(:last-child) button.combo {
89 93 border-top-right-radius: 0;
90 94 border-bottom-right-radius: 0;
91 95 }
-1 96 spinbutton:not(.vertical) > button:not(:last-child),
-1 97 spinbutton:not(.vertical) > entry:not(:last-child),
92 98 .linked:not(.vertical) > button:not(:last-child),
93 99 .linked:not(.vertical) > entry:not(:last-child) {
94 100 border-right-width: 0;
95 101 }
-1 102 spinbutton:not(.vertical) > :focus + button,
-1 103 spinbutton:not(.vertical) > :focus + entry,
96 104 .linked:not(.vertical) > :focus + button,
97 105 .linked:not(.vertical) > :focus + entry {
98 106 border-left-color: @focus_color;
99 107 }
100 108
-1 109 spinbutton.vertical > button:not(:nth-child(3)), /* 2 undershoot elements before */
-1 110 spinbutton.vertical > entry:not(:nth-child(3)), /* 2 undershoot elements before */
101 111 .linked.vertical > button:not(:first-child),
102 112 .linked.vertical > entry:not(:first-child),
103 113 .linked.vertical > combobox:not(:first-child) button.combo {
104 114 border-top-left-radius: 0;
105 115 border-top-right-radius: 0;
106 116 }
-1 117 spinbutton.vertical > button:not(:last-child),
-1 118 spinbutton.vertical > entry:not(:last-child),
107 119 .linked.vertical > button:not(:last-child),
108 120 .linked.vertical > entry:not(:last-child),
109 121 .linked.vertical > combobox:not(:last-child) button.combo {
110 122 border-bottom-left-radius: 0;
111 123 border-bottom-right-radius: 0;
112 124 }
-1 125 spinbutton.vertical > button:not(:last-child),
-1 126 spinbutton.vertical > entry:not(:last-child),
113 127 .linked.vertical > button:not(:last-child),
114 128 .linked.vertical > entry:not(:last-child) {
115 129 border-bottom-width: 0;
116 130 }
-1 131 spinbutton.vertical > :focus + button,
-1 132 spinbutton.vertical > :focus + entry,
117 133 .linked.vertical > :focus + button,
118 134 .linked.vertical > :focus + entry {
119 135 border-top-color: @focus_color;
120 136 }
121 137
122 -1 spinbutton {
123 -1 border-width: 1px;
124 -1 }
125 138 spinbutton text,
126 139 spinbutton entry {
127 140 padding: 3px;
128 -1 border-width: 0;
129 141 }
130 142 spinbutton:not(.vertical) text,
131 143 spinbutton:not(.vertical) entry {
@@ -135,21 +147,6 @@ spinbutton.vertical text,
135 147 spinbutton.vertical entry {
136 148 min-height: 2.5em;
137 149 }
138 -1 spinbutton button {
139 -1 border-radius: 0;
140 -1 }
141 -1 spinbutton:not(.vertical) button {
142 -1 border-width: 0 0 0 1px;
143 -1 }
144 -1 spinbutton.vertical button.up {
145 -1 border-width: 0 0 1px;
146 -1 }
147 -1 spinbutton.vertical button.down {
148 -1 border-width: 1px 0 0;
149 -1 }
150 -1 spinbutton button:focus {
151 -1 border-color: @border_color;
152 -1 }
153 150
154 151 switch {
155 152 border-width: 1px;