_sidebar.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. .error {
  118. a {
  119. color: variables.$alert-bg;
  120. }
  121. }
  122. &:hover {
  123. .error {
  124. a {
  125. background: variables.$main-first;
  126. color: variables.$sid-font-color;
  127. }
  128. }
  129. .empty {
  130. a {
  131. background: variables.$warning-bg;
  132. color: variables.$sid-font-color;
  133. }
  134. }
  135. a {
  136. background: variables.$sid-bg-dark;
  137. text-decoration: none;
  138. }
  139. }
  140. &.active {
  141. background: variables.$main-first;
  142. color: variables.$white;
  143. .error {
  144. a {
  145. background: variables.$main-first;
  146. color: variables.$white;
  147. }
  148. }
  149. .empty {
  150. a {
  151. background: variables.$warning-bg;
  152. color: variables.$white;
  153. }
  154. }
  155. a {
  156. background: variables.$main-first;
  157. color: variables.$white;
  158. text-decoration: none;
  159. }
  160. }
  161. }
  162. &.empty {
  163. a {
  164. color: variables.$warning-bg;
  165. }
  166. }
  167. .nav-header {
  168. padding: 0 10px;
  169. font-weight: bold;
  170. color: variables.$grey-dark;
  171. text-transform: uppercase;
  172. letter-spacing: 1px;
  173. margin-top: 1rem;
  174. }
  175. .nav-form {
  176. padding: 3px;
  177. text-align: center;
  178. }
  179. }
  180. /*=== Aside main page (categories) */
  181. .aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
  182. width: calc(100% - 35px - 35px);
  183. }
  184. .aside.aside_feed .category .title:not([data-unread="0"])::after {
  185. margin: 1rem 0 0 0;
  186. background-color: variables.$sid-pills;
  187. }
  188. .aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
  189. margin: 0.5em 0 0 0;
  190. background-color: variables.$sid-pills;
  191. }
  192. .feed.item.empty.active {
  193. background: variables.$grey-dark;
  194. }
  195. .feed.item.error.active {
  196. background: variables.$grey-dark;
  197. }
  198. .feed.item.empty,
  199. .feed.item.empty > a {
  200. color: variables.$grey-dark;
  201. }
  202. .feed.item.error,
  203. .feed.item.error > a {
  204. color: variables.$grey-dark;
  205. }
  206. .feed.item.empty.active,
  207. .feed.item.error.active,
  208. .feed.item.empty.active > a,
  209. .feed.item.error.active > a {
  210. color: variables.$white;
  211. }
  212. .aside_feed .tree-folder-items .dropdown-menu::after {
  213. left: 2px;
  214. }
  215. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  216. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  217. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  218. border-radius: 3px;
  219. }
  220. .aside_feed .stick #btn-add {
  221. border-left-color: variables.$sid-bg;
  222. }