common.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. @import './base.less';
  2. /**
  3. *变量声明
  4. *
  5. **/
  6. /*公共变量*/
  7. @disableColor: #ccc;
  8. @aside-width: 20%;
  9. @aside-min-width:270px;
  10. @header-height: 60px;
  11. @gray: #c9c9c9;
  12. @baseBackage: #dee2ea;
  13. @baseFontColor: #424243;
  14. @shadowColor: #b7b7b7;
  15. @borderWidth: 2px;
  16. /*朗通后台基本颜色*/
  17. @adminBase: #48C5D7;
  18. @icssBorder: #c0c4cc;
  19. @icssHeight:240px;
  20. /*用户后台基本颜色*/
  21. @userBase: #1774f0;
  22. /*
  23. *公用样式
  24. */
  25. .el-container {
  26. background: @baseBackage;
  27. width: 100%;
  28. height: 100%;
  29. }
  30. .el-main {
  31. height: 100%;
  32. padding: 0 0 20px;
  33. }
  34. .el-aside {
  35. background: #fff;
  36. min-width: @aside-min-width;
  37. width: @aside-width !important;
  38. min-height: 220px;
  39. border-right: 1px @gray solid;
  40. height: 100%;
  41. .logo {
  42. /*width: 100%;
  43. min-width: 300px;*/
  44. text-align: center;
  45. color: #fff;
  46. height: @header-height;
  47. padding-top: 8px;
  48. /*margin-bottom: 20px;*/
  49. box-sizing: border-box;
  50. }
  51. }
  52. .el-header {
  53. height: 60px;
  54. line-height: 60px;
  55. background: #fff;
  56. padding: 0 20px;
  57. width: 100%;
  58. border-bottom: 1px @gray solid;
  59. }
  60. /*注册部分公用*/
  61. @btnColor: #2485c4;
  62. @btnDisableColor: #c9c9c9;
  63. .inputBorder {
  64. border: 1px solid #c9c9c9;
  65. }
  66. /**分页**/
  67. .el-pagination {
  68. /* background: #fff;
  69. text-align: right;
  70. margin-top: 15px;
  71. padding: 16px 20px;
  72. position: fixed;
  73. z-index: 6;
  74. width: calc(80% - 80px);
  75. bottom: 0; */
  76. white-space: nowrap;
  77. padding: 15px;
  78. color: #303133;
  79. line-height: 20px;
  80. font-weight: 700;
  81. text-align: right;
  82. background: #fff;
  83. margin-top: 15px;
  84. }
  85. /*element-ui 样式覆盖*/
  86. .el-dialog__header{
  87. border-bottom: 1px #f0f0f0 solid;
  88. padding: 10px 20px;
  89. .el-dialog__headerbtn{
  90. top: 14px;
  91. }
  92. }
  93. .el-dialog__body{
  94. padding: 20px 20px 30px;
  95. }
  96. .el-dialog__title{
  97. font-size: 14px;
  98. }
  99. .demo-form-inline .el-input--mini .el-input__inner{
  100. width: 100px;
  101. }
  102. .el-input--mini .el-input__inner {
  103. width: 120px;
  104. height: 24px;
  105. line-height: 24px;
  106. border-radius: 2px;
  107. border-color: @gray;
  108. padding: 0 5px;
  109. }
  110. .el-form--inline .el-form-item__label {
  111. font-size: 12px;
  112. /*vertical-align: text-bottom;*/ /*chrome错位bug*/
  113. padding: 0;
  114. }
  115. .el-button--mini, .el-button--mini.is-round {
  116. padding: 5px 15px 4px;
  117. }
  118. .el-button--warning.el-button--mini{
  119. background: @adminBase;
  120. border:1px @adminBase solid;
  121. }
  122. .el-form-item.is-success .el-input__inner, .el-form-item.is-success .el-input__inner:focus, .el-form-item.is-success .el-textarea__inner, .el-form-item.is-success .el-textarea__inner:focus{
  123. border-color:@adminBase;
  124. }
  125. .el-table td {
  126. padding: 0;
  127. text-align: center;
  128. }
  129. .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
  130. border: 1px @gray solid;
  131. }
  132. .el-table th {
  133. background: #eee;
  134. color: @baseFontColor;
  135. padding: 8px 0;
  136. text-align: center;
  137. }
  138. .el-table .cell{
  139. line-height: 40px;
  140. }
  141. .el-range-editor.el-input__inner {
  142. height: 24px;
  143. padding: 1px 10px;
  144. }
  145. .el-dropdown {
  146. width: 175px;
  147. }
  148. .el-dropdown .el-button--default {
  149. color: @baseFontColor;
  150. border-color: @gray;
  151. }
  152. .el-dropdown .el-button--default:not(:last-child) {
  153. width: 145px;
  154. height: 30px;
  155. }
  156. .el-button-group .el-button:last-child {
  157. height: 30px;
  158. }
  159. .el-dropdown-menu {
  160. width: 175px;
  161. max-height: 200px;
  162. overflow-y: auto;
  163. margin-top: -5px;
  164. }
  165. .el-form-item__error {
  166. top: 34px;
  167. }
  168. /* 选中状态边框颜色改变 */
  169. .activeBgc {
  170. background-color: #eae7e7;
  171. }
  172. .activeBgcF5 {
  173. background-color: #f5f5f5;
  174. }