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

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

86 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* =====================================================
2 Blockenberg — magnetic-button (bkbg-mgb-*)
3 ===================================================== */
4
5 /* ── Wrapper (holds the magnetic zone) ── */
6 .bkbg-mgb-wrap {
7 display: inline-block;
8 position: relative;
9 }
10
11 /* ── Button element ── */
12 .bkbg-mgb-btn {
13 display: inline-flex;
14 align-items: center;
15 flex-direction: column;
16 gap: 3px;
17 text-decoration: none;
18 position: relative;
19 overflow: hidden;
20 cursor: pointer;
21 will-change: transform;
22 transition: transform 0.1s ease-out, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
23 -webkit-user-select: none;
24 user-select: none;
25 }
26
27 /* ── Ripple container ── */
28 .bkbg-mgb-btn .bkbg-mgb-ripple {
29 position: absolute;
30 border-radius: 50%;
31 transform: scale(0);
32 animation: bkbg-mgb-ripple-anim 0.55s linear;
33 pointer-events: none;
34 }
35
36 @keyframes bkbg-mgb-ripple-anim {
37 to {
38 transform: scale(4);
39 opacity: 0;
40 }
41 }
42
43 /* ── Text layers ── */
44 .bkbg-mgb-text {
45 display: block;
46 line-height: 1.2;
47 pointer-events: none;
48 }
49 .bkbg-mgb-sub {
50 display: block;
51 opacity: 0.72;
52 pointer-events: none;
53 }
54 .bkbg-mgb-arrow {
55 pointer-events: none;
56 transition: transform 0.2s;
57 }
58 .bkbg-mgb-btn:hover .bkbg-mgb-arrow {
59 transform: translateX(4px);
60 }
61
62 /* ── Button typography (CSS vars) ── */
63 .bkbg-mgb-btn {
64 font-family: var(--bkbg-mgb-tx-font-family, inherit);
65 font-size: var(--bkbg-mgb-tx-font-size-d, 16px);
66 font-weight: var(--bkbg-mgb-tx-font-weight, 700);
67 font-style: var(--bkbg-mgb-tx-font-style, normal);
68 text-transform: var(--bkbg-mgb-tx-text-transform, none);
69 letter-spacing: var(--bkbg-mgb-tx-letter-spacing-d, normal);
70 word-spacing: var(--bkbg-mgb-tx-word-spacing-d, normal);
71 line-height: var(--bkbg-mgb-tx-line-height-d, 1.2);
72 }
73
74 /* ── Block centering ── */
75 .wp-block-blockenberg-magnetic-button {
76 display: block;
77 }
78
79 /* ── Responsive typography ── */
80 @media (max-width: 1024px) {
81 .bkbg-mgb-btn { font-size: var(--bkbg-mgb-tx-font-size-t, 16px); line-height: var(--bkbg-mgb-tx-line-height-t, 1.2); letter-spacing: var(--bkbg-mgb-tx-letter-spacing-t, normal); word-spacing: var(--bkbg-mgb-tx-word-spacing-t, normal); }
82 }
83 @media (max-width: 767px) {
84 .bkbg-mgb-btn { font-size: var(--bkbg-mgb-tx-font-size-m, 16px); line-height: var(--bkbg-mgb-tx-line-height-m, 1.2); letter-spacing: var(--bkbg-mgb-tx-letter-spacing-m, normal); word-spacing: var(--bkbg-mgb-tx-word-spacing-m, normal); }
85 }
86