_sidebar.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /***********
  2. * Sidebar *
  3. ***********/
  4. .sidebar,.nautilus-window .navigation-sidebar {
  5. border-style: none;
  6. border-width: 0;
  7. background-color: mix($bg_color, $base_color, 50%);
  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. padding: 2px 12px;
  32. &:selected{
  33. &:backdrop{
  34. background: transparentize($backdrop_selected_bg_color, 0.3);
  35. label{
  36. color: $backdrop_selected_bg_color;
  37. }
  38. }
  39. &:hover{
  40. background-color: transparentize($selected_bg_color, 0.2);
  41. }
  42. background: transparentize($selected_bg_color, 0.4);
  43. color: $purple;
  44. label{
  45. color: $purple;
  46. }
  47. }
  48. }
  49. //elementary os file manager
  50. &.source-list{
  51. background-color: $headerbar_color;
  52. color: #F2EFEA;
  53. padding: 4px 0px;
  54. &.view{
  55. &:selected {
  56. &:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
  57. &.has-open-popup,
  58. &:hover { background-color: transparentize($selected_bg_color, 0.2); }
  59. &:backdrop { background-color: $backdrop_selected_bg_color; }
  60. }
  61. &:hover, iconview.source-list:hover {
  62. background-color: if(variant == light, transparentize($base_color, 0.4), transparentize($base_color, 0.4));
  63. }
  64. }
  65. }
  66. paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & {
  67. border-style: none;
  68. border-color: $borders_color;
  69. }
  70. }
  71. }
  72. stacksidebar {
  73. &.sidebar {
  74. &:dir(ltr),
  75. &.left,
  76. &.left:dir(rtl) { list { @extend %sidebar_left; }}
  77. &:dir(rtl),
  78. &.right { list { @extend %sidebar_right; }}
  79. }
  80. row {
  81. padding: 10px 4px;
  82. > label {
  83. padding-left: 6px;
  84. padding-right: 6px;
  85. }
  86. &.needs-attention > label {
  87. @extend %needs_attention;
  88. background-size: 6px 6px, 0 0;
  89. }
  90. }
  91. }
  92. placessidebar {
  93. > viewport.frame { border-style: none; }
  94. row {
  95. &.sidebar-new-bookmark-row { color: $selected_bg_color; }
  96. &:drop(active):not(:disabled) {
  97. &, label, image { color: $drop_target_color; }
  98. box-shadow: inset 0 1px $drop_target_color,
  99. inset 0 -1px $drop_target_color;
  100. &:selected {
  101. &, label, image { color: $selected_fg_color; }
  102. background-color: $drop_target_color;
  103. }
  104. }
  105. }
  106. }