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 / margin-calculator / style.css

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

275 lines 9.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* =========================================================
2 Blockenberg — Margin Calculator (bkbg-mgc-*)
3 ========================================================= */
4
5 /* ── Wrapper ────────────────────────────────────────────── */
6 .bkbg-mgc-wrap {
7 box-sizing: border-box;
8 border-radius: 12px;
9 padding: 32px 24px;
10 font-family: inherit;
11 margin: 0 auto;
12 }
13
14 /* ── Header ─────────────────────────────────────────────── */
15 .bkbg-mgc-title {
16 font-family: var(--bkbg-mgc-tt-font-family, inherit);
17 font-size: var(--bkbg-mgc-tt-font-size-d, 26px);
18 font-weight: var(--bkbg-mgc-tt-font-weight, 700);
19 font-style: var(--bkbg-mgc-tt-font-style, normal);
20 text-decoration: var(--bkbg-mgc-tt-text-decoration, none);
21 text-transform: var(--bkbg-mgc-tt-text-transform, none);
22 line-height: var(--bkbg-mgc-tt-line-height-d, 1.2);
23 letter-spacing: var(--bkbg-mgc-tt-letter-spacing-d, normal);
24 word-spacing: var(--bkbg-mgc-tt-word-spacing-d, normal);
25 margin: 0 0 6px 0;
26 }
27 .bkbg-mgc-wrap h3.bkbg-mgc-title {
28 font-family: var(--bkbg-mgc-tt-font-family, inherit);
29 font-size: var(--bkbg-mgc-tt-font-size-d, 26px);
30 font-weight: var(--bkbg-mgc-tt-font-weight, 700);
31 font-style: var(--bkbg-mgc-tt-font-style, normal);
32 text-decoration: var(--bkbg-mgc-tt-text-decoration, none);
33 text-transform: var(--bkbg-mgc-tt-text-transform, none);
34 line-height: var(--bkbg-mgc-tt-line-height-d, 1.2);
35 letter-spacing: var(--bkbg-mgc-tt-letter-spacing-d, normal);
36 word-spacing: var(--bkbg-mgc-tt-word-spacing-d, normal);
37 margin: 0 0 6px 0;
38 }
39 .bkbg-mgc-subtitle {
40 font-family: var(--bkbg-mgc-st-font-family, inherit);
41 font-size: var(--bkbg-mgc-st-font-size-d, 14px);
42 font-weight: var(--bkbg-mgc-st-font-weight, 400);
43 font-style: var(--bkbg-mgc-st-font-style, normal);
44 text-decoration: var(--bkbg-mgc-st-text-decoration, none);
45 text-transform: var(--bkbg-mgc-st-text-transform, none);
46 line-height: var(--bkbg-mgc-st-line-height-d, 1.5);
47 letter-spacing: var(--bkbg-mgc-st-letter-spacing-d, normal);
48 word-spacing: var(--bkbg-mgc-st-word-spacing-d, normal);
49 margin: 0 0 24px 0;
50 }
51
52 /* ── Mode tabs ──────────────────────────────────────────── */
53 .bkbg-mgc-tabs {
54 display: flex;
55 gap: 8px;
56 flex-wrap: wrap;
57 margin-bottom: 20px;
58 }
59 .bkbg-mgc-tab {
60 padding: 8px 20px;
61 border-radius: 8px;
62 border: 2px solid #d1d5db;
63 background: #ffffff;
64 color: #374151;
65 font-size: 14px;
66 font-weight: 500;
67 cursor: pointer;
68 transition: all 0.18s ease;
69 white-space: nowrap;
70 }
71 .bkbg-mgc-tab:hover {
72 border-color: #10b981;
73 color: #10b981;
74 }
75 .bkbg-mgc-tab.active {
76 border-color: var(--mgc-accent, #10b981);
77 background: var(--mgc-accent, #10b981);
78 color: #ffffff;
79 font-weight: 700;
80 }
81
82 /* ── Inputs grid ────────────────────────────────────────── */
83 .bkbg-mgc-inputs {
84 display: grid;
85 grid-template-columns: 1fr 1fr;
86 gap: 14px;
87 margin-bottom: 22px;
88 }
89 @media (max-width: 500px) {
90 .bkbg-mgc-inputs { grid-template-columns: 1fr; }
91 }
92 .bkbg-mgc-field label {
93 display: block;
94 font-size: 13px;
95 font-weight: 600;
96 margin-bottom: 5px;
97 }
98 .bkbg-mgc-input {
99 width: 100%;
100 box-sizing: border-box;
101 border: 1.5px solid #e5e7eb;
102 border-radius: 8px;
103 padding: 10px 14px;
104 font-size: 15px;
105 font-family: inherit;
106 transition: border-color 0.18s;
107 outline: none;
108 -moz-appearance: textfield;
109 }
110 .bkbg-mgc-input:focus {
111 border-color: var(--mgc-accent, #10b981);
112 box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
113 }
114 .bkbg-mgc-input::-webkit-outer-spin-button,
115 .bkbg-mgc-input::-webkit-inner-spin-button {
116 -webkit-appearance: none;
117 }
118
119 /* ── Result cards ───────────────────────────────────────── */
120 .bkbg-mgc-cards {
121 display: grid;
122 grid-template-columns: repeat(2, 1fr);
123 gap: 12px;
124 margin-bottom: 20px;
125 }
126 @media (max-width: 440px) {
127 .bkbg-mgc-cards { grid-template-columns: 1fr; }
128 }
129 .bkbg-mgc-card {
130 border-radius: 10px;
131 padding: 14px 16px;
132 border-left: 4px solid var(--mgc-accent, #10b981);
133 transition: transform 0.15s;
134 }
135 .bkbg-mgc-card:hover {
136 transform: translateY(-2px);
137 }
138 .bkbg-mgc-card-label {
139 font-size: 11px;
140 font-weight: 600;
141 text-transform: uppercase;
142 letter-spacing: 0.06em;
143 color: #6b7280;
144 margin-bottom: 6px;
145 }
146 .bkbg-mgc-card-value {
147 font-size: 22px;
148 font-weight: 700;
149 line-height: 1.1;
150 }
151
152 /* ── Breakdown bar ──────────────────────────────────────── */
153 .bkbg-mgc-bar-section {
154 margin-bottom: 20px;
155 }
156 .bkbg-mgc-bar-heading {
157 font-size: 12px;
158 font-weight: 600;
159 margin-bottom: 7px;
160 }
161 .bkbg-mgc-bar-track {
162 display: flex;
163 border-radius: 8px;
164 overflow: hidden;
165 height: 28px;
166 }
167 .bkbg-mgc-bar-cost {
168 display: flex;
169 align-items: center;
170 justify-content: center;
171 color: #ffffff;
172 font-size: 11px;
173 font-weight: 700;
174 transition: width 0.4s ease;
175 min-width: 0;
176 overflow: hidden;
177 }
178 .bkbg-mgc-bar-profit {
179 display: flex;
180 align-items: center;
181 justify-content: center;
182 color: #ffffff;
183 font-size: 11px;
184 font-weight: 700;
185 transition: width 0.4s ease;
186 min-width: 0;
187 overflow: hidden;
188 }
189 .bkbg-mgc-bar-legend {
190 display: flex;
191 gap: 16px;
192 margin-top: 6px;
193 }
194 .bkbg-mgc-bar-legend span {
195 font-size: 12px;
196 font-weight: 600;
197 }
198
199 /* ── Margin health scale ────────────────────────────────── */
200 .bkbg-mgc-scale {
201 border-radius: 10px;
202 padding: 14px 16px;
203 border: 1.5px solid #e5e7eb;
204 margin-bottom: 8px;
205 }
206 .bkbg-mgc-scale-header {
207 display: flex;
208 justify-content: space-between;
209 align-items: center;
210 margin-bottom: 8px;
211 }
212 .bkbg-mgc-scale-label {
213 font-size: 13px;
214 font-weight: 600;
215 }
216 .bkbg-mgc-scale-status {
217 font-size: 13px;
218 font-weight: 700;
219 }
220 .bkbg-mgc-scale-track {
221 background: #e5e7eb;
222 border-radius: 999px;
223 height: 8px;
224 overflow: hidden;
225 }
226 .bkbg-mgc-scale-fill {
227 height: 100%;
228 border-radius: 999px;
229 transition: width 0.4s ease, background 0.3s;
230 }
231 .bkbg-mgc-scale-ticks {
232 display: flex;
233 justify-content: space-between;
234 margin-top: 4px;
235 }
236 .bkbg-mgc-scale-ticks span {
237 font-size: 11px;
238 color: #9ca3af;
239 }
240
241 /* ── Error state ────────────────────────────────────────── */
242 .bkbg-mgc-error {
243 background: #fef2f2;
244 border: 1.5px solid #fca5a5;
245 border-radius: 8px;
246 padding: 12px 16px;
247 color: #dc2626;
248 font-size: 14px;
249 font-weight: 500;
250 margin-bottom: 16px;
251 }
252
253 /* ── Animations ─────────────────────────────────────────── */
254 @keyframes bkbg-mgc-fadein {
255 from { opacity: 0; transform: translateY(8px); }
256 to { opacity: 1; transform: translateY(0); }
257 }
258 .bkbg-mgc-cards,
259 .bkbg-mgc-bar-section,
260 .bkbg-mgc-scale {
261 animation: bkbg-mgc-fadein 0.3s ease both;
262 }
263
264 /* ── Responsive typography ──────────────────────────────── */
265 @media (max-width: 1024px) {
266 .bkbg-mgc-title,
267 .bkbg-mgc-wrap h3.bkbg-mgc-title { font-size: var(--bkbg-mgc-tt-font-size-t, 26px); line-height: var(--bkbg-mgc-tt-line-height-t, 1.2); letter-spacing: var(--bkbg-mgc-tt-letter-spacing-t, normal); word-spacing: var(--bkbg-mgc-tt-word-spacing-t, normal); }
268 .bkbg-mgc-subtitle { font-size: var(--bkbg-mgc-st-font-size-t, 14px); line-height: var(--bkbg-mgc-st-line-height-t, 1.5); letter-spacing: var(--bkbg-mgc-st-letter-spacing-t, normal); word-spacing: var(--bkbg-mgc-st-word-spacing-t, normal); }
269 }
270 @media (max-width: 767px) {
271 .bkbg-mgc-title,
272 .bkbg-mgc-wrap h3.bkbg-mgc-title { font-size: var(--bkbg-mgc-tt-font-size-m, 26px); line-height: var(--bkbg-mgc-tt-line-height-m, 1.2); letter-spacing: var(--bkbg-mgc-tt-letter-spacing-m, normal); word-spacing: var(--bkbg-mgc-tt-word-spacing-m, normal); }
273 .bkbg-mgc-subtitle { font-size: var(--bkbg-mgc-st-font-size-m, 14px); line-height: var(--bkbg-mgc-st-line-height-m, 1.5); letter-spacing: var(--bkbg-mgc-st-letter-spacing-m, normal); word-spacing: var(--bkbg-mgc-st-word-spacing-m, normal); }
274 }
275