You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

191 lines
3.5 KiB

  1. .sidebar {
  2. background-color: mc('blue-grey', '900');
  3. color: mc('blue-grey', '50');
  4. width: 250px;
  5. max-width: 250px;
  6. min-height: calc(100vh - 120px);
  7. transition: background-color 1s ease;
  8. aside {
  9. padding: 1px 0 15px 0;
  10. &:last-child {
  11. padding-bottom: 20px;
  12. }
  13. .sidebar-label {
  14. padding: 8px;
  15. color: mc('blue-grey', '300');
  16. font-size: 13px;
  17. letter-spacing: 1px;
  18. text-transform: uppercase;
  19. background-color: mc('blue-grey', '800');
  20. margin: 0 0 15px 0;
  21. text-align: center;
  22. box-shadow: 0 0 5px rgba(0,0,0,0.3);
  23. transition: background-color 1s ease;
  24. i {
  25. margin-right: 5px;
  26. }
  27. }
  28. .sidebar-menu {
  29. li {
  30. display: block;
  31. a {
  32. display: flex;
  33. min-height: 30px;
  34. align-items: center;
  35. padding: 5px 20px;
  36. color: mc('blue-grey', '50');
  37. font-size: 14px;
  38. transition: all .4s ease;
  39. line-height: 14px;
  40. cursor: pointer;
  41. &.is-multiline {
  42. flex-wrap: wrap;
  43. }
  44. &.is-active {
  45. border-left: 5px solid mc('blue', '500');
  46. color: mc('blue', '300');
  47. padding-left: 15px;
  48. .is-small {
  49. color: mc('blue', '500');
  50. }
  51. }
  52. i {
  53. margin-right: 7px;
  54. color: mc('blue-grey', '300');
  55. }
  56. &:hover {
  57. color: mc('blue-grey', '400');
  58. text-decoration: none;
  59. }
  60. .is-small {
  61. flex: 1 0 100%;
  62. display: block;
  63. font-size: 11px;
  64. color: rgba(255,255,255,.5)
  65. }
  66. }
  67. > ul {
  68. border-top: 1px solid lighten(mc('blue-grey', '900'), 3%);
  69. border-bottom: 1px solid lighten(mc('blue-grey', '900'), 2%);
  70. background-color: darken(mc('blue-grey', '900'), 2%);
  71. margin-bottom: 10px;
  72. padding: 10px 0;
  73. li {
  74. padding-left: 10px;
  75. //border-left: 5px solid mc('blue-grey', '800');
  76. a {
  77. min-height: 24px;
  78. color: mc('blue-grey', '100');
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. &.is-collapsed {
  86. width: 50px;
  87. aside {
  88. .sidebar-menu li a {
  89. padding: 10px 0;
  90. justify-content: center;
  91. i {
  92. margin: 0;
  93. font-size: 20px;
  94. transition: color .6s ease;
  95. }
  96. span {
  97. display: none;
  98. }
  99. &:hover {
  100. i {
  101. color: #FFF;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. /* THEME OVERRIDE - START */
  109. @each $color, $colorvalue in $material-colors {
  110. .is-alternate-#{$color} .sidebar {
  111. background-color: mc($color, '900');
  112. color: mc($color, '50');
  113. aside {
  114. .sidebar-label {
  115. color: mc($color, '300');
  116. background-color: mc($color, '800');
  117. }
  118. .sidebar-menu {
  119. li {
  120. a {
  121. color: mc($color, '50');
  122. &.is-active {
  123. border-left-color: mc($color, '500');
  124. color: mc($color, '300');
  125. .is-small {
  126. color: mc($color, '500');
  127. }
  128. }
  129. &:hover {
  130. color: mc($color, '400');
  131. }
  132. i {
  133. color: mc($color, '300');
  134. }
  135. }
  136. > ul {
  137. border-top-color: lighten(mc($color, '900'), 3%);
  138. border-bottom-color: lighten(mc($color, '900'), 2%);
  139. background-color: darken(mc($color, '900'), 2%);
  140. li a {
  141. color: mc($color, '100');
  142. }
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. /* THEME OVERRIDE - END */