index.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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: 13px;
  132. position: absolute;
  133. margin-top: -6px;
  134. top: 50%;
  135. left: 38px;
  136. cursor: pointer;
  137. img{
  138. width: 50%;
  139. margin-bottom: 3px;
  140. }
  141. }
  142. .options {
  143. z-index: 666;
  144. width: 120px;
  145. box-sizing: border-box;
  146. position: absolute;
  147. top: 25px;
  148. left: -4px;
  149. color: rgba(0, 0, 0, 0.65);
  150. font-size: 14px;
  151. background-color: #fff;
  152. background-image: none;
  153. border: 1px solid #d9d9d9;
  154. border-radius: 4px;
  155. cursor: pointer;
  156. transition: 0.35s;
  157. opacity: 1;
  158. box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
  159. .item {
  160. position: relative;
  161. line-height: 20px;
  162. padding: 8px;
  163. &:hover {
  164. background: rgba(226,241,248,1);
  165. }
  166. }
  167. }
  168. .optionsHidden {
  169. // opacity: 0;
  170. display: none;
  171. }
  172. // 修改输入框默认样式
  173. input:-moz-placeholder,
  174. textarea:-moz-placeholder {
  175. color: #999999;
  176. }
  177. input:-ms-input-placeholder,
  178. textarea:-ms-input-placeholder {
  179. color: #999999;
  180. }
  181. input::-webkit-input-placeholder,
  182. textarea::-webkit-input-placeholder {
  183. color: #999999;
  184. }
  185. }
  186. }