_sidebar.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. @use "sass:string";
  2. @use "mixins";
  3. @use "variables";
  4. /*=== Tree */
  5. .tree {
  6. margin: 10px 0;
  7. &#sidebar {
  8. scrollbar-color: rgba(255,255, 0, 0.1) rgba(0, 0, 0, 0.05);
  9. scrollbar-color: string.unquote(variables.$sid-font-color + "33") string.unquote(variables.$sid-font-color + "22");
  10. }
  11. .tree-folder {
  12. border-bottom: 1px solid variables.$sid-sep;
  13. .tree-folder-title {
  14. padding: 1rem;
  15. background: variables.$sid-bg;
  16. position: relative;
  17. font-size: 0.85rem;
  18. letter-spacing: 1px;
  19. font-weight: 700;
  20. text-transform: uppercase;
  21. .title {
  22. background: inherit;
  23. color: variables.$sid-font-color;
  24. &:hover {
  25. text-decoration: none;
  26. }
  27. }
  28. }
  29. &.active {
  30. .tree-folder-title {
  31. background: variables.$sid-bg;
  32. font-weight: bold;
  33. }
  34. }
  35. .tree-folder-items {
  36. background: variables.$sid-bg-alt;
  37. .item {
  38. padding: 0 1rem;
  39. line-height: 2.5rem;
  40. font-size: 1rem;
  41. font-weight: 400;
  42. @include mixins.transition(all, 0.15s, ease-in-out);
  43. &.active {
  44. background: variables.$sid-active;
  45. .dropdown li a {
  46. color: variables.$main-font-color;
  47. &:hover {
  48. color: variables.$sid-font-color;
  49. }
  50. }
  51. a {
  52. color: variables.$sid-active-font;
  53. }
  54. }
  55. &:hover {
  56. background: variables.$sid-bg-dark;
  57. }
  58. a {
  59. text-decoration: none;
  60. color: variables.$sid-font-color;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. /*=== Buttons */
  67. .stick {
  68. input, .btn {
  69. border-radius: 0;
  70. }
  71. .btn:first-child {
  72. border-radius: 5px 0 0 5px;
  73. }
  74. .btn:last-child, input:last-child, .btn + .dropdown > .btn {
  75. border-radius: 0 5px 5px 0;
  76. }
  77. .btn + .btn,
  78. .btn + input,
  79. .btn + .dropdown > .btn,
  80. input + .btn,
  81. input + input,
  82. input + .dropdown > .btn,
  83. .dropdown + .btn,
  84. .dropdown + input,
  85. .dropdown + .dropdown > .btn {
  86. border-left: 1px solid variables.$grey-medium-light;
  87. }
  88. }
  89. .aside {
  90. background: variables.$sid-bg;
  91. &.aside_feed {
  92. padding: 10px 0;
  93. text-align: center;
  94. background: variables.$sid-bg;
  95. }
  96. &.aside_feed .tree {
  97. margin: 10px 0 50px;
  98. }
  99. }
  100. /* Sidebar des pages de configuration */
  101. /*=== Navigation */
  102. .nav-list {
  103. .nav-header,
  104. .item {
  105. height: 2.5em;
  106. line-height: 2.5em;
  107. font-size: 1rem;
  108. }
  109. .item {
  110. background: variables.$sid-bg;
  111. color: variables.$white;
  112. a {
  113. padding: 0 1rem;
  114. color: variables.$sid-font-color;
  115. @include mixins.transition(all, 0.15s, ease-in-out);
  116. }
  117. &:hover {
  118. a {
  119. background: variables.$sid-bg-dark;
  120. text-decoration: none;
  121. }
  122. }
  123. &.active {
  124. background: variables.$main-first;
  125. color: variables.$white;
  126. a {
  127. background: variables.$main-first;
  128. color: variables.$white;
  129. text-decoration: none;
  130. }
  131. }
  132. }
  133. .nav-header {
  134. padding: 0 10px;
  135. font-weight: bold;
  136. color: variables.$grey-dark;
  137. text-transform: uppercase;
  138. letter-spacing: 1px;
  139. margin-top: 1rem;
  140. }
  141. .nav-form {
  142. padding: 3px;
  143. text-align: center;
  144. }
  145. }
  146. /*=== Aside main page (categories) */
  147. .aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
  148. width: calc(100% - 35px - 35px);
  149. }
  150. .aside.aside_feed .category .title:not([data-unread="0"])::after {
  151. margin: 1rem 0 0 0;
  152. background-color: variables.$sid-pills;
  153. }
  154. .aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
  155. margin: 0.5em 0 0 0;
  156. background-color: variables.$sid-pills;
  157. }
  158. .feed.item.empty.active {
  159. background: variables.$grey-dark;
  160. }
  161. .feed.item.error.active {
  162. background: variables.$grey-dark;
  163. }
  164. .feed.item.empty,
  165. .feed.item.empty > a {
  166. color: variables.$grey-dark;
  167. }
  168. .feed.item.error,
  169. .feed.item.error > a {
  170. color: variables.$grey-dark;
  171. }
  172. .feed.item.empty.active,
  173. .feed.item.error.active,
  174. .feed.item.empty.active > a,
  175. .feed.item.error.active > a {
  176. color: variables.$white;
  177. }
  178. .aside_feed .tree-folder-items .dropdown-menu::after {
  179. left: 2px;
  180. }
  181. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  182. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  183. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  184. border-radius: 3px;
  185. }
  186. .aside_feed .stick #btn-add {
  187. border-left-color: variables.$sid-bg;
  188. }