|
293 | 293 | } |
294 | 294 | } |
295 | 295 |
|
296 | | - modelbutton { |
| 296 | + modelbutton.flat, |
| 297 | + menuitem.button.flat { |
297 | 298 | padding: $spacing ($spacing + 2px); |
298 | | - border: none; |
299 | | - transition: 150ms ease; |
300 | 299 | outline-color: transparent; |
| 300 | + transition: none; |
301 | 301 |
|
302 | | - &, &:backdrop, &.flat, &.flat:backdrop { |
303 | | - //@extend %undecorated_button; |
| 302 | + @extend %undecorated_button; |
304 | 303 |
|
305 | | - &:hover { background-color: $selected_bg_color; color: $selected_fg_color } |
306 | | - |
307 | | - &:active, &:selected { &, arrow { @extend %selected_items; } } |
308 | | - |
309 | | - &:checked { color: $fg_color; } |
| 304 | + &:hover { |
| 305 | + background-color: $selected_bg_color; |
| 306 | + color: $selected_fg_color; |
| 307 | + } |
310 | 308 |
|
311 | | - // FIXME: temporary workaround |
312 | | - check:last-child, |
313 | | - radio:last-child { margin-left: 8px; } |
| 309 | + &:active, &:selected { &, arrow { @extend %selected_items; } } |
314 | 310 |
|
315 | | - check:first-child, |
316 | | - radio:first-child { margin-right: 8px; } |
| 311 | + &:checked { color: $fg_color; } |
317 | 312 |
|
318 | | - &.flat arrow { |
319 | | - &.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); } |
| 313 | + arrow { |
| 314 | + &.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); } |
320 | 315 |
|
321 | | - &.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } |
322 | | - } |
| 316 | + &.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } |
323 | 317 | } |
324 | 318 |
|
325 | | - &.flat { |
326 | | - &, &:hover { |
327 | | - transition: none; |
328 | | - } |
329 | | - } |
| 319 | + // FIXME: temporary workaround |
| 320 | + check:last-child, |
| 321 | + radio:last-child { margin-left: 8px; } |
| 322 | + |
| 323 | + check:first-child, |
| 324 | + radio:first-child { margin-right: 8px; } |
330 | 325 | } |
331 | 326 | } |
0 commit comments