_sidebar.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. .group {
  70. input, .btn {
  71. border-radius: 0;
  72. }
  73. .btn:first-child {
  74. border-radius: 5px 0 0 5px;
  75. }
  76. .btn:last-child, input:last-child, .dropdown:last-child > .btn {
  77. border-radius: 0 5px 5px 0;
  78. }
  79. .btn + .btn,
  80. .btn + input,
  81. .btn + .dropdown > .btn,
  82. input + .btn,
  83. input + input,
  84. input + .dropdown > .btn,
  85. .dropdown + .btn,
  86. .dropdown + input,
  87. .dropdown + .dropdown > .btn {
  88. border-left: 1px solid variables.$grey-medium-light;
  89. }
  90. }
  91. .aside {
  92. background: variables.$sid-bg;
  93. &.aside_feed {
  94. padding: 10px 0;
  95. text-align: center;
  96. background: variables.$sid-bg;
  97. border-right: 1px solid variables.$sid-sep;
  98. }
  99. &.aside_feed .tree {
  100. margin: 10px 0 50px;
  101. }
  102. }
  103. /* Sidebar des pages de configuration */
  104. /*=== Navigation */
  105. .nav-list {
  106. font-size: 1rem;
  107. .item.nav-header,
  108. .item {
  109. min-height: 2.5em;
  110. line-height: 2.5em;
  111. }
  112. .item {
  113. background: variables.$sid-bg;
  114. min-height: 2.5em;
  115. line-height: 2.5em;
  116. &.nav-header {
  117. min-height: 2.5em;
  118. line-height: 2.5em;
  119. }
  120. a {
  121. padding: 0 1rem;
  122. color: variables.$sid-font-color;
  123. @include mixins.transition(all, 0.15s, ease-in-out);
  124. }
  125. a:hover {
  126. background: variables.$sid-bg-dark;
  127. text-decoration: none;
  128. }
  129. &.active {
  130. background: variables.$main-first;
  131. color: variables.$white;
  132. a {
  133. background: variables.$main-first;
  134. color: variables.$white;
  135. text-decoration: none;
  136. }
  137. }
  138. }
  139. .nav-header {
  140. padding: 0 1rem;
  141. font-weight: bold;
  142. color: variables.$grey-dark;
  143. text-transform: uppercase;
  144. letter-spacing: 1px;
  145. margin-top: 1rem;
  146. }
  147. .nav-form {
  148. padding: 3px;
  149. text-align: center;
  150. }
  151. }
  152. /*=== Aside main page (categories) */
  153. .aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
  154. width: calc(100% - 35px - 35px);
  155. }
  156. .aside.aside_feed .category .title:not([data-unread="0"])::after {
  157. margin: 1rem 0 0 0;
  158. background-color: variables.$sid-pills;
  159. }
  160. .aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
  161. margin: 0.5em 0 0 0;
  162. background-color: variables.$sid-pills;
  163. }
  164. .feed.item.empty.active {
  165. background: variables.$grey-dark;
  166. }
  167. .feed.item.error.active {
  168. background: variables.$grey-dark;
  169. }
  170. .feed.item.empty,
  171. .feed.item.empty > a {
  172. color: variables.$grey-dark;
  173. }
  174. .feed.item.error,
  175. .feed.item.error > a {
  176. color: variables.$grey-dark;
  177. }
  178. .feed.item.empty.active,
  179. .feed.item.error.active,
  180. .feed.item.empty.active > a,
  181. .feed.item.error.active > a {
  182. color: variables.$white;
  183. }
  184. .aside_feed .tree-folder-items .dropdown-menu::after {
  185. left: 2px;
  186. }
  187. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  188. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  189. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  190. border-radius: 3px;
  191. }
  192. .aside_feed .stick #btn-add {
  193. border-left-color: variables.$sid-bg;
  194. }