Blame view

src/styles/components/transfer.less 3.04 KB
77f7bb95   梁灏   add Transfer comp...
1
2
3
4
5
6
7
8
9
10
11
12
13
  @transfer-prefix-cls: ~"@{css-prefix}transfer";
  @transfer-item-prefix-cls: ~"@{css-prefix}transfer-list-content-item";
  
  .@{transfer-prefix-cls} {
      position: relative;
      line-height: @line-height-base;
  
      &-list{
          display: inline-block;
          width: 180px;
          height: 210px;
          font-size: @font-size-small;
          vertical-align: middle;
77f7bb95   梁灏   add Transfer comp...
14
15
16
          position: relative;
          padding-top: 35px;
  
bf0203db   梁灏   update Transfer
17
18
19
20
          &-with-footer{
              padding-bottom: 35px;
          }
  
77f7bb95   梁灏   add Transfer comp...
21
22
          &-header {
              padding: 8px 16px;
122e69ee   梁灏   update Transfer
23
              background: @head-bg;
77f7bb95   梁灏   add Transfer comp...
24
              color: @text-color;
dcc06127   梁灏   update Transfer
25
              border: 1px solid @border-color-base;
77f7bb95   梁灏   add Transfer comp...
26
              border-bottom: 1px solid @border-color-split;
dcc06127   梁灏   update Transfer
27
              border-radius: @border-radius-base @border-radius-base 0 0;
77f7bb95   梁灏   add Transfer comp...
28
29
30
31
32
33
              overflow: hidden;
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
  
122e69ee   梁灏   update Transfer
34
35
36
37
              & > span{
                  padding-left: 4px;
              }
  
77f7bb95   梁灏   add Transfer comp...
38
39
40
41
42
43
44
45
              &-count {
                  margin: 0 !important;
                  float: right;
              }
          }
  
          &-body{
              height: 100%;
dcc06127   梁灏   update Transfer
46
47
48
              border: 1px solid @border-color-base;
              border-top: none;
              border-radius: 0 0 @border-radius-base @border-radius-base;
77f7bb95   梁灏   add Transfer comp...
49
              position: relative;
4997bd42   梁灏   update Transfer
50
              overflow: hidden;
77f7bb95   梁灏   add Transfer comp...
51
52
  
              &-with-search{
122e69ee   梁灏   update Transfer
53
                  padding-top: 34px;
77f7bb95   梁灏   add Transfer comp...
54
              }
4997bd42   梁灏   update Transfer
55
56
57
              &-with-footer{
                  border-radius: 0;
              }
77f7bb95   梁灏   add Transfer comp...
58
59
60
61
62
63
64
65
66
67
68
          }
  
          &-content{
              height: 100%;
              padding: 4px 0;
              overflow: auto;
  
              &-item{
                  overflow: hidden;
                  white-space: nowrap;
                  text-overflow: ellipsis;
122e69ee   梁灏   update Transfer
69
70
71
72
  
                  & > span{
                      padding-left: 4px;
                  }
77f7bb95   梁灏   add Transfer comp...
73
              }
37ee1535   梁灏   update Transfer
74
75
76
77
78
79
80
81
82
  
              &-not-found{
                  display: none;
                  text-align: center;
                  color: @btn-disable-color;
              }
              li&-not-found:only-child{
                  display: block;
              }
77f7bb95   梁灏   add Transfer comp...
83
84
          }
          &-body-with-search &-content{
122e69ee   梁灏   update Transfer
85
              padding: 6px 0 0;
77f7bb95   梁灏   add Transfer comp...
86
87
88
          }
  
          &-body-search-wrapper{
122e69ee   梁灏   update Transfer
89
              padding: 8px 8px 0;
77f7bb95   梁灏   add Transfer comp...
90
91
92
93
94
95
96
97
98
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
          }
  
          &-search{
              position: relative;
          }
122e69ee   梁灏   update Transfer
99
100
  
          &-footer{
122e69ee   梁灏   update Transfer
101
102
103
              border: 1px solid @border-color-base;
              border-top: none;
              border-radius: 0 0 @border-radius-base @border-radius-base;
bf0203db   梁灏   update Transfer
104
105
106
107
              position: absolute;
              bottom: 0;
              left: 0;
              right: 0;
122e69ee   梁灏   update Transfer
108
109
110
  
              .clearfix();
          }
77f7bb95   梁灏   add Transfer comp...
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
      }
      &-operation {
          display: inline-block;
          overflow: hidden;
          margin: 0 16px;
          vertical-align: middle;
  
          .@{btn-prefix-cls} {
              display: block;
              min-width: @btn-circle-size-small;
  
              &:first-child {
                  margin-bottom: 12px;
              }
          }
      }
  }
  .select-item(@transfer-prefix-cls, @transfer-item-prefix-cls);