Blame view

src/styles/components/collapse.less 1.7 KB
49306c7a   梁灏   add Collapse comp...
1
2
3
4
5
6
7
  @collapse-prefix-cls: ~"@{css-prefix}collapse";
  
  .@{collapse-prefix-cls}{
      background-color: @background-color-base;
      border-radius: 3px;
      border: 1px solid @border-color-base;
  
3f611f57   梁灏   Collapse add simp...
8
9
10
11
      &-simple{
          border-left: none;
          border-right: none;
          background-color: #fff;
7fb5f3b3   梁灏   update Collapse s...
12
          border-radius: 0;
3f611f57   梁灏   Collapse add simp...
13
14
      }
  
49306c7a   梁灏   add Collapse comp...
15
16
17
18
19
20
21
22
23
      & > &-item{
          border-top: 1px solid @border-color-base;
          &:first-child {
              border-top: 0;
          }
  
          > .@{collapse-prefix-cls}-header{
              height: 38px;
              line-height: 38px;
d5ba8cf3   梁灏   update Collapse s...
24
              padding-left: 16px;
49306c7a   梁灏   add Collapse comp...
25
26
27
              color: #666;
              cursor: pointer;
              position: relative;
d5ba8cf3   梁灏   update Collapse s...
28
29
              border-bottom: 1px solid transparent;
              transition: all @transition-time @ease-in-out;
49306c7a   梁灏   add Collapse comp...
30
31
  
              > i{
e2645048   jingsam   :fire: remove tra...
32
                  transition: transform @transition-time @ease-in-out;
d5ba8cf3   梁灏   update Collapse s...
33
                  margin-right: 14px;
49306c7a   梁灏   add Collapse comp...
34
35
36
              }
          }
      }
d5ba8cf3   梁灏   update Collapse s...
37
38
39
      &  > &-item&-item-active > &-header{
          border-bottom: 1px solid @border-color-base;
      }
3f611f57   梁灏   Collapse add simp...
40
41
42
      &-simple > &-item&-item-active > &-header{
          border-bottom: 1px solid transparent;
      }
49306c7a   梁灏   add Collapse comp...
43
      &  > &-item&-item-active > &-header > i{
e2645048   jingsam   :fire: remove tra...
44
          transform: rotate(90deg);
49306c7a   梁灏   add Collapse comp...
45
46
47
48
      }
  
      &-content{
          //display: none;
10f31b2c   梁灏   fixed #2973
49
          //overflow: hidden;
49306c7a   梁灏   add Collapse comp...
50
51
52
53
54
55
56
57
58
          color: @text-color;
          padding: 0 16px;
          background-color: #fff;
  
          & > &-box {
              padding-top: 16px;
              padding-bottom: 16px;
          }
      }
3f611f57   梁灏   Collapse add simp...
59
60
61
      &-simple > &-item > &-content > &-content-box{
          padding-top: 0;
      }
49306c7a   梁灏   add Collapse comp...
62
63
64
65
66
67
68
69
      &-item-active > &-content{
          //display: block;
      }
      &-item:last-child {
          > .@{collapse-prefix-cls}-content {
              border-radius: 0 0 3px 3px;
          }
      }
e2645048   jingsam   :fire: remove tra...
70
  }