_sidebar.scss 4.7 KB

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