_sidebar.scss 5.1 KB

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