Blame view

src/styles/components/cell.less 1.49 KB
59a3b893   梁灏   add Cell componen...
1
2
  @cell-prefix-cls: ~"@{css-prefix}cell";
  
da76a284   梁灏   update Cell
3
  
59a3b893   梁灏   add Cell componen...
4
  .@{cell-prefix-cls} {
da76a284   梁灏   update Cell
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
      position: relative;
      overflow: hidden;
  
      &-link, &-link:hover, &-link:active{
          color: inherit;
      }
  
      &-icon{
          display: inline-block;
          margin-right: 4px;
          font-size: @font-size-base;
          vertical-align: middle;
          &:empty{
              display: none
          }
      }
      &-main{
          display: inline-block;
          vertical-align: middle;
      }
      &-title{
          line-height: 24px;
          font-size: @font-size-base;
      }
      &-label{
          line-height: 1.2;
          font-size: @font-size-small;
          color: @subsidiary-color;
      }
      &-selected &-label{
          color: inherit;
      }
3a3dcb0a   梁灏   update cell & dro...
37
38
39
40
41
  
      &-selected, &&-selected:hover{
          background:  ~`colorPalette("@{primary-color}", 1)`;
      }
  
da76a284   梁灏   update Cell
42
43
44
45
46
47
48
49
50
51
52
53
54
55
      &-footer{
          display: inline-block;
          position: absolute;
          transform: translateY(-50%);
          top: 50%;
          right: 16px;
          color: @text-color;
      }
      &-with-link &-footer{
          right: 32px;
      }
      &-selected &-footer{
          color: inherit;
      }
59a3b893   梁灏   add Cell componen...
56
  
da76a284   梁灏   update Cell
57
58
59
60
61
62
63
64
      &-arrow{
          display: inline-block;
          position: absolute;
          transform: translateY(-50%);
          top: 50%;
          right: 16px;
          font-size: @font-size-base;
      }
5fe393db   梁灏   update
65
66
67
68
69
70
71
72
  
      &:focus{
          background: @background-color-select-hover;
          outline: none;
      }
      &-selected:focus{
          background: shade(@selected-color, 10%);
      }
da76a284   梁灏   update Cell
73
74
  }
  .select-item(@cell-prefix-cls, @cell-prefix-cls);