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 / hover-card / style.css

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

189 lines 5.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Hover Card Block — bkhc- */
2 .bkhc-wrap {
3 display: inline-flex;
4 }
5
6 .bkhc-card {
7 position: relative;
8 width: var(--bkhc-width, 300px);
9 height: var(--bkhc-height, 220px);
10 border-radius: var(--bkhc-radius, 12px);
11 overflow: hidden;
12 background-color: var(--bkhc-bg, #1e0a3c);
13 box-shadow: 0 4px 20px rgba(0,0,0,0.18);
14 cursor: pointer;
15 }
16
17 .bkhc-img {
18 width: 100%;
19 height: 100%;
20 object-fit: cover;
21 display: block;
22 transition: transform var(--bkhc-duration, 300ms) ease;
23 }
24 .bkhc-card:hover .bkhc-img,
25 .bkhc-card.bkhc-preview:hover .bkhc-img {
26 transform: scale(1.06);
27 }
28
29 .bkhc-img-placeholder {
30 display: flex;
31 align-items: center;
32 justify-content: center;
33 width: 100%;
34 height: 100%;
35 background: #2c2c2c;
36 color: #888;
37 }
38 .bkhc-img-placeholder .dashicons {
39 font-size: 48px;
40 width: 48px;
41 height: 48px;
42 }
43
44 /* ── Overlay ── */
45 .bkhc-overlay {
46 position: absolute;
47 inset: 0;
48 background: var(--bkhc-overlay, rgba(108,63,181,0.92));
49 color: var(--bkhc-text, #fff);
50 display: flex;
51 flex-direction: column;
52 align-items: center;
53 justify-content: center;
54 gap: 10px;
55 padding: 20px;
56 text-align: center;
57 transition: all var(--bkhc-duration, 300ms) ease;
58 }
59
60 /* ── Heading typography (CSS-var driven) ── */
61 .bkhc-card .bkhc-heading,
62 .bkhc-card h3.bkhc-heading {
63 font-family: var(--bkhc-h-font-family, inherit);
64 font-size: var(--bkhc-h-font-size-d, var(--bkhc-h-sz, 18px));
65 font-weight: var(--bkhc-h-font-weight, var(--bkhc-h-fw, 700));
66 font-style: var(--bkhc-h-font-style, normal);
67 text-decoration: var(--bkhc-h-text-decoration, none);
68 text-transform: var(--bkhc-h-text-transform, none);
69 line-height: var(--bkhc-h-line-height-d, var(--bkhc-h-lh, 1.3));
70 letter-spacing: var(--bkhc-h-letter-spacing-d, normal);
71 word-spacing: var(--bkhc-h-word-spacing-d, normal);
72 margin: 0;
73 color: inherit;
74 }
75
76 /* ── Text typography (CSS-var driven) ── */
77 .bkhc-card .bkhc-text {
78 font-family: var(--bkhc-t-font-family, inherit);
79 font-size: var(--bkhc-t-font-size-d, var(--bkhc-t-sz, 14px));
80 font-weight: var(--bkhc-t-font-weight, var(--bkhc-t-fw, 400));
81 font-style: var(--bkhc-t-font-style, normal);
82 text-decoration: var(--bkhc-t-text-decoration, none);
83 text-transform: var(--bkhc-t-text-transform, none);
84 line-height: var(--bkhc-t-line-height-d, var(--bkhc-t-lh, 1.6));
85 letter-spacing: var(--bkhc-t-letter-spacing-d, normal);
86 word-spacing: var(--bkhc-t-word-spacing-d, normal);
87 margin: 0;
88 opacity: 0.9;
89 color: inherit;
90 }
91
92 /* ── Responsive: Tablet ── */
93 @media (max-width: 1024px) {
94 .bkhc-card .bkhc-heading,
95 .bkhc-card h3.bkhc-heading {
96 font-size: var(--bkhc-h-font-size-t, var(--bkhc-h-font-size-d, var(--bkhc-h-sz, 18px)));
97 line-height: var(--bkhc-h-line-height-t, var(--bkhc-h-line-height-d, var(--bkhc-h-lh, 1.3)));
98 letter-spacing: var(--bkhc-h-letter-spacing-t, var(--bkhc-h-letter-spacing-d, normal));
99 word-spacing: var(--bkhc-h-word-spacing-t, var(--bkhc-h-word-spacing-d, normal));
100 }
101 .bkhc-card .bkhc-text {
102 font-size: var(--bkhc-t-font-size-t, var(--bkhc-t-font-size-d, var(--bkhc-t-sz, 14px)));
103 line-height: var(--bkhc-t-line-height-t, var(--bkhc-t-line-height-d, var(--bkhc-t-lh, 1.6)));
104 letter-spacing: var(--bkhc-t-letter-spacing-t, var(--bkhc-t-letter-spacing-d, normal));
105 word-spacing: var(--bkhc-t-word-spacing-t, var(--bkhc-t-word-spacing-d, normal));
106 }
107 }
108
109 /* ── Responsive: Mobile ── */
110 @media (max-width: 767px) {
111 .bkhc-card .bkhc-heading,
112 .bkhc-card h3.bkhc-heading {
113 font-size: var(--bkhc-h-font-size-m, var(--bkhc-h-font-size-t, var(--bkhc-h-font-size-d, var(--bkhc-h-sz, 18px))));
114 line-height: var(--bkhc-h-line-height-m, var(--bkhc-h-line-height-t, var(--bkhc-h-line-height-d, var(--bkhc-h-lh, 1.3))));
115 letter-spacing: var(--bkhc-h-letter-spacing-m, var(--bkhc-h-letter-spacing-t, var(--bkhc-h-letter-spacing-d, normal)));
116 word-spacing: var(--bkhc-h-word-spacing-m, var(--bkhc-h-word-spacing-t, var(--bkhc-h-word-spacing-d, normal)));
117 }
118 .bkhc-card .bkhc-text {
119 font-size: var(--bkhc-t-font-size-m, var(--bkhc-t-font-size-t, var(--bkhc-t-font-size-d, var(--bkhc-t-sz, 14px))));
120 line-height: var(--bkhc-t-line-height-m, var(--bkhc-t-line-height-t, var(--bkhc-t-line-height-d, var(--bkhc-t-lh, 1.6))));
121 letter-spacing: var(--bkhc-t-letter-spacing-m, var(--bkhc-t-letter-spacing-t, var(--bkhc-t-letter-spacing-d, normal)));
122 word-spacing: var(--bkhc-t-word-spacing-m, var(--bkhc-t-word-spacing-t, var(--bkhc-t-word-spacing-d, normal)));
123 }
124 }
125 .bkhc-btn {
126 display: inline-block;
127 padding: 8px 20px;
128 border: 2px solid var(--bkhc-text, #fff);
129 border-radius: 40px;
130 color: var(--bkhc-text, #fff);
131 font-size: 13px;
132 font-weight: 600;
133 text-decoration: none;
134 transition: background 0.2s, color 0.2s;
135 margin-top: 4px;
136 }
137 .bkhc-btn:hover {
138 background: var(--bkhc-text, #fff);
139 color: #333;
140 }
141
142 /* ── Reveal directions ── */
143
144 /* Fade */
145 .bkhc-reveal-fade .bkhc-overlay {
146 opacity: 0;
147 }
148 .bkhc-reveal-fade:hover .bkhc-overlay {
149 opacity: 1;
150 }
151
152 /* Bottom */
153 .bkhc-reveal-bottom .bkhc-overlay {
154 transform: translateY(100%);
155 }
156 .bkhc-reveal-bottom:hover .bkhc-overlay {
157 transform: translateY(0);
158 }
159
160 /* Top */
161 .bkhc-reveal-top .bkhc-overlay {
162 transform: translateY(-100%);
163 }
164 .bkhc-reveal-top:hover .bkhc-overlay {
165 transform: translateY(0);
166 }
167
168 /* Left */
169 .bkhc-reveal-left .bkhc-overlay {
170 transform: translateX(-100%);
171 }
172 .bkhc-reveal-left:hover .bkhc-overlay {
173 transform: translateX(0);
174 }
175
176 /* Right */
177 .bkhc-reveal-right .bkhc-overlay {
178 transform: translateX(100%);
179 }
180 .bkhc-reveal-right:hover .bkhc-overlay {
181 transform: translateX(0);
182 }
183
184 /* Editor preview always shows overlay slightly */
185 .bkhc-preview .bkhc-overlay {
186 opacity: 0.7 !important;
187 transform: none !important;
188 }
189