_sidebar.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /***********
  2. * Sidebar *
  3. ***********/
  4. .sidebar {
  5. border-style: none;
  6. border-width: 0;
  7. background-color: lighten($bg_color, 0.77%);
  8. .frame{
  9. border: none;
  10. }
  11. @at-root %sidebar_left,
  12. &:dir(ltr),
  13. &.left,
  14. &.left:dir(rtl) {
  15. border-right: none;
  16. border-left-style: none;
  17. }
  18. @at-root %sidebar_right
  19. &:dir(rtl),
  20. &.right {
  21. border-left: 1px solid $borders_color;
  22. border-right-style: none;
  23. }
  24. &:backdrop {
  25. background-color: $backdrop_sidebar_bg_color;
  26. border-color: $backdrop_borders_color;
  27. transition: $backdrop_transition;
  28. }
  29. list { background-color: lighten($bg_color, 0.77%); }
  30. row{
  31. margin: 0 10px;
  32. padding: 10px 12px;
  33. border-radius: 10px;
  34. &:selected {
  35. &:backdrop{
  36. background: transparentize($backdrop_selected_bg_color, 0.3);
  37. label{
  38. color: $backdrop_selected_bg_color;
  39. }
  40. }
  41. &:hover{
  42. background-color: transparentize($selected_bg_color, 0.2);
  43. }
  44. background: transparentize($selected_bg_color, 0.4);
  45. color: $purple;
  46. label{
  47. color: $purple;
  48. }
  49. }
  50. }
  51. //elementary os file manager
  52. &.source-list{
  53. background-color: $headerbar_color;
  54. color: #F2EFEA;
  55. padding: 4px 0px;
  56. &.view{
  57. &:selected {
  58. &:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
  59. &.has-open-popup,
  60. &:hover { background-color: transparentize($selected_bg_color, 0.2); }
  61. &:backdrop { background-color: $backdrop_selected_bg_color; }
  62. }
  63. &:hover, iconview.source-list:hover {
  64. background-color: if(variant == light, transparentize($base_color, 0.4), transparentize($base_color, 0.4));
  65. }
  66. }
  67. }
  68. paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & {
  69. border-style: none;
  70. border-color: $borders_color;
  71. }
  72. }
  73. }
  74. stacksidebar {
  75. &.sidebar {
  76. &:dir(ltr),
  77. &.left,
  78. &.left:dir(rtl) { list { @extend %sidebar_left; }}
  79. &:dir(rtl),
  80. &.right { list { @extend %sidebar_right; }}
  81. }
  82. row {
  83. padding: 10px 4px;
  84. > label {
  85. padding-left: 6px;
  86. padding-right: 6px;
  87. }
  88. &.needs-attention > label {
  89. @extend %needs_attention;
  90. background-size: 6px 6px, 0 0;
  91. }
  92. }
  93. }
  94. placessidebar {
  95. > viewport.frame { border-style: none; }
  96. row {
  97. &.sidebar-new-bookmark-row { color: $selected_bg_color; }
  98. &:drop(active):not(:disabled) {
  99. &, label, image { color: $drop_target_color; }
  100. box-shadow: inset 0 1px $drop_target_color,
  101. inset 0 -1px $drop_target_color;
  102. &:selected {
  103. &, label, image { color: $selected_fg_color; }
  104. background-color: $drop_target_color;
  105. }
  106. }
  107. }
  108. }