PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
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 / perspective-device / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/perspective-device/style.css

295 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ====================================================
2 Perspective Device — style.css
3 Block: blockenberg/perspective-device
4 ==================================================== */
5
6 .bkbg-pdev-wrap {
7 padding-top: var(--bkbg-pdev-pt, 48px);
8 padding-bottom: var(--bkbg-pdev-pb, 48px);
9 box-sizing: border-box;
10 }
11
12 .bkbg-pdev-inner {
13 position: relative;
14 }
15
16 /* ---- Device base ---- */
17 .bkbg-pdev-device {
18 position: relative;
19 width: 100%;
20 border-radius: 12px;
21 overflow: visible;
22 box-sizing: border-box;
23 }
24
25 .bkbg-pdev-device--shadow {
26 filter: drop-shadow(0 28px 60px rgba(0,0,0,.22)) drop-shadow(0 4px 16px rgba(0,0,0,.10));
27 }
28
29 /* ---- Perspective transforms ---- */
30 .bkbg-pdev-persp--tilt-left .bkbg-pdev-device {
31 transform: perspective(1400px) rotateY(14deg) rotateX(4deg);
32 transform-origin: left center;
33 }
34
35 .bkbg-pdev-persp--tilt-right .bkbg-pdev-device {
36 transform: perspective(1400px) rotateY(-14deg) rotateX(4deg);
37 transform-origin: right center;
38 }
39
40 .bkbg-pdev-persp--float .bkbg-pdev-device {
41 animation: bkbg-pdev-float 4s ease-in-out infinite;
42 }
43
44 @keyframes bkbg-pdev-float {
45 0%, 100% { transform: translateY(0); }
46 50% { transform: translateY(-12px); }
47 }
48
49 /* ---- Browser ---- */
50 .bkbg-pdev-device--browser {
51 border: 1px solid rgba(0,0,0,.12);
52 border-radius: 10px;
53 overflow: hidden;
54 background: #fff;
55 }
56
57 .bkbg-pdev-theme--dark .bkbg-pdev-device--browser {
58 background: #1e1e2e;
59 border-color: rgba(255,255,255,.1);
60 }
61
62 .bkbg-pdev-browser-bar {
63 display: flex;
64 align-items: center;
65 gap: 8px;
66 padding: 10px 14px;
67 border-bottom: 1px solid rgba(0,0,0,.08);
68 }
69
70 .bkbg-pdev-theme--dark .bkbg-pdev-browser-bar {
71 border-bottom-color: rgba(255,255,255,.08);
72 background: #181825;
73 }
74
75 .bkbg-pdev-dots {
76 display: flex;
77 gap: 6px;
78 flex-shrink: 0;
79 }
80
81 .bkbg-pdev-dots span {
82 display: block;
83 width: 12px;
84 height: 12px;
85 border-radius: 50%;
86 background: #e2e8f0;
87 }
88
89 .bkbg-pdev-dots span:nth-child(1) { background: #fc605b; }
90 .bkbg-pdev-dots span:nth-child(2) { background: #fdbc40; }
91 .bkbg-pdev-dots span:nth-child(3) { background: #33c748; }
92
93 .bkbg-pdev-url-bar {
94 flex: 1;
95 height: 22px;
96 border-radius: 4px;
97 background: rgba(0,0,0,.06);
98 max-width: 260px;
99 margin: 0 auto;
100 }
101
102 .bkbg-pdev-theme--dark .bkbg-pdev-url-bar { background: rgba(255,255,255,.08); }
103
104 /* ---- Phone ---- */
105 .bkbg-pdev-device--phone {
106 width: 260px;
107 border: 10px solid var(--bkbg-pdev-frame-c, #1e293b);
108 border-radius: 36px;
109 overflow: hidden;
110 position: relative;
111 background: var(--bkbg-pdev-screen-bg, #f1f5f9);
112 margin: 0 auto;
113 }
114
115 .bkbg-pdev-phone-notch {
116 height: 24px;
117 display: flex;
118 align-items: center;
119 justify-content: center;
120 background: var(--bkbg-pdev-frame-c, #1e293b);
121 }
122
123 .bkbg-pdev-phone-notch::after {
124 content: '';
125 width: 80px;
126 height: 14px;
127 border-radius: 50px;
128 background: rgba(0,0,0,.5);
129 }
130
131 .bkbg-pdev-phone-home {
132 height: 20px;
133 background: var(--bkbg-pdev-frame-c, #1e293b);
134 display: flex;
135 align-items: center;
136 justify-content: center;
137 }
138
139 .bkbg-pdev-phone-home::after {
140 content: '';
141 width: 48px;
142 height: 5px;
143 border-radius: 50px;
144 background: rgba(255,255,255,.3);
145 }
146
147 /* ---- Tablet ---- */
148 .bkbg-pdev-device--tablet {
149 width: 480px;
150 border: 14px solid var(--bkbg-pdev-frame-c, #1e293b);
151 border-radius: 24px;
152 overflow: hidden;
153 position: relative;
154 background: var(--bkbg-pdev-screen-bg, #f1f5f9);
155 margin: 0 auto;
156 }
157
158 .bkbg-pdev-tablet-cam {
159 height: 20px;
160 background: var(--bkbg-pdev-frame-c, #1e293b);
161 display: flex;
162 align-items: center;
163 justify-content: center;
164 }
165 .bkbg-pdev-tablet-cam::after {
166 content: '';
167 width: 8px;
168 height: 8px;
169 border-radius: 50%;
170 background: rgba(255,255,255,.2);
171 }
172
173 .bkbg-pdev-tablet-home {
174 height: 20px;
175 background: var(--bkbg-pdev-frame-c, #1e293b);
176 display: flex;
177 align-items: center;
178 justify-content: center;
179 }
180 .bkbg-pdev-tablet-home::after {
181 content: '';
182 width: 36px;
183 height: 4px;
184 border-radius: 50px;
185 background: rgba(255,255,255,.2);
186 }
187
188 /* ---- Laptop ---- */
189 .bkbg-pdev-device--laptop {
190 position: relative;
191 width: 100%;
192 }
193
194 .bkbg-pdev-laptop-lid {
195 background: var(--bkbg-pdev-frame-c, #1e293b);
196 border-radius: 10px 10px 0 0;
197 padding: 14px 14px 0;
198 position: relative;
199 }
200
201 .bkbg-pdev-laptop-cam {
202 width: 8px;
203 height: 8px;
204 border-radius: 50%;
205 background: rgba(255,255,255,.2);
206 margin: 0 auto 8px;
207 }
208
209 .bkbg-pdev-laptop-base {
210 background: var(--bkbg-pdev-frame-c, #1e293b);
211 border-radius: 0 0 12px 12px;
212 height: 24px;
213 position: relative;
214 display: flex;
215 flex-direction: column;
216 align-items: center;
217 justify-content: center;
218 gap: 4px;
219 padding: 0 20px;
220 }
221
222 .bkbg-pdev-laptop-keyboard {
223 width: 100%;
224 height: 8px;
225 border-radius: 2px;
226 background: rgba(255,255,255,.08);
227 }
228
229 .bkbg-pdev-laptop-trackpad {
230 width: 60px;
231 height: 4px;
232 border-radius: 2px;
233 background: rgba(255,255,255,.06);
234 }
235
236 /* ---- Screen (common) ---- */
237 .bkbg-pdev-screen {
238 background: var(--bkbg-pdev-screen-bg, #f1f5f9);
239 overflow: hidden;
240 cursor: pointer;
241 }
242
243 .bkbg-pdev-laptop-lid .bkbg-pdev-screen {
244 border-radius: 4px;
245 }
246
247 /* ---- Screenshot image ---- */
248 .bkbg-pdev-screenshot {
249 display: block;
250 width: 100%;
251 height: auto;
252 object-fit: cover;
253 }
254
255 /* ---- Placeholder ---- */
256 .bkbg-pdev-placeholder {
257 display: flex;
258 flex-direction: column;
259 align-items: center;
260 justify-content: center;
261 min-height: 200px;
262 color: #94a3b8;
263 font-size: 13px;
264 background: linear-gradient(135deg, #f0ebff 0%, #ede9fe 100%);
265 }
266
267 /* ---- Reflection overlay ---- */
268 .bkbg-pdev-reflection {
269 position: absolute;
270 top: 0; left: 0; right: 0; bottom: 0;
271 background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
272 pointer-events: none;
273 border-radius: inherit;
274 }
275
276 /* Dark theme tweaks */
277 .bkbg-pdev-theme--dark .bkbg-pdev-device--phone,
278 .bkbg-pdev-theme--dark .bkbg-pdev-device--tablet {
279 border-color: #374151;
280 }
281 .bkbg-pdev-theme--dark .bkbg-pdev-phone-notch,
282 .bkbg-pdev-theme--dark .bkbg-pdev-phone-home,
283 .bkbg-pdev-theme--dark .bkbg-pdev-tablet-cam,
284 .bkbg-pdev-theme--dark .bkbg-pdev-tablet-home,
285 .bkbg-pdev-theme--dark .bkbg-pdev-laptop-lid,
286 .bkbg-pdev-theme--dark .bkbg-pdev-laptop-base {
287 background: #374151;
288 }
289
290 /* Responsive */
291 @media (max-width: 640px) {
292 .bkbg-pdev-device--phone { width: 200px; }
293 .bkbg-pdev-device--tablet { width: 320px; }
294 }
295