Blame view

src/styles/components/input.less 1.76 KB
0f822c9b   梁灏   add Input component
1
2
3
4
5
6
7
8
  @input-prefix-cls: ~"@{css-prefix}input";
  
  .@{input-prefix-cls} {
      .input;
      &-wrapper{
          display: inline-block;
          width: 100%;
          position: relative;
8a83e7c4   梁灏   update Form
9
          vertical-align: middle;
0f822c9b   梁灏   add Input component
10
11
      }
      &-icon {
3c01d81a   梁灏   fixed Modal bug,w...
12
          width: 32px;
12418c6a   梁灏   fixed #74
13
14
          height: @input-height-base;
          line-height: @input-height-base;
0f822c9b   梁灏   add Input component
15
16
17
18
19
          font-size: 16px;
          text-align: center;
          color: @subsidiary-color;
          position: absolute;
          right: 0;
319f5f86   梁灏   fixed #554
20
          z-index: 3;
12418c6a   梁灏   fixed #74
21
      }
f4e462c0   梁灏   #554
22
23
24
      &-hide-icon &-icon{
          display: none;
      }
20766f28   梁灏   update Input
25
26
27
      &-icon-validate{
          display: none;
      }
12418c6a   梁灏   fixed #74
28
  
ef090131   梁灏   optimize Input va...
29
      &-icon-normal + &{
77f7bb95   梁灏   add Transfer comp...
30
31
          padding-right: 32px;
      }
f4e462c0   梁灏   #554
32
33
34
35
      // #554
      &-hide-icon &-icon-normal + &{
          padding-right: @input-padding-horizontal;
      }
77f7bb95   梁灏   add Transfer comp...
36
  
12418c6a   梁灏   fixed #74
37
38
39
40
41
42
43
44
45
46
      &-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
47
  
77f7bb95   梁灏   add Transfer comp...
48
49
50
          + .@{input-prefix-cls} {
              padding-right: 24px;
          }
0f822c9b   梁灏   add Input component
51
52
53
54
55
      }
  }
  
  .@{input-prefix-cls}-group{
      .input-group(~"@{input-prefix-cls}");
e93f1e9a   梁灏   update some styles
56
57
58
59
60
61
62
63
64
65
66
67
  }
  
  .@{form-item-prefix-cls}-error{
      .@{input-prefix-cls}{
          .input-error;
          &-icon{
              color: @error-color;
          }
      }
      .@{input-prefix-cls}-group{
          .input-group-error;
      }
aa9fc758   梁灏   update Transfer
68
69
70
71
72
73
74
75
      .@{transfer-prefix-cls} {
          .@{input-prefix-cls} {
              .input;
              &-icon{
                  color: @subsidiary-color;
              }
          }
      }
20766f28   梁灏   update Input
76
77
78
79
80
81
  }
  .@{form-item-prefix-cls}-validating{
      .@{input-prefix-cls}{
          &-icon-validate{
              display: inline-block;
          }
ef090131   梁灏   optimize Input va...
82
83
84
          &-icon + .@{input-prefix-cls}{
              padding-right: 32px;
          }
20766f28   梁灏   update Input
85
      }
0f822c9b   梁灏   add Input component
86
  }