Blame view

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