_sidebar.scss 4.7 KB

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