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