_sidebar.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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: 12px 16px;
  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. vertical-align: middle;
  69. font-size: 0;
  70. input, .btn {
  71. border-radius: 0;
  72. }
  73. .btn:first-child {
  74. border-radius: 5px 0 0 5px;
  75. }
  76. .btn:last-child, input:last-child, .btn + .dropdown > .btn {
  77. border-radius: 0 5px 5px 0;
  78. }
  79. .btn + .btn,
  80. .btn + input,
  81. .btn + .dropdown > .btn,
  82. input + .btn,
  83. input + input,
  84. input + .dropdown > .btn,
  85. .dropdown + .btn,
  86. .dropdown + input,
  87. .dropdown + .dropdown > .btn {
  88. border-left: 1px solid variables.$grey-medium-light;
  89. }
  90. }
  91. .aside {
  92. background: variables.$sid-bg;
  93. &.aside_feed {
  94. padding: 10px 0;
  95. text-align: center;
  96. background: variables.$sid-bg;
  97. }
  98. &.aside_feed .tree {
  99. margin: 10px 0 50px;
  100. }
  101. }
  102. /* Sidebar des pages de configuration */
  103. /*=== Navigation */
  104. .nav-list {
  105. .nav-header,
  106. .item {
  107. height: 2.5em;
  108. line-height: 2.5em;
  109. font-size: 1rem;
  110. }
  111. .item {
  112. background: variables.$sid-bg;
  113. color: variables.$white;
  114. a {
  115. padding: 0 1rem;
  116. color: variables.$sid-font-color;
  117. @include mixins.transition(all, 0.15s, ease-in-out);
  118. }
  119. .error {
  120. a {
  121. color: variables.$alert-bg;
  122. }
  123. }
  124. &:hover {
  125. .error {
  126. a {
  127. background: variables.$main-first;
  128. color: variables.$sid-font-color;
  129. }
  130. }
  131. .empty {
  132. a {
  133. background: variables.$warning-bg;
  134. color: variables.$sid-font-color;
  135. }
  136. }
  137. a {
  138. background: variables.$sid-bg-dark;
  139. text-decoration: none;
  140. }
  141. }
  142. &.active {
  143. background: variables.$main-first;
  144. color: variables.$white;
  145. .error {
  146. a {
  147. background: variables.$main-first;
  148. color: variables.$white;
  149. }
  150. }
  151. .empty {
  152. a {
  153. background: variables.$warning-bg;
  154. color: variables.$white;
  155. }
  156. }
  157. a {
  158. background: variables.$main-first;
  159. color: variables.$white;
  160. text-decoration: none;
  161. }
  162. }
  163. }
  164. &.empty {
  165. a {
  166. color: variables.$warning-bg;
  167. }
  168. }
  169. .disable {
  170. text-align: center;
  171. background: variables.$grey-lighter;
  172. color: variables.$grey-medium-dark;
  173. }
  174. .nav-header {
  175. padding: 0 10px;
  176. font-weight: bold;
  177. color: variables.$grey-dark;
  178. text-transform: uppercase;
  179. letter-spacing: 1px;
  180. margin-top: 1rem;
  181. }
  182. .nav-form {
  183. padding: 3px;
  184. text-align: center;
  185. }
  186. .nav-head {
  187. margin: 0;
  188. text-align: right;
  189. color: variables.$white;
  190. a {
  191. color: variables.$white;
  192. }
  193. .item {
  194. padding: 5px 10px;
  195. font-size: 0.9rem;
  196. line-height: 1.5rem;
  197. }
  198. }
  199. }
  200. /*=== Aside main page (categories) */
  201. .aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
  202. width: calc(100% - 35px - 35px);
  203. }
  204. .aside.aside_feed .category .title:not([data-unread="0"])::after {
  205. margin: 1.5em 0 0 0;
  206. background-color: variables.$sid-pills;
  207. }
  208. .aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
  209. margin: 0.5em 0 0 0;
  210. background-color: variables.$sid-pills;
  211. }
  212. .feed.item.empty.active {
  213. background: variables.$grey-dark;
  214. }
  215. .feed.item.error.active {
  216. background: variables.$grey-dark;
  217. }
  218. .feed.item.empty,
  219. .feed.item.empty > a {
  220. color: variables.$grey-dark;
  221. }
  222. .feed.item.error,
  223. .feed.item.error > a {
  224. color: variables.$grey-dark;
  225. }
  226. .feed.item.empty.active,
  227. .feed.item.error.active,
  228. .feed.item.empty.active > a,
  229. .feed.item.error.active > a {
  230. color: variables.$white;
  231. }
  232. .aside_feed .tree-folder-items .dropdown-menu::after {
  233. left: 2px;
  234. }
  235. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  236. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  237. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  238. border-radius: 3px;
  239. }
  240. .aside_feed .stick #btn-add {
  241. border-left-color: variables.$sid-bg;
  242. }