PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
profile-builder / form-builder / blocks / src / style / _repeater-block.scss

_repeater-block.scss in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 4.0.3, at form-builder/blocks/src/style/_repeater-block.scss

74 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Repeater field block — visual layout.
2 //
3 // A white card with a
4 // header (icon + title + type chip + field number), an italic scope hint, and
5 // a body holding the sub-field InnerBlocks plus a dashed "Add sub-field"
6 // appender. Reuses `.wppb-fb-field-block` for the card frame + selection
7 // outline (`.is-selected::after`); padding is zeroed here so the head/body
8 // supply their own insets like the mockup. Token values come from
9 // style/_tokens.scss.
10 .wppb-fb-field-block.wppb-fb-repeater-block {
11 padding: 0;
12 }
13
14 .wppb-fb-repeater-block {
15 &__head {
16 align-items: center;
17 display: flex;
18 gap: var(--wppb-fb-space-sm);
19 padding: var(--wppb-fb-space-lg) var(--wppb-fb-space-xl) 0;
20 }
21
22 &__icon {
23 align-items: center;
24 color: var(--wppb-fb-text-muted);
25 display: flex;
26 flex: 0 0 auto;
27 }
28
29 &__title {
30 color: var(--wppb-fb-text-primary);
31 font-size: var(--wppb-fb-font-lg);
32 font-weight: 600;
33 min-width: 0;
34 overflow: hidden;
35 text-overflow: ellipsis;
36 white-space: nowrap;
37 }
38
39 &__meta {
40 align-items: center;
41 color: var(--wppb-fb-text-faint);
42 display: flex;
43 flex: 0 0 auto;
44 font-size: var(--wppb-fb-font-xs);
45 gap: var(--wppb-fb-space-md);
46 margin-left: auto;
47 }
48
49 &__desc {
50 color: var(--wppb-fb-text-muted);
51 font-size: var(--wppb-fb-font-sm);
52 padding: var(--wppb-fb-space-xs) var(--wppb-fb-space-xl) 0;
53 }
54
55 &__hint {
56 color: var(--wppb-fb-text-muted);
57 font-size: var(--wppb-fb-font-sm);
58 font-style: italic;
59 padding: var(--wppb-fb-space-xs) var(--wppb-fb-space-xl) var(--wppb-fb-space-lg);
60 }
61
62 &__body {
63 padding: 0 var(--wppb-fb-space-lg) var(--wppb-fb-space-lg);
64
65 // Sub-field cards sit flush inside the body, lightly spaced.
66 .wppb-fb-field-block {
67 margin: var(--wppb-fb-space-sm) 0;
68 }
69
70 // The "Add sub-field" appender (AddFieldButton) is styled by the
71 // shared rule in style/_add-field-button.scss.
72 }
73 }
74