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 / confetti-button / style.css

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

100 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ── Confetti Button ─────────────────────────────────────────── */
2 .bkbg-cb-app { font-family: inherit; }
3
4 .bkbg-cb-wrap { position: relative; }
5
6 .bkbg-cb-btn {
7 position: relative;
8 border: none;
9 cursor: pointer;
10 line-height: var(--bkcb-btn-line-height-d, var(--bkcb-btn-line-height, 1.3));
11 transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
12 outline: none;
13 font-family: var(--bkcb-btn-font-family, inherit);
14 font-size: var(--bkcb-btn-font-size-d, var(--bkcb-btn-font-size, 18px));
15 font-weight: var(--bkcb-btn-font-weight, 700);
16 font-style: var(--bkcb-btn-font-style, normal);
17 text-transform: var(--bkcb-btn-text-transform, none);
18 text-decoration: var(--bkcb-btn-text-decoration, none);
19 letter-spacing: var(--bkcb-btn-letter-spacing-d, var(--bkcb-btn-letter-spacing, normal));
20 word-spacing: var(--bkcb-btn-word-spacing-d, var(--bkcb-btn-word-spacing, normal));
21 overflow: hidden;
22 white-space: nowrap;
23 display: inline-flex;
24 align-items: center;
25 gap: 6px;
26 }
27 .bkbg-cb-icon-before svg, .bkbg-cb-icon-after svg { width: 1em; height: 1em; fill: currentColor; }
28 .bkbg-cb-icon-before .dashicons, .bkbg-cb-icon-after .dashicons { font-size: inherit; width: 1em; height: 1em; line-height: 1; }
29 .bkbg-cb-icon-before .bkbg-icon-img, .bkbg-cb-icon-after .bkbg-icon-img { width: 1em; height: 1em; object-fit: contain; }
30
31 .bkbg-cb-btn::after {
32 content: '';
33 position: absolute;
34 inset: 0;
35 background: rgba(255,255,255,0);
36 transition: background 0.2s;
37 border-radius: inherit;
38 }
39 .bkbg-cb-btn:hover::after { background: rgba(255,255,255,0.1); }
40
41 .bkbg-cb-btn:active {
42 transform: scale(0.96);
43 }
44 .bkbg-cb-btn.bkbg-cb-firing {
45 animation: bkbg-cb-press 0.15s ease;
46 }
47 @keyframes bkbg-cb-press {
48 0% { transform: scale(1); }
49 40% { transform: scale(0.93); }
50 100% { transform: scale(1); }
51 }
52
53 /* ripple on click */
54 .bkbg-cb-ripple {
55 position: absolute;
56 border-radius: 50%;
57 transform: scale(0);
58 background: rgba(255,255,255,0.35);
59 pointer-events: none;
60 animation: bkbg-cb-ripple-anim 0.55s linear;
61 }
62 @keyframes bkbg-cb-ripple-anim {
63 to { transform: scale(4); opacity: 0; }
64 }
65
66 /* sub text */
67 .bkbg-cb-sub {
68 margin-top: 8px;
69 font-size: 13px;
70 opacity: 0.7;
71 }
72
73 /* canvas overlay (full viewport for rain/sides) */
74 .bkbg-cb-canvas {
75 position: fixed;
76 inset: 0;
77 width: 100vw;
78 height: 100vh;
79 pointer-events: none;
80 z-index: 99999;
81 }
82
83 /* ── Responsive Typography ── */
84 @media (max-width: 1024px) {
85 .bkbg-cb-btn {
86 font-size: var(--bkcb-btn-font-size-t, var(--bkcb-btn-font-size-d, var(--bkcb-btn-font-size, 18px)));
87 line-height: var(--bkcb-btn-line-height-t, var(--bkcb-btn-line-height-d, var(--bkcb-btn-line-height, 1.3)));
88 letter-spacing: var(--bkcb-btn-letter-spacing-t, var(--bkcb-btn-letter-spacing-d, var(--bkcb-btn-letter-spacing, normal)));
89 word-spacing: var(--bkcb-btn-word-spacing-t, var(--bkcb-btn-word-spacing-d, var(--bkcb-btn-word-spacing, normal)));
90 }
91 }
92 @media (max-width: 767px) {
93 .bkbg-cb-btn {
94 font-size: var(--bkcb-btn-font-size-m, var(--bkcb-btn-font-size-t, var(--bkcb-btn-font-size-d, var(--bkcb-btn-font-size, 18px))));
95 line-height: var(--bkcb-btn-line-height-m, var(--bkcb-btn-line-height-t, var(--bkcb-btn-line-height-d, var(--bkcb-btn-line-height, 1.3))));
96 letter-spacing: var(--bkcb-btn-letter-spacing-m, var(--bkcb-btn-letter-spacing-t, var(--bkcb-btn-letter-spacing-d, var(--bkcb-btn-letter-spacing, normal))));
97 word-spacing: var(--bkcb-btn-word-spacing-m, var(--bkcb-btn-word-spacing-t, var(--bkcb-btn-word-spacing-d, var(--bkcb-btn-word-spacing, normal))));
98 }
99 }
100