PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / 6.9.1
Secure Custom Fields v6.9.1
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / src / sass / _field-picker.scss
secure-custom-fields / assets / src / sass Last commit date
pro 3 weeks ago _acf-headerbar.scss 1 year ago _acf-icon-picker.scss 1 year ago _admin-inputs.scss 1 year ago _admin-toolbar.scss 1 year ago _btn.scss 1 year ago _dark.scss 1 year ago _edit-field-group.scss 1 year ago _field-group.scss 1 year ago _field-picker.scss 1 year ago _field-type-icons.scss 1 year ago _fields.scss 2 months ago _forms.scss 11 months ago _global.scss 1 year ago _icons.scss 1 year ago _input.scss 1 year ago _list-table.scss 1 year ago _media.scss 1 year ago _mixins.scss 1 year ago _post-types-taxonomies.scss 1 year ago _postbox.scss 1 year ago _pro-upgrade.scss 1 year ago _sub-field-groups.scss 1 year ago _tools.scss 1 year ago _typography.scss 1 year ago _updates.scss 1 year ago _variables.scss 1 year ago acf-dark.scss 1 year ago acf-field-group.scss 8 months ago acf-global.scss 2 months ago acf-input.scss 2 months ago
_field-picker.scss
369 lines
1 /*---------------------------------------------------------------------------------------------
2 *
3 * Field picker modal
4 *
5 *---------------------------------------------------------------------------------------------*/
6 .acf-modal.acf-browse-fields-modal {
7 width: 1120px;
8 height: 664px;
9 top: 50%;
10 right: auto;
11 bottom: auto;
12 left: 50%;
13 transform: translate(-50%, -50%);
14 display: flex;
15 flex-direction: row;
16 border-radius: $radius-xl;
17 box-shadow:
18 0 0 4px rgba(0, 0, 0, 0.04),
19 0 8px 16px rgba(0, 0, 0, 0.08);
20 overflow: hidden;
21
22 .acf-field-picker {
23 display: flex;
24 flex-direction: column;
25 flex-grow: 1;
26 width: 760px;
27 background: #fff;
28
29 .acf-modal-title,
30 .acf-modal-content,
31 .acf-modal-toolbar {
32 position: relative;
33 }
34
35 .acf-modal-title {
36 display: flex;
37 flex-direction: row;
38 justify-content: space-between;
39 align-items: center;
40 background: $gray-50;
41 border: none;
42 padding: 35px 32px;
43
44 .acf-search-field-types-wrap {
45 position: relative;
46
47 &::after {
48 content: "";
49 display: block;
50 position: absolute;
51 top: 11px;
52 left: 10px;
53 $icon-size: 18px;
54 width: $icon-size;
55 height: $icon-size;
56 -webkit-mask-image: url("../../images/icons/icon-search.svg");
57 mask-image: url("../../images/icons/icon-search.svg");
58 background-color: $gray-400;
59 border: none;
60 border-radius: 0;
61 -webkit-mask-size: contain;
62 mask-size: contain;
63 -webkit-mask-repeat: no-repeat;
64 mask-repeat: no-repeat;
65 -webkit-mask-position: center;
66 mask-position: center;
67 text-indent: 500%;
68 white-space: nowrap;
69 overflow: hidden;
70 }
71
72 input {
73 width: 280px;
74 height: 40px;
75 margin: 0;
76 padding-left: 32px;
77 box-shadow: none;
78 }
79 }
80 }
81
82 .acf-modal-content {
83 top: auto;
84 bottom: auto;
85 padding: 0;
86 height: 100%;
87
88 .acf-tab-group {
89 padding-left: 32px;
90 }
91
92 .acf-field-types-tab {
93 display: flex;
94 }
95
96 .acf-field-types-tab,
97 .acf-field-type-search-results {
98 flex-direction: row;
99 flex-wrap: wrap;
100 gap: 24px;
101 padding: 32px;
102
103 .acf-field-type {
104 position: relative;
105 display: flex;
106 flex-direction: column;
107 justify-content: center;
108 align-items: center;
109 isolation: isolate;
110 width: 120px;
111 height: 120px;
112 background: $gray-50;
113 border: 1px solid $gray-200;
114 border-radius: 8px;
115 box-sizing: border-box;
116 color: $gray-800;
117 text-decoration: none;
118
119 &:hover,
120 &:active,
121 &.selected {
122 background: $blue-50;
123 border: 1px solid $blue-400;
124 box-shadow: inset 0 0 0 1px $blue-400;
125 }
126
127 .field-type-icon {
128 border: none;
129 background: none;
130 top: 0;
131
132 &::before {
133 width: 22px;
134 height: 22px;
135 }
136 }
137
138 .field-type-label {
139 margin-top: 12px;
140
141 @extend .p5;
142 }
143 }
144 }
145 }
146
147 .acf-modal-toolbar {
148 display: flex;
149 align-items: flex-start;
150 justify-content: space-between;
151 height: auto;
152 min-height: 72px;
153 padding: {
154 top: 0;
155 right: 32px;
156 bottom: 0;
157 left: 32px;
158 }
159 margin: 0;
160 border: none;
161
162 .acf-select-field,
163 .acf-btn-pro {
164 min-width: 160px;
165 justify-content: center;
166 }
167
168 .acf-insert-field-label {
169 min-width: 280px;
170 box-shadow: none;
171 }
172
173 .acf-field-picker-actions {
174 display: flex;
175 gap: 8px;
176 }
177 }
178 }
179
180 .acf-field-type-preview {
181 display: flex;
182 flex-direction: column;
183 width: 360px;
184 background-color: $gray-50;
185 background-image: url("../../images/field-preview-grid.png");
186 background-size: 740px;
187 background-repeat: no-repeat;
188 background-position: center bottom;
189 border-left: 1px solid $gray-200;
190 box-sizing: border-box;
191 padding: 32px;
192
193 .field-type-desc {
194 margin: 0;
195 padding: 0;
196 color: $gray-500;
197 }
198
199 .field-type-preview-container {
200 display: inline-flex;
201 justify-content: center;
202 width: 100%;
203 margin: {
204 top: 24px;
205 }
206 padding: {
207 top: 32px;
208 bottom: 32px;
209 }
210 background-color: rgba(#fff, 0.64);
211 border-radius: $radius-lg;
212 box-shadow:
213 0 0 0 1px rgba(0, 0, 0, 0.04),
214 0 8px 24px rgba(0, 0, 0, 0.04);
215 }
216
217 .field-type-image {
218 max-width: 232px;
219 }
220
221 .field-type-info {
222 flex-grow: 1;
223
224 .field-type-name {
225 font-size: 21px;
226 margin: {
227 top: 0;
228 right: 0;
229 bottom: 16px;
230 left: 0;
231 }
232 }
233
234 .field-type-upgrade-to-unlock {
235 display: inline-flex;
236 justify-items: center;
237 align-items: center;
238 min-height: 24px;
239 margin: {
240 bottom: 12px;
241 }
242 padding: {
243 right: 10px;
244 left: 10px;
245 }
246 background: $gradient-pro;
247 border-radius: 100px;
248 color: white;
249 text-decoration: none;
250 font-size: 10px;
251 text-transform: uppercase;
252
253 i.acf-icon {
254 width: 14px;
255 height: 14px;
256 margin: {
257 right: 4px;
258 }
259 }
260 }
261 }
262
263 .field-type-links {
264 display: flex;
265 align-items: center;
266 gap: 24px;
267 min-height: 40px;
268
269 .acf-icon {
270 $icon-size: 18px;
271 width: $icon-size;
272 height: $icon-size;
273 }
274
275 &::before {
276 display: none;
277 }
278
279 a {
280 display: flex;
281 gap: 6px;
282 text-decoration: none;
283
284 &:hover {
285 text-decoration: underline;
286 }
287 }
288 }
289 }
290
291 .acf-field-type-search-results,
292 .acf-field-type-search-no-results {
293 display: none;
294 }
295
296 &.is-searching {
297
298 .acf-tab-wrap,
299 .acf-field-types-tab,
300 .acf-field-type-search-no-results {
301 display: none !important;
302 }
303
304 .acf-field-type-search-results {
305 display: flex;
306 }
307 }
308
309 &.no-results-found {
310
311 .acf-tab-wrap,
312 .acf-field-types-tab,
313 .acf-field-type-search-results,
314 .field-type-info,
315 .field-type-links,
316 .acf-field-picker-toolbar {
317 display: none !important;
318 }
319
320 .acf-modal-title {
321 border-bottom: {
322 width: 1px;
323 style: solid;
324 color: $gray-200;
325 }
326 }
327
328 .acf-field-type-search-no-results {
329 display: flex;
330 flex-direction: column;
331 justify-content: center;
332 align-items: center;
333 height: 100%;
334 gap: 6px;
335
336 img {
337 margin-bottom: 19px;
338 }
339
340 p {
341 margin: 0;
342
343 &.acf-no-results-text {
344 display: flex;
345 }
346 }
347
348 .acf-invalid-search-term {
349 max-width: 200px;
350 overflow: hidden;
351 text-overflow: ellipsis;
352 display: inline-block;
353 }
354 }
355 }
356 }
357
358 /*---------------------------------------------------------------------------------------------
359 *
360 * Hide browse fields button for smaller screen sizes
361 *
362 *---------------------------------------------------------------------------------------------*/
363 @media only screen and (max-width: 1080px) {
364
365 .acf-btn.browse-fields {
366 display: none;
367 }
368 }
369