index.less 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. @import "~@less/variables.less";
  2. .infoContainer{
  3. width: 100%;
  4. // min-width: 930px;
  5. height: 60px;
  6. display: flex;
  7. flex-direction: row;
  8. flex-wrap: wrap;
  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: 30px;
  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. padding: 0;
  108. list-style: none;
  109. display: inline-block;
  110. height: 32px;
  111. padding: 4px 11px;
  112. color: rgba(0, 0, 0, 0.65);
  113. font-size: 14px;
  114. line-height: 1.5;
  115. background-color: #fff;
  116. background-image: none;
  117. border-radius: 4px;
  118. transition: all 0.3s;
  119. overflow: visible;
  120. cursor: pointer;
  121. position: relative;
  122. top: 0px;
  123. background-color: transparent;
  124. }
  125. .inputHover {
  126. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  127. border: 1px solid rgba(24, 144, 255, 1);
  128. }
  129. .down{
  130. width: 20px;
  131. height: 20px;
  132. border-radius: 50%;
  133. // background-color: red;
  134. position: absolute;
  135. margin-top: -10px;
  136. top: 50%;
  137. left: 38px;
  138. cursor: pointer;
  139. img{
  140. width: 16px;
  141. height: 10px;
  142. position: absolute;
  143. top: 50%;
  144. left: 50%;
  145. margin-left: -8px;
  146. margin-top: -5px;
  147. // width: 50%;
  148. // margin-bottom: 3px;
  149. }
  150. }
  151. .downActive{
  152. width: 20px;
  153. height: 20px;
  154. border-radius: 50%;
  155. background-color: #E2F1F8;
  156. position: absolute;
  157. margin-top: -10px;
  158. top: 50%;
  159. left: 38px;
  160. cursor: pointer;
  161. img{
  162. width: 16px;
  163. height: 10px;
  164. position: absolute;
  165. top: 50%;
  166. left: 50%;
  167. margin-left: -8px;
  168. margin-top: -5px;
  169. // width: 50%;
  170. // margin-bottom: 3px;
  171. }
  172. }
  173. .options {
  174. z-index: 666;
  175. width: 120px;
  176. box-sizing: border-box;
  177. position: absolute;
  178. top: 25px;
  179. left: -4px;
  180. color: rgba(0, 0, 0, 0.65);
  181. font-size: 14px;
  182. background-color: #fff;
  183. background-image: none;
  184. border: 1px solid #d9d9d9;
  185. border-radius: 4px;
  186. cursor: pointer;
  187. transition: 0.35s;
  188. opacity: 1;
  189. box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
  190. .item {
  191. position: relative;
  192. line-height: 20px;
  193. padding: 8px;
  194. &:hover {
  195. background: rgba(226,241,248,1);
  196. }
  197. }
  198. }
  199. .optionsHidden {
  200. // opacity: 0;
  201. display: none;
  202. }
  203. // 修改输入框默认样式
  204. input:-moz-placeholder,
  205. textarea:-moz-placeholder {
  206. color: #999999;
  207. }
  208. input:-ms-input-placeholder,
  209. textarea:-ms-input-placeholder {
  210. color: #999999;
  211. }
  212. input::-webkit-input-placeholder,
  213. textarea::-webkit-input-placeholder {
  214. color: #999999;
  215. }
  216. }
  217. }