index.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. @import "~@less/variables.less";
  2. .infoContainer{
  3. width: 100%;
  4. display: flex;
  5. flex-direction: row;
  6. flex-wrap: wrap;
  7. border: 1px solid #BBBFC1;
  8. border-right: none;
  9. .infoItem{
  10. width: 25%;
  11. min-width: 25%;
  12. padding: 0px 10px;
  13. // min-width: 230px;
  14. float: left;
  15. flex: 1;
  16. height: 33px;
  17. border-right: 1px solid @person-table-color;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. label{
  22. // min-width: 70px;
  23. text-align: center;
  24. }
  25. input{
  26. flex:1;
  27. white-space: nowrap;
  28. text-overflow: ellipsis;
  29. overflow: hidden;
  30. color: #000
  31. }
  32. .selectBox{
  33. flex:1;
  34. }
  35. select {
  36. // appearance:none;
  37. // -moz-appearance:none;
  38. // -webkit-appearance:none;
  39. background:#fff;
  40. height: 28px;
  41. flex:1;
  42. border: none;
  43. outline: none;
  44. }
  45. option{
  46. display: inline-block;
  47. height: 40px;
  48. // width: 77%;
  49. }
  50. }
  51. .infoItem:nth-child(-n+4){
  52. border-bottom: 1px solid @person-table-color;
  53. }
  54. }
  55. .table{
  56. width: 100%;
  57. // display: none;
  58. // border:1px @border-color solid;
  59. float: left;
  60. td{
  61. // border:1px @border-color solid;
  62. height:30px;
  63. line-height: 30px;
  64. padding-left: 10px;
  65. width: 200px;
  66. white-space: nowrap;
  67. }
  68. .tdBorderB {
  69. border-bottom: 1px solid @person-table-color;
  70. max-width: 110px;
  71. overflow: hidden;
  72. white-space: nowrap;
  73. text-overflow: ellipsis;
  74. }
  75. .tdBorderR {
  76. border-right: 1px solid @person-table-color;
  77. max-width: 110px;
  78. overflow: hidden;
  79. white-space: nowrap;
  80. text-overflow: ellipsis;
  81. }
  82. }
  83. .newSize{
  84. td{
  85. overflow: hidden;
  86. font-size: 13px;
  87. white-space: nowrap;
  88. text-overflow: ellipsis;
  89. max-width: 110px;
  90. }
  91. }
  92. .selectBox {
  93. display: flex;
  94. align-items: center;
  95. .label {
  96. // display: inline-block;
  97. // padding-right: 8px;
  98. // color: #333333;
  99. }
  100. .select {
  101. flex : 1;
  102. position: relative;
  103. .selfInput {
  104. width:100%;
  105. box-sizing: border-box;
  106. margin: 0;
  107. list-style: none;
  108. display: inline-block;
  109. height: 32px;
  110. padding: 4px 11px;
  111. color: rgba(0, 0, 0, 0.65);
  112. font-size: 14px;
  113. line-height: 1.5;
  114. background-image: none;
  115. border-radius: 4px;
  116. transition: all 0.3s;
  117. overflow: visible;
  118. cursor: pointer;
  119. position: relative;
  120. top: 0px;
  121. background-color: transparent;
  122. }
  123. .inputHover {
  124. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  125. border: 1px solid rgba(24, 144, 255, 1);
  126. }
  127. .down{
  128. width: 20px;
  129. height: 20px;
  130. border-radius: 50%;
  131. // background-color: red;
  132. position: absolute;
  133. margin-top: -10px;
  134. top: 50%;
  135. left: 38px;
  136. cursor: pointer;
  137. img{
  138. width: 12px;
  139. height: 8px;
  140. position: absolute;
  141. top: 50%;
  142. left: 50%;
  143. margin-left: -6px;
  144. margin-top: -4px;
  145. // width: 50%;
  146. // margin-bottom: 3px;
  147. }
  148. }
  149. .downActive{
  150. width: 20px;
  151. height: 20px;
  152. border-radius: 50%;
  153. background-color: #E2F1F8;
  154. position: absolute;
  155. margin-top: -10px;
  156. top: 50%;
  157. left: 38px;
  158. cursor: pointer;
  159. img{
  160. width: 12px;
  161. height: 8px;
  162. position: absolute;
  163. top: 50%;
  164. left: 50%;
  165. margin-left: -6px;
  166. margin-top: -4px;
  167. // width: 50%;
  168. // margin-bottom: 3px;
  169. }
  170. }
  171. .options {
  172. z-index: 666;
  173. width: 120px;
  174. box-sizing: border-box;
  175. position: absolute;
  176. top: 25px;
  177. left: -4px;
  178. color: rgba(0, 0, 0, 0.65);
  179. font-size: 14px;
  180. background-color: #fff;
  181. box-shadow: 0px 2px 10px 0px #cecece;
  182. cursor: pointer;
  183. transition: 0.35s;
  184. opacity: 1;
  185. .item {
  186. position: relative;
  187. line-height: 20px;
  188. padding: 8px;
  189. &:hover {
  190. background: @hoverBg;
  191. color: @bannerBg;
  192. }
  193. }
  194. }
  195. .optionsHidden {
  196. // opacity: 0;
  197. display: none;
  198. }
  199. // 修改输入框默认样式
  200. input:-moz-placeholder,
  201. textarea:-moz-placeholder {
  202. color: #999999;
  203. }
  204. input:-ms-input-placeholder,
  205. textarea:-ms-input-placeholder {
  206. color: #999999;
  207. }
  208. input::-webkit-input-placeholder,
  209. textarea::-webkit-input-placeholder {
  210. color: #999999;
  211. }
  212. }
  213. }