PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
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 / _sub-field-groups.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 1 month 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 1 month ago
_sub-field-groups.scss
379 lines
1 /*---------------------------------------------------------------------------------------------
2 *
3 * Sub-fields layout
4 *
5 *---------------------------------------------------------------------------------------------*/
6 .post-type-acf-field-group #acf-field-group-fields .acf-field-list-wrap .acf-input-sub {
7 max-width: 100%;
8 overflow: hidden;
9 border-radius: $radius-lg;
10 border: {
11 width: 1px;
12 style: solid;
13 color: darken($gray-200, 5%);
14 };
15 box-shadow: $elevation-01;
16
17 // Header
18 .acf-sub-field-list-header {
19 display: flex;
20 justify-content: space-between;
21 align-content: stretch;
22 align-items: center;
23 min-height: 64px;
24 padding: {
25 right: 24px;
26 left: 24px;
27 };
28 }
29
30 // Main sub-fields wrapper
31 .acf-field-list-wrap {
32 box-shadow: none;
33 }
34
35 // Sub-field footer
36 .acf-hl.acf-tfoot {
37 min-height: 64px;
38 align-items: center;
39 }
40
41 // Secondary level sub-fields
42 .acf-input.acf-input-sub {
43 max-width: 100%;
44 margin: {
45 right: 0;
46 left: 0;
47 };
48 }
49
50 }
51
52 .post-type-acf-field-group .acf-input-sub .acf-field-object .acf-sortable-handle {
53 width: 100%;
54 height: 100%;
55 }
56
57 .post-type-acf-field-group .acf-field-object:hover .acf-input-sub .acf-sortable-handle:before {
58 display: none;
59 }
60
61 .post-type-acf-field-group .acf-field-object:hover .acf-input-sub .acf-field-list .acf-field-object:hover .acf-sortable-handle:before {
62 display: block;
63 }
64
65 .post-type-acf-field-group .acf-field-object .acf-is-subfields .acf-thead .li-field-label:before {
66 display: none;
67 }
68
69 .post-type-acf-field-group #acf-field-group-fields .acf-field-list-wrap .acf-input-sub .acf-field-object.open {
70 border-top-color: darken($gray-200, 5%);
71 }
72
73 /*---------------------------------------------------------------------------------------------
74 *
75 * Flexible content field
76 *
77 *---------------------------------------------------------------------------------------------*/
78 .post-type-acf-field-group {
79
80 i.acf-icon.-duplicate.duplicate-layout {
81 margin: 0 auto !important;
82 background-color: $gray-500;
83 color: $gray-500;
84 }
85 i.acf-icon.acf-icon-trash.delete-layout {
86 margin: 0 auto !important;
87 background-color: $gray-500;
88 color: $gray-500;
89 }
90
91 button.acf-btn.acf-btn-tertiary.acf-field-setting-fc-duplicate, button.acf-btn.acf-btn-tertiary.acf-field-setting-fc-delete {
92 background-color: #ffffff !important;
93 box-shadow: $elevation-01;
94 border-radius: 6px;
95 width: 32px;
96 height: 32px !important;
97 min-height: 32px;
98 padding: 0;
99 }
100
101 button.add-layout.acf-btn.acf-btn-primary.add-field,
102 .acf-sub-field-list-header a.acf-btn.acf-btn-secondary.add-field,
103 .acf-field-list-wrap.acf-is-subfields a.acf-btn.acf-btn-secondary.add-field {
104 height: 32px !important;
105 min-height: 32px;
106 margin-left: 5px;
107 }
108
109 .acf-field.acf-field-setting-fc_layout {
110 background-color: #ffffff;
111 margin-bottom: 16px;
112 }
113
114 .acf-field-setting-fc_layout {
115 .acf-field-layout-settings.open {
116 background-color: #ffffff;
117 border-top: {
118 width: 1px;
119 style: solid;
120 color: $gray-200;
121 };
122 }
123
124 width: calc(100% - 144px);
125 margin: {
126 right: 72px;
127 left: 72px;
128 };
129 padding: {
130 right: 0;
131 left: 0;
132 };
133 border: {
134 width: 1px;
135 style: solid;
136 color: darken($gray-200, 5%);
137 };
138 border-radius: $radius-lg;
139 box-shadow: $elevation-01;
140
141 @media screen and (max-width: 768px) {
142 width: calc(100% - 16px);
143 margin: {
144 right: 8px;
145 left: 8px;
146 };
147 }
148
149 // Secondary level sub-fields
150 .acf-input-sub {
151 max-width: 100%;
152 margin: {
153 right: 0;
154 left: 0;
155 };
156 }
157
158 .acf-label,
159 .acf-input {
160 max-width: 100% !important;
161 }
162
163 .acf-input-sub {
164 margin: {
165 right: 32px;
166 bottom: 32px;
167 left: 32px;
168 };
169 }
170
171 .acf-fc-meta {
172 max-width: 100%;
173 padding: {
174 top: 24px;
175 right: 32px;
176 left: 32px;
177 };
178 }
179
180 }
181
182 .acf-field-settings-fc_head {
183
184 display: flex;
185 align-items: center;
186 justify-content: left;
187
188 background-color: $gray-50;
189 border-radius: 8px;
190 min-height: 64px;
191 margin: {
192 bottom: 0px;
193 };
194 padding: {
195 right: 24px;
196 };
197
198 .acf-fc_draggable {
199 min-height: 64px;
200 padding-left: 24px;
201 display: flex;
202 white-space: nowrap;
203 }
204
205 .acf-fc-layout-name {
206 min-width: 0;
207 color: $gray-400;
208 padding-left: 8px;
209 font-size: 16px;
210
211 &.copyable:not(.input-copyable, .copy-unsupported):hover:after {
212 width: 14px !important;
213 height: 14px !important;
214 }
215
216 @media screen and (max-width: $md) {
217 display: none !important;
218 }
219
220 span {
221 white-space: nowrap;
222 overflow: hidden;
223 text-overflow: ellipsis;
224 }
225 }
226
227 span.toggle-indicator {
228 pointer-events: none;
229 margin-top: 7px;
230 }
231
232 label {
233 display: inline-flex;
234 align-items: center;
235 @extend .acf-h3;
236
237 &.acf-fc-layout-name {
238 margin-left: 1rem;
239
240 @media screen and (max-width: $md) {
241 display: none !important;
242 }
243
244 span.acf-fc-layout-name {
245 text-overflow: ellipsis;
246 overflow: hidden;
247 height: 22px;
248 white-space: nowrap;
249 }
250 }
251
252 &.acf-fc-layout-label:before {
253 content: '';
254 $icon-size: 20px;
255 display: inline-block;
256 width: $icon-size;
257 height: $icon-size;
258 margin: {
259 right: 8px;
260 };
261 background-color: $gray-400;
262 border: none;
263 border-radius: 0;
264 -webkit-mask-size: contain;
265 mask-size: contain;
266 -webkit-mask-repeat: no-repeat;
267 mask-repeat: no-repeat;
268 -webkit-mask-position: center;
269 mask-position: center;
270
271 @at-root .rtl#{&} {
272 padding-right: 10px;
273 }
274
275 }
276
277 }
278
279 .acf-fl-actions {
280 display: flex;
281 align-items: center;
282 white-space: nowrap;
283 margin-left: auto;
284
285 .acf-fc-add-layout {
286 margin-left: 10px;
287 }
288
289 .acf-fc-add-layout .add-field {
290 margin-left: 0px !important;
291 }
292
293 li {
294 margin: {
295 right: 4px;
296 };
297
298 &:last-of-type {
299 margin: {
300 right: 0;
301 };
302 }
303
304 }
305
306 }
307
308 }
309
310 .acf-field-settings-fc_head.open {
311 border-radius: 8px 8px 0px 0px;
312 }
313
314 }
315
316 /*---------------------------------------------------------------------------------------------
317 *
318 * Field open / closed icon state
319 *
320 *---------------------------------------------------------------------------------------------*/
321
322 .post-type-acf-field-group .acf-field-object.open > .handle > .acf-tbody > .li-field-label::before {
323 -webkit-mask-image: url('../../images/icons/icon-chevron-up.svg');
324 mask-image: url('../../images/icons/icon-chevron-up.svg');
325 }
326
327 /*---------------------------------------------------------------------------------------------
328 *
329 * Different coloured levels (current 5 supported)
330 *
331 *---------------------------------------------------------------------------------------------*/
332
333 .post-type-acf-field-group #acf-field-group-fields .acf-field-list-wrap .acf-input-sub {
334
335 // Second level
336 $nested-color: #BF7DD7;
337 // Row hover color
338 .acf-field-object .handle { background-color: transparent; &:hover { background-color: lighten($nested-color, 30%); } }
339 // Active row color
340 .acf-field-object.open .handle { background-color: lighten($nested-color, 28%); }
341 // Active border color
342 .acf-field-object .settings { border-left: { color: $nested-color; }; }
343
344 // Third level
345 .acf-input-sub {
346 $nested-color: #7CCDB9;
347 // Row hover color
348 .acf-field-object .handle { background-color: transparent; &:hover { background-color: lighten($nested-color, 30%); } }
349 // Active row color
350 .acf-field-object.open .handle { background-color: lighten($nested-color, 28%); }
351 // Active border color
352 .acf-field-object .settings { border-left: { color: $nested-color; }; }
353
354 // Fourth level
355 .acf-input-sub {
356 $nested-color: #E29473;
357 // Row hover color
358 .acf-field-object .handle { background-color: transparent; &:hover { background-color: lighten($nested-color, 30%); } }
359 // Active row color
360 .acf-field-object.open .handle { background-color: lighten($nested-color, 28%); }
361 // Active border color
362 .acf-field-object .settings { border-left: { color: $nested-color; }; }
363
364 // Fifth level
365 .acf-input-sub {
366 $nested-color: #A3B1B9;
367 // Row hover color
368 .acf-field-object .handle { background-color: transparent; &:hover { background-color: lighten($nested-color, 30%); } }
369 // Active row color
370 .acf-field-object.open .handle { background-color: lighten($nested-color, 28%); }
371 // Active border color
372 .acf-field-object .settings { border-left: { color: $nested-color; }; }
373 }
374
375 }
376
377 }
378
379 }