console.form.less 3.1 KB

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