console.form.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. fieldset {
  2. margin: 0;
  3. border: 1px solid #e6e6e6;
  4. padding: 10px 20px 5px 20px;
  5. legend {
  6. color: #666;
  7. padding: 0 10px;
  8. font-size: 14px
  9. }
  10. }
  11. .form-search {
  12. .layui-btn {
  13. height: 32px;
  14. line-height: 28px;
  15. font-size: 12px;
  16. padding: 0 10px
  17. }
  18. .layui-form-label {
  19. width: auto !important;
  20. padding: 0 8px;
  21. height: 32px;
  22. line-height: 30px
  23. }
  24. .layui-input-inline {
  25. width: 170px;
  26. input, select {
  27. width: 100%;
  28. height: 32px;
  29. padding: 2px 8px;
  30. line-height: 1em
  31. }
  32. }
  33. .layui-form-select dl {
  34. top: 31px;
  35. padding: 0
  36. }
  37. }
  38. .layui-form {
  39. input.layui-input, select.layui-select {
  40. line-height: 1em;
  41. }
  42. }
  43. /* 表单验证异常提示 */
  44. .label-required {
  45. &-prev:before {
  46. width: 1em;
  47. color: red;
  48. content: '*';
  49. display: inline-block;
  50. position: absolute;
  51. text-align: left;
  52. font-weight: 700;
  53. line-height: 1.6em;
  54. margin-left: -0.8em;
  55. }
  56. &:after, &-next:after {
  57. top: 6px;
  58. right: 5px;
  59. color: red;
  60. content: '*';
  61. position: absolute;
  62. margin-left: 4px;
  63. font-weight: 700;
  64. line-height: 1.8em
  65. }
  66. &-null:before {
  67. content: none !important
  68. }
  69. }
  70. /** 自定义表单样式 */
  71. .think-form-label {
  72. padding: 9px 15px;
  73. font-weight: 400;
  74. line-height: 20px;
  75. text-align: right
  76. }
  77. .think-form-group-right {
  78. border-left: none;
  79. border-top-left-radius: 0;
  80. border-bottom-left-radius: 0;
  81. }
  82. .think-form-group-left input {
  83. border-right: none;
  84. border-top-right-radius: 0;
  85. border-bottom-right-radius: 0;
  86. }
  87. .think-box-shadow {
  88. padding: 20px !important;
  89. background: #fff !important;
  90. box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);
  91. }
  92. /** checkbox & radio */
  93. label.think-checkbox, label.think-radio {
  94. margin-right: 10px;
  95. display: inline-block;
  96. }
  97. .think-checkbox, .think-radio {
  98. cursor: pointer;
  99. margin-top: 10px;
  100. font-weight: 400;
  101. line-height: 17px;
  102. }
  103. .think-checkbox input[type=checkbox] {
  104. width: 18px;
  105. height: 18px;
  106. border: 1px solid #dcdcdc;
  107. cursor: pointer;
  108. margin: 0 5px 0 0;
  109. position: relative;
  110. display: inline-block !important;
  111. background: #fff;
  112. appearance: none;
  113. box-sizing: border-box !important;
  114. border-radius: 1px;
  115. vertical-align: bottom;
  116. -webkit-appearance: none;
  117. &:checked:after {
  118. color: #666;
  119. padding: 2px;
  120. display: block;
  121. content: "\e605";
  122. font-size: 12px;
  123. font-style: normal;
  124. font-weight: 700;
  125. position: absolute;
  126. font-family: layui-icon !important;
  127. -webkit-font-smoothing: antialiased;
  128. -moz-osx-font-smoothing: grayscale
  129. }
  130. }
  131. .think-radio input[type=radio] {
  132. width: 18px;
  133. height: 18px;
  134. cursor: pointer;
  135. margin: 0 5px 0 0;
  136. position: relative;
  137. border: 1px solid #dcdcdc;
  138. display: inline-block !important;
  139. box-sizing: border-box !important;
  140. appearance: none;
  141. background: #fff;
  142. border-radius: 1em;
  143. vertical-align: bottom;
  144. -webkit-appearance: none;
  145. &:checked:after {
  146. top: 4px;
  147. left: 4px;
  148. width: 8px;
  149. height: 8px;
  150. content: '';
  151. display: block;
  152. position: relative;
  153. background: #666;
  154. border-radius: 1em
  155. }
  156. }