_sidebar.scss 5.1 KB

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