_sidebar.scss 5.0 KB

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