PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.11.2
Subscriptions for WooCommerce with Stripe Recurring Payments v1.11.2
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / assets / css / admin-settings.css

admin-settings.css in Subscriptions for WooCommerce with Stripe Recurring Payments 1.11.2, at assets/css/admin-settings.css

154 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Scoped toggle styles for this settings screen only */
2 .woocommerce .form-table .forminp-checkbox label {
3 display: inline-flex;
4 align-items: center;
5 gap: 10px;
6 }
7
8 .wp-subscription-toggle {
9 position: absolute;
10 opacity: 0;
11 width: 0;
12 height: 0;
13 visibility: hidden;
14 }
15
16 .wp-subscription-toggle + .wp-subscription-toggle-ui {
17 position: relative;
18 display: inline-block;
19 width: 40px;
20 height: 20px;
21 border-radius: 999px;
22 background: #cbd5e1; /* slate-300 */
23 transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
24 vertical-align: middle;
25 cursor: pointer;
26 }
27
28 .wp-subscription-toggle + .wp-subscription-toggle-ui::after {
29 content: "";
30 position: absolute;
31 top: 2px;
32 left: 2px;
33 width: 16px;
34 height: 16px;
35 border-radius: 50%;
36 background: #fff;
37 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
38 transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
39 }
40
41 .wp-subscription-toggle:checked + .wp-subscription-toggle-ui {
42 background: #2271b1; /* WP primary */
43 }
44
45 .wp-subscription-toggle:checked + .wp-subscription-toggle-ui::after {
46 transform: translateX(20px);
47 }
48
49 .wp-subscription-toggle:focus + .wp-subscription-toggle-ui {
50 outline: none;
51 outline-offset: 0;
52 }
53
54 .wp-subscription-toggle:disabled + .wp-subscription-toggle-ui {
55 background: #e5e7eb; /* gray-200 */
56 cursor: not-allowed;
57 }
58
59 /* Consistent minimum widths for inputs/selects on this screen */
60 .woocommerce .form-table td input[type="text"],
61 .woocommerce .form-table td input[type="number"],
62 .woocommerce .form-table td select,
63 .woocommerce .form-table td .select2-container .select2-selection--single {
64 min-width: 25em;
65 }
66
67 /* Ensure Select2 container reflects min width nicely */
68 .woocommerce .form-table td .select2-container {
69 min-width: 25em !important;
70 }
71
72 /* Minimal, consistent spacing and typography */
73 .woocommerce .woocommerce-card {
74 background: #fff;
75 border: 1px solid #e5e7eb;
76 border-radius: 8px;
77 padding: 16px 20px;
78 }
79
80 .woocommerce .form-table th label {
81 font-weight: 600;
82 }
83
84 .woocommerce .form-table tr {
85 border-bottom: 1px solid #f1f5f9;
86 }
87
88 .woocommerce .form-table th,
89 .woocommerce .form-table td {
90 padding-top: 14px;
91 padding-bottom: 14px;
92 }
93
94 .woocommerce .form-table p.description {
95 color: #64748b; /* slate-500 */
96 margin-top: 6px;
97 line-height: 1.5;
98 }
99
100 /* Inputs/selects: subtle, consistent look */
101 .woocommerce .form-table td input[type="text"],
102 .woocommerce .form-table td input[type="number"],
103 .woocommerce .form-table td select {
104 padding: 6px 10px;
105 min-height: 34px;
106 border-radius: 6px;
107 border: 1px solid #d0d7de;
108 transition: all 0.15s cubic-bezier(0.27, 0.2, 0.25, 1.2);
109 }
110
111 .woocommerce .form-table td input[type="text"]:focus,
112 .woocommerce .form-table td input[type="number"]:focus,
113 .woocommerce .form-table td select:focus {
114 outline: none;
115 border-color: #2271b1;
116 box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
117 }
118
119 /* Select2 alignment with inputs */
120 .woocommerce .form-table td .select2-container .select2-selection--single {
121 height: 34px;
122 border-radius: 6px;
123 border-color: #d0d7de;
124 }
125
126 .woocommerce .form-table td .select2-container--default .select2-selection--single .select2-selection__rendered {
127 line-height: 34px;
128 }
129
130 .woocommerce .form-table td .select2-container--default .select2-selection--single .select2-selection__arrow {
131 height: 34px;
132 }
133
134 /* Buttons: match input height and visual rhythm */
135 .woocommerce .form-table td .button,
136 .woocommerce .form-table td .button-primary,
137 .woocommerce .form-table td .button-secondary,
138 .woocommerce .woocommerce-card .button,
139 .woocommerce .woocommerce-card .button-primary,
140 .woocommerce .woocommerce-card .button-secondary,
141 .woocommerce .form-table td .button-large,
142 .woocommerce .woocommerce-card .button-large {
143 min-height: 34px;
144 line-height: 32px; /* 34px height minus 1px border top/bottom */
145 padding: 4px 12px;
146 border-radius: 6px;
147 }
148
149 /* Switch Fee type picker: shrink to its content instead of filling the row. */
150 .subscrpt-switch-fee-type .wpsubs-adv-select__trigger {
151 width: max-content;
152 min-width: unset;
153 }
154