暫無描述
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.

_sidebar.scss 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. .sidebar {
  2. background : darken($primary, 10%);
  3. position : fixed;
  4. left : 0px;
  5. height : calc(100% - 20px);
  6. width : $sidebar-width;
  7. top : 0px;
  8. z-index : 3;
  9. bottom : 0px;
  10. border-radius : 0px;
  11. box-shadow : $shadow;
  12. // border-right : 1px solid $border-color;
  13. // @include respond("tab-port") {
  14. // width: $sidebar-width;
  15. // }
  16. @include respond("phone-land") {
  17. top : auto;
  18. bottom : 0;
  19. width : 100%;
  20. height : 50px;
  21. left : 0;
  22. border-radius: 0px;
  23. }
  24. }
  25. .brand-logo {
  26. text-align: center;
  27. margin : 20px 20px 20px;
  28. img {
  29. // max-width: 35px;
  30. // filter: brightness(100);
  31. }
  32. // .mini-logo {
  33. // display: none;
  34. // }
  35. // @include respond("tab-port") {
  36. // text-align: center;
  37. // .full-logo {
  38. // display: none;
  39. // }
  40. // .mini-logo {
  41. // display: block;
  42. // }
  43. // }
  44. @include respond("phone-land") {
  45. display: none;
  46. }
  47. }
  48. .menu {
  49. margin-top: 30px;
  50. padding : 20px;
  51. position : relative;
  52. @include respond("phone-land") {
  53. margin-top: 0px;
  54. padding : 0px;
  55. background: $primary;
  56. }
  57. ul {
  58. @include respond("phone-land") {
  59. display : flex;
  60. justify-content: space-around;
  61. align-items : center;
  62. }
  63. li {
  64. // text-align: center;
  65. margin-bottom: 8px;
  66. border-radius: $radius;
  67. &:hover,
  68. &:focus,
  69. &:active {
  70. // background: lighten($dark, 0%);
  71. a {
  72. color: $white;
  73. .nav-text {
  74. display : block;
  75. background: white;
  76. color : $primary;
  77. @include respond("tab-port") {
  78. display: none;
  79. }
  80. }
  81. }
  82. i {
  83. color : $white;
  84. opacity: 1;
  85. }
  86. }
  87. &.active {
  88. // background: $white;
  89. i {
  90. color : $white;
  91. opacity: 1;
  92. }
  93. span {
  94. color: $white;
  95. }
  96. }
  97. i {
  98. color : $white;
  99. font-size : 20px;
  100. opacity : 0.6;
  101. margin-right: 15px;
  102. line-height : 0px;
  103. @include respond("tab-port") {
  104. margin-right: 0px;
  105. }
  106. }
  107. a {
  108. padding : 5px 8px;
  109. display : flex;
  110. align-items : center;
  111. min-height : 3.5rem;
  112. // font-weight : 600;
  113. color : $body-color;
  114. // justify-content: center;
  115. @include respond("tab-port") {
  116. justify-content: center;
  117. }
  118. .nav-text {
  119. display : none;
  120. padding : 3px 8px;
  121. border-radius: 4px;
  122. box-shadow : $shadow;
  123. @include respond("tab-port") {
  124. display: none;
  125. }
  126. }
  127. }
  128. &.logout {
  129. position: fixed;
  130. bottom : 50px;
  131. left : 0;
  132. right : 0;
  133. width : 80px;
  134. a {
  135. padding-left: 30px;
  136. }
  137. @include respond("tab-port") {
  138. right : auto;
  139. justify-content: center;
  140. left : 10px;
  141. width : auto;
  142. }
  143. @include respond("phone-land") {
  144. position: relative;
  145. bottom : 0;
  146. left : auto;
  147. right : auto;
  148. width : auto;
  149. a {
  150. padding-left: 0px;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. .card-limit-progress {
  158. display: none;
  159. @include respond("tab-land") {
  160. display: none;
  161. }
  162. // background : lighten($secondary, 5%);
  163. background : url('/images/bg/6.jpg');
  164. position : absolute;
  165. bottom : 150px;
  166. padding : 15px 20px;
  167. margin : 20px;
  168. left : 0;
  169. right : 0;
  170. border-radius: $radius;
  171. h5 {
  172. font-size: 14px;
  173. color : $white;
  174. }
  175. p {
  176. font-size: 12px;
  177. strong {
  178. color: $white;
  179. }
  180. }
  181. .progress {
  182. height : 6px;
  183. background-color: darken($light, 10%);
  184. }
  185. }