_lists.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*********
  2. * Lists *
  3. *********/
  4. list {
  5. color: $text_color;
  6. background-color: $base_color;
  7. border-color: $borders_color;
  8. &:backdrop {
  9. background-color: $backdrop_base_color;
  10. border-color: $backdrop_borders_color;
  11. }
  12. }
  13. row {
  14. padding: 8px 14px;
  15. transition: all 150ms $ease-out-quad;
  16. label {
  17. padding-left: 8px;
  18. }
  19. &:hover { transition: none; }
  20. &:backdrop { transition: $backdrop_transition; }
  21. &.activatable {
  22. &.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
  23. &:hover { background-color: if(variant == light, transparentize($fg_color, 0.9), transparentize($fg_color, 0.95)); }
  24. &:active { box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8); }
  25. &:backdrop:hover { background-color: transparent; }
  26. &:selected {
  27. &:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
  28. &.has-open-popup,
  29. &:hover { background-color: transparentize($selected_bg_color, 0.2); }
  30. &:backdrop { background-color: $backdrop_selected_bg_color; }
  31. }
  32. }
  33. &:selected { @extend %selected_items; }
  34. }