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 / flip-countdown / style.css

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

242 lines 9.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Flip Countdown Block — bkbg-fc-* */
2
3 .bkbg-fc-app {
4 padding: 40px 20px;
5 text-align: center;
6 font-family: inherit;
7 box-sizing: border-box;
8 }
9
10 .bkbg-fc-app .bkbg-fc-title {
11 margin: 0 0 8px;
12 font-family: var(--bkbg-fcd-tt-font-family, inherit);
13 font-size: var(--bkbg-fcd-tt-font-size-d, 30px);
14 font-weight: var(--bkbg-fcd-tt-font-weight, 800);
15 font-style: var(--bkbg-fcd-tt-font-style, normal);
16 text-decoration: var(--bkbg-fcd-tt-text-decoration, none);
17 text-transform: var(--bkbg-fcd-tt-text-transform, none);
18 line-height: var(--bkbg-fcd-tt-line-height-d, 1.2);
19 letter-spacing: var(--bkbg-fcd-tt-letter-spacing-d, normal);
20 word-spacing: var(--bkbg-fcd-tt-word-spacing-d, normal);
21 }
22
23 .bkbg-fc-app .bkbg-fc-subtitle {
24 margin: 0 0 32px;
25 opacity: 0.65;
26 font-family: var(--bkbg-fcd-ts-font-family, inherit);
27 font-size: var(--bkbg-fcd-ts-font-size-d, 15px);
28 font-weight: var(--bkbg-fcd-ts-font-weight, 400);
29 font-style: var(--bkbg-fcd-ts-font-style, normal);
30 text-decoration: var(--bkbg-fcd-ts-text-decoration, none);
31 text-transform: var(--bkbg-fcd-ts-text-transform, none);
32 line-height: var(--bkbg-fcd-ts-line-height-d, 1.5);
33 letter-spacing: var(--bkbg-fcd-ts-letter-spacing-d, normal);
34 word-spacing: var(--bkbg-fcd-ts-word-spacing-d, normal);
35 }
36
37 /* ---- Row of units ---- */
38 .bkbg-fc-row {
39 display: flex;
40 justify-content: center;
41 align-items: flex-start;
42 flex-wrap: wrap;
43 gap: 16px;
44 }
45
46 /* ---- Unit (e.g. "Days") ---- */
47 .bkbg-fc-unit {
48 display: flex;
49 flex-direction: column;
50 align-items: center;
51 gap: 10px;
52 }
53
54 /* ---- Pair of digit cards ---- */
55 .bkbg-fc-pair {
56 display: flex;
57 gap: 4px;
58 }
59
60 /* ---- Individual flip card ---- */
61 .bkbg-fc-card {
62 position: relative;
63 width: 1ch;
64 min-width: 52px;
65 height: 1.2em;
66 display: flex;
67 flex-direction: column;
68 align-items: center;
69 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.25);
70 overflow: hidden;
71 user-select: none;
72 }
73 .bkbg-fc-app .bkbg-fc-card {
74 font-family: var(--bkbg-fcd-td-font-family, inherit);
75 font-size: var(--bkbg-fcd-td-font-size-d, 56px);
76 }
77
78 /* ---- Upper half ---- */
79 .bkbg-fc-upper {
80 position: absolute;
81 top: 0;
82 left: 0;
83 right: 0;
84 height: 50%;
85 overflow: hidden;
86 display: flex;
87 align-items: flex-end;
88 justify-content: center;
89 padding-bottom: 2px;
90 transform-origin: bottom center;
91 backface-visibility: hidden;
92 line-height: 1;
93 font-weight: 700;
94 font-variant-numeric: tabular-nums;
95 letter-spacing: -2px;
96 }
97
98 /* ---- Lower half ---- */
99 .bkbg-fc-lower {
100 position: absolute;
101 bottom: 0;
102 left: 0;
103 right: 0;
104 height: 50%;
105 overflow: hidden;
106 display: flex;
107 align-items: flex-start;
108 justify-content: center;
109 padding-top: 2px;
110 transform-origin: top center;
111 line-height: 1;
112 font-weight: 700;
113 font-variant-numeric: tabular-nums;
114 letter-spacing: -2px;
115 }
116
117 /* ---- Hinge line (the dividing line in the middle) ---- */
118 .bkbg-fc-hinge {
119 position: absolute;
120 top: 50%;
121 left: 0;
122 right: 0;
123 height: 2px;
124 transform: translateY(-50%);
125 z-index: 5;
126 }
127
128 /* ---- Flip animation upper (sweeps old number away) ---- */
129 .bkbg-fc-flap-upper {
130 position: absolute;
131 top: 0;
132 left: 0;
133 right: 0;
134 height: 50%;
135 overflow: hidden;
136 display: flex;
137 align-items: flex-end;
138 justify-content: center;
139 padding-bottom: 2px;
140 transform-origin: bottom center;
141 backface-visibility: hidden;
142 line-height: 1;
143 font-weight: 700;
144 font-variant-numeric: tabular-nums;
145 letter-spacing: -2px;
146 z-index: 10;
147 animation: bkbg-fc-flip-upper 0.25s ease-in forwards;
148 }
149
150 @keyframes bkbg-fc-flip-upper {
151 from { transform: rotateX(0deg); }
152 to { transform: rotateX(-90deg); }
153 }
154
155 /* ---- Flip animation lower (sweeps new number in) ---- */
156 .bkbg-fc-flap-lower {
157 position: absolute;
158 bottom: 0;
159 left: 0;
160 right: 0;
161 height: 50%;
162 overflow: hidden;
163 display: flex;
164 align-items: flex-start;
165 justify-content: center;
166 padding-top: 2px;
167 transform-origin: top center;
168 line-height: 1;
169 font-weight: 700;
170 font-variant-numeric: tabular-nums;
171 letter-spacing: -2px;
172 z-index: 10;
173 transform: rotateX(90deg);
174 animation: bkbg-fc-flip-lower 0.25s ease-out 0.25s forwards;
175 }
176
177 @keyframes bkbg-fc-flip-lower {
178 from { transform: rotateX(90deg); }
179 to { transform: rotateX(0deg); }
180 }
181
182 /* ---- Separator colon ---- */
183 .bkbg-fc-app .bkbg-fc-sep {
184 font-size: var(--bkbg-fcd-td-font-size-d, 56px);
185 font-weight: 900;
186 line-height: 1;
187 align-self: center;
188 margin-bottom: 22px;
189 opacity: 0.8;
190 }
191
192 /* ---- Label ---- */
193 .bkbg-fc-app .bkbg-fc-label {
194 font-family: var(--bkbg-fcd-tl-font-family, inherit);
195 font-size: var(--bkbg-fcd-tl-font-size-d, 12px);
196 font-weight: var(--bkbg-fcd-tl-font-weight, 600);
197 font-style: var(--bkbg-fcd-tl-font-style, normal);
198 text-decoration: var(--bkbg-fcd-tl-text-decoration, none);
199 text-transform: var(--bkbg-fcd-tl-text-transform, uppercase);
200 line-height: var(--bkbg-fcd-tl-line-height-d, 1);
201 letter-spacing: var(--bkbg-fcd-tl-letter-spacing-d, 1.5px);
202 word-spacing: var(--bkbg-fcd-tl-word-spacing-d, normal);
203 }
204
205 /* ---- End message ---- */
206 .bkbg-fc-end {
207 font-size: 24px;
208 font-weight: 700;
209 padding: 24px;
210 animation: bkbg-fc-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
211 }
212
213 @keyframes bkbg-fc-pop-in {
214 from { transform: scale(0.6); opacity: 0; }
215 to { transform: scale(1); opacity: 1; }
216 }
217
218 /* ---- Editor wrapper ---- */
219 .bkbg-fc-editor-wrap { display: block; }
220
221 /* ---- Typography responsive ---- */
222 @media (max-width: 1024px) {
223 .bkbg-fc-app .bkbg-fc-title { font-size: var(--bkbg-fcd-tt-font-size-t, var(--bkbg-fcd-tt-font-size-d, 30px)); line-height: var(--bkbg-fcd-tt-line-height-t, var(--bkbg-fcd-tt-line-height-d, 1.2)); letter-spacing: var(--bkbg-fcd-tt-letter-spacing-t, var(--bkbg-fcd-tt-letter-spacing-d, normal)); word-spacing: var(--bkbg-fcd-tt-word-spacing-t, var(--bkbg-fcd-tt-word-spacing-d, normal)); }
224 .bkbg-fc-app .bkbg-fc-subtitle { font-size: var(--bkbg-fcd-ts-font-size-t, var(--bkbg-fcd-ts-font-size-d, 15px)); line-height: var(--bkbg-fcd-ts-line-height-t, var(--bkbg-fcd-ts-line-height-d, 1.5)); letter-spacing: var(--bkbg-fcd-ts-letter-spacing-t, var(--bkbg-fcd-ts-letter-spacing-d, normal)); word-spacing: var(--bkbg-fcd-ts-word-spacing-t, var(--bkbg-fcd-ts-word-spacing-d, normal)); }
225 .bkbg-fc-app .bkbg-fc-card { font-size: var(--bkbg-fcd-td-font-size-t, var(--bkbg-fcd-td-font-size-d, 56px)); }
226 .bkbg-fc-app .bkbg-fc-sep { font-size: var(--bkbg-fcd-td-font-size-t, var(--bkbg-fcd-td-font-size-d, 56px)); }
227 .bkbg-fc-app .bkbg-fc-label { font-size: var(--bkbg-fcd-tl-font-size-t, var(--bkbg-fcd-tl-font-size-d, 12px)); line-height: var(--bkbg-fcd-tl-line-height-t, var(--bkbg-fcd-tl-line-height-d, 1)); letter-spacing: var(--bkbg-fcd-tl-letter-spacing-t, var(--bkbg-fcd-tl-letter-spacing-d, 1.5px)); word-spacing: var(--bkbg-fcd-tl-word-spacing-t, var(--bkbg-fcd-tl-word-spacing-d, normal)); }
228 }
229 @media (max-width: 767px) {
230 .bkbg-fc-app .bkbg-fc-title { font-size: var(--bkbg-fcd-tt-font-size-m, var(--bkbg-fcd-tt-font-size-t, var(--bkbg-fcd-tt-font-size-d, 30px))); line-height: var(--bkbg-fcd-tt-line-height-m, var(--bkbg-fcd-tt-line-height-t, var(--bkbg-fcd-tt-line-height-d, 1.2))); letter-spacing: var(--bkbg-fcd-tt-letter-spacing-m, var(--bkbg-fcd-tt-letter-spacing-t, var(--bkbg-fcd-tt-letter-spacing-d, normal))); word-spacing: var(--bkbg-fcd-tt-word-spacing-m, var(--bkbg-fcd-tt-word-spacing-t, var(--bkbg-fcd-tt-word-spacing-d, normal))); }
231 .bkbg-fc-app .bkbg-fc-subtitle { font-size: var(--bkbg-fcd-ts-font-size-m, var(--bkbg-fcd-ts-font-size-t, var(--bkbg-fcd-ts-font-size-d, 15px))); line-height: var(--bkbg-fcd-ts-line-height-m, var(--bkbg-fcd-ts-line-height-t, var(--bkbg-fcd-ts-line-height-d, 1.5))); letter-spacing: var(--bkbg-fcd-ts-letter-spacing-m, var(--bkbg-fcd-ts-letter-spacing-t, var(--bkbg-fcd-ts-letter-spacing-d, normal))); word-spacing: var(--bkbg-fcd-ts-word-spacing-m, var(--bkbg-fcd-ts-word-spacing-t, var(--bkbg-fcd-ts-word-spacing-d, normal))); }
232 .bkbg-fc-app .bkbg-fc-card { font-size: var(--bkbg-fcd-td-font-size-m, var(--bkbg-fcd-td-font-size-t, var(--bkbg-fcd-td-font-size-d, 56px))); }
233 .bkbg-fc-app .bkbg-fc-sep { font-size: var(--bkbg-fcd-td-font-size-m, var(--bkbg-fcd-td-font-size-t, var(--bkbg-fcd-td-font-size-d, 56px))); }
234 .bkbg-fc-app .bkbg-fc-label { font-size: var(--bkbg-fcd-tl-font-size-m, var(--bkbg-fcd-tl-font-size-t, var(--bkbg-fcd-tl-font-size-d, 12px))); line-height: var(--bkbg-fcd-tl-line-height-m, var(--bkbg-fcd-tl-line-height-t, var(--bkbg-fcd-tl-line-height-d, 1))); letter-spacing: var(--bkbg-fcd-tl-letter-spacing-m, var(--bkbg-fcd-tl-letter-spacing-t, var(--bkbg-fcd-tl-letter-spacing-d, 1.5px))); word-spacing: var(--bkbg-fcd-tl-word-spacing-m, var(--bkbg-fcd-tl-word-spacing-t, var(--bkbg-fcd-tl-word-spacing-d, normal))); }
235 }
236
237 /* ---- Responsive ---- */
238 @media (max-width: 500px) {
239 .bkbg-fc-card { min-width: 38px; }
240 .bkbg-fc-row { gap: 8px; }
241 }
242