@@ -96,62 +96,68 @@ class SelectionList(Generic[SelectionType], OptionList):
96
96
DEFAULT_CSS = """
97
97
SelectionList {
98
98
height: auto;
99
- }
100
-
101
- SelectionList:light:focus > .selection-list--button-selected {
102
- color : $primary ;
103
- }
99
+
100
+ & > .selection-list--button {
101
+ text-style: bold;
102
+ background : $foreground 15% ;
103
+ }
104
104
105
- SelectionList:light > .selection-list--button-selected-highlighted {
106
- color: $primary;
107
- }
105
+ & > .selection-list--button-highlighted {
106
+ text-style: bold;
107
+ background: $foreground 15%;
108
+ }
108
109
109
- SelectionList:light:focus > .selection-list--button-selected-highlighted {
110
- color: $primary;
111
- }
110
+ & > .selection-list--button-selected {
111
+ text-style: bold;
112
+ color: $success;
113
+ background: $foreground 15%;
114
+ }
112
115
113
- SelectionList > .selection-list--button {
114
- text-style: bold;
115
- background: $foreground 15%;
116
- }
116
+ & > .selection-list--button-selected-highlighted {
117
+ text-style: bold;
118
+ color: $success;
119
+ background: $foreground 15%;
120
+ }
117
121
118
- SelectionList:focus > .selection-list--button {
119
- text-style: bold;
120
- background : $foreground 25% ;
121
- }
122
+ &:light {
123
+ & > .selection-list--button-selected-highlighted {
124
+ color : $primary ;
125
+ }
122
126
123
- SelectionList > .selection-list--button-highlighted {
124
- text-style: bold;
125
- background: $foreground 15%;
126
- }
127
+ &:focus {
128
+ & > .selection-list--button-selected {
129
+ color: $primary;
130
+ }
131
+ & > .selection-list--button-selected-highlighted {
132
+ color: $primary;
133
+ }
134
+ }
135
+ }
127
136
128
- SelectionList:focus > .selection-list--button-highlighted {
129
- text-style: bold;
130
- background: $foreground 25%;
131
- }
137
+ &:focus {
138
+ & > .selection-list--button {
139
+ text-style: bold;
140
+ background: $foreground 25%;
141
+ }
132
142
133
- SelectionList > .selection-list--button-selected {
134
- text-style: bold;
135
- color: $success;
136
- background: $foreground 15%;
137
- }
143
+ & > .selection-list--button-highlighted {
144
+ text-style: bold;
145
+ background: $foreground 25%;
146
+ }
138
147
139
- SelectionList:focus > .selection-list--button-selected {
140
- text-style: bold;
141
- color: $success;
142
- background: $foreground 25%;
143
- }
148
+ & > .selection-list--button-selected {
149
+ text-style: bold;
150
+ color: $success;
151
+ background: $foreground 25%;
152
+ }
144
153
145
- SelectionList > .selection-list--button-selected-highlighted {
146
- text-style: bold;
147
- color: $success;
148
- background: $foreground 15%;
149
- }
154
+ & > .selection-list--button-selected-highlighted {
155
+ text-style: bold;
156
+ color: $success;
157
+ background: $foreground 25%;
158
+ }
159
+ }
150
160
151
- SelectionList:focus > .selection-list--button-selected-highlighted {
152
- text-style: bold;
153
- color: $success;
154
- background: $foreground 25%;
155
161
}
156
162
"""
157
163
0 commit comments