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 / stock-ticker / style.css

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

232 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ── stock-ticker block ─────────────────────────────────────────── */
2
3 .bkbg-st-wrap {
4 font-family: var(--bkstk-tx-font-family, inherit);
5 font-size: var(--bkstk-tx-font-size-d, 14px);
6 line-height: var(--bkstk-tx-line-height-d, var(--bkstk-tx-lh, 1.4));
7 letter-spacing: var(--bkstk-tx-letter-spacing-d, normal);
8 word-spacing: var(--bkstk-tx-word-spacing-d, normal);
9 font-weight: var(--bkstk-tx-font-weight, var(--bkstk-tx-fw, 600));
10 font-style: var(--bkstk-tx-font-style, normal);
11 text-decoration: var(--bkstk-tx-text-decoration, none);
12 text-transform: var(--bkstk-tx-text-transform, none);
13 width: 100%;
14 overflow: hidden;
15 box-sizing: border-box;
16 }
17
18 /* Responsive – typography */
19 @media (max-width: 1024px) {
20 .bkbg-st-wrap {
21 font-size: var(--bkstk-tx-font-size-t, var(--bkstk-tx-font-size-d, 14px));
22 line-height: var(--bkstk-tx-line-height-t, var(--bkstk-tx-line-height-d, var(--bkstk-tx-lh, 1.4)));
23 letter-spacing: var(--bkstk-tx-letter-spacing-t, var(--bkstk-tx-letter-spacing-d, normal));
24 word-spacing: var(--bkstk-tx-word-spacing-t, var(--bkstk-tx-word-spacing-d, normal));
25 }
26 }
27 @media (max-width: 767px) {
28 .bkbg-st-wrap {
29 font-size: var(--bkstk-tx-font-size-m, var(--bkstk-tx-font-size-t, var(--bkstk-tx-font-size-d, 14px)));
30 line-height: var(--bkstk-tx-line-height-m, var(--bkstk-tx-line-height-t, var(--bkstk-tx-line-height-d, var(--bkstk-tx-lh, 1.4))));
31 letter-spacing: var(--bkstk-tx-letter-spacing-m, var(--bkstk-tx-letter-spacing-t, var(--bkstk-tx-letter-spacing-d, normal)));
32 word-spacing: var(--bkstk-tx-word-spacing-m, var(--bkstk-tx-word-spacing-t, var(--bkstk-tx-word-spacing-d, normal)));
33 }
34 }
35
36 /* ── Ticker strip ─────────────────────────────────────────────── */
37 .bkbg-st-ticker-outer {
38 overflow: hidden;
39 position: relative;
40 display: flex;
41 align-items: center;
42 }
43
44 .bkbg-st-live-badge {
45 display: flex;
46 align-items: center;
47 gap: 6px;
48 padding: 0 14px;
49 font-size: 11px;
50 font-weight: 700;
51 letter-spacing: 0.1em;
52 flex-shrink: 0;
53 white-space: nowrap;
54 height: 100%;
55 align-self: stretch;
56 }
57
58 .bkbg-st-live-dot {
59 width: 6px;
60 height: 6px;
61 border-radius: 50%;
62 background: currentColor;
63 animation: bkbg-st-blink 1.2s ease-in-out infinite;
64 }
65
66 @keyframes bkbg-st-blink {
67 0%, 100% { opacity: 1; }
68 50% { opacity: 0.2; }
69 }
70
71 .bkbg-st-ticker-track {
72 display: flex;
73 align-items: center;
74 gap: 0;
75 white-space: nowrap;
76 animation: bkbg-st-scroll linear infinite;
77 }
78
79 .bkbg-st-ticker-track.bkbg-st-paused {
80 animation-play-state: paused;
81 }
82
83 @keyframes bkbg-st-scroll {
84 from { transform: translateX(0); }
85 to { transform: translateX(-50%); }
86 }
87
88 .bkbg-st-item {
89 display: inline-flex;
90 align-items: center;
91 gap: 6px;
92 padding: 0 28px;
93 }
94
95 .bkbg-st-icon {
96 flex-shrink: 0;
97 }
98
99 .bkbg-st-img-icon {
100 width: 20px;
101 height: 20px;
102 border-radius: 50%;
103 vertical-align: middle;
104 flex-shrink: 0;
105 }
106
107 .bkbg-st-symbol {
108 font-weight: 700;
109 }
110
111 /* .bkbg-st-price, .bkbg-st-change-up, .bkbg-st-change-down — colors set via inline style */
112
113 .bkbg-st-sep {
114 opacity: 0.2;
115 margin-left: 4px;
116 }
117
118 /* ── Cards layout ─────────────────────────────────────────────── */
119 .bkbg-st-cards {
120 display: grid;
121 gap: 12px;
122 }
123
124 .bkbg-st-card {
125 border-radius: inherit;
126 padding: 16px;
127 transition: transform 0.18s, box-shadow 0.18s;
128 }
129
130 .bkbg-st-card:hover {
131 transform: translateY(-2px);
132 box-shadow: 0 8px 24px rgba(0,0,0,0.3);
133 }
134
135 .bkbg-st-card-header {
136 display: flex;
137 align-items: center;
138 gap: 10px;
139 margin-bottom: 10px;
140 }
141
142 .bkbg-st-card-icon {
143 width: 28px;
144 height: 28px;
145 border-radius: 50%;
146 }
147
148 .bkbg-st-card-name {
149 font-weight: 700;
150 line-height: 1.2;
151 }
152
153 .bkbg-st-card-sym {
154 font-size: 11px;
155 opacity: 0.5;
156 text-transform: uppercase;
157 }
158
159 .bkbg-st-card-price {
160 font-weight: 700;
161 }
162
163 .bkbg-st-card-change {
164 margin-top: 4px;
165 font-size: 13px;
166 }
167
168 .bkbg-st-card-meta {
169 display: flex;
170 gap: 12px;
171 margin-top: 8px;
172 font-size: 11px;
173 opacity: 0.6;
174 }
175
176 /* ── Table layout ─────────────────────────────────────────────── */
177 .bkbg-st-table-wrap {
178 overflow-x: auto;
179 border-radius: inherit;
180 }
181
182 .bkbg-st-table {
183 width: 100%;
184 border-collapse: collapse;
185 font-size: inherit;
186 }
187
188 .bkbg-st-table th,
189 .bkbg-st-table td {
190 padding: 10px 14px;
191 text-align: right;
192 white-space: nowrap;
193 }
194
195 .bkbg-st-table th:first-child,
196 .bkbg-st-table td:first-child {
197 text-align: left;
198 }
199
200 .bkbg-st-table tbody tr:hover {
201 background: rgba(255,255,255,0.04);
202 }
203
204 /* ── Status / loading ─────────────────────────────────────────── */
205 .bkbg-st-loading {
206 text-align: center;
207 padding: 20px;
208 opacity: 0.5;
209 font-size: 13px;
210 animation: bkbg-st-pulse 1.5s ease-in-out infinite;
211 }
212
213 @keyframes bkbg-st-pulse {
214 0%, 100% { opacity: 0.5; }
215 50% { opacity: 1; }
216 }
217
218 .bkbg-st-error {
219 color: #f87171;
220 text-align: center;
221 padding: 16px;
222 font-size: 13px;
223 }
224
225 .bkbg-st-footer {
226 font-size: 10px;
227 text-align: right;
228 opacity: 0.35;
229 padding: 4px 8px;
230 letter-spacing: 0.04em;
231 }
232