PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.3.3
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.3.3
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 All 66 releases
better-payment / assets / css / woocommerce-subscriptions.css

woocommerce-subscriptions.css in Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More 2.3.3, at assets/css/woocommerce-subscriptions.css

123 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Better Payment — WooCommerce My Account > Subscriptions.
3 *
4 * Hand-authored (no build step, like assets/js/woocommerce-blocks.js).
5 * Enqueued on My Account pages only — see WooCommerce\MyAccount::enqueue_styles().
6 */
7
8 /* Status badge */
9 .bp-subscription-status {
10 display: inline-block;
11 padding: 2px 10px;
12 border-radius: 12px;
13 font-size: 0.85em;
14 font-weight: 600;
15 line-height: 1.7;
16 background: #e5e7eb;
17 color: #374151;
18 white-space: nowrap;
19 }
20
21 .bp-subscription-status--active {
22 background: #d1fae5;
23 color: #065f46;
24 }
25
26 .bp-subscription-status--past_due {
27 background: #fef3c7;
28 color: #92400e;
29 }
30
31 .bp-subscription-status--cancelled {
32 background: #e5e7eb;
33 color: #4b5563;
34 }
35
36 .bp-subscription-status--completed {
37 background: #dbeafe;
38 color: #1e40af;
39 }
40
41 /* Single-subscription view */
42 .bp-subscription-section-title {
43 margin: 1.5em 0 0.75em;
44 }
45
46 .bp-subscription-details th {
47 width: 35%;
48 text-align: left;
49 }
50
51 .bp-subscription-actions {
52 display: flex;
53 flex-wrap: wrap;
54 align-items: flex-start;
55 gap: 12px 16px;
56 margin-bottom: 1.5em;
57 }
58
59 .bp-subscription-actions form {
60 margin: 0;
61 }
62
63 .bp-subscription-actions form p {
64 margin: 0 0 0.5em;
65 }
66
67 .bp-subscription-cancel button.button {
68 background: #b32d2e;
69 border-color: #b32d2e;
70 color: #fff;
71 }
72
73 .bp-subscription-back {
74 margin-top: 1.5em;
75 }
76
77 /* -------------------------------------------------------------------------
78 * "Subscription Total" row — cart + checkout totals table
79 * ---------------------------------------------------------------------- */
80
81 .bp-subscription-total__amount {
82 display: block;
83 font-weight: 600;
84 }
85
86 .bp-subscription-total__meta {
87 display: block;
88 margin-top: 0.25em;
89 font-size: 0.85em;
90 font-weight: 400;
91 line-height: 1.5;
92 opacity: 0.8;
93 }
94
95 /* Blocks Cart/Checkout. The row is rendered through WooCommerce's own
96 TotalsWrapper + TotalsItem, so the grid is already correct: the wrapper
97 supplies the separator and padding that align it with Subtotal/Total,
98 `__label { flex-grow: 1 }` pushes the amount right, and
99 `__description { width: 100% }` drops the small lines onto their own row.
100 Only the small lines need anything from us. */
101 .bp-subscription-total__lines {
102 display: block;
103 }
104
105 /* The description is already small; without this the shared rule below
106 compounds on top of it and the lines come out unreadably tiny. */
107 .bp-subscription-total__lines .bp-subscription-total__meta {
108 font-size: 1em;
109 margin-top: 0;
110 }
111
112 /* Fallback markup only (TotalsItem unavailable) — it has no grid of its own. */
113 .bp-subscription-total--fallback {
114 display: block;
115 padding: 16px 0;
116 border-top: 1px solid rgba(127, 127, 127, 0.3);
117 }
118
119 .bp-subscription-total--fallback .bp-subscription-total__label {
120 display: block;
121 font-weight: 600;
122 }
123