Blame view

styles/components/card.less 920 Bytes
15bae144   梁灏   add Card component
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  @card-prefix-cls: ~"@{css-prefix}card";
  
  .@{card-prefix-cls}{
      background: #fff;
      border-radius: @border-radius-small;
      font-size: @font-size-base;
      position: relative;
      overflow: hidden;
      transition: all @transition-time @ease-in-out;
  
      &-bordered {
          border: 1px solid @border-color-base;
          border-color: @border-color-split;
      }
  
      &-shadow{
          box-shadow: @shadow-card;
      }
  
      &:hover {
          box-shadow: @shadow-base;
          border-color: #eee;
      }
      &&-dis-hover:hover{
          box-shadow: none;
          border-color: transparent;
      }
  
      &&-dis-hover&-bordered:hover{
          border-color: @border-color-split;
      }
  
      &&-shadow:hover{
          box-shadow: @shadow-card;
      }
  
      &-head {
be966e9f   梁灏   add Modal component
38
          .content-header;
15bae144   梁灏   add Card component
39
40
41
42
43
44
45
46
47
48
49
50
      }
  
      &-extra {
          position: absolute;
          right: 16px;
          top: 10px;
      }
  
      &-body {
          padding: 16px;
      }
  }