home.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. @import 'style';
  2. @import 'base';
  3. $height: 50px;
  4. .header {
  5. background: $color;
  6. color: #fff;
  7. height: 50px !important;
  8. padding: 0 24px;
  9. .logo{
  10. height: 50px;
  11. margin-top: 5px;
  12. }
  13. h1{
  14. font-size: 18px;
  15. line-height: 50px;
  16. display: inline-block;
  17. }
  18. .settings{
  19. float: right;
  20. line-height: 50px;
  21. img{
  22. position: relative;
  23. top: 3px;
  24. }
  25. span{
  26. color: #fff;
  27. font-size: 14px;
  28. padding: 0 10px;
  29. cursor: pointer;
  30. }
  31. }
  32. }
  33. .main {
  34. position: relative;
  35. height: calc(100vh - 50px);
  36. background: #ECF0F5;
  37. padding-top: 15px;
  38. }
  39. .left-aside {
  40. height: 100%;
  41. overflow-y: auto;
  42. overflow-x: hidden;
  43. background: #fff;
  44. .left-menue {
  45. border: none;
  46. & > .is-active {
  47. background-color: #1F315D !important;
  48. position: relative;
  49. .iconfont{
  50. color: $mainColor;
  51. }
  52. &>.el-submenu__title{
  53. color: #fff !important;
  54. }
  55. .is-active {
  56. background-color: #1F315D !important;
  57. position: relative;
  58. .iconfont{
  59. color: $mainColor;
  60. }
  61. }
  62. }
  63. .is-opened{
  64. background-color: #fff !important;
  65. &>.el-submenu__title{
  66. color: #303133 !important;
  67. }
  68. }
  69. .el-menu-item-group__title{
  70. padding: 0;
  71. }
  72. // .el-menu-item{
  73. // height: 44px;
  74. // line-height: 44px;
  75. // }
  76. }
  77. }
  78. .el-main {
  79. // border: 1px solid red;
  80. padding:10px 20px;
  81. position: relative;
  82. .content{
  83. background: #fff;
  84. padding: 32px;
  85. margin-top: 12px;
  86. min-height: calc(100vh - 130px);
  87. box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);
  88. }
  89. .title_top{
  90. .add_btn{
  91. width:90px;
  92. height:32px;
  93. background:$mainColor;
  94. border:1px solid rgba(237,237,237,1);
  95. border-radius:4px;
  96. float: right;
  97. text-align: center;
  98. line-height: 32px;
  99. color: #FFF;
  100. }
  101. }
  102. .table_div{
  103. background: #fff;
  104. border: 1px solid #EDEDED;
  105. min-height: calc(100vh - 430px);
  106. }
  107. .edit_btn{
  108. color: #25486A;
  109. }
  110. .info_btn{
  111. background: #ECF0F5;
  112. color: #1F2328;
  113. border-color: #ECF0F5;
  114. }
  115. // 分页
  116. .el-pagination {
  117. // position: absolute;
  118. // left: 0;
  119. // bottom: 15px;
  120. text-align: center;
  121. width: 100%;
  122. margin-top: 20px;
  123. }
  124. }
  125. .el-dialog{
  126. .el-select{display: block;}
  127. }
  128. .main_btn{
  129. background: $mainColor;
  130. border-color: $mainColor;
  131. width: 120px;
  132. font-size: 14px;
  133. }
  134. .cancel_btn{
  135. width: 170px;
  136. font-size: 14px;
  137. color: #6A737B;
  138. }
  139. @media (max-width: 750px) {
  140. .left-aside {
  141. position: absolute;
  142. z-index: 9;
  143. height: calc(100vh - 50px);
  144. overflow: auto;
  145. transition: all 0.3s linear;
  146. // left: -220px;
  147. }
  148. .el-main {
  149. padding: 10px;
  150. }
  151. .el-dialog {
  152. width: 98% !important;
  153. }
  154. .header .fa-navicon,
  155. .header .fa-close {
  156. width: 16px;
  157. display: inline-block;
  158. }
  159. .main .mask {
  160. opacity: 0;
  161. transition: opacity 0.3s;
  162. }
  163. .main.show .mask {
  164. opacity: 1;
  165. position: absolute;
  166. z-index: 8;
  167. top: 0;
  168. left: 0;
  169. right: 0;
  170. bottom: 0;
  171. background-color: rgba(0, 0, 0, 0.5);
  172. }
  173. }