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 / tag-select.css

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

197 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* --------------------------------------------------------------------------
2 Tag Select (wpsubs-tag-select)
3 Pill/tag input with an inline filter and a filterable dropdown.
4 Supports single and multi-select. Use wpsubs_render_tag_select() PHP helper.
5 -------------------------------------------------------------------------- */
6 .wpsubs-tag-select {
7 position: relative;
8 display: block;
9 }
10
11 /* The visible "input" area: pills + text input + chevron */
12 .wpsubs-tag-select__field {
13 display: flex;
14 flex-wrap: wrap;
15 align-items: center;
16 gap: 4px;
17 padding: 4px 36px 4px 6px;
18 min-height: 36px;
19 border: 1px solid var(--wpsubs-border);
20 border-radius: var(--wpsubs-radius-sm);
21 background: var(--wpsubs-surface);
22 cursor: text;
23 position: relative;
24 box-sizing: border-box;
25 transition:
26 border-color 0.12s,
27 box-shadow 0.12s;
28 }
29
30 .wpsubs-tag-select--open .wpsubs-tag-select__field,
31 .wpsubs-tag-select__field:focus-within {
32 border-color: var(--wpsubs-brand);
33 box-shadow: 0 0 0 3px var(--wpsubs-brand-ring);
34 outline: none;
35 }
36
37 /* Pill (selected item badge) */
38 .wpsubs-tag-select__pill {
39 display: inline-flex;
40 align-items: center;
41 gap: 3px;
42 padding: 2px 3px 2px 8px;
43 background: var(--wpsubs-brand-light);
44 border: 1px solid var(--wpsubs-brand-ring);
45 border-radius: 4px;
46 font-size: 12px;
47 font-family: inherit;
48 color: var(--wpsubs-text);
49 max-width: 200px;
50 flex-shrink: 0;
51 }
52
53 .wpsubs-tag-select__pill-label {
54 overflow: hidden;
55 text-overflow: ellipsis;
56 white-space: nowrap;
57 line-height: 1.4;
58 }
59
60 .wpsubs-tag-select__pill-remove {
61 display: inline-flex;
62 align-items: center;
63 justify-content: center;
64 width: 18px;
65 height: 18px;
66 border: none;
67 background: none;
68 padding: 0;
69 cursor: pointer;
70 color: var(--wpsubs-text-muted);
71 border-radius: 3px;
72 font-size: 15px;
73 line-height: 1;
74 flex-shrink: 0;
75 transition:
76 background 0.1s,
77 color 0.1s;
78 }
79
80 .wpsubs-tag-select__pill-remove:hover {
81 background: rgba(34, 113, 177, 0.15);
82 color: var(--wpsubs-brand-dark);
83 }
84
85 /* Inline filter input */
86 .wpsubs-tag-select__input {
87 flex: 1;
88 min-width: 80px;
89 height: 28px !important;
90 min-height: 28px !important;
91 border: none !important;
92 outline: none !important;
93 background: transparent !important;
94 font-size: 13px !important;
95 font-family: inherit !important;
96 color: var(--wpsubs-text) !important;
97 padding: 0 2px !important;
98 box-shadow: none !important;
99 border-radius: 0 !important;
100 margin: 0 !important;
101 }
102
103 .wpsubs-tag-select__input::placeholder {
104 color: var(--wpsubs-text-subtle);
105 }
106
107 /* Chevron icon — absolutely positioned on the right */
108 .wpsubs-tag-select__chevron {
109 position: absolute;
110 right: 10px;
111 top: 50%;
112 transform: translateY(-50%);
113 pointer-events: none;
114 opacity: 0.5;
115 display: flex;
116 align-items: center;
117 transition: opacity 0.12s;
118 }
119
120 .wpsubs-tag-select--open .wpsubs-tag-select__chevron {
121 opacity: 0.8;
122 }
123
124 .wpsubs-tag-select--open .wpsubs-tag-select__chevron svg {
125 transform: rotate(180deg);
126 }
127
128 /* Dropdown panel */
129 .wpsubs-tag-select__dropdown {
130 display: none;
131 position: absolute;
132 top: calc(100% + 4px);
133 left: 0;
134 width: 100%;
135 box-sizing: border-box;
136 background: var(--wpsubs-surface);
137 border: 1px solid var(--wpsubs-border);
138 border-radius: var(--wpsubs-radius);
139 box-shadow: var(--wpsubs-shadow-md);
140 z-index: 9999;
141 animation: wpsubs-dropdown-in 0.1s ease;
142 }
143
144 .wpsubs-tag-select--open .wpsubs-tag-select__dropdown {
145 display: block;
146 }
147
148 .wpsubs-tag-select__list {
149 max-height: 220px;
150 overflow-y: auto;
151 padding: 4px;
152 }
153
154 .wpsubs-tag-select__item {
155 display: block;
156 width: 100%;
157 padding: 7px 10px;
158 border-radius: var(--wpsubs-radius-sm);
159 border: none;
160 background: transparent;
161 font-size: 13px;
162 font-family: inherit;
163 color: var(--wpsubs-text);
164 cursor: pointer;
165 text-align: left;
166 white-space: nowrap;
167 overflow: hidden;
168 text-overflow: ellipsis;
169 transition: background 0.1s;
170 box-sizing: border-box;
171 line-height: 1.4;
172 }
173
174 .wpsubs-tag-select__item:hover {
175 background: var(--wpsubs-surface-muted);
176 color: var(--wpsubs-text);
177 text-decoration: none;
178 }
179
180 .wpsubs-tag-select__item[data-disabled] {
181 opacity: 0.45;
182 cursor: not-allowed;
183 }
184
185 .wpsubs-tag-select__empty {
186 display: none;
187 padding: 10px 14px;
188 font-size: 12.5px;
189 color: var(--wpsubs-text-muted);
190 text-align: center;
191 }
192
193 /* Settings context */
194 .wpsubs-settings-field__control .wpsubs-tag-select {
195 max-width: 400px;
196 }
197