Blame view

src/styles/components/input.less 691 Bytes
0f822c9b   梁灏   add Input component
1
2
3
4
5
6
7
8
9
10
  @input-prefix-cls: ~"@{css-prefix}input";
  
  .@{input-prefix-cls} {
      .input;
      &-wrapper{
          display: inline-block;
          width: 100%;
          position: relative;
      }
      &-icon {
3c01d81a   梁灏   fixed Modal bug,w...
11
          width: 32px;
0f822c9b   梁灏   add Input component
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
          height: 100%;
          font-size: 16px;
          text-align: center;
          color: @subsidiary-color;
          position: absolute;
          right: 0;
          z-index: 1;
          &:after{
              content: '';
              display: inline-block;
              width: 0;
              height: 100%;
              vertical-align: middle;
          }
      }
  
      &-icon + &{
3c01d81a   梁灏   fixed Modal bug,w...
29
          padding-right: 32px;
0f822c9b   梁灏   add Input component
30
31
32
33
34
35
      }
  }
  
  .@{input-prefix-cls}-group{
      .input-group(~"@{input-prefix-cls}");
  }