Blame view

src/styles/components/cascader.less 2.19 KB
c463ab87   梁灏   add Cascader
1
2
3
4
  @cascader-prefix-cls: ~"@{css-prefix}cascader";
  @cascader-item-prefix-cls: ~"@{css-prefix}cascader-menu-item";
  
  .@{cascader-prefix-cls} {
75e5c6a5   梁灏   Cascader support ...
5
      //position: relative;
3b005863   梁灏   update Cascader
6
      line-height: normal;
c463ab87   梁灏   add Cascader
7
  
75e5c6a5   梁灏   Cascader support ...
8
      &-rel{
5ee64b6d   梁灏   fixed #430
9
10
          display: inline-block;
          width: 100%;
75e5c6a5   梁灏   Cascader support ...
11
12
13
          position: relative;
      }
  
c463ab87   梁灏   add Cascader
14
15
16
17
      .@{css-prefix}input{
          display: block;
          cursor: pointer;
      }
05b5dd7b   梁灏   update Cascader
18
19
20
      &-disabled .@{css-prefix}input{
          cursor: @cursor-disabled;
      }
c463ab87   梁灏   add Cascader
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  
      .@{cascader-prefix-cls}-arrow:nth-of-type(1) {
          display: none;
          cursor: pointer;
      }
  
      &:hover {
          .@{cascader-prefix-cls}-arrow:nth-of-type(1) {
              display: inline-block;
          }
      }
      &-show-clear:hover .@{cascader-prefix-cls}-arrow:nth-of-type(2){
          display: none;
      }
  
      &-arrow {
165bb7c9   梁灏   update Cascader
37
38
          .inner-arrow();
      }
e2645048   jingsam   :fire: remove tra...
39
40
      &-visible &-arrow:nth-of-type(2) {
          transform: rotate(180deg);
c463ab87   梁灏   add Cascader
41
42
43
      }
  
      .@{select-dropdown-prefix-cls} {
9ec927b1   梁灏   update Cascader
44
          width: auto;
c463ab87   梁灏   add Cascader
45
46
          padding: 0;
          white-space: nowrap;
e96fa06d   梁灏   update Cascader s...
47
          overflow: visible;
c463ab87   梁灏   add Cascader
48
49
50
51
      }
  
      .select-item(@cascader-prefix-cls, @cascader-item-prefix-cls);
  
7ec0b533   梁灏   Cascader support ...
52
53
54
55
      &-dropdown{
          padding: 5px 0;
      }
  
c463ab87   梁灏   add Cascader
56
57
58
59
60
      &-menu{
          display: inline-block;
          min-width: 100px;
          height: 180px;
          margin: 0;
9ec927b1   梁灏   update Cascader
61
          padding: 5px 0 !important;
c463ab87   梁灏   add Cascader
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
          vertical-align: top;
          list-style: none;
          border-right: 1px solid @border-color-split;
          overflow: auto;
  
          &:first-child {
  
          }
          &:last-child {
              border-right-color: transparent;
              margin-right: -1px;
          }
          &:only-child {
  
          }
  
          & &-item{
              position: relative;
              padding-right: 24px;
e2645048   jingsam   :fire: remove tra...
81
              transition: all @transition-time @ease-in-out;
c463ab87   梁灏   add Cascader
82
83
84
85
86
87
88
89
90
91
92
  
              i{
                  font-size: @font-size-small;
                  position: absolute;
                  right: 15px;
                  top: 50%;
                  margin-top: -6px;
              }
  
              &-active{
                  background-color: @background-color-select-hover;
165bb7c9   梁灏   update Cascader
93
                  color: @primary-color;
c463ab87   梁灏   add Cascader
94
95
96
              }
          }
      }
e2645048   jingsam   :fire: remove tra...
97
  }
e93f1e9a   梁灏   update some styles
98
99
100
101
102
103
104
105
  
  .@{form-item-prefix-cls}-error{
      .@{cascader-prefix-cls} {
          &-arrow{
              color: @error-color;
          }
      }
  }