PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.0.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.0.0
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-components / editlist.css

editlist.css in Subscriptions for WooCommerce with Stripe Recurring Payments 2.0.0, at assets/css/admin-components/editlist.css

190 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* --------------------------------------------------------------------------
2 Edit list (wpsubs-editlist)
3 Reorderable list of text items with per-row controls and an inline add
4 input. Behaviour wired by WPSubsEditList (admin-components.js); the ordered
5 list is serialized as JSON into a hidden input for form submission.
6 -------------------------------------------------------------------------- */
7 .wpsubs-editlist {
8 max-width: 520px;
9 }
10
11 .wpsubs-editlist__trigger {
12 display: inline-flex;
13 align-items: center;
14 gap: 8px;
15 }
16
17 .wpsubs-editlist__count {
18 display: inline-flex;
19 align-items: center;
20 justify-content: center;
21 min-width: 20px;
22 height: 20px;
23 padding: 0 6px;
24 border-radius: 999px;
25 background: var(--wpsubs-surface-muted, #f2f3f5);
26 color: var(--wpsubs-text-muted, #6b7075);
27 font-size: 11px;
28 font-weight: 600;
29 line-height: 1;
30 }
31
32 .wpsubs-editlist__items {
33 margin: 0 0 12px;
34 padding: 0;
35 list-style: none;
36 display: flex;
37 flex-direction: column;
38 gap: 8px;
39 }
40
41 .wpsubs-editlist__item {
42 display: flex;
43 align-items: center;
44 gap: 10px;
45 padding: 8px 10px 8px 8px;
46 background: var(--wpsubs-surface, #fff);
47 border: 1px solid var(--wpsubs-border, #e2e4e7);
48 border-radius: var(--wpsubs-radius, 8px);
49 transition:
50 border-color 0.12s,
51 box-shadow 0.12s;
52 }
53
54 .wpsubs-editlist__item:hover {
55 border-color: var(--wpsubs-border-strong, #c7cbd1);
56 box-shadow: var(--wpsubs-shadow, 0 1px 2px rgba(0, 0, 0, 0.05));
57 }
58
59 .wpsubs-editlist__handle {
60 display: inline-flex;
61 align-items: center;
62 align-self: stretch;
63 padding-inline: 6px 10px;
64 color: var(--wpsubs-text-subtle, #a7aaaf);
65 font-size: 12px;
66 letter-spacing: -3px;
67 line-height: 1;
68 cursor: grab;
69 user-select: none;
70 }
71
72 .wpsubs-editlist__handle:active {
73 cursor: grabbing;
74 }
75
76 .wpsubs-editlist__item--dragging {
77 opacity: 0.55;
78 border-color: var(--wpsubs-brand, #2563eb);
79 box-shadow: var(--wpsubs-shadow-md, 0 6px 18px rgba(0, 0, 0, 0.12));
80 }
81
82 .wpsubs-editlist__label {
83 flex: 1 1 auto;
84 min-width: 0;
85 font-size: 13px;
86 color: var(--wpsubs-text, #1e1e1e);
87 word-break: break-word;
88 }
89
90 .wpsubs-editlist__actions {
91 display: inline-flex;
92 align-items: center;
93 gap: 2px;
94 flex: 0 0 auto;
95 opacity: 0;
96 transition: opacity 0.12s;
97 }
98
99 .wpsubs-editlist__item:hover .wpsubs-editlist__actions,
100 .wpsubs-editlist__actions:focus-within {
101 opacity: 1;
102 }
103
104 .wpsubs-editlist__btn {
105 display: inline-flex;
106 align-items: center;
107 justify-content: center;
108 width: 26px;
109 height: 26px;
110 padding: 0;
111 border: none;
112 border-radius: 6px;
113 background: transparent;
114 color: var(--wpsubs-text-muted, #6b7075);
115 font-size: 15px;
116 line-height: 1;
117 cursor: pointer;
118 transition:
119 background 0.12s,
120 color 0.12s;
121 }
122
123 .wpsubs-editlist__btn svg {
124 width: 15px;
125 height: 15px;
126 display: block;
127 }
128
129 .wpsubs-editlist__btn:hover {
130 background: var(--wpsubs-surface-muted, #f2f3f5);
131 color: var(--wpsubs-text, #1e1e1e);
132 }
133
134 .wpsubs-editlist__btn--danger:hover {
135 background: #fef2f2;
136 color: #dc2626;
137 }
138
139 .wpsubs-editlist__empty {
140 margin: 0 0 12px;
141 color: var(--wpsubs-text-muted, #6b7075);
142 font-size: 13px;
143 font-style: italic;
144 }
145
146 .wpsubs-editlist__add {
147 display: flex;
148 align-items: stretch;
149 gap: 8px;
150 width: 100%;
151 }
152
153 .wpsubs-editlist__input {
154 flex: 1 1 auto;
155 max-width: unset !important;
156 width: auto;
157 }
158
159 .wpsubs-editlist__add-btn {
160 display: inline-flex;
161 align-items: center;
162 justify-content: center;
163 flex: 0 0 auto;
164 width: 38px;
165 border: none;
166 border-radius: var(--wpsubs-radius, 8px);
167 background: var(--wpsubs-brand, #2563eb);
168 color: #fff;
169 cursor: pointer;
170 transition:
171 background 0.12s,
172 opacity 0.12s;
173 }
174
175 .wpsubs-editlist__add-btn:hover {
176 background: var(--wpsubs-brand-dark, #1d4ed8);
177 }
178
179 .wpsubs-editlist__add-btn:disabled,
180 .wpsubs-editlist--locked {
181 opacity: 0.55;
182 pointer-events: none;
183 }
184
185 /* Compact dialog for an edit list shown in a modal — keeps the rows and the add
186 input a comfortable, matching width. */
187 .wpsubs-modal--editlist .wpsubs-modal__dialog {
188 width: min(520px, calc(100vw - 40px));
189 }
190