Blame view

src/styles/components/page.less 5.12 KB
93064e3b   梁灏   add Page UI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  @page-prefix-cls: ~"@{css-prefix}page";
  
  .@{page-prefix-cls} {
      &:after {
          content: '';
          display: block;
          height: 0;
          clear: both;
          overflow: hidden;
          visibility: hidden;
      }
  
      &-item {
          float: left;
          min-width: 28px;
          height: 28px;
928033f0   梁灏   optimize Page style
17
          line-height: 26px;
93064e3b   梁灏   add Page UI
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
          margin-right: 4px;
          text-align: center;
          list-style: none;
          background-color: #fff;
          user-select: none;
          cursor: pointer;
          font-family: Arial;
          border: 1px solid @border-color-base;
          border-radius: @btn-border-radius;
          .transition(all @transition-time @ease-in-out);
  
          a {
              margin: 0 6px;
              text-decoration: none;
              color: @text-color;
              //.transition(none);
          }
  
          &:hover {
              border-color: @primary-color;
              a {
                  color: @primary-color;
              }
          }
  
          &-active {
              background-color: @primary-color;
              border-color: @primary-color;
  
              a, &:hover a {
                  color: #fff;
              }
          }
      }
  
      &-item-jump-prev, &-item-jump-next {
          &:after {
              content: "•••";
              display: block;
928033f0   梁灏   optimize Page style
57
              letter-spacing: 1px;
93064e3b   梁灏   add Page UI
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
              color: #ccc;
              text-align: center;
          }
  
          i{
              display: none;
          }
  
          &:hover {
              &:after{
                  display: none;
              }
              i{
                  display: inline;
              }
          }
      }
  
      &-item-jump-prev:hover {
          i:after {
              content: "\F3D2";
          }
      }
  
      &-item-jump-next:hover {
          i:after {
              content: "\F3D3";
          }
      }
  
928033f0   梁灏   optimize Page style
88
      &-prev{
93064e3b   梁灏   add Page UI
89
90
          margin-right: 8px;
      }
928033f0   梁灏   optimize Page style
91
92
93
94
95
96
97
98
99
100
  
      &-item-jump-prev,
      &-item-jump-next{
          margin-right: 4px;
      }
  
      &-next{
          margin-left: 4px;
      }
  
93064e3b   梁灏   add Page UI
101
102
103
104
105
106
107
108
      &-prev,
      &-next,
      &-item-jump-prev,
      &-item-jump-next {
          display: inline-block;
          float: left;
          min-width: 28px;
          height: 28px;
928033f0   梁灏   optimize Page style
109
          line-height: 26px;
93064e3b   梁灏   add Page UI
110
111
112
113
114
          list-style: none;
          text-align: center;
          cursor: pointer;
          color: #666;
          font-family: Arial;
928033f0   梁灏   optimize Page style
115
          border: 1px solid @border-color-base;
93064e3b   梁灏   add Page UI
116
117
118
119
120
121
          border-radius: @btn-border-radius;
          .transition(all @transition-time @ease-in-out);
      }
  
      &-prev,
      &-next {
93064e3b   梁灏   add Page UI
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
          background-color: #fff;
  
          a {
              color: #666;
          }
  
          &:hover {
              border-color: @primary-color;
  
              a {
                  color: @primary-color;
              }
          }
      }
  
      &-disabled {
          cursor: @cursor-disabled;
          a {
              color: #ccc;
          }
          &:hover {
              border-color: @border-color-base;
              a {
                  color: #ccc;
                  cursor: @cursor-disabled;
              }
          }
      }
  
      &-options {
          float: left;
          margin-left: 15px;
          &-sizer {
              float: left;
              margin-right: 10px;
          }
  
          &-elevator {
              float: left;
              height: 28px;
              line-height: 28px;
  
              input {
                  .input;
                  border-radius: @btn-border-radius;
                  margin: 0 8px;
                  width: 50px;
              }
          }
      }
  
      &-total {
          float: left;
          height: 30px;
          line-height: 30px;
          margin-right: 10px;
      }
  
      &-simple &-prev,
      &-simple &-next {
          margin: 0;
          border: 0;
          height: 24px;
          line-height: 24px;
          font-size: 18px;
      }
  
      &-simple &-simple-pager {
          float: left;
          margin-right: 8px;
  
          input {
              width: 30px;
              height: 24px;
              margin: 0 8px;
              padding: 5px 8px;
              text-align: center;
              box-sizing: border-box;
              background-color: #fff;
              outline: none;
              border: 1px solid @border-color-base;
              border-radius: @btn-border-radius;
              .transition(border-color @transition-time @ease-in-out);
  
              &:hover {
                  border-color: @primary-color;
              }
          }
      }
  }
  
  .@{page-prefix-cls} {
      &.mini &-total {
          height: 20px;
          line-height: 20px;
      }
  
      &.mini &-item {
          border: 0;
          margin: 0;
          min-width: 20px;
          height: 20px;
          line-height: 20px;
          border-radius: @btn-border-radius-small;
      }
  
      &.mini &-prev,
      &.mini &-next {
          margin: 0;
          min-width: 20px;
          height: 20px;
          line-height: 20px;
          border: 0;
  
          a {
              i:after {
                  height: 20px;
                  line-height: 20px;
              }
          }
      }
  
      &.mini &-item-jump-prev,
      &.mini &-item-jump-next {
          height: 20px;
          line-height: 20px;
928033f0   梁灏   optimize Page style
248
249
          border: none;
          margin-right: 0;
93064e3b   梁灏   add Page UI
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
      }
  
      &.mini &-options {
          margin-left: 8px;
          &-elevator {
              height: 20px;
              line-height: 20px;
  
              input {
                  .input-small;
                  width: 44px;
              }
          }
      }
  }