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 / code-tabs / style.css

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

264 lines 6.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* =====================================================
2 Code Tabs – bkbg-ctabs-*
3 ===================================================== */
4
5 .bkbg-ctabs-wrap {
6 font-family: inherit;
7 box-sizing: border-box;
8 }
9
10 /* ---- Browser chrome bar ---- */
11 .bkbg-ctabs-chrome {
12 display: flex;
13 align-items: center;
14 gap: 12px;
15 padding: 10px 16px;
16 flex-wrap: wrap;
17 position: relative;
18 }
19
20 .bkbg-ctabs-dots {
21 display: flex;
22 gap: 6px;
23 flex-shrink: 0;
24 align-items: center;
25 }
26
27 .bkbg-ctabs-dot {
28 width: 12px;
29 height: 12px;
30 border-radius: 50%;
31 }
32
33 /* ---- Tab bar ---- */
34 .bkbg-ctabs-tabbar {
35 display: flex;
36 align-items: center;
37 gap: 6px;
38 flex: 1;
39 overflow-x: auto;
40 scrollbar-width: thin;
41 scrollbar-color: rgba(255,255,255,0.15) transparent;
42 padding-bottom: 2px;
43 }
44
45 .bkbg-ctabs-tabbar::-webkit-scrollbar {
46 height: 4px;
47 }
48
49 .bkbg-ctabs-tabbar::-webkit-scrollbar-thumb {
50 border-radius: 2px;
51 background: rgba(255,255,255,0.15);
52 }
53
54 /* Tab alignment */
55 .bkbg-ctabs-tabbar.is-center {
56 justify-content: center;
57 }
58
59 .bkbg-ctabs-tabbar.is-right {
60 justify-content: flex-end;
61 }
62
63 /* ---- Individual tab ---- */
64 .bkbg-ctabs-tab {
65 padding: 5px 14px;
66 border: none;
67 cursor: pointer;
68 font-family: ui-monospace, SFMono-Regular, "Fira Code", monospace;
69 font-size: 12px;
70 font-weight: 400;
71 white-space: nowrap;
72 transition: background 0.15s, color 0.15s, border-color 0.15s;
73 line-height: 1.4;
74 outline: none;
75 flex-shrink: 0;
76 }
77
78 /* Pill style */
79 .bkbg-ctabs-wrap[data-tab-style="pills"] .bkbg-ctabs-tab {
80 border-radius: 20px;
81 }
82
83 /* Button style */
84 .bkbg-ctabs-wrap[data-tab-style="buttons"] .bkbg-ctabs-tab {
85 border-radius: 6px;
86 }
87
88 /* Underline style */
89 .bkbg-ctabs-wrap[data-tab-style="underline"] .bkbg-ctabs-tab {
90 border-radius: 0;
91 border-bottom: 2px solid transparent;
92 background: transparent !important;
93 padding-bottom: 8px;
94 }
95
96 .bkbg-ctabs-wrap[data-tab-style="underline"] .bkbg-ctabs-tab.is-active {
97 background: transparent !important;
98 }
99
100 .bkbg-ctabs-tab:focus-visible {
101 outline: 2px solid rgba(99,102,241,0.6);
102 outline-offset: 2px;
103 }
104
105 /* ---- Filename / lang badge ---- */
106 .bkbg-ctabs-filename {
107 margin-left: auto;
108 font-size: 11px;
109 font-family: ui-monospace, SFMono-Regular, monospace;
110 opacity: 0.5;
111 flex-shrink: 0;
112 }
113
114 .bkbg-ctabs-lang {
115 font-size: 10px;
116 font-weight: 700;
117 padding: 2px 8px;
118 border-radius: 4px;
119 text-transform: uppercase;
120 letter-spacing: 0.05em;
121 font-family: ui-monospace, SFMono-Regular, monospace;
122 flex-shrink: 0;
123 background: rgba(255,255,255,0.08);
124 }
125
126 /* ---- Code body ---- */
127 .bkbg-ctabs-body {
128 overflow-x: auto;
129 position: relative;
130 scrollbar-width: thin;
131 scrollbar-color: rgba(255,255,255,0.12) transparent;
132 }
133
134 .bkbg-ctabs-body::-webkit-scrollbar {
135 height: 6px;
136 width: 6px;
137 }
138
139 .bkbg-ctabs-body::-webkit-scrollbar-thumb {
140 border-radius: 3px;
141 background: rgba(255,255,255,0.12);
142 }
143
144 .bkbg-ctabs-inner {
145 padding: 16px;
146 font-family: ui-monospace, SFMono-Regular, "Fira Code", monospace;
147 }
148
149 /* ---- Code panel (one per tab) ---- */
150 .bkbg-ctabs-panel {
151 display: none;
152 min-width: max-content;
153 }
154
155 .bkbg-ctabs-panel.is-active {
156 display: block;
157 }
158
159 /* ---- Line row ---- */
160 .bkbg-ctabs-line {
161 display: flex;
162 align-items: flex-start;
163 }
164
165 .bkbg-ctabs-linenum {
166 user-select: none;
167 min-width: 40px;
168 padding-right: 16px;
169 text-align: right;
170 flex-shrink: 0;
171 opacity: 0.5;
172 }
173
174 .bkbg-ctabs-code {
175 flex: 1;
176 white-space: pre;
177 }
178
179 /* ---- Copy button ---- */
180 .bkbg-ctabs-copy {
181 position: absolute;
182 top: 12px;
183 right: 14px;
184 border: none;
185 border-radius: 6px;
186 padding: 4px 12px;
187 font-size: 11px;
188 font-family: ui-monospace, SFMono-Regular, monospace;
189 cursor: pointer;
190 opacity: 0;
191 transition: opacity 0.15s;
192 z-index: 2;
193 pointer-events: none;
194 }
195
196 .bkbg-ctabs-body:hover .bkbg-ctabs-copy,
197 .bkbg-ctabs-copy:focus {
198 opacity: 1;
199 pointer-events: auto;
200 }
201
202 .bkbg-ctabs-copy.is-copied {
203 opacity: 1;
204 pointer-events: auto;
205 }
206
207 /* =====================================================
208 Light theme overrides (via .bkbg-ctabs-wrap.theme-light)
209 ===================================================== */
210 .bkbg-ctabs-wrap.theme-light .bkbg-ctabs-code,
211 .bkbg-ctabs-wrap.theme-github-light .bkbg-ctabs-code,
212 .bkbg-ctabs-wrap.theme-solarized-light .bkbg-ctabs-code {
213 color: #1f2328;
214 }
215
216 /* =====================================================
217 Responsive
218 ===================================================== */
219 @media (max-width: 600px) {
220 .bkbg-ctabs-filename {
221 display: none;
222 }
223 }
224
225 /* =====================================================
226 Typography — CSS-var driven
227 ===================================================== */
228 .bkbg-ctabs-inner {
229 font-size: var(--bkbg-ctabs-cd-font-size-d, 13px);
230 line-height: var(--bkbg-ctabs-cd-line-height-d, 1.65);
231 font-family: var(--bkbg-ctabs-cd-font-family, ui-monospace, SFMono-Regular, "Fira Code", monospace);
232 font-weight: var(--bkbg-ctabs-cd-font-weight, 400);
233 font-style: var(--bkbg-ctabs-cd-font-style, normal);
234 text-transform: var(--bkbg-ctabs-cd-text-transform, none);
235 text-decoration: var(--bkbg-ctabs-cd-text-decoration, none);
236 letter-spacing: var(--bkbg-ctabs-cd-letter-spacing-d, normal);
237 word-spacing: var(--bkbg-ctabs-cd-word-spacing-d, normal);
238 }
239
240 @media (max-width: 1024px) {
241 .bkbg-ctabs-inner {
242 font-size: var(--bkbg-ctabs-cd-font-size-t, var(--bkbg-ctabs-cd-font-size-d, 13px));
243 line-height: var(--bkbg-ctabs-cd-line-height-t, var(--bkbg-ctabs-cd-line-height-d, 1.65));
244 letter-spacing: var(--bkbg-ctabs-cd-letter-spacing-t, var(--bkbg-ctabs-cd-letter-spacing-d, normal));
245 word-spacing: var(--bkbg-ctabs-cd-word-spacing-t, var(--bkbg-ctabs-cd-word-spacing-d, normal));
246 }
247 }
248
249 @media (max-width: 767px) {
250 .bkbg-ctabs-inner {
251 font-size: var(--bkbg-ctabs-cd-font-size-m, var(--bkbg-ctabs-cd-font-size-t, var(--bkbg-ctabs-cd-font-size-d, 13px)));
252 line-height: var(--bkbg-ctabs-cd-line-height-m, var(--bkbg-ctabs-cd-line-height-t, var(--bkbg-ctabs-cd-line-height-d, 1.65)));
253 letter-spacing: var(--bkbg-ctabs-cd-letter-spacing-m, var(--bkbg-ctabs-cd-letter-spacing-t, var(--bkbg-ctabs-cd-letter-spacing-d, normal)));
254 word-spacing: var(--bkbg-ctabs-cd-word-spacing-m, var(--bkbg-ctabs-cd-word-spacing-t, var(--bkbg-ctabs-cd-word-spacing-d, normal)));
255 }
256 }
257
258 /* =====================================================
259 Editor preview – inside Gutenberg
260 ===================================================== */
261 .wp-block-blockenberg-code-tabs .bkbg-ctabs-app {
262 display: none;
263 }
264