PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.13
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.13
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 / creative-button / style.css

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

184 lines 5.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .bkbg-cb2-wrap {
2 display: block;
3 }
4
5 /* Base button */
6 .bkbg-cb2-btn {
7 display: inline-flex;
8 align-items: center;
9 justify-content: center;
10 gap: 8px;
11 font-family: var(--bkbg-cb2-btn-font-family, inherit);
12 font-size: var(--bkbg-cb2-btn-font-size-d, 16px);
13 font-weight: var(--bkbg-cb2-btn-font-weight, 700);
14 font-style: var(--bkbg-cb2-btn-font-style, normal);
15 text-transform: var(--bkbg-cb2-btn-text-transform, none);
16 text-decoration: var(--bkbg-cb2-btn-text-decoration, none);
17 line-height: var(--bkbg-cb2-btn-line-height-d, 1.2);
18 letter-spacing: var(--bkbg-cb2-btn-letter-spacing-d, normal);
19 word-spacing: var(--bkbg-cb2-btn-word-spacing-d, normal);
20 position: relative;
21 overflow: hidden;
22 cursor: pointer;
23 transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
24 vertical-align: middle;
25 -webkit-font-smoothing: antialiased;
26 }
27
28 .bkbg-cb2-btn.bkbg-cb2-full-width {
29 display: flex;
30 width: 100%;
31 }
32
33 /* ─── EFFECT: slide (background slides in from left) ─── */
34 .bkbg-cb2-btn--slide::before {
35 content: '';
36 position: absolute;
37 inset: 0;
38 background: var(--bkbg-cb2-hover-bg);
39 transform: translateX(-101%);
40 transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
41 z-index: 0;
42 border-radius: inherit;
43 }
44
45 .bkbg-cb2-btn--slide:hover::before {
46 transform: translateX(0);
47 }
48
49 .bkbg-cb2-btn--slide:hover {
50 color: var(--bkbg-cb2-hover-color) !important;
51 }
52
53 /* ─── EFFECT: fill (scales from center) ─── */
54 .bkbg-cb2-btn--fill::before {
55 content: '';
56 position: absolute;
57 inset: 50%;
58 width: 0; height: 0;
59 background: var(--bkbg-cb2-hover-bg);
60 border-radius: 50%;
61 transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
62 z-index: 0;
63 transform: translate(-50%, -50%);
64 }
65
66 .bkbg-cb2-btn--fill:hover::before {
67 width: 300%; height: 300%;
68 inset: auto;
69 top: 50%; left: 50%;
70 }
71
72 .bkbg-cb2-btn--fill:hover {
73 color: var(--bkbg-cb2-hover-color) !important;
74 }
75
76 /* ─── EFFECT: outline (inverts) ─── */
77 .bkbg-cb2-btn--outline {
78 transition: background 0.25s, color 0.25s, border-color 0.25s;
79 }
80
81 .bkbg-cb2-btn--outline:hover {
82 background: var(--bkbg-cb2-hover-bg) !important;
83 color: var(--bkbg-cb2-hover-color) !important;
84 border-color: var(--bkbg-cb2-hover-bg) !important;
85 }
86
87 /* ─── EFFECT: 3D Press ─── */
88 .bkbg-cb2-btn--press3d {
89 box-shadow: 0 6px 0 var(--bkbg-cb2-hover-bg);
90 transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
91 }
92
93 .bkbg-cb2-btn--press3d:hover {
94 background: var(--bkbg-cb2-hover-bg) !important;
95 color: var(--bkbg-cb2-hover-color) !important;
96 transform: translateY(3px);
97 box-shadow: 0 3px 0 var(--bkbg-cb2-hover-bg);
98 }
99
100 .bkbg-cb2-btn--press3d:active {
101 transform: translateY(6px);
102 box-shadow: none;
103 }
104
105 /* ─── EFFECT: arrow reveal ─── */
106 .bkbg-cb2-btn--arrow .bkbg-cb2-arrow-icon {
107 display: inline-block;
108 transform: translateX(-4px);
109 opacity: 0;
110 transition: transform 0.25s ease, opacity 0.25s ease;
111 margin-left: 0;
112 }
113
114 .bkbg-cb2-btn--arrow:hover {
115 background: var(--bkbg-cb2-hover-bg) !important;
116 color: var(--bkbg-cb2-hover-color) !important;
117 padding-right: calc(var(--bkbg-cb2-ph) + 8px);
118 }
119
120 .bkbg-cb2-btn--arrow:hover .bkbg-cb2-arrow-icon {
121 transform: translateX(0);
122 opacity: 1;
123 margin-left: 4px;
124 }
125
126 /* ─── EFFECT: ripple ─── */
127 .bkbg-cb2-btn--ripple {
128 transition: background 0.25s;
129 }
130
131 .bkbg-cb2-btn--ripple:hover {
132 background: var(--bkbg-cb2-hover-bg) !important;
133 color: var(--bkbg-cb2-hover-color) !important;
134 }
135
136 .bkbg-cb2-ripple-circle {
137 position: absolute;
138 border-radius: 50%;
139 background: rgba(255, 255, 255, 0.4);
140 transform: scale(0);
141 animation: bkbg-cb2-ripple-anim 0.55s ease-out forwards;
142 pointer-events: none;
143 z-index: 10;
144 }
145
146 @keyframes bkbg-cb2-ripple-anim {
147 to { transform: scale(4); opacity: 0; }
148 }
149
150 /* z-index for content above pseudo-elements */
151 .bkbg-cb2-btn--slide .bkbg-cb2-label,
152 .bkbg-cb2-btn--fill .bkbg-cb2-label,
153 .bkbg-cb2-btn--slide .bkbg-cb2-icon,
154 .bkbg-cb2-btn--fill .bkbg-cb2-icon {
155 position: relative;
156 z-index: 1;
157 }
158 .bkbg-cb2-icon svg { width: 1em; height: 1em; fill: currentColor; }
159 .bkbg-cb2-icon .dashicons { font-size: inherit; width: 1em; height: 1em; line-height: 1; }
160 .bkbg-cb2-icon .bkbg-icon-img { width: 1em; height: 1em; object-fit: contain; }
161
162 /* Typography responsive */
163 @media (max-width: 1024px) {
164 .bkbg-cb2-btn {
165 font-size: var(--bkbg-cb2-btn-font-size-t, var(--bkbg-cb2-btn-font-size-d, 16px));
166 line-height: var(--bkbg-cb2-btn-line-height-t, var(--bkbg-cb2-btn-line-height-d, 1.2));
167 letter-spacing: var(--bkbg-cb2-btn-letter-spacing-t, var(--bkbg-cb2-btn-letter-spacing-d, normal));
168 word-spacing: var(--bkbg-cb2-btn-word-spacing-t, var(--bkbg-cb2-btn-word-spacing-d, normal));
169 }
170 }
171 @media (max-width: 767px) {
172 .bkbg-cb2-btn {
173 font-size: var(--bkbg-cb2-btn-font-size-m, var(--bkbg-cb2-btn-font-size-t, var(--bkbg-cb2-btn-font-size-d, 16px)));
174 line-height: var(--bkbg-cb2-btn-line-height-m, var(--bkbg-cb2-btn-line-height-t, var(--bkbg-cb2-btn-line-height-d, 1.2)));
175 letter-spacing: var(--bkbg-cb2-btn-letter-spacing-m, var(--bkbg-cb2-btn-letter-spacing-t, var(--bkbg-cb2-btn-letter-spacing-d, normal)));
176 word-spacing: var(--bkbg-cb2-btn-word-spacing-m, var(--bkbg-cb2-btn-word-spacing-t, var(--bkbg-cb2-btn-word-spacing-d, normal)));
177 }
178 }
179
180 /* Editor */
181 .bkbg-cb2-editor {
182 display: block;
183 }
184