123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- uni-input {
- display: block;
- font-size: 16px;
- line-height: 1.4em;
- height: 1.4em;
- min-height: 1.4em;
- overflow: hidden;
- }
- uni-input[hidden] {
- display: none;
- }
- .uni-input-wrapper,
- .uni-input-placeholder,
- .uni-input-form,
- .uni-input-input {
- outline: none;
- border: none;
- padding: 0;
- margin: 0;
- text-decoration: inherit;
- }
- .uni-input-wrapper,
- .uni-input-form {
- display: flex;
- position: relative;
- width: 100%;
- height: 100%;
- flex-direction: column;
- justify-content: center;
- }
- .uni-input-placeholder,
- .uni-input-input {
- width: 100%;
- }
- .uni-input-placeholder {
- position: absolute;
- top: auto !important;
- left: 0;
- color: gray;
- overflow: hidden;
- text-overflow: clip;
- white-space: pre;
- word-break: keep-all;
- pointer-events: none;
- line-height: inherit;
- }
- .uni-input-input {
- position: relative;
- display: block;
- height: 100%;
- background: none;
- color: inherit;
- opacity: 1;
- font: inherit;
- line-height: inherit;
- letter-spacing: inherit;
- text-align: inherit;
- text-indent: inherit;
- text-transform: inherit;
- text-shadow: inherit;
- }
- .uni-input-input[type='search']::-webkit-search-cancel-button,
- .uni-input-input[type="search"]::-webkit-search-decoration {
- display: none;
- }
- .uni-input-input::-webkit-outer-spin-button,
- .uni-input-input::-webkit-inner-spin-button {
- appearance: none;
- margin: 0;
- }
- .uni-input-input[type='number'] {
- -moz-appearance: textfield;
- }
- .uni-input-input:disabled {
- /* 用于重置iOS14以下禁用状态文字颜色 */
- -webkit-text-fill-color: currentcolor;
- }
|