Blame view

src/styles/components/input.less 1.14 KB
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;
12418c6a   梁灏   fixed #74
12
13
          height: @input-height-base;
          line-height: @input-height-base;
0f822c9b   梁灏   add Input component
14
15
16
17
18
19
          font-size: 16px;
          text-align: center;
          color: @subsidiary-color;
          position: absolute;
          right: 0;
          z-index: 1;
12418c6a   梁灏   fixed #74
20
21
      }
  
77f7bb95   梁灏   add Transfer comp...
22
23
24
25
      &-icon + &{
          padding-right: 32px;
      }
  
12418c6a   梁灏   fixed #74
26
27
28
29
30
31
32
33
34
35
      &-wrapper-large &-icon{
          font-size: 18px;
          height: @input-height-large;
          line-height: @input-height-large;
      }
      &-wrapper-small &-icon{
          width: 24px;
          font-size: 14px;
          height: @input-height-small;
          line-height: @input-height-small;
0f822c9b   梁灏   add Input component
36
  
77f7bb95   梁灏   add Transfer comp...
37
38
39
          + .@{input-prefix-cls} {
              padding-right: 24px;
          }
0f822c9b   梁灏   add Input component
40
41
42
43
44
      }
  }
  
  .@{input-prefix-cls}-group{
      .input-group(~"@{input-prefix-cls}");
e93f1e9a   梁灏   update some styles
45
46
47
48
49
50
51
52
53
54
55
56
  }
  
  .@{form-item-prefix-cls}-error{
      .@{input-prefix-cls}{
          .input-error;
          &-icon{
              color: @error-color;
          }
      }
      .@{input-prefix-cls}-group{
          .input-group-error;
      }
0f822c9b   梁灏   add Input component
57
  }