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 / bento-grid / style.css

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

180 lines 7.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ==========================================================
2 Bento Grid Block — bkbg-bento-grid
3 ========================================================== */
4
5 .bkbg-bento-grid-wrap {
6 box-sizing: border-box;
7 }
8
9 .bkbg-bento-grid {
10 width: 100%;
11 box-sizing: border-box;
12 }
13
14 /* Hover lift effect */
15 .bkbg-bento-grid[data-hover-lift="1"] .bkbg-bento-cell {
16 transition: transform 0.22s ease, box-shadow 0.22s ease;
17 cursor: default;
18 }
19
20 .bkbg-bento-grid[data-hover-lift="1"] .bkbg-bento-cell:hover {
21 transform: translateY(-4px);
22 box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
23 }
24
25 /* Scroll animation */
26 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell {
27 opacity: 0;
28 transform: translateY(24px);
29 transition: opacity 0.5s ease, transform 0.5s ease;
30 }
31
32 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell.is-visible {
33 opacity: 1;
34 transform: translateY(0);
35 }
36
37 /* Stagger delay */
38 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell:nth-child(1) { transition-delay: 0.05s; }
39 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell:nth-child(2) { transition-delay: 0.12s; }
40 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell:nth-child(3) { transition-delay: 0.19s; }
41 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell:nth-child(4) { transition-delay: 0.26s; }
42 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell:nth-child(5) { transition-delay: 0.33s; }
43 .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell:nth-child(n+6) { transition-delay: 0.4s; }
44
45 /* Normalize heading/paragraph margins — WordPress global styles or theme.json
46 can inject margins on h1–h6 and p that break cell layout. Inline styles on
47 elements override these, but this rule adds a safe CSS-level fallback. */
48 .bkbg-bento-cell h1,
49 .bkbg-bento-cell h2,
50 .bkbg-bento-cell h3,
51 .bkbg-bento-cell h4,
52 .bkbg-bento-cell h5,
53 .bkbg-bento-cell h6 {
54 margin-top: 0;
55 line-height: 1.2;
56 color: inherit;
57 }
58
59 .bkbg-bento-cell p {
60 margin-top: 0;
61 }
62
63 .bkbg-bento-eyebrow {
64 margin: 0 0 6px;
65 font-family: var(--bkbg-bento-eyebrow-font-family, inherit);
66 font-size: var(--bkbg-bento-eyebrow-font-size-d, 12px);
67 font-weight: var(--bkbg-bento-eyebrow-font-weight, 700);
68 font-style: var(--bkbg-bento-eyebrow-font-style, normal);
69 text-transform: var(--bkbg-bento-eyebrow-text-transform, uppercase);
70 text-decoration: var(--bkbg-bento-eyebrow-text-decoration, none);
71 line-height: var(--bkbg-bento-eyebrow-line-height-d, 1.3);
72 letter-spacing: var(--bkbg-bento-eyebrow-letter-spacing-d, 0.08em);
73 word-spacing: var(--bkbg-bento-eyebrow-word-spacing-d, normal);
74 }
75
76 .bkbg-bento-title {
77 font-family: var(--bkbg-bento-title-font-family, inherit);
78 font-size: var(--bkbg-bento-title-font-size-d, 26px);
79 font-weight: var(--bkbg-bento-title-font-weight, 700);
80 font-style: var(--bkbg-bento-title-font-style, normal);
81 text-transform: var(--bkbg-bento-title-text-transform, none);
82 text-decoration: var(--bkbg-bento-title-text-decoration, none);
83 line-height: var(--bkbg-bento-title-line-height-d, 1.2);
84 letter-spacing: var(--bkbg-bento-title-letter-spacing-d, normal);
85 word-spacing: var(--bkbg-bento-title-word-spacing-d, normal);
86 }
87
88 .bkbg-bento-desc {
89 font-family: var(--bkbg-bento-desc-font-family, inherit);
90 font-size: var(--bkbg-bento-desc-font-size-d, 15px);
91 font-weight: var(--bkbg-bento-desc-font-weight, normal);
92 font-style: var(--bkbg-bento-desc-font-style, normal);
93 text-transform: var(--bkbg-bento-desc-text-transform, none);
94 text-decoration: var(--bkbg-bento-desc-text-decoration, none);
95 line-height: var(--bkbg-bento-desc-line-height-d, 1.55);
96 letter-spacing: var(--bkbg-bento-desc-letter-spacing-d, normal);
97 word-spacing: var(--bkbg-bento-desc-word-spacing-d, normal);
98 }
99
100 .bkbg-bento-btn {
101 text-decoration: none;
102 transition: opacity 0.15s ease;
103 }
104
105 .bkbg-bento-btn:hover {
106 opacity: 0.85;
107 }
108
109 .bkbg-bento-overlay {
110 border-radius: inherit;
111 }
112
113 /* Responsive typography — tablet */
114 @media (max-width: 1024px) {
115 .bkbg-bento-eyebrow {
116 font-size: var(--bkbg-bento-eyebrow-font-size-t, var(--bkbg-bento-eyebrow-font-size-d, 12px));
117 line-height: var(--bkbg-bento-eyebrow-line-height-t, var(--bkbg-bento-eyebrow-line-height-d, 1.3));
118 letter-spacing: var(--bkbg-bento-eyebrow-letter-spacing-t, var(--bkbg-bento-eyebrow-letter-spacing-d, 0.08em));
119 word-spacing: var(--bkbg-bento-eyebrow-word-spacing-t, var(--bkbg-bento-eyebrow-word-spacing-d, normal));
120 }
121 .bkbg-bento-title {
122 font-size: var(--bkbg-bento-title-font-size-t, var(--bkbg-bento-title-font-size-d, 26px));
123 line-height: var(--bkbg-bento-title-line-height-t, var(--bkbg-bento-title-line-height-d, 1.2));
124 letter-spacing: var(--bkbg-bento-title-letter-spacing-t, var(--bkbg-bento-title-letter-spacing-d, normal));
125 word-spacing: var(--bkbg-bento-title-word-spacing-t, var(--bkbg-bento-title-word-spacing-d, normal));
126 }
127 .bkbg-bento-desc {
128 font-size: var(--bkbg-bento-desc-font-size-t, var(--bkbg-bento-desc-font-size-d, 15px));
129 line-height: var(--bkbg-bento-desc-line-height-t, var(--bkbg-bento-desc-line-height-d, 1.55));
130 letter-spacing: var(--bkbg-bento-desc-letter-spacing-t, var(--bkbg-bento-desc-letter-spacing-d, normal));
131 word-spacing: var(--bkbg-bento-desc-word-spacing-t, var(--bkbg-bento-desc-word-spacing-d, normal));
132 }
133 }
134
135 /* Responsive typography — mobile */
136 @media (max-width: 767px) {
137 .bkbg-bento-eyebrow {
138 font-size: var(--bkbg-bento-eyebrow-font-size-m, var(--bkbg-bento-eyebrow-font-size-t, var(--bkbg-bento-eyebrow-font-size-d, 12px)));
139 line-height: var(--bkbg-bento-eyebrow-line-height-m, var(--bkbg-bento-eyebrow-line-height-t, var(--bkbg-bento-eyebrow-line-height-d, 1.3)));
140 letter-spacing: var(--bkbg-bento-eyebrow-letter-spacing-m, var(--bkbg-bento-eyebrow-letter-spacing-t, var(--bkbg-bento-eyebrow-letter-spacing-d, 0.08em)));
141 word-spacing: var(--bkbg-bento-eyebrow-word-spacing-m, var(--bkbg-bento-eyebrow-word-spacing-t, var(--bkbg-bento-eyebrow-word-spacing-d, normal)));
142 }
143 .bkbg-bento-title {
144 font-size: var(--bkbg-bento-title-font-size-m, var(--bkbg-bento-title-font-size-t, var(--bkbg-bento-title-font-size-d, 26px)));
145 line-height: var(--bkbg-bento-title-line-height-m, var(--bkbg-bento-title-line-height-t, var(--bkbg-bento-title-line-height-d, 1.2)));
146 letter-spacing: var(--bkbg-bento-title-letter-spacing-m, var(--bkbg-bento-title-letter-spacing-t, var(--bkbg-bento-title-letter-spacing-d, normal)));
147 word-spacing: var(--bkbg-bento-title-word-spacing-m, var(--bkbg-bento-title-word-spacing-t, var(--bkbg-bento-title-word-spacing-d, normal)));
148 }
149 .bkbg-bento-desc {
150 font-size: var(--bkbg-bento-desc-font-size-m, var(--bkbg-bento-desc-font-size-t, var(--bkbg-bento-desc-font-size-d, 15px)));
151 line-height: var(--bkbg-bento-desc-line-height-m, var(--bkbg-bento-desc-line-height-t, var(--bkbg-bento-desc-line-height-d, 1.55)));
152 letter-spacing: var(--bkbg-bento-desc-letter-spacing-m, var(--bkbg-bento-desc-letter-spacing-t, var(--bkbg-bento-desc-letter-spacing-d, normal)));
153 word-spacing: var(--bkbg-bento-desc-word-spacing-m, var(--bkbg-bento-desc-word-spacing-t, var(--bkbg-bento-desc-word-spacing-d, normal)));
154 }
155 }
156
157 /* Responsive — stack to 2 cols on tablet, 1 col on mobile */
158 @media (max-width: 768px) {
159 .bkbg-bento-grid {
160 grid-template-columns: repeat(2, 1fr) !important;
161 }
162
163 .bkbg-bento-cell {
164 grid-column: span 1 !important;
165 }
166 }
167
168 @media (max-width: 480px) {
169 .bkbg-bento-grid {
170 grid-template-columns: 1fr !important;
171 }
172 }
173
174 /* ── Editor: always show cells (frontend.js / IntersectionObserver is not loaded
175 inside the block editor, so animated cells would stay invisible) ── */
176 .editor-styles-wrapper .bkbg-bento-grid[data-animate="1"] .bkbg-bento-cell {
177 opacity: 1 !important;
178 transform: none !important;
179 }
180