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 / cursor-spotlight / style.css

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

132 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Cursor Spotlight Block — bkbg-cs-* */
2
3 .bkbg-cs-app { display: block; }
4
5 .bkbg-cs-section {
6 position: relative;
7 overflow: hidden;
8 cursor: none;
9 }
10
11 /* Background image layer */
12 .bkbg-cs-bg {
13 position: absolute;
14 inset: 0;
15 width: 100%;
16 height: 100%;
17 object-fit: cover;
18 }
19
20 /* Dark overlay — has a hole punched where the spotlight is */
21 .bkbg-cs-dim {
22 position: absolute;
23 inset: 0;
24 pointer-events: none;
25 z-index: 1;
26 transition: background 0.05s;
27 }
28
29 /* Content layer */
30 .bkbg-cs-content {
31 position: relative;
32 z-index: 2;
33 display: flex;
34 flex-direction: column;
35 align-items: center;
36 justify-content: center;
37 height: 100%;
38 padding: 40px 32px;
39 box-sizing: border-box;
40 }
41
42 .bkbg-cs-content .bkbg-cs-heading {
43 margin: 0;
44 font-family: var(--bkbg-cs-hdg-font-family, inherit);
45 font-size: var(--bkbg-cs-hdg-font-size-d, var(--bkbg-cs-hdg-fs, 48px));
46 font-weight: var(--bkbg-cs-hdg-font-weight, var(--bkbg-cs-hdg-fw, 800));
47 font-style: var(--bkbg-cs-hdg-font-style, normal);
48 text-transform: var(--bkbg-cs-hdg-text-transform, none);
49 text-decoration: var(--bkbg-cs-hdg-text-decoration, none);
50 letter-spacing: var(--bkbg-cs-hdg-letter-spacing-d, normal);
51 line-height: var(--bkbg-cs-hdg-line-height-d, 1.15);
52 word-spacing: var(--bkbg-cs-hdg-word-spacing-d, normal);
53 }
54
55 .bkbg-cs-subtext {
56 margin: 16px 0 0;
57 font-family: var(--bkbg-cs-sub-font-family, inherit);
58 font-size: var(--bkbg-cs-sub-font-size-d, var(--bkbg-cs-sub-fs, 18px));
59 font-weight: var(--bkbg-cs-sub-font-weight, normal);
60 font-style: var(--bkbg-cs-sub-font-style, normal);
61 text-transform: var(--bkbg-cs-sub-text-transform, none);
62 text-decoration: var(--bkbg-cs-sub-text-decoration, none);
63 letter-spacing: var(--bkbg-cs-sub-letter-spacing-d, normal);
64 line-height: var(--bkbg-cs-sub-line-height-d, 1.5);
65 word-spacing: var(--bkbg-cs-sub-word-spacing-d, normal);
66 opacity: 0.8;
67 max-width: 600px;
68 }
69
70 /* ── Typography responsive ─────────────────────────────────────────────────── */
71 @media (max-width: 1024px) {
72 .bkbg-cs-content .bkbg-cs-heading {
73 font-size: var(--bkbg-cs-hdg-font-size-t, var(--bkbg-cs-hdg-font-size-d, var(--bkbg-cs-hdg-fs, 48px)));
74 letter-spacing: var(--bkbg-cs-hdg-letter-spacing-t, var(--bkbg-cs-hdg-letter-spacing-d, normal));
75 line-height: var(--bkbg-cs-hdg-line-height-t, var(--bkbg-cs-hdg-line-height-d, 1.15));
76 word-spacing: var(--bkbg-cs-hdg-word-spacing-t, var(--bkbg-cs-hdg-word-spacing-d, normal));
77 }
78 .bkbg-cs-subtext {
79 font-size: var(--bkbg-cs-sub-font-size-t, var(--bkbg-cs-sub-font-size-d, var(--bkbg-cs-sub-fs, 18px)));
80 letter-spacing: var(--bkbg-cs-sub-letter-spacing-t, var(--bkbg-cs-sub-letter-spacing-d, normal));
81 line-height: var(--bkbg-cs-sub-line-height-t, var(--bkbg-cs-sub-line-height-d, 1.5));
82 word-spacing: var(--bkbg-cs-sub-word-spacing-t, var(--bkbg-cs-sub-word-spacing-d, normal));
83 }
84 }
85 @media (max-width: 767px) {
86 .bkbg-cs-content .bkbg-cs-heading {
87 font-size: var(--bkbg-cs-hdg-font-size-m, var(--bkbg-cs-hdg-font-size-t, var(--bkbg-cs-hdg-font-size-d, var(--bkbg-cs-hdg-fs, 48px))));
88 letter-spacing: var(--bkbg-cs-hdg-letter-spacing-m, var(--bkbg-cs-hdg-letter-spacing-t, var(--bkbg-cs-hdg-letter-spacing-d, normal)));
89 line-height: var(--bkbg-cs-hdg-line-height-m, var(--bkbg-cs-hdg-line-height-t, var(--bkbg-cs-hdg-line-height-d, 1.15)));
90 word-spacing: var(--bkbg-cs-hdg-word-spacing-m, var(--bkbg-cs-hdg-word-spacing-t, var(--bkbg-cs-hdg-word-spacing-d, normal)));
91 }
92 .bkbg-cs-subtext {
93 font-size: var(--bkbg-cs-sub-font-size-m, var(--bkbg-cs-sub-font-size-t, var(--bkbg-cs-sub-font-size-d, var(--bkbg-cs-sub-fs, 18px))));
94 letter-spacing: var(--bkbg-cs-sub-letter-spacing-m, var(--bkbg-cs-sub-letter-spacing-t, var(--bkbg-cs-sub-letter-spacing-d, normal)));
95 line-height: var(--bkbg-cs-sub-line-height-m, var(--bkbg-cs-sub-line-height-t, var(--bkbg-cs-sub-line-height-d, 1.5)));
96 word-spacing: var(--bkbg-cs-sub-word-spacing-m, var(--bkbg-cs-sub-word-spacing-t, var(--bkbg-cs-sub-word-spacing-d, normal)));
97 }
98 }
99
100 .bkbg-cs-hint {
101 position: absolute;
102 bottom: 20px;
103 left: 50%;
104 transform: translateX(-50%);
105 font-size: 12px;
106 letter-spacing: 0.12em;
107 text-transform: uppercase;
108 opacity: 0.5;
109 white-space: nowrap;
110 z-index: 3;
111 pointer-events: none;
112 transition: opacity 0.4s;
113 }
114
115 .bkbg-cs-section.bkbg-cs-active .bkbg-cs-hint {
116 opacity: 0;
117 }
118
119 /* Custom cursor dot */
120 .bkbg-cs-cursor-dot {
121 position: absolute;
122 width: 8px;
123 height: 8px;
124 border-radius: 50%;
125 background: #fff;
126 pointer-events: none;
127 z-index: 10;
128 transform: translate(-50%, -50%);
129 opacity: 0.9;
130 mix-blend-mode: difference;
131 }
132