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 / _field-settings-sidebar.scss

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

107 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Hide the close (X) button in the Field Settings PluginSidebar header. The
2 // sidebar opens/closes automatically on PB-block/card selection (see
3 // FieldSettingsAutoOpener in ExistingFieldsPanel.js); a close button would let
4 // users dismiss it while a field is still selected, stranding them with no way
5 // to reach field settings until they reselect.
6 //
7 // Selector caveat: <PluginSidebar>'s `className` lands on the inner
8 // `.components-panel`, not the outer `.interface-complementary-area`, so a
9 // `.wppb-fb-field-settings-sidebar …-header` descendant selector has no match
10 // (the header is a SIBLING of our panel). We target the outer wrapper by its
11 // stable ID (Gutenberg derives it from registerPlugin slug + sidebar name, `:`
12 // separator). The `:not(.interface-complementary-area__pin-unpin-item)` carve-out
13 // stays correct if `isPinnable` is re-enabled; today it's `false`.
14 .interface-complementary-area[id="wppb-fb-existing-fields-sidebar:field-settings"]="wppb-fb-existing-fields-sidebar:field-settings""]
15 > .interface-complementary-area-header
16 > button:not(.interface-complementary-area__pin-unpin-item) {
17 display: none;
18 }
19
20 // Header card rendered at the top of the Field Settings PluginSidebar
21 // (replaces @wordpress/block-editor's BlockCard, which crashes when mounted
22 // outside a parent-block-aware context). Mirrors BlockCard's visual shape.
23 //
24 // Selector starts with .interface-complementary-area to win specificity
25 // against the UA `h2` bottom-margin and Gutenberg's body styles. The card's
26 // border-bottom doubles as the separator before the first PanelBody — no
27 // margin needed below.
28 .interface-complementary-area .wppb-fb-field-type-card {
29 align-items: center;
30 border-bottom: 1px solid var(--wppb-fb-border-default);
31 color: var(--wppb-fb-text-primary);
32 display: flex;
33 gap: var(--wppb-fb-space-lg);
34 margin: 0;
35 padding: var(--wppb-fb-space-lg) var(--wppb-fb-space-xl);
36
37 .wppb-fb-field-type-card__icon {
38 align-items: center;
39 display: flex;
40 flex: 0 0 24px;
41 height: 24px;
42 justify-content: center;
43 width: 24px;
44 }
45
46 .wppb-fb-field-type-card__content {
47 display: flex;
48 flex-direction: column;
49 flex-grow: 1;
50 gap: var(--wppb-fb-space-3xs);
51 min-width: 0;
52 }
53
54 .wppb-fb-field-type-card__title {
55 font-size: var(--wppb-fb-font-md);
56 font-weight: 500;
57 line-height: 1.4;
58 margin: 0;
59 padding: 0;
60 }
61
62 .wppb-fb-field-type-card__description {
63 color: var(--wppb-fb-text-muted);
64 font-size: var(--wppb-fb-font-sm);
65 line-height: 1.4;
66 }
67
68 // When a description is present, the title should top-align with the icon
69 // rather than vertically-centring (which would push the title off the
70 // icon's baseline on multi-line descriptions).
71 &:has(.wppb-fb-field-type-card__description) {
72 align-items: flex-start;
73 }
74 }
75
76 // Helper text shown at the top of the Field Settings PluginSidebar when a
77 // not-in-form card has been selected. Communicates that edits here are global.
78 .wppb-fb-field-settings__hint {
79 background: #f0f6fc; // one-off info-banner tint (not in the palette)
80 border-left: 3px solid var(--wppb-fb-accent);
81 color: var(--wppb-fb-text-primary);
82 font-size: var(--wppb-fb-font-sm);
83 line-height: 1.4;
84 margin: 0 0 var(--wppb-fb-space-lg);
85 padding: var(--wppb-fb-space-sm) var(--wppb-fb-space-md);
86 }
87
88 .wppb-fb-field-settings__status {
89 margin-top: var(--wppb-fb-space-sm);
90 min-height: 20px;
91 }
92
93 // Hidden mount point for VirtualFieldEdit. Holds a BlockEditorProvider that
94 // drives the selected block's Edit() so its FieldSettingsFill populates the
95 // PluginSidebar's Slot. Rendered but invisible — `display: none` keeps React's
96 // commit cycle running so the Fill stays registered. Position absolute as belt-
97 // and-braces so it can't push sidebar content even if `display` were ignored.
98 .wppb-fb-virtual-field-edit {
99 display: none;
100 position: absolute;
101 visibility: hidden;
102 height: 0;
103 width: 0;
104 overflow: hidden;
105 pointer-events: none;
106 }
107