- commit
- 548aa303168adca499b4853d1fdce6be7893a1c1
- parent
- b6b171f4aa89696d661ec71fc37821fcca5f1c18
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-06-01 23:29
linked buttons: avoid double overwrite
Diffstat
| M | gtk-3.0/widgets/button.css | 60 | ++++++++++++++++++++++++------------------------------------ |
1 files changed, 24 insertions, 36 deletions
diff --git a/gtk-3.0/widgets/button.css b/gtk-3.0/widgets/button.css
@@ -77,27 +77,20 @@ button.link > label {
77 77 text-decoration: underline;
78 78 }
79 79
80 -1 .linked > button,
81 -1 .linked > entry,
82 -1 .linked:not(.vertical) > combobox button.combo,
83 -1 .linked.vertical > combobox button.combo {
84 -1 border-radius: 0;
85 -1 }
86 -1
87 -1 .linked:not(.vertical) > button:first-child,
88 -1 .linked:not(.vertical) > entry:first-child,
89 -1 .linked:not(.vertical) > combobox:first-child button.combo {
90 -1 border-top-left-radius: 3px;
91 -1 border-bottom-left-radius: 3px;
-1 80 .linked:not(.vertical) > button:not(:first-child),
-1 81 .linked:not(.vertical) > entry:not(:first-child),
-1 82 .linked:not(.vertical) > combobox:not(:first-child) button.combo {
-1 83 border-top-left-radius: 0;
-1 84 border-bottom-left-radius: 0;
92 85 }
93 -1 .linked:not(.vertical) > button:last-child,
94 -1 .linked:not(.vertical) > entry:last-child,
95 -1 .linked:not(.vertical) > combobox:last-child button.combo {
96 -1 border-top-right-radius: 3px;
97 -1 border-bottom-right-radius: 3px;
-1 86 .linked:not(.vertical) > button:not(:last-child),
-1 87 .linked:not(.vertical) > entry:not(:last-child),
-1 88 .linked:not(.vertical) > combobox:not(:last-child) button.combo {
-1 89 border-top-right-radius: 0;
-1 90 border-bottom-right-radius: 0;
98 91 }
99 -1 .linked:not(.vertical) > button,
100 -1 .linked:not(.vertical) > entry {
-1 92 .linked:not(.vertical) > button:not(:last-child),
-1 93 .linked:not(.vertical) > entry:not(:last-child) {
101 94 border-right-width: 0;
102 95 }
103 96 .linked:not(.vertical) > :focus + button,
@@ -105,20 +98,20 @@ button.link > label {
105 98 border-left-color: @focus_color;
106 99 }
107 100
108 -1 .linked.vertical > button:first-child,
109 -1 .linked.vertical > entry:first-child,
110 -1 .linked.vertical > combobox:first-child button.combo {
111 -1 border-top-left-radius: 3px;
112 -1 border-top-right-radius: 3px;
-1 101 .linked.vertical > button:not(:first-child),
-1 102 .linked.vertical > entry:not(:first-child),
-1 103 .linked.vertical > combobox:not(:first-child) button.combo {
-1 104 border-top-left-radius: 0;
-1 105 border-top-right-radius: 0;
113 106 }
114 -1 .linked.vertical > button:last-child,
115 -1 .linked.vertical > entry:last-child,
116 -1 .linked.vertical > combobox:last-child button.combo {
117 -1 border-bottom-left-radius: 3px;
118 -1 border-bottom-right-radius: 3px;
-1 107 .linked.vertical > button:not(:last-child),
-1 108 .linked.vertical > entry:not(:last-child),
-1 109 .linked.vertical > combobox:not(:last-child) button.combo {
-1 110 border-bottom-left-radius: 0;
-1 111 border-bottom-right-radius: 0;
119 112 }
120 -1 .linked.vertical > button,
121 -1 .linked.vertical > entry {
-1 113 .linked.vertical > button:not(:last-child),
-1 114 .linked.vertical > entry:not(:last-child) {
122 115 border-bottom-width: 0;
123 116 }
124 117 .linked.vertical > :focus + button,
@@ -126,11 +119,6 @@ button.link > label {
126 119 border-top-color: @focus_color;
127 120 }
128 121
129 -1 .linked > button:last-child,
130 -1 .linked > entry:last-child {
131 -1 border-width: 1px;
132 -1 }
133 -1
134 122 spinbutton {
135 123 border-width: 1px;
136 124 }