admin.css
15.3 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
/* Plugin Activation */
.woocommerce-subscriptions-activated p a.button-primary {
display: inline-block;
}
.woocommerce-subscriptions-activated a.button-primary:hover {
background: #bb77ae;
border-color: #aa559a;
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
}
.woocommerce-subscriptions-activated a.button-primary:active,
.woocommerce-subscriptions-activated a.button-primary:active {
background: #aa559a;
border-color: #aa559a;
}
/* Subscriptions Admin Page */
.post-type-shop_subscription .widefat .column-status,
.post-type-shop_subscription .widefat .column-order_id,
.post-type-shop_subscription .widefat .column-order_title {
width: 142px;
text-align: left;
}
.widefat .type-shop_subscription td.column-status {
padding: 6px 7px;
}
.widefat .type-shop_subscription .column-status mark {
display:block;
text-align: center;
white-space: nowrap;
padding: 0 2px;
background: #999;
border: 1px solid #999;
-webkit-box-shadow:inset 0 0 2px 1px rgba(255,255,255,0.5);
-webkit-border-radius:4px;
-moz-border-radius:4px;
-o-border-radius:4px;
border-radius:4px;
margin: 0;
font-size:9px;
text-transform: uppercase;
color:#fff;
font-weight: bold;
text-shadow:0 1px 0 rgba(0,0,0,0.3);
}
.widefat .type-shop_subscription .column-status mark.active {
background-color: #339933;
border-color: #339933;
}
.widefat .type-shop_subscription .column-status mark.expired {
background-color: #A0658B;
border-color: #A0658B;
}
.widefat .type-shop_subscription .column-status mark.on-hold {
background-color: #E66F00;
border-color: #E66F00;
}
.widefat .type-shop_subscription .column-status mark.failed {
background-color: red;
border-color: red;
}
.widefat .type-shop_subscription .column-status mark.cancelled {
background-color: #ccc;
border-color: #ccc;
}
.widefat .type-shop_subscription .column-status mark.processing {
background-color: #2184c2;
border-color: #2184c2;
}
/* Product List table */
table.wp-list-table span.product-type.variable-subscription {
background-position: -48px 0;
}
/* Orders List Table */
a.close-subscriptions-search {
font-size: 1em;
padding: 0em 0.45em;
border-radius: 1.4em;
background: #dd0000;
color: #ffffff;
margin: -0.3em 0.6em 0 0;
}
.dismiss-subscriptions-search {
position: relative;
}
.dismiss-subscriptions-search a {
padding-bottom: 9px;
}
/* Edit Product/Subscriptions Page */
.woocommerce_options_panel .subscription_pricing {
float: left;
clear: both;
height: 100%;
width: 100%;
}
.woocommerce_options_panel .subscription_pricing .description {
font-style: normal;
}
.subscription_pricing .form-field,
.subscription_pricing .form-field *,
.variable_subscription_pricing .form-field,
.variable_subscription_pricing .form-field *,
.variable_subscription_trial .form-field,
.variable_subscription_trial .form-field * {
float:left;
}
p._subscription_price_field,
p._subscription_period_field,
p._subscription_length_field {
display: inline-block;
}
.woocommerce_options_panel input[type=text].wc_input_subscription_price,
.woocommerce_options_panel input[type=text].wc_input_subscription_intial_price,
.woocommerce_options_panel input[type=text].wc_input_subscription_trial_length,
.woocommerce_options_panel input[type=text].wc_input_subscription_payment_sync {
width: 5.5em;
}
p._subscription_period_field label,
p._subscription_length_field label,
p._subscription_period_interval_field label,
p._subscription_trial_period_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_interval_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_length_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_payment_sync_field label {
display: none;
}
#woocommerce-product-data .woocommerce_options_panel p._subscription_price_field {
padding-right: 0 !important;
}
p._subscription_price_field input,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field input,
p._subscription_sign_up_fee_field input,
p._subscription_trial_length_field input,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_length_field input,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_payment_sync_field input {
width: 5em;
}
.woocommerce_options_panel #sale-price-period {
margin-right: 1em;
}
.wc_input_subscription_length {
min-width: 90px;
}
.wc-metaboxes-wrapper .wc-metabox table td .wc_input_subscription_length {
width: 90px;
}
._subscription_trial_period {
min-width: 7.1em;
}
.wc-metaboxes-wrapper .wc-metabox table td ._subscription_trial_period {
width: 7.1em;
}
#woocommerce-product-data .woocommerce_options_panel p._subscription_period_field,
#woocommerce-product-data .woocommerce_options_panel p._subscription_length_field,
#woocommerce-product-data .woocommerce_options_panel p._subscription_period_interval_field,
#woocommerce-product-data .woocommerce_options_panel p._subscription_trial_period_field,
#woocommerce-product-data .woocommerce_options_panel p._subscription_payment_sync_date_month_field {
padding: 5px 0 5px 5px !important;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field {
width: 70px !important;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_sign_up_fee_field {
width: 100% !important;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_sign_up_fee_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_length_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_payment_sync_field {
padding: 0 0 0 0 !important;
margin: 0;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field select,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field select {
width: auto !important;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field select {
width: 88px !important;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field img.help_tip {
margin-top: 4px;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field span,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field span,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_sign_up_fee_field span {
padding: 5px 0 0 2px;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_interval_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field {
padding: 0 0 0 5px !important;
margin: 0;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field select {
margin-left: 5px;
}
#woocommerce-product-data .woocommerce_options_panel p._subscription_trial_length_field,
#woocommerce-product-data .woocommerce_options_panel p._subscription_sign_up_fee_field,
#woocommerce-product-data .woocommerce_options_panel p._subscription_payment_sync_date_day_field {
clear: left;
padding-right: 0px !important;
}
.woocommerce_options_panel p._subscription_trial_length_field,
.woocommerce_options_panel p._subscription_trial_period_field,
.woocommerce_options_panel p._subscription_sign_up_fee_field {
margin-top: 0;
}
.woocommerce_options_panel p._subscription_trial_period_field img,
.woocommerce_options_panel p._subscription_sign_up_fee_field img,
.woocommerce_options_panel p._subscription_payment_sync_date_field img,
.woocommerce_options_panel p._subscription_payment_sync_date_month_field img {
padding-top: 0.7em;
}
.subscription_sync_week_month select.wc_input_subscription_payment_sync {
min-width: 180px;
}
.wc-metaboxes-wrapper .wc-metabox table tr.variable_subscription_sync td select.wc_input_subscription_payment_sync {
width: auto !important;
}
._subscription_payment_sync_field img.help_tip {
padding-top: 8px;
}
.variable_subscription_sync p._subscription_payment_sync_field {
padding-left: 0 !important;
}
/* Variation Pricing Fields in WooCommerce 2.3 */
.variable_subscription_pricing_2_3 .wcs_hidden_label {
display: none;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_price {
max-width: 24%;
clear: left;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_period_interval {
max-width: 41%;
float: right;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_period {
max-width: 32%;
float: right;
}
.variable_subscription_pricing_2_3.variable_subscription_trial p.form-row {
margin-bottom: 0;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_trial_period {
max-width: 47%;
float: right;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_trial_length {
max-width: 48%;
}
.variable_subscription_pricing_2_3 .variable_subscription_trial_sign_up {
clear: both;
}
.variable_subscription_pricing_2_3 p._subscription_length_field label {
display: inline-block;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_day {
max-width: 13%;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_month {
max-width: 86%;
float: right;
}
@media screen and (max-width: 1190px) {
.variable_subscription_pricing_2_3 p._subscription_price_field,
.variable_subscription_pricing_2_3 p._subscription_length_field {
width: 100%;
}
.variable_subscription_pricing_2_3 p._subscription_price_field {
width: 100%;
margin-bottom: 0;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_day {
max-width: 20%;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_month {
max-width: 78%;
float: right;
}
}
/* Users Administration Screen */
.woocommerce_active_subscriber .active-subscriber:before {
content: "\f147";
display: inline-block;
-webkit-font-smoothing: antialiased;
font: normal 24px/1 'dashicons';
vertical-align: top;
}
/* Add/Edit Subscription Screen */
#woocommerce-subscription-data .handlediv,
#woocommerce-subscription-data h3.hndle {
display: none;
}
#woocommerce-subscription-data .inside {
padding: 0;
margin: 0;
}
#woocommerce-subscription-schedule strong {
display: inline-block;
}
#woocommerce-subscription-schedule .date-fields {
margin: 1em 0;
}
#woocommerce-subscription-schedule p._billing_period_field,
#woocommerce-subscription-schedule p._billing_interval_field {
display: inline-block;
padding: 0 0 0 1px;
margin: 0.5em 0 0;
}
#woocommerce-subscription-schedule p._billing_interval_field {
padding-left: 0;
}
#woocommerce-subscription-schedule p._billing_interval_field {
width: 66%;
}
#woocommerce-subscription-schedule p._billing_period_field {
width: 30%;
}
#woocommerce-subscription-schedule p._billing_interval_field label {
display: inline-block;
font-weight: bold;
}
#woocommerce-subscription-schedule p._billing_period_field label {
display: none;
}
#woocommerce-subscription-schedule p._billing_interval_field select,
#woocommerce-subscription-schedule p._billing_period_field select {
display: inline-block;
}
#woocommerce-subscription-schedule p._billing_interval_field select {
width: 58%;
margin-left: 5px;
}
#woocommerce-subscription-schedule p._billing_period_field select {
width: 100%;
}
#woocommerce-subscription-schedule .date-fields label,
#woocommerce-subscription-schedule .wcs-edit-date-action {
display: inline-block;
font-weight: bold;
}
#woocommerce-subscription-schedule .wcs-date-input input[type="text"]:first-of-type {
width: 8em;
}
#woocommerce-subscription-schedule img.ui-datepicker-trigger {
float: left;
margin: 0.5em 0.1em;
}
#woocommerce-subscription-schedule .wcs-date-input,
#woocommerce-subscription-schedule .billing-schedule-edit {
width: 100%;
}
#woocommerce-subscription-schedule .wcs-edit-date-action {
width: 1.5em;
float: right;
}
#woocommerce-subscription-schedule .wcs-edit-date,
#woocommerce-subscription-schedule .wcs-delete-date {
text-indent: -9999px;
position: relative;
height: 1em;
width: 1em;
display: inline-block;
margin: 0 .5em 0 0;
}
#woocommerce-subscription-schedule .wcs-edit-date:before,
#woocommerce-subscription-schedule .wcs-delete-date:before {
font-family: WooCommerce;
speak: none;
font-weight: 400;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
margin: 0;
text-indent: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
color: #999;
}
#woocommerce-subscription-schedule .wcs-edit-date:before {
content: "\e603";
}
#woocommerce-subscription-schedule .wcs-edit-date:hover:before {
color: #555555;
}
#woocommerce-subscription-schedule .wcs-delete-date:before {
content: "\e013";
}
#woocommerce-subscription-schedule .wcs-delete-date:hover:before {
color: #AA0000;
}
/* Related Orders Metabox on Edit Subscription/Order Admin Screen */
#subscription_renewal_orders .inside {
margin: 0;
padding: 0;
}
.woocommerce_subscriptions_related_orders {
margin: 0;
overflow: auto;
}
.woocommerce_subscriptions_related_orders table {
width: 100%;
background: #fff;
border-collapse: collapse;
}
.woocommerce_subscriptions_related_orders table thead th {
background: #f8f8f8;
padding: 8px;
font-size: 11px;
text-align: left;
color: #555;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.woocommerce_subscriptions_related_orders table thead th:last-child {
padding-right: 12px;
}
.woocommerce_subscriptions_related_orders table thead th:first-child {
padding-left: 12px;
}
.woocommerce_subscriptions_related_orders table thead th:last-of-type,
.woocommerce_subscriptions_related_orders table td:last-of-type {
text-align: right;
}
.woocommerce_subscriptions_related_orders table tbody th,
.woocommerce_subscriptions_related_orders table td {
padding: 8px;
text-align: left;
line-height: 26px;
vertical-align: top;
border-bottom: 1px dotted #ececec;
}
.woocommerce_subscriptions_related_orders table tbody th:last-child,
.woocommerce_subscriptions_related_orders table td:last-child {
padding-right: 12px;
}
.woocommerce_subscriptions_related_orders table tbody th:first-child,
.woocommerce_subscriptions_related_orders table td:first-child {
padding-left: 12px;
}
.woocommerce_subscriptions_related_orders table tbody tr:last-child td {
border-bottom: none;
}
/* Hide irrelevant sections on Edit Subscription screen */
body.post-type-shop_subscription .order_actions #actions optgroup[label='Resend order emails'],
body.post-type-shop_subscription .add-items .description.tips,
body.post-type-shop_subscription .add-items .button.refund-items {
display: none;
}
@media screen and (max-width: 782px) {
#woocommerce-subscription-schedule .wcs-date-input input[type="text"]:first-of-type {
width: 45%;
}
#woocommerce-subscription-schedule .wcs-date-input input[type="text"]:not(:first-of-type) {
width: 19%;
}
}