_sidebar.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. /*=== Tree */
  2. .tree {
  3. margin: 10px 0;
  4. &#sidebar {
  5. scrollbar-color: rgba(255,255, 0, 0.1) rgba(0, 0, 0, 0.05);
  6. scrollbar-color: unquote($sid-font-color+"33") unquote($sid-font-color+"22");
  7. }
  8. .tree-folder {
  9. border-bottom: 1px solid $sid-sep;
  10. .tree-folder-title {
  11. padding: 12px 16px;
  12. background: $sid-bg;
  13. position: relative;
  14. font-size: 0.85rem;
  15. letter-spacing: 1px;
  16. font-weight: 700;
  17. text-transform: uppercase;
  18. .title {
  19. background: inherit;
  20. color: $sid-font-color;
  21. &:hover {
  22. text-decoration: none;
  23. }
  24. }
  25. }
  26. &.active {
  27. .tree-folder-title {
  28. background: $sid-bg;
  29. font-weight: bold;
  30. }
  31. }
  32. .tree-folder-items {
  33. background: $sid-bg-alt;
  34. .item {
  35. padding: 0 1rem;
  36. line-height: 2.5rem;
  37. font-size: 1rem;
  38. font-weight: 400;
  39. @include transition(all, 0.15s, ease-in-out);
  40. &.active {
  41. background: $sid-active;
  42. .dropdown li a {
  43. color: $main-font-color;
  44. &:hover {
  45. color: $sid-font-color;
  46. }
  47. }
  48. a {
  49. color: $sid-active-font;
  50. }
  51. }
  52. &:hover {
  53. background: $sid-bg-dark;
  54. }
  55. a {
  56. text-decoration: none;
  57. color: $sid-font-color;
  58. }
  59. }
  60. .feed .item-title:not([data-unread="0"])::before {
  61. margin: 11px 6px 0 4px;
  62. padding: 3px 4px;
  63. background: $sid-pills;
  64. display: block;
  65. float: left;
  66. font-size: 0.75rem;
  67. border-radius: 12px;
  68. content: attr(data-unread);
  69. text-align: center;
  70. line-height: 0.75rem;
  71. }
  72. }
  73. }
  74. }
  75. /*=== Buttons */
  76. .stick {
  77. vertical-align: middle;
  78. font-size: 0;
  79. input, .btn {
  80. border-radius: 0;
  81. }
  82. .btn:first-child,
  83. input:first-child {
  84. border-radius: 5px 0 0 5px;
  85. }
  86. .btn:last-child, input:last-child, .btn + .dropdown > .btn {
  87. border-radius: 0 5px 5px 0;
  88. }
  89. .btn + .btn,
  90. .btn + input,
  91. .btn + .dropdown > .btn,
  92. input + .btn,
  93. input + input,
  94. input + .dropdown > .btn,
  95. .dropdown + .btn,
  96. .dropdown + input,
  97. .dropdown + .dropdown > .btn {
  98. border-left: 1px solid $grey-medium-light;
  99. }
  100. }
  101. .aside {
  102. background: $sid-bg;
  103. &.aside_feed {
  104. padding: 10px 0;
  105. text-align: center;
  106. background: $sid-bg;
  107. }
  108. &.aside_feed .tree {
  109. margin: 10px 0 50px;
  110. }
  111. }
  112. /* Sidebar des pages de configuration */
  113. /*=== Navigation */
  114. .nav-list {
  115. .nav-header,
  116. .item {
  117. height: 2.5em;
  118. line-height: 2.5em;
  119. font-size: 1rem;
  120. }
  121. .item {
  122. background: $sid-bg;
  123. @include transition(all, 0.15s, ease-in-out);
  124. a {
  125. padding: 0 1rem;
  126. color: $sid-font-color;
  127. }
  128. .error {
  129. a {
  130. color: $alert-bg;
  131. }
  132. }
  133. &:hover {
  134. background: $sid-bg-dark;
  135. color: $sid-font-color;
  136. .error {
  137. a {
  138. background: $main-first;
  139. color: $sid-font-color;
  140. }
  141. }
  142. .empty {
  143. a {
  144. background: $warning-bg;
  145. color: $sid-font-color;
  146. }
  147. }
  148. a {
  149. color: $sid-font-color;
  150. text-decoration: none;
  151. }
  152. }
  153. &.active {
  154. background: $main-first;
  155. color: $white;
  156. .error {
  157. a {
  158. background: $main-first;
  159. color: $white;
  160. }
  161. }
  162. .empty {
  163. a {
  164. background: $warning-bg;
  165. color: $white;
  166. }
  167. }
  168. a {
  169. color: $white;
  170. text-decoration: none;
  171. }
  172. }
  173. }
  174. &.empty {
  175. a {
  176. color: $warning-bg;
  177. }
  178. }
  179. .disable {
  180. text-align: center;
  181. background: $grey-lighter;
  182. color: $grey-medium-dark;
  183. }
  184. .nav-header {
  185. padding: 0 10px;
  186. font-weight: bold;
  187. color: $grey-dark;
  188. text-transform: uppercase;
  189. letter-spacing: 1px;
  190. margin-top: 1rem;
  191. }
  192. .nav-form {
  193. padding: 3px;
  194. text-align: center;
  195. }
  196. .nav-head {
  197. margin: 0;
  198. text-align: right;
  199. // background: #34495e;
  200. color: $white;
  201. a {
  202. color: $white;
  203. }
  204. .item {
  205. padding: 5px 10px;
  206. font-size: 0.9rem;
  207. line-height: 1.5rem;
  208. }
  209. }
  210. }
  211. /*=== Aside main page (categories) */
  212. .aside_feed .tree-folder-title > .title:not([data-unread="0"])::after {
  213. margin: -0.5rem 1rem 0 0;
  214. padding: 0 0.75rem;
  215. background: $sid-pills;
  216. border-radius: 12px;
  217. position: absolute;
  218. right: 0;
  219. line-height: 1.5rem;
  220. text-align: center;
  221. }
  222. .feed.item.empty.active {
  223. background: $grey-dark;
  224. }
  225. .feed.item.error.active {
  226. background: $grey-dark;
  227. }
  228. .feed.item.empty,
  229. .feed.item.empty > a {
  230. color: $grey-dark;
  231. }
  232. .feed.item.error,
  233. .feed.item.error > a {
  234. color: $grey-dark;
  235. }
  236. .feed.item.empty.active,
  237. .feed.item.error.active,
  238. .feed.item.empty.active > a,
  239. .feed.item.error.active > a {
  240. color: $white;
  241. }
  242. .aside_feed .tree-folder-items .dropdown-menu::after {
  243. left: 2px;
  244. }
  245. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  246. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  247. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  248. border-radius: 3px;
  249. }
  250. .aside_feed .stick #btn-add {
  251. border-left-color: $sid-bg;
  252. }