home.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. @import 'style';
  2. @import 'base';
  3. $height: 64px;
  4. .el-header {
  5. padding: 0;
  6. height: $height !important;
  7. }
  8. .header {
  9. background: #fff;
  10. color: #333;
  11. height: 64px !important;
  12. font-size-adjust: 20px;
  13. line-height: 64px;
  14. font-weight: bolder;
  15. padding: 0 24px;
  16. border-bottom:1px solid #fff;
  17. font-size: 20px;
  18. padding-left: 180px;
  19. img{
  20. position: absolute;
  21. left: 10px;
  22. top: 12px;
  23. }
  24. .logout {
  25. color: #FA0A2F;
  26. font-size: 14px;
  27. float: right;
  28. font-weight: normal;
  29. }
  30. }
  31. .main {
  32. position: relative;
  33. height: calc(100vh - 65px);
  34. background: #F4F4F4;
  35. padding-top: 1px;
  36. }
  37. .left-aside {
  38. height: 100%;
  39. overflow-y: auto;
  40. overflow-x: hidden;
  41. background: #fff;
  42. .left-menue {
  43. border: none;
  44. &>.is-active {
  45. // background-color: rgba(255, 81, 81, .2) !important;
  46. position: relative;
  47. border-left: 8px solid #FF5151;
  48. transition: all .3s linear;
  49. .iconfont {
  50. // color: #ffffff;
  51. }
  52. &>.el-submenu__title {
  53. // color: #ffffff !important;
  54. }
  55. .is-active {
  56. // background-color: rgba(255, 81, 81, .2) !important;
  57. // border-left: 8px solid #FF5151;
  58. transition: all .3s linear;
  59. position: relative;
  60. font-weight: bold;
  61. .iconfont {
  62. // color: #ffffff;
  63. }
  64. }
  65. }
  66. .is-opened {
  67. background-color: #FFE6E6 !important;
  68. border: none !important;
  69. ul{
  70. background-color: #FFE6E6 !important;
  71. }
  72. &>.el-submenu__title {
  73. border-left: 2px solid #FF5151
  74. }
  75. }
  76. .el-menu-item-group__title {
  77. padding: 0;
  78. }
  79. .child {
  80. padding-left: 60px !important;
  81. }
  82. .el-menu-item,
  83. .el-submenu__title {
  84. height: 48px;
  85. line-height: 48px;
  86. font-size: 13px;
  87. }
  88. // .el-menu-item{
  89. // height: 44px;
  90. // line-height: 44px;
  91. // }
  92. }
  93. .iconfont {
  94. margin-right: 5px;
  95. }
  96. }
  97. .el-main {
  98. // border: 1px solid red;
  99. padding: 20px 20px;
  100. position: relative;
  101. // overflow:hidden;
  102. section>p {
  103. color: #666666;
  104. font-size: 14px;
  105. font-weight: 400;
  106. span {
  107. color: #cccccc;
  108. }
  109. }
  110. .content {
  111. background: #fff;
  112. // padding: 20px !important;
  113. height: 100vh;
  114. margin: 0 !important;
  115. height: calc(100vh - 100px);
  116. box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.12);
  117. // overflow:scroll;
  118. &>h1 {
  119. font-size: 24px;
  120. color: #222;
  121. }
  122. .el-form-item{
  123. margin-bottom:20px!important;
  124. }
  125. .breadcrumb{
  126. padding:20px;
  127. }
  128. }
  129. .title_top {
  130. .add_btn {
  131. width: 90px;
  132. height: 32px;
  133. background: $mainColor;
  134. border: 1px solid rgba(237, 237, 237, 1);
  135. border-radius: 4px;
  136. float: right;
  137. text-align: center;
  138. line-height: 32px;
  139. color: #FFF;
  140. }
  141. }
  142. .table {
  143. background: #fff;
  144. // border: 1px solid #EDEDED;
  145. // min-height: calc(100vh - 430px);
  146. // height:calc(100vh - 350px);
  147. }
  148. .edit_btn {
  149. color: #25486A;
  150. }
  151. .info_btn {
  152. background: #ECF0F5;
  153. color: #1F2328;
  154. border-color: #ECF0F5;
  155. }
  156. // 分页
  157. .el-pagination {
  158. // position: absolute;
  159. // left: 0;
  160. // bottom: 15px;
  161. text-align: right;
  162. width: 100%;
  163. margin-top: 20px;
  164. }
  165. }
  166. .el-dialog {
  167. .el-select {
  168. display: block;
  169. }
  170. }
  171. .main_btn {
  172. background: $mainColor;
  173. border-color: $mainColor;
  174. width: 120px;
  175. font-size: 14px;
  176. }
  177. .cancel_btn {
  178. width: 170px;
  179. font-size: 14px;
  180. color: #6A737B;
  181. }
  182. // 表头
  183. thead {
  184. tr th {
  185. background-color: #F2F2F2 !important;
  186. padding: 8px 0 !important;
  187. }
  188. }
  189. tbody {
  190. tr td {
  191. padding: 4px 0 !important;
  192. }
  193. }
  194. .edit {
  195. color: rgb(0, 128, 0);
  196. }
  197. .del {
  198. color: #F01010;
  199. }
  200. .logout:hover {
  201. cursor: pointer;
  202. }
  203. .upload_btn {
  204. position: relative;
  205. input {
  206. position: absolute;
  207. width: 100%;
  208. left: 0;
  209. opacity: 0;
  210. }
  211. }
  212. // 内容区域滚动
  213. .el-form.over_y {
  214. max-height: calc( 100vh - 290px);
  215. padding: 0 10px;
  216. overflow-y: auto;
  217. &::-webkit-scrollbar {
  218. /*滚动条整体样式*/
  219. width: 4px;
  220. /*高宽分别对应横竖滚动条的尺寸*/
  221. height: 4px;
  222. }
  223. &::-webkit-scrollbar-thumb {
  224. /*滚动条里面小方块*/
  225. border-radius: 5px;
  226. -webkit-box-shadow: inset005pxrgba(0, 0, 0, 0.2);
  227. background: rgba(0, 0, 0, 0.2);
  228. }
  229. &::-webkit-scrollbar-track {
  230. /*滚动条里面轨道*/
  231. -webkit-box-shadow: inset005pxrgba(0, 0, 0, 0.2);
  232. border-radius: 0;
  233. background: rgba(0, 0, 0, 0.1);
  234. }
  235. }
  236. // 弹框
  237. .el-dialog__footer {
  238. text-align: center;
  239. }
  240. .w-e-text {
  241. min-height: 500px !important;
  242. }
  243. // 停用启用样式
  244. .open {
  245. color: #409eff;
  246. }
  247. .close {
  248. color: red;
  249. }
  250. .el-table__fixed-right::before,
  251. .el-table__fixed::before {
  252. background: none;
  253. }
  254. .filter-form {
  255. .el-input,
  256. .el-select {
  257. width: 100%;
  258. }
  259. }
  260. .clear{
  261. clear: both;
  262. height: 0px;
  263. }
  264. .el-button--primary{
  265. background-color: #FA0A2F !important;
  266. border-color: #FA0A2F !important;
  267. &:hover{
  268. background-color: #FA0A2F;
  269. border-color: #FA0A2F;
  270. }
  271. }
  272. .el-button--primary.is-plain {
  273. color: #FA0A2F !important;
  274. background: #fff !important;
  275. border-color: #FA0A2F !important;
  276. &:hover{
  277. color: #FA0A2F;
  278. background-color: #fff;
  279. border-color: #FA0A2F;
  280. }
  281. }