cm-admin 0.8.8 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/.stylelintrc.json +3 -0
- data/.github/workflows/linters.yml +31 -0
- data/Gemfile +5 -1
- data/Gemfile.lock +20 -9
- data/app/assets/stylesheets/cm_admin/base/auth.scss +1 -1
- data/app/assets/stylesheets/cm_admin/base/common.scss +3 -3
- data/app/assets/stylesheets/cm_admin/base/filters.scss +11 -17
- data/app/assets/stylesheets/cm_admin/base/form.scss +6 -12
- data/app/assets/stylesheets/cm_admin/base/main-nav.scss +3 -7
- data/app/assets/stylesheets/cm_admin/base/navbar.scss +3 -2
- data/app/assets/stylesheets/cm_admin/base/quicksearch.scss +4 -6
- data/app/assets/stylesheets/cm_admin/base/scaffold.scss +45 -2
- data/app/assets/stylesheets/cm_admin/base/show.scss +11 -9
- data/app/assets/stylesheets/cm_admin/base/sidebar.scss +9 -19
- data/app/assets/stylesheets/cm_admin/base/table.scss +258 -325
- data/app/assets/stylesheets/cm_admin/base/tabs.scss +1 -2
- data/app/assets/stylesheets/cm_admin/components/_buttons.scss +19 -6
- data/app/assets/stylesheets/cm_admin/components/_drawer.scss +4 -8
- data/app/assets/stylesheets/cm_admin/components/_dropdown-popup.scss +1 -2
- data/app/assets/stylesheets/cm_admin/components/_input.scss +1 -1
- data/app/assets/stylesheets/cm_admin/components/_status-tag.scss +3 -2
- data/app/assets/stylesheets/cm_admin/helpers/_variable.scss +4 -0
- data/app/assets/stylesheets/cm_admin/scaffold.scss +2 -2
- data/app/controllers/cm_admin/resource_controller.rb +4 -2
- data/app/helpers/cm_admin/application_helper.rb +6 -0
- data/app/javascript/packs/cm_admin/filters.js +1 -1
- data/app/javascript/packs/cm_admin/scaffolds.js +4 -1
- data/app/models/concerns/cm_admin/file_import.rb +13 -7
- data/app/views/cm_admin/main/_actions_dropdown.html.slim +2 -2
- data/app/views/cm_admin/main/_associated_table.html.slim +25 -23
- data/app/views/cm_admin/main/_member_custom_action_modal.html.slim +1 -1
- data/app/views/cm_admin/main/_table.html.slim +14 -15
- data/app/views/cm_admin/main/associated_index.html.slim +4 -5
- data/app/views/cm_admin/main/index.html.slim +13 -14
- data/app/views/cm_admin/main/show.html.slim +2 -2
- data/app/views/layouts/cm_admin.html.slim +5 -5
- data/lib/cm_admin/model.rb +6 -1
- data/lib/cm_admin/models/action.rb +1 -1
- data/lib/cm_admin/models/column.rb +16 -3
- data/lib/cm_admin/models/dsl_method.rb +17 -4
- data/lib/cm_admin/models/field.rb +7 -1
- data/lib/cm_admin/models/utils/associations.rb +25 -0
- data/lib/cm_admin/version.rb +1 -1
- data/lib/cm_admin/view_helpers/field_display_helper.rb +25 -1
- data/lib/cm_admin/view_helpers/page_info_helper.rb +7 -3
- data/package-lock.json +2801 -158
- data/package.json +2 -0
- data/tmp/cache/webpacker/last-compilation-digest-development +1 -1
- data/yarn.lock +6949 -5133
- metadata +6 -3
|
@@ -1,378 +1,311 @@
|
|
|
1
1
|
@import "../helpers/index.scss";
|
|
2
2
|
|
|
3
3
|
.cm-index-page {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
overflow: auto;
|
|
4
|
+
background-color: $white;
|
|
5
|
+
overflow: auto;
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
7
|
+
&.associated-index {
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
}
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
.sticky-container {
|
|
12
|
+
.cm-filters-v2 {
|
|
13
|
+
padding: 16px 24px;
|
|
16
14
|
}
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
&__filters {
|
|
18
|
+
// If you want to overwrite filters styles ---> add styles here
|
|
19
|
+
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
padding: 0 10px;
|
|
44
|
-
}
|
|
21
|
+
&__table-container {
|
|
22
|
+
padding-left: 24px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.table-top {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
height: 64px;
|
|
30
|
+
padding: 21px 24px 21px 0;
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
&__total-count {
|
|
33
|
+
@include font($size: $t4-text, $color: $ink-lighter-clr);
|
|
34
|
+
line-height: 22px;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
&__column-action {
|
|
38
|
+
.column-btn {
|
|
39
|
+
padding: 4px 8px;
|
|
40
|
+
span:nth-child(2) {
|
|
41
|
+
margin: 0 0 0 4px;
|
|
45
42
|
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
//Table UI styles
|
|
48
|
+
.new-admin-table {
|
|
49
|
+
min-width: 720px;
|
|
50
|
+
max-width: fit-content;
|
|
51
|
+
// max-height: calc(100vh - 240px); Height is dynamic
|
|
52
|
+
overflow: auto;
|
|
53
|
+
.cm-table {
|
|
54
|
+
table-layout: fixed;
|
|
55
|
+
position: relative;
|
|
56
|
+
min-width: 720px;
|
|
57
|
+
border-collapse: collapse;
|
|
58
|
+
border: 1px solid $grey-lighter-clr;
|
|
59
|
+
border-top-width: 0;
|
|
60
|
+
border-radius: $radius-8;
|
|
61
|
+
&__header {
|
|
62
|
+
.header-row {
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
position: relative;
|
|
66
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
|
67
|
+
border-top: 1px solid $grey-lighter-clr;
|
|
68
|
+
th {
|
|
69
|
+
@include font($size: $t6-text, $color: $ink-lighter-clr, $weight: bold);
|
|
70
|
+
text-transform: uppercase;
|
|
71
|
+
min-width: 200px;
|
|
72
|
+
max-width: 200px;
|
|
73
|
+
padding: 12px 16px 12px 16px;
|
|
53
74
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
th:nth-child(1) {
|
|
76
|
+
position: sticky;
|
|
77
|
+
left: 0;
|
|
78
|
+
z-index: 2;
|
|
79
|
+
background-color: $white;
|
|
80
|
+
border-bottom: 1.21px solid rgb(240, 239, 239);
|
|
59
81
|
}
|
|
60
|
-
.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
.check-box-space {
|
|
83
|
+
position: sticky;
|
|
84
|
+
left: 0;
|
|
85
|
+
min-width: fit-content;
|
|
86
|
+
max-width: fit-content;
|
|
87
|
+
padding: 12px 8px 12px 16px;
|
|
88
|
+
z-index: 2;
|
|
89
|
+
background-color: $white;
|
|
90
|
+
border-bottom: 1.21px solid rgb(240, 239, 239);
|
|
91
|
+
span {
|
|
92
|
+
vertical-align: text-top;
|
|
67
93
|
}
|
|
68
94
|
}
|
|
69
95
|
}
|
|
70
96
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.new-admin-table {
|
|
75
|
-
overflow: auto;
|
|
76
|
-
margin-top: 40px;
|
|
77
|
-
margin-bottom: 50px;
|
|
78
|
-
height: calc(100vh - 365px);
|
|
79
|
-
.cm-table {
|
|
80
|
-
table-layout: fixed;
|
|
97
|
+
&__body {
|
|
98
|
+
display: block;
|
|
81
99
|
position: relative;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
|
93
|
-
border-top: 1px solid $grey-lighter-clr;
|
|
94
|
-
th {
|
|
95
|
-
@include font($size: $t6-text, $color: $ink-lighter-clr, $weight: bold);
|
|
96
|
-
text-transform: uppercase;
|
|
97
|
-
min-width: 200px;
|
|
98
|
-
max-width: 200px;
|
|
99
|
-
padding: 12px 16px 12px 16px;
|
|
100
|
-
}
|
|
101
|
-
th:nth-child(2){
|
|
102
|
-
position: sticky;
|
|
103
|
-
left: 38px;
|
|
104
|
-
z-index: 2;
|
|
105
|
-
background-color: #fff;
|
|
106
|
-
border-bottom: 1.21px solid rgb(240, 239, 239);
|
|
107
|
-
}
|
|
108
|
-
.check-box-space {
|
|
109
|
-
position: sticky;
|
|
110
|
-
left: 0;
|
|
111
|
-
min-width: fit-content;
|
|
112
|
-
max-width: fit-content;
|
|
113
|
-
padding: 12px 8px 12px 16px;
|
|
114
|
-
z-index: 2;
|
|
115
|
-
background-color: #fff;
|
|
116
|
-
border-bottom: 1.21px solid rgb(240, 239, 239);
|
|
117
|
-
span {
|
|
118
|
-
vertical-align: text-top;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
100
|
+
width: 100%;
|
|
101
|
+
background-color: $white;
|
|
102
|
+
.body-row {
|
|
103
|
+
display: flex;
|
|
104
|
+
border-bottom: 1.21px solid rgb(240, 239, 239);
|
|
105
|
+
td:nth-child(1) {
|
|
106
|
+
position: sticky;
|
|
107
|
+
left: 0;
|
|
108
|
+
z-index: 2;
|
|
109
|
+
background-color: $white;
|
|
121
110
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
// width: 100%;
|
|
129
|
-
// height: 335px;
|
|
130
|
-
display: block;
|
|
131
|
-
position: relative;
|
|
132
|
-
width: 100%;
|
|
133
|
-
.body-row {
|
|
134
|
-
border-bottom: 1.21px solid rgb(240, 239, 239);
|
|
135
|
-
td:nth-child(2){
|
|
136
|
-
position: sticky;
|
|
137
|
-
left: 38px;
|
|
138
|
-
z-index: 2;
|
|
139
|
-
background-color: #fff;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&:nth-last-child(1) {
|
|
143
|
-
box-shadow: none;
|
|
144
|
-
}
|
|
145
|
-
&:hover {
|
|
111
|
+
&:nth-last-child(1) {
|
|
112
|
+
box-shadow: none;
|
|
113
|
+
}
|
|
114
|
+
&:hover {
|
|
115
|
+
background-color: $grey-lighter-clr;
|
|
116
|
+
td:nth-child(1) {
|
|
146
117
|
background-color: $grey-lighter-clr;
|
|
147
|
-
td:nth-child(1) {
|
|
148
|
-
background-color: $grey-lighter-clr;
|
|
149
|
-
}
|
|
150
|
-
td:nth-child(2) {
|
|
151
|
-
background-color: $grey-lighter-clr;
|
|
152
|
-
}
|
|
153
|
-
.row-action-cell {
|
|
154
|
-
opacity: 1;
|
|
155
|
-
}
|
|
156
118
|
}
|
|
157
|
-
.
|
|
158
|
-
|
|
159
|
-
left: 0;
|
|
160
|
-
min-width: fit-content;
|
|
161
|
-
max-width: fit-content;
|
|
162
|
-
padding: 16px 8px 16px 16px;
|
|
163
|
-
z-index: 2;
|
|
164
|
-
background-color: #fff;
|
|
165
|
-
span {
|
|
166
|
-
vertical-align: text-top;
|
|
167
|
-
}
|
|
119
|
+
.row-action-cell {
|
|
120
|
+
display: inline-block;
|
|
168
121
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
122
|
+
}
|
|
123
|
+
.check-box-space {
|
|
124
|
+
position: sticky;
|
|
125
|
+
left: 0;
|
|
126
|
+
min-width: fit-content;
|
|
127
|
+
max-width: fit-content;
|
|
128
|
+
padding: 16px 8px 16px 16px;
|
|
129
|
+
z-index: 2;
|
|
130
|
+
background-color: $white;
|
|
131
|
+
span {
|
|
132
|
+
vertical-align: text-top;
|
|
174
133
|
}
|
|
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
|
-
|
|
134
|
+
}
|
|
135
|
+
td {
|
|
136
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
|
137
|
+
min-width: 200px;
|
|
138
|
+
max-width: 200px;
|
|
139
|
+
padding: 16px;
|
|
140
|
+
}
|
|
141
|
+
.row-action-cell {
|
|
142
|
+
position: sticky;
|
|
143
|
+
right: 0;
|
|
144
|
+
width: 88px;
|
|
145
|
+
max-width: inherit;
|
|
146
|
+
min-width: inherit;
|
|
147
|
+
height: 53px;
|
|
148
|
+
padding: 0;
|
|
149
|
+
background: $gradient-one;
|
|
150
|
+
display: none;
|
|
151
|
+
transition: all 0.1s linear;
|
|
152
|
+
.row-action-tool {
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
height: 100%;
|
|
157
|
+
.popup-card {
|
|
158
|
+
.popup-option {
|
|
159
|
+
a {
|
|
160
|
+
@include font($size: $t4-text, $color: $ink-regular-clr, $weight: 500);
|
|
161
|
+
line-height: 22px;
|
|
200
162
|
}
|
|
201
163
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
164
|
+
}
|
|
165
|
+
.tool-btn {
|
|
166
|
+
background-color: transparent;
|
|
167
|
+
border: none;
|
|
206
168
|
}
|
|
207
169
|
}
|
|
208
170
|
}
|
|
209
171
|
}
|
|
210
172
|
}
|
|
211
|
-
.cm-table > thead {
|
|
212
|
-
position: sticky;
|
|
213
|
-
top: 0;
|
|
214
|
-
background-color: #fff;
|
|
215
|
-
z-index: 3;
|
|
216
|
-
}
|
|
217
173
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
left: 245px;
|
|
223
|
-
background-color: #fff;
|
|
174
|
+
.cm-table > thead {
|
|
175
|
+
position: sticky;
|
|
176
|
+
top: 0;
|
|
177
|
+
background-color: $white;
|
|
224
178
|
z-index: 3;
|
|
225
|
-
.table-sticky-top {
|
|
226
|
-
position: sticky;
|
|
227
|
-
top: 254px;
|
|
228
|
-
}
|
|
229
|
-
.table-top {
|
|
230
|
-
display: flex;
|
|
231
|
-
justify-content: space-between;
|
|
232
|
-
align-items: center;
|
|
233
|
-
padding-bottom: 16px;
|
|
234
|
-
margin-top: -20px;
|
|
235
|
-
background-color: #fff;
|
|
236
|
-
&__total-count {
|
|
237
|
-
font-size: $t4-text;
|
|
238
|
-
line-height: 22px;
|
|
239
|
-
color: $ink-lighter-clr;
|
|
240
|
-
margin: 0;
|
|
241
|
-
}
|
|
242
|
-
&__column-action {
|
|
243
|
-
.column-btn {
|
|
244
|
-
padding: 4px 8px;
|
|
245
|
-
span:nth-child(2) {
|
|
246
|
-
margin: 0 0 0 4px;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
179
|
}
|
|
180
|
+
}
|
|
252
181
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
.modal-
|
|
258
|
-
.modal-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
line-height: 32px;
|
|
267
|
-
}
|
|
268
|
-
.close {
|
|
269
|
-
position: absolute;
|
|
270
|
-
top: 4px;
|
|
271
|
-
right: 8px;
|
|
272
|
-
padding: 4px;
|
|
273
|
-
margin: 0;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
.modal-body {
|
|
277
|
-
padding: 0;
|
|
182
|
+
// table-column-modal
|
|
183
|
+
.table-column-modal {
|
|
184
|
+
//modal overwritten styles
|
|
185
|
+
.modal-dialog {
|
|
186
|
+
.modal-content {
|
|
187
|
+
.modal-header {
|
|
188
|
+
position: relative;
|
|
189
|
+
padding: 24px 32px 18px;
|
|
190
|
+
border: none;
|
|
191
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
|
192
|
+
.modal-title {
|
|
193
|
+
@include font($size: 24px, $color: $primary-text-clr, $weight: 600);
|
|
194
|
+
line-height: 32px;
|
|
278
195
|
}
|
|
279
|
-
.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
196
|
+
.close {
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: 4px;
|
|
199
|
+
right: 8px;
|
|
200
|
+
padding: 4px;
|
|
201
|
+
margin: 0;
|
|
283
202
|
}
|
|
284
203
|
}
|
|
204
|
+
.modal-body {
|
|
205
|
+
padding: 0;
|
|
206
|
+
}
|
|
207
|
+
.modal-footer {
|
|
208
|
+
padding: 16px 32px;
|
|
209
|
+
border: none;
|
|
210
|
+
box-shadow: inset 0px 1px 0px rgba(148, 151, 155, 0.15);
|
|
211
|
+
}
|
|
285
212
|
}
|
|
213
|
+
}
|
|
286
214
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
&__name {
|
|
301
|
-
font-size: $t4-text;
|
|
302
|
-
line-height: 22px;
|
|
303
|
-
margin-left: 4px;
|
|
304
|
-
color: $primary-text-clr;
|
|
305
|
-
p {
|
|
306
|
-
margin: 0;
|
|
307
|
-
}
|
|
215
|
+
.columns-list {
|
|
216
|
+
.column-item {
|
|
217
|
+
position: relative;
|
|
218
|
+
display: flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
padding: 8px 24px;
|
|
222
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
|
223
|
+
&:hover {
|
|
224
|
+
.dragger {
|
|
225
|
+
display: block;
|
|
308
226
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
227
|
+
}
|
|
228
|
+
&__name {
|
|
229
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
|
230
|
+
line-height: 22px;
|
|
231
|
+
margin-left: 4px;
|
|
232
|
+
p {
|
|
233
|
+
margin: 0;
|
|
313
234
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
235
|
+
}
|
|
236
|
+
&__action {
|
|
237
|
+
padding: 5px 8px;
|
|
238
|
+
@include font($size: $t4-text, $color: $ink-lightest-clr);
|
|
239
|
+
}
|
|
240
|
+
.dragger {
|
|
241
|
+
display: none;
|
|
242
|
+
position: absolute;
|
|
243
|
+
left: 4px;
|
|
244
|
+
top: 8px;
|
|
245
|
+
padding: 5px;
|
|
246
|
+
color: $ink-lightest-clr;
|
|
247
|
+
border-radius: $radius-4;
|
|
248
|
+
animation: fadeIn 0.1s ease-in-out;
|
|
249
|
+
cursor: grab;
|
|
250
|
+
&:hover {
|
|
251
|
+
background: $grey-lighter-clr;
|
|
327
252
|
}
|
|
328
253
|
}
|
|
329
254
|
}
|
|
330
255
|
}
|
|
256
|
+
}
|
|
331
257
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
258
|
+
.cm-pagination {
|
|
259
|
+
position: sticky;
|
|
260
|
+
bottom: 0;
|
|
261
|
+
left: 0;
|
|
262
|
+
display: flex;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
align-items: center;
|
|
265
|
+
width: 100%;
|
|
266
|
+
padding: 16px 24px;
|
|
267
|
+
background-color: $white;
|
|
268
|
+
border: 1px solid $grey-lighter-clr;
|
|
269
|
+
box-shadow: inset 0px 1px 0px rgba(148, 151, 155, 0.3);
|
|
270
|
+
z-index: 2;
|
|
271
|
+
&__lhs {
|
|
272
|
+
@include font($size: $t4-text, $color: $ink-lightest-clr, $weight: bold);
|
|
273
|
+
line-height: 22px;
|
|
274
|
+
}
|
|
275
|
+
&__rhs {
|
|
276
|
+
display: inline-flex;
|
|
339
277
|
align-items: center;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
278
|
+
.page-move-btn {
|
|
279
|
+
@include font($size: 10px, $color: $primary-text-clr);
|
|
280
|
+
line-height: 12px;
|
|
281
|
+
padding: 10px 11px;
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
&.disabled {
|
|
284
|
+
color: $disabled-clr;
|
|
285
|
+
cursor: initial;
|
|
286
|
+
pointer-events: none;
|
|
287
|
+
}
|
|
345
288
|
}
|
|
346
|
-
|
|
289
|
+
.page-num-btn {
|
|
290
|
+
@include font($size: $t4-text, $color: $primary-text-clr, $weight: bold);
|
|
347
291
|
display: inline-flex;
|
|
292
|
+
justify-content: center;
|
|
348
293
|
align-items: center;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
&.disabled {
|
|
357
|
-
color: #9CA7AE;
|
|
358
|
-
cursor: initial;
|
|
359
|
-
pointer-events: none;
|
|
360
|
-
}
|
|
294
|
+
width: 32px;
|
|
295
|
+
height: 32px;
|
|
296
|
+
margin: 0 8px;
|
|
297
|
+
border-radius: 4px;
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
&:hover {
|
|
300
|
+
border: 1px solid $grey-light-clr;
|
|
361
301
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
color: $primary-text-clr;
|
|
370
|
-
background-color: $grey-lightest-clr;
|
|
371
|
-
border: 1px solid $grey-light-clr;
|
|
372
|
-
border-radius: $radius-4;
|
|
373
|
-
cursor: initial;
|
|
374
|
-
pointer-events: none;
|
|
375
|
-
}
|
|
302
|
+
&.active {
|
|
303
|
+
color: $primary-text-clr;
|
|
304
|
+
background-color: $grey-lightest-clr;
|
|
305
|
+
border: 1px solid $grey-light-clr;
|
|
306
|
+
border-radius: $radius-4;
|
|
307
|
+
cursor: initial;
|
|
308
|
+
pointer-events: none;
|
|
376
309
|
}
|
|
377
310
|
}
|
|
378
311
|
}
|