_sidebar.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. padding: 0 1rem;
  147. color: variables.$sid-font-color;
  148. @include mixins.transition(all, 0.15s, ease-in-out);
  149. }
  150. a:hover {
  151. background: variables.$sid-bg-dark;
  152. text-decoration: none;
  153. }
  154. &.active {
  155. background: variables.$main-first;
  156. color: variables.$white;
  157. a {
  158. background: variables.$main-first;
  159. color: variables.$white;
  160. text-decoration: none;
  161. }
  162. }
  163. }
  164. .nav-header {
  165. padding: 0 1rem;
  166. font-weight: bold;
  167. color: variables.$grey-dark;
  168. text-transform: uppercase;
  169. letter-spacing: 1px;
  170. }
  171. .nav-form {
  172. padding: 3px;
  173. text-align: center;
  174. }
  175. }
  176. /*=== Aside main page (categories) */
  177. .aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
  178. width: calc(100% - 35px - 35px);
  179. }
  180. .aside.aside_feed .category .title:not([data-unread="0"])::after {
  181. margin: 0.75rem 0 0 0;
  182. background-color: variables.$sid-pills;
  183. }
  184. .aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
  185. margin: 0.5em 0 0 0;
  186. background-color: variables.$sid-pills;
  187. }
  188. .feed.item.empty.active {
  189. background: variables.$grey-dark;
  190. }
  191. .feed.item.error.active {
  192. background: variables.$grey-dark;
  193. }
  194. .feed.item.empty,
  195. .feed.item.empty > a {
  196. color: variables.$grey-dark;
  197. }
  198. .feed.item.error,
  199. .feed.item.error > a {
  200. color: variables.$grey-dark;
  201. }
  202. .feed.item.empty.active,
  203. .feed.item.error.active,
  204. .feed.item.empty.active > a,
  205. .feed.item.error.active > a {
  206. color: variables.$white;
  207. }
  208. .aside_feed .tree-folder-items .dropdown-menu::after {
  209. left: 2px;
  210. }
  211. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  212. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  213. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  214. border-radius: 3px;
  215. }
  216. .aside_feed .stick #btn-add {
  217. border-left-color: variables.$sid-bg;
  218. }