_sidebar.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. .group {
  69. input, .btn {
  70. border-radius: 0;
  71. }
  72. .btn:first-child {
  73. border-radius: 5px 0 0 5px;
  74. }
  75. .btn:last-child, input:last-child, .dropdown:last-child > .btn {
  76. border-radius: 0 5px 5px 0;
  77. }
  78. .btn + .btn,
  79. .btn + input,
  80. .btn + .dropdown > .btn,
  81. input + .btn,
  82. input + input,
  83. input + .dropdown > .btn,
  84. .dropdown + .btn,
  85. .dropdown + input,
  86. .dropdown + .dropdown > .btn {
  87. border-left: 1px solid variables.$grey-medium-light;
  88. }
  89. }
  90. .aside {
  91. background: variables.$sid-bg;
  92. &.aside_feed {
  93. padding: 10px 0;
  94. text-align: center;
  95. background: variables.$sid-bg;
  96. }
  97. &.aside_feed .tree {
  98. margin: 10px 0 50px;
  99. }
  100. }
  101. /* Sidebar des pages de configuration */
  102. /*=== Navigation */
  103. .nav-list {
  104. font-size: 1rem;
  105. .item.nav-header,
  106. .item {
  107. min-height: 2.5em;
  108. line-height: 2.5em;
  109. }
  110. .item {
  111. background: variables.$sid-bg;
  112. color: variables.$white;
  113. min-height: 2.5em;
  114. line-height: 2.5em;
  115. &.nav-header {
  116. min-height: 2.5em;
  117. line-height: 2.5em;
  118. }
  119. a {
  120. padding: 0 1rem;
  121. color: variables.$sid-font-color;
  122. @include mixins.transition(all, 0.15s, ease-in-out);
  123. }
  124. a:hover {
  125. background: variables.$sid-bg-dark;
  126. text-decoration: none;
  127. }
  128. &.active {
  129. background: variables.$main-first;
  130. color: variables.$white;
  131. a {
  132. background: variables.$main-first;
  133. color: variables.$white;
  134. text-decoration: none;
  135. }
  136. }
  137. }
  138. .nav-header {
  139. padding: 0 1rem;
  140. font-weight: bold;
  141. color: variables.$grey-dark;
  142. text-transform: uppercase;
  143. letter-spacing: 1px;
  144. }
  145. .nav-form {
  146. padding: 3px;
  147. text-align: center;
  148. }
  149. }
  150. /*=== Aside main page (categories) */
  151. .aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
  152. width: calc(100% - 35px - 35px);
  153. }
  154. .aside.aside_feed .category .title:not([data-unread="0"])::after {
  155. margin: 1rem 0 0 0;
  156. background-color: variables.$sid-pills;
  157. }
  158. .aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
  159. margin: 0.5em 0 0 0;
  160. background-color: variables.$sid-pills;
  161. }
  162. .feed.item.empty.active {
  163. background: variables.$grey-dark;
  164. }
  165. .feed.item.error.active {
  166. background: variables.$grey-dark;
  167. }
  168. .feed.item.empty,
  169. .feed.item.empty > a {
  170. color: variables.$grey-dark;
  171. }
  172. .feed.item.error,
  173. .feed.item.error > a {
  174. color: variables.$grey-dark;
  175. }
  176. .feed.item.empty.active,
  177. .feed.item.error.active,
  178. .feed.item.empty.active > a,
  179. .feed.item.error.active > a {
  180. color: variables.$white;
  181. }
  182. .aside_feed .tree-folder-items .dropdown-menu::after {
  183. left: 2px;
  184. }
  185. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  186. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  187. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  188. border-radius: 3px;
  189. }
  190. .aside_feed .stick #btn-add {
  191. border-left-color: variables.$sid-bg;
  192. }