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 / social-proof-popup / style.css

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

213 lines 7.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ── Social Proof Popup Block ─────────────────────────────────────── */
2
3 /* Editor preview */
4 .bkbg-spop-preview-wrap {
5 padding: 8px;
6 }
7 .bkbg-spop-preview-label {
8 font-size: 11px;
9 color: #64748b;
10 text-align: center;
11 margin: 0 0 8px;
12 font-style: italic;
13 }
14 .bkbg-spop-empty {
15 padding: 24px;
16 text-align: center;
17 color: #94a3b8;
18 font-style: italic;
19 border: 2px dashed #e2e8f0;
20 border-radius: 8px;
21 }
22
23 /* The popup card */
24 .bkbg-spop-popup {
25 display: flex;
26 align-items: flex-start;
27 gap: 12px;
28 padding: 12px 16px;
29 border: 1px solid #e2e8f0;
30 position: relative;
31 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
32 transition: opacity .3s, transform .3s;
33 }
34
35 /* Frontend: fixed position */
36 .bkbg-spop-container {
37 position: fixed;
38 z-index: 99999;
39 display: flex;
40 flex-direction: column;
41 gap: 8px;
42 pointer-events: none;
43 }
44 .bkbg-spop-container.pos-bottom-left { bottom: 20px; left: 20px; }
45 .bkbg-spop-container.pos-bottom-right { bottom: 20px; right: 20px; }
46 .bkbg-spop-container.pos-top-left { top: 20px; left: 20px; }
47 .bkbg-spop-container.pos-top-right { top: 20px; right: 20px; }
48
49 .bkbg-spop-container .bkbg-spop-popup {
50 pointer-events: all;
51 opacity: 0;
52 transform: translateY(20px);
53 }
54 .bkbg-spop-container .bkbg-spop-popup.is-visible {
55 opacity: 1;
56 transform: translateY(0);
57 }
58 .bkbg-spop-container[data-pos="top-left"] .bkbg-spop-popup,
59 .bkbg-spop-container[data-pos="top-right"] .bkbg-spop-popup {
60 transform: translateY(-20px);
61 }
62 .bkbg-spop-container[data-pos="top-left"] .bkbg-spop-popup.is-visible,
63 .bkbg-spop-container[data-pos="top-right"] .bkbg-spop-popup.is-visible {
64 transform: translateY(0);
65 }
66
67 /* Bounce animation */
68 .bkbg-spop-container[data-anim="bounce"] .bkbg-spop-popup.is-visible {
69 animation: bkbg-spop-bounce .4s ease;
70 }
71 @keyframes bkbg-spop-bounce {
72 0% { transform: scale(.8); opacity: 0; }
73 60% { transform: scale(1.05); }
74 100% { transform: scale(1); opacity: 1; }
75 }
76
77 /* Fade animation */
78 .bkbg-spop-container[data-anim="fade"] .bkbg-spop-popup {
79 transform: none !important;
80 }
81
82 /* Avatar */
83 .bkbg-spop-avatar {
84 width: 44px;
85 height: 44px;
86 border-radius: 50%;
87 display: flex;
88 align-items: center;
89 justify-content: center;
90 flex-shrink: 0;
91 font-size: 22px;
92 }
93 .bkbg-spop-emoji { font-size: 22px; line-height: 1; }
94 .bkbg-spop-initial { font-size: 18px; font-weight: 700; }
95
96 /* Content */
97 .bkbg-spop-content {
98 flex: 1;
99 min-width: 0;
100 }
101 .bkbg-spop-name {
102 font-family: var(--bkspop-nm-font-family, inherit);
103 font-size: var(--bkspop-nm-font-size-d, 13px);
104 font-weight: var(--bkspop-nm-font-weight, 600);
105 font-style: var(--bkspop-nm-font-style, normal);
106 text-decoration: var(--bkspop-nm-text-decoration, none);
107 text-transform: var(--bkspop-nm-text-transform, none);
108 line-height: var(--bkspop-nm-line-height-d, normal);
109 letter-spacing: var(--bkspop-nm-letter-spacing-d, normal);
110 word-spacing: var(--bkspop-nm-word-spacing-d, normal);
111 white-space: nowrap;
112 overflow: hidden;
113 text-overflow: ellipsis;
114 }
115 .bkbg-spop-location { font-weight: 400; }
116 .bkbg-spop-action {
117 font-family: var(--bkspop-ac-font-family, inherit);
118 font-size: var(--bkspop-ac-font-size-d, 13px);
119 font-weight: var(--bkspop-ac-font-weight, normal);
120 font-style: var(--bkspop-ac-font-style, normal);
121 text-decoration: var(--bkspop-ac-text-decoration, none);
122 text-transform: var(--bkspop-ac-text-transform, none);
123 line-height: var(--bkspop-ac-line-height-d, 1.4);
124 letter-spacing: var(--bkspop-ac-letter-spacing-d, normal);
125 word-spacing: var(--bkspop-ac-word-spacing-d, normal);
126 margin-top: 2px;
127 }
128 .bkbg-spop-time {
129 font-family: var(--bkspop-ac-font-family, inherit);
130 font-size: var(--bkspop-ac-font-size-d, 11px);
131 font-weight: var(--bkspop-ac-font-weight, normal);
132 font-style: var(--bkspop-ac-font-style, normal);
133 text-decoration: var(--bkspop-ac-text-decoration, none);
134 text-transform: var(--bkspop-ac-text-transform, none);
135 line-height: var(--bkspop-ac-line-height-d, normal);
136 letter-spacing: var(--bkspop-ac-letter-spacing-d, normal);
137 word-spacing: var(--bkspop-ac-word-spacing-d, normal);
138 margin-top: 4px;
139 }
140
141 /* ── Responsive typography ── */
142 @media (max-width: 1024px) {
143 .bkbg-spop-name {
144 font-size: var(--bkspop-nm-font-size-t, var(--bkspop-nm-font-size-d, 13px));
145 line-height: var(--bkspop-nm-line-height-t, var(--bkspop-nm-line-height-d, normal));
146 letter-spacing: var(--bkspop-nm-letter-spacing-t, var(--bkspop-nm-letter-spacing-d, normal));
147 word-spacing: var(--bkspop-nm-word-spacing-t, var(--bkspop-nm-word-spacing-d, normal));
148 }
149 .bkbg-spop-action,
150 .bkbg-spop-time {
151 font-size: var(--bkspop-ac-font-size-t, var(--bkspop-ac-font-size-d, 13px));
152 line-height: var(--bkspop-ac-line-height-t, var(--bkspop-ac-line-height-d, normal));
153 letter-spacing: var(--bkspop-ac-letter-spacing-t, var(--bkspop-ac-letter-spacing-d, normal));
154 word-spacing: var(--bkspop-ac-word-spacing-t, var(--bkspop-ac-word-spacing-d, normal));
155 }
156 }
157
158 @media (max-width: 767px) {
159 .bkbg-spop-name {
160 font-size: var(--bkspop-nm-font-size-m, var(--bkspop-nm-font-size-t, var(--bkspop-nm-font-size-d, 13px)));
161 line-height: var(--bkspop-nm-line-height-m, var(--bkspop-nm-line-height-t, var(--bkspop-nm-line-height-d, normal)));
162 letter-spacing: var(--bkspop-nm-letter-spacing-m, var(--bkspop-nm-letter-spacing-t, var(--bkspop-nm-letter-spacing-d, normal)));
163 word-spacing: var(--bkspop-nm-word-spacing-m, var(--bkspop-nm-word-spacing-t, var(--bkspop-nm-word-spacing-d, normal)));
164 }
165 .bkbg-spop-action,
166 .bkbg-spop-time {
167 font-size: var(--bkspop-ac-font-size-m, var(--bkspop-ac-font-size-t, var(--bkspop-ac-font-size-d, 13px)));
168 line-height: var(--bkspop-ac-line-height-m, var(--bkspop-ac-line-height-t, var(--bkspop-ac-line-height-d, normal)));
169 letter-spacing: var(--bkspop-ac-letter-spacing-m, var(--bkspop-ac-letter-spacing-t, var(--bkspop-ac-letter-spacing-d, normal)));
170 word-spacing: var(--bkspop-ac-word-spacing-m, var(--bkspop-ac-word-spacing-t, var(--bkspop-ac-word-spacing-d, normal)));
171 }
172 }
173
174 /* Close */
175 .bkbg-spop-close {
176 position: absolute;
177 top: 6px;
178 right: 8px;
179 background: none;
180 border: none;
181 font-size: 18px;
182 line-height: 1;
183 cursor: pointer;
184 padding: 0 4px;
185 opacity: .5;
186 transition: opacity .15s;
187 }
188 .bkbg-spop-close:hover { opacity: 1; }
189
190 /* Sidebar entry editor */
191 .bkbg-spop-entry-editor {
192 border: 1px solid #e2e8f0;
193 border-radius: 6px;
194 overflow: hidden;
195 margin-bottom: 6px;
196 }
197 .bkbg-spop-entry-head {
198 display: flex;
199 align-items: center;
200 gap: 6px;
201 padding: 6px 8px;
202 background: #f8fafc;
203 cursor: pointer;
204 font-size: 12px;
205 font-weight: 500;
206 }
207 .bkbg-spop-entry-fields {
208 padding: 8px;
209 display: flex;
210 flex-direction: column;
211 gap: 4px;
212 }
213