PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.1
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.1
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 / _top-bar.scss

_top-bar.scss in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 4.0.1, at form-builder/blocks/src/style/_top-bar.scss

29 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Top bar — the editor header bits that survive the chrome-stripping (the
2 // inserter toggle, undo/redo/list-view, View/Options, and command palette are
3 // all removed in _editor-chrome.scss + the disable-* plugins). What's left on
4 // the right is our Preview button and the native Save button.
5 //
6 // Preview button → the mockup's "secondary / link" button: white surface, a
7 // strong-border outline, primary text, trailing ↗ glyph, hover to accent. It's
8 // a `<Button variant="secondary">` (FormPreviewButton.js) so it already has the
9 // border/white base; this aligns its colors/radius to the tokens. Save stays
10 // the native accent publish button (already correct). Tokens: _tokens.scss.
11 .wppb-fb-preview-button.components-button {
12 border-radius: var(--wppb-fb-radius-sm);
13 color: var(--wppb-fb-text-primary);
14
15 // The `variant="secondary"` outline uses the admin theme color by default;
16 // pin it to the neutral strong border like the mockup's secondary button.
17 box-shadow: inset 0 0 0 1px var(--wppb-fb-border-strong);
18
19 &:hover,
20 &:focus {
21 color: var(--wppb-fb-accent);
22 box-shadow: inset 0 0 0 1px var(--wppb-fb-accent);
23 }
24
25 svg {
26 fill: currentColor;
27 }
28 }
29