common.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. .leftbtn {
  26. color: #48C5D7!important;
  27. border-color: #48C5D7;
  28. }
  29. .el-container {
  30. background: @baseBackage;
  31. width: 100%;
  32. height: 100%;
  33. }
  34. .el-main {
  35. height: 100%;
  36. padding: 0 0 20px;
  37. }
  38. .el-aside {
  39. background: #fff;
  40. width: 300px;
  41. min-height: 220px;
  42. border-right: 1px @gray solid;
  43. height: 100%;
  44. .logo {
  45. /*width: 100%;
  46. min-width: 300px;*/
  47. text-align: center;
  48. color: #fff;
  49. height: @header-height;
  50. padding-top: 8px;
  51. /*margin-bottom: 20px;*/
  52. box-sizing: border-box;
  53. }
  54. }
  55. .el-header {
  56. height: 60px;
  57. line-height: 60px;
  58. background: #fff;
  59. padding: 0 20px;
  60. width: 100%;
  61. border-bottom: 1px @gray solid;
  62. }
  63. /*注册部分公用*/
  64. @btnColor: #2485c4;
  65. @btnDisableColor: #c9c9c9;
  66. .inputBorder {
  67. border: 1px solid #c9c9c9;
  68. }
  69. /**分页**/
  70. .el-pagination {
  71. /* background: #fff;
  72. text-align: right;
  73. margin-top: 15px;
  74. padding: 16px 20px;
  75. position: fixed;
  76. z-index: 6;
  77. width: calc(80% - 80px);
  78. bottom: 0; */
  79. white-space: nowrap;
  80. padding: 15px;
  81. color: #303133;
  82. line-height: 20px;
  83. font-weight: 700;
  84. text-align: right;
  85. background: #fff;
  86. margin-top: 15px;
  87. }
  88. /*element-ui 样式覆盖*/
  89. .el-dialog__header{
  90. border-bottom: 1px #f0f0f0 solid;
  91. padding: 10px 20px;
  92. .el-dialog__headerbtn{
  93. top: 14px;
  94. }
  95. }
  96. .el-dialog__body{
  97. padding: 20px 20px 30px;
  98. }
  99. .el-dialog__title{
  100. font-size: 14px;
  101. }
  102. .demo-form-inline .el-input--mini .el-input__inner{
  103. width: 100px;
  104. }
  105. .el-input--mini .el-input__inner {
  106. width: 120px;
  107. height: 24px;
  108. line-height: 24px;
  109. border-radius: 2px;
  110. border-color: @gray;
  111. padding: 0 5px;
  112. }
  113. .el-form--inline .el-form-item__label {
  114. font-size: 12px;
  115. vertical-align: text-bottom; /*chrome错位bug*/
  116. padding: 0;
  117. }
  118. .el-button--mini, .el-button--mini.is-round {
  119. padding: 5px 15px 4px;
  120. }
  121. .el-button--warning.el-button--mini{
  122. background: @adminBase;
  123. border:1px @adminBase solid;
  124. }
  125. .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{
  126. border-color:@adminBase;
  127. }
  128. .el-table td {
  129. padding: 0;
  130. text-align: center;
  131. }
  132. .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
  133. border: 1px @gray solid;
  134. }
  135. .el-table th {
  136. background: #eee;
  137. color: @baseFontColor;
  138. padding: 8px 0;
  139. text-align: center;
  140. }
  141. .el-table .cell{
  142. line-height: 40px;
  143. }
  144. .el-range-editor.el-input__inner {
  145. height: 24px;
  146. padding: 1px 10px;
  147. }
  148. .el-dropdown {
  149. width: 175px;
  150. }
  151. .el-dropdown .el-button--default {
  152. color: @baseFontColor;
  153. border-color: @gray;
  154. }
  155. .el-dropdown .el-button--default:not(:last-child) {
  156. width: 145px;
  157. height: 30px;
  158. }
  159. .el-button-group .el-button:last-child {
  160. height: 30px;
  161. }
  162. .el-dropdown-menu {
  163. width: 175px;
  164. max-height: 200px;
  165. overflow-y: auto;
  166. margin-top: -5px;
  167. }
  168. .el-form-item__error {
  169. top: 34px;
  170. }
  171. /* 选中状态边框颜色改变 */
  172. .activeBgc {
  173. background-color: #eae7e7;
  174. }
  175. .activeBgcF5 {
  176. background-color: #f5f5f5;
  177. }
  178. .el-button--default:focus, .el-button--default:hover {
  179. opacity: 1 !important;
  180. }
  181. .el-button--text:focus, .el-button--text:hover, .el-date-table td.available:hover {
  182. opacity: 1 !important;
  183. }
  184. // el-form-item el-form-item--feedback is-error is-required
  185. .changewords {
  186. .el-dialog__header {
  187. text-align: left;
  188. }
  189. .el-form-item {
  190. margin-bottom: 40px;
  191. }
  192. .el-form-item__label {
  193. width: 160px !important;
  194. }
  195. .el-form-item__content {
  196. margin-left: 160px !important;
  197. }
  198. .el-dialog--center .el-dialog__body {
  199. padding-right: 80px;
  200. padding-bottom: 0;
  201. }
  202. .el-dialog {
  203. width: 600px !important;
  204. border-radius: 4px;
  205. }
  206. .el-dialog__footer {
  207. padding-bottom: 30px;
  208. }
  209. }
  210. .el-message {
  211. top: 49% !important;
  212. }