PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / styled-text-builder / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/styled-text-builder/style.css

140 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ========================================
2 Styled Text Builder Block Styles
3 Prefix: bkbg-stb-
4 ======================================== */
5
6 .bkbg-stb-paragraph {
7 font-family: var(--bkstb-tx-font-family, inherit);
8 font-size: var(--bkstb-tx-font-size-d, 20px);
9 line-height: var(--bkstb-tx-line-height-d, 1.7);
10 letter-spacing: var(--bkstb-tx-letter-spacing-d, normal);
11 word-spacing: var(--bkstb-tx-word-spacing-d, normal);
12 font-weight: var(--bkstb-tx-font-weight, 400);
13 font-style: var(--bkstb-tx-font-style, normal);
14 text-decoration: var(--bkstb-tx-text-decoration, none);
15 text-transform: var(--bkstb-tx-text-transform, none);
16 margin: 0;
17 }
18
19 /* Base segment */
20 .bkbg-stb-seg {
21 display: inline;
22 transition: opacity 0.15s;
23 }
24
25 /* ── Presets ── */
26
27 .bkbg-stb-preset--highlight-yellow {
28 background: #fef9c3;
29 border-radius: 3px;
30 padding: 1px 4px;
31 }
32
33 .bkbg-stb-preset--highlight-green {
34 background: #dcfce7;
35 border-radius: 3px;
36 padding: 1px 4px;
37 }
38
39 .bkbg-stb-preset--highlight-pink {
40 background: #fce7f3;
41 border-radius: 3px;
42 padding: 1px 4px;
43 }
44
45 .bkbg-stb-preset--highlight-blue {
46 background: #dbeafe;
47 border-radius: 3px;
48 padding: 1px 4px;
49 }
50
51 .bkbg-stb-preset--badge {
52 display: inline-flex;
53 align-items: center;
54 border-radius: 50px;
55 padding: 3px 10px;
56 font-size: 85%;
57 font-weight: 600;
58 line-height: 1.4;
59 vertical-align: middle;
60 position: relative;
61 top: -1px;
62 }
63
64 .bkbg-stb-preset--code {
65 font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Courier New", monospace;
66 background: #f1f5f9;
67 color: #dc2626;
68 border-radius: 4px;
69 padding: 1px 6px;
70 font-size: 88%;
71 border: 1px solid #e2e8f0;
72 }
73
74 /* Gradient: CSS-only approach using a class — color set by inline style */
75 .bkbg-stb-preset--gradient {
76 background: linear-gradient(135deg, var(--bkbg-stb-grad-start, #6c3fb5), var(--bkbg-stb-grad-end, #ec4899));
77 -webkit-background-clip: text;
78 background-clip: text;
79 -webkit-text-fill-color: transparent;
80 color: transparent;
81 font-weight: 700;
82 }
83
84 /* When inline color is set on gradient, use it as gradient start */
85 .bkbg-stb-preset--gradient[style*="color"] {
86 --bkbg-stb-grad-start: var(--bkbg-stb-inline-color, #6c3fb5);
87 }
88
89 /* .bkbg-stb-preset--glow — text-shadow applied via inline style in JS */
90
91 .bkbg-stb-preset--underline-fancy {
92 text-decoration: underline;
93 text-decoration-thickness: 2px;
94 text-underline-offset: 3px;
95 }
96
97 /* ── Responsive typography ─────────────────────────────────── */
98 @media (max-width: 1024px) {
99 .bkbg-stb-paragraph {
100 font-size: var(--bkstb-tx-font-size-t, var(--bkstb-tx-font-size-d, 20px));
101 line-height: var(--bkstb-tx-line-height-t, var(--bkstb-tx-line-height-d, 1.7));
102 letter-spacing: var(--bkstb-tx-letter-spacing-t, var(--bkstb-tx-letter-spacing-d, normal));
103 word-spacing: var(--bkstb-tx-word-spacing-t, var(--bkstb-tx-word-spacing-d, normal));
104 }
105 }
106
107 @media (max-width: 767px) {
108 .bkbg-stb-paragraph {
109 font-size: var(--bkstb-tx-font-size-m, var(--bkstb-tx-font-size-t, var(--bkstb-tx-font-size-d, 20px)));
110 line-height: var(--bkstb-tx-line-height-m, var(--bkstb-tx-line-height-t, var(--bkstb-tx-line-height-d, 1.7)));
111 letter-spacing: var(--bkstb-tx-letter-spacing-m, var(--bkstb-tx-letter-spacing-t, var(--bkstb-tx-letter-spacing-d, normal)));
112 word-spacing: var(--bkstb-tx-word-spacing-m, var(--bkstb-tx-word-spacing-t, var(--bkstb-tx-word-spacing-d, normal)));
113 }
114 }
115
116 /* ── Editor styles ── */
117 .bkbg-editor-wrap .bkbg-stb-seg {
118 cursor: pointer;
119 position: relative;
120 }
121
122 .bkbg-editor-wrap .bkbg-stb-seg:hover {
123 opacity: 0.85;
124 }
125
126 .bkbg-editor-wrap .bkbg-stb-is-active {
127 outline: 2px dashed #6c3fb5;
128 outline-offset: 2px;
129 border-radius: 2px;
130 }
131
132 /* Gradient: in the editor, background-clip:text can cause issues inside iframe;
133 use a fallback border instead */
134 .bkbg-editor-wrap .bkbg-stb-preset--gradient {
135 -webkit-text-fill-color: unset;
136 color: #6c3fb5;
137 background: none;
138 font-weight: 700;
139 }
140