Changeset View
Changeset View
Standalone View
Standalone View
src/gtk3/widgets/_button.scss
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | 159 | %buttons { | |||
---|---|---|---|---|---|
186 | } | 186 | } | ||
187 | &:active, &:checked, &:focus { | 187 | &:active, &:checked, &:focus { | ||
188 | @include button(active); | 188 | @include button(active); | ||
189 | transition-duration: 50ms; | 189 | transition-duration: 50ms; | ||
190 | &:hover { | 190 | &:hover { | ||
191 | @include button(active-hover); | 191 | @include button(active-hover); | ||
192 | } | 192 | } | ||
193 | } | 193 | } | ||
194 | &:checked { | ||||
195 | background-color: gtkmix("@theme_button_background_normal", "@theme_button_foreground_normal", 0.2); | ||||
196 | border-color: gtkmix("@theme_button_background_normal", "@theme_button_foreground_normal", 0.2); | ||||
197 | } | ||||
194 | &:backdrop { | 198 | &:backdrop { | ||
195 | @include button(backdrop); | 199 | @include button(backdrop); | ||
196 | -gtk-icon-effect: none; | 200 | -gtk-icon-effect: none; | ||
197 | &:active, &:checked, &:focus { | 201 | &:active, &:checked, &:focus { | ||
198 | @include button(backdrop-active); | 202 | @include button(backdrop-active); | ||
199 | } | 203 | } | ||
204 | &:checked { | ||||
205 | background-color: gtkmix("@theme_button_background_backdrop", "@theme_button_foreground_backdrop", 0.2); | ||||
206 | border-color: gtkmix("@theme_button_background_backdrop", "@theme_button_foreground_backdrop", 0.2); | ||||
207 | } | ||||
200 | &:disabled { | 208 | &:disabled { | ||
201 | @include button(backdrop-insensitive); | 209 | @include button(backdrop-insensitive); | ||
202 | } | 210 | } | ||
203 | &:disabled:active, &:disabled:checked, &:disabled:focus { | 211 | &:disabled:active, &:disabled:checked, &:disabled:focus { | ||
204 | @include button(backdrop-insensitive-active); | 212 | @include button(backdrop-insensitive-active); | ||
213 | &:checked { | ||||
214 | background-color: gtkmix("@theme_button_background_backdrop_insensitive", "@theme_button_foreground_backdrop_insensitive", 0.2); | ||||
215 | border-color: gtkmix("@theme_button_background_backdrop_insensitive", "@theme_button_foreground_backdrop_insensitive", 0.2); | ||||
216 | } | ||||
205 | } | 217 | } | ||
206 | } | 218 | } | ||
207 | &.flat:backdrop { | 219 | &.flat:backdrop { | ||
208 | -gtk-icon-effect: none; | 220 | -gtk-icon-effect: none; | ||
209 | @include button(undecorated); | 221 | @include button(undecorated); | ||
210 | color: gtk("@theme_button_foreground_backdrop"); | 222 | color: gtk("@theme_button_foreground_backdrop"); | ||
211 | } | 223 | } | ||
212 | &.flat:disabled { | 224 | &.flat:disabled { | ||
213 | @include button(undecorated); | 225 | @include button(undecorated); | ||
214 | color: gtk("@theme_button_foreground_insensitive"); | 226 | color: gtk("@theme_button_foreground_insensitive"); | ||
215 | } | 227 | } | ||
216 | &.flat:backdrop:disabled { | 228 | &.flat:backdrop:disabled { | ||
217 | @include button(undecorated); | 229 | @include button(undecorated); | ||
218 | color: gtk("@theme_button_foreground_backdrop_insensitive"); | 230 | color: gtk("@theme_button_foreground_backdrop_insensitive"); | ||
219 | } | 231 | } | ||
220 | &:disabled { | 232 | &:disabled { | ||
221 | @include button(insensitive); | 233 | @include button(insensitive); | ||
222 | &:active, &:checked, &:focus { | 234 | &:active, &:checked, &:focus { | ||
223 | @include button(insensitive-active); | 235 | @include button(insensitive-active); | ||
224 | } | 236 | } | ||
237 | &:checked { | ||||
238 | background-color: gtkmix("@theme_button_background_insensitive", "@theme_button_foreground_insensitive", 0.2); | ||||
239 | border-color: gtkmix("@theme_button_background_insensitive", "@theme_button_foreground_insensitive", 0.2); | ||||
240 | } | ||||
225 | } | 241 | } | ||
226 | separator { | 242 | separator { | ||
227 | background-color: transparent; | 243 | background-color: transparent; | ||
228 | background-image: none; | 244 | background-image: none; | ||
229 | color: transparent; | 245 | color: transparent; | ||
230 | } | 246 | } | ||
231 | } | 247 | } | ||
232 | %button, | 248 | %button, | ||
▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines |