PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.7
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / components / typography / editor.scss

editor.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.7, at src/components/typography/editor.scss

400 lines 8.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-smart-post-typography {
2 .sp-smart-post-typography-trigger {
3 .components-button {
4 color: #ffffff;
5
6 &.active {
7 svg {
8 border-radius: 4px;
9 fill: var(--sp-smart-primary-2-400);
10
11 rect {
12 stroke: var(--sp-smart-primary-2-400);
13 }
14 path {
15 stroke: #fff;
16 }
17 }
18 }
19 }
20 p{
21 margin-bottom: 0;
22 }
23 }
24 }
25
26 .sp-smart-post-typography-fonts {
27 width: 360px;
28 padding: 0px 20px 10px;
29 position: relative;
30
31 .sp-smart-post-toggle-button-group {
32 border-color: #d7dade;
33
34 &::before {
35 background: var(--sp-smart-primary-2-400);
36 }
37 }
38
39 #font-picker {
40 width: 100%;
41 margin-bottom: 15px;
42 box-shadow: 0px 0px 3px rgb(0 0 0 / 20%);
43 }
44
45 .sp-smart-post-typography-header {
46 display: flex;
47 align-items: center;
48 justify-content: space-between;
49 margin-bottom: 10px;
50 border-radius: 6px 6px 0px 0px;
51 padding: 12px 0;
52 margin-right: -20px;
53 margin-left: -20px;
54 box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
55 position: sticky;
56 top: 0;
57 left: 0;
58 background-color: #f2f2f2;
59 z-index: 999;
60
61 h4 {
62 font-size: 13px;
63 font-weight: 500;
64 color: #2f2f2f;
65 margin: 0 16px;
66 }
67
68 .components-button {
69 color: #fff;
70 margin-right: 16px;
71 }
72 }
73
74 div[id^="font-picker"]^="font-picker""] .dropdown-button,
75 div[id^="font-picker"]^="font-picker""] .dropdown-button:hover,
76 div[id^="font-picker"]^="font-picker""] ul,
77 div[id^="font-picker"]^="font-picker""] .dropdown-button:focus {
78 background: #fff;
79 }
80
81 div[id^="font-picker"]^="font-picker""] ul li button:hover,
82 div[id^="font-picker"]^="font-picker""] ul li button:focus,
83 div[id^="font-picker"]^="font-picker""] ul li button.active-font {
84 background: #f3f3f3;
85 }
86
87 .css-19bb58m {
88 margin: 0;
89 padding: 0;
90 }
91
92 .css-t3ipsp-control:hover,
93 .css-t3ipsp-control {
94 box-shadow: none;
95 border-color: #ccc;
96 }
97
98 .css-tr4s17-option {
99 background-color: #f0f0f0;
100 color: #2f2f2f;
101 }
102
103 .sp-smart-post-typography-family {
104 width: 50%;
105 }
106
107 .sp-smart-post-typography-fields>.sp-smart-post-select-field {
108 width: 50%;
109
110 .css-t3ipsp-control {
111 min-height: 32px;
112 height: 32px;
113 }
114 }
115
116 .sp-smart-post-select-field {
117 &> div:nth-of-type(2) {
118 margin-top: 8px;
119 }
120 .sp-smart-post-select-react {
121 margin-top: 8px;
122 }
123
124
125 .css-t3ipsp-control,
126 .css-13cymwt-control,
127 .components-select-control__input {
128 min-height: 32px !important;
129 height: 32px !important;
130 align-content: center;
131 }
132 }
133
134 .components-input-control__backdrop {
135 border-color: #ccc !important;
136 }
137
138 .components-select-control__input {
139 height: 32px !important;
140 min-height: 32px;
141 }
142
143 input[type="text"]="text""]:focus {
144 box-shadow: none;
145 outline: none;
146 }
147
148 .css-1u9des2-indicatorSeparator {
149 display: none;
150 }
151
152 .components-range-control__thumb-wrapper span {
153 background-color: var(--sp-smart-primary-2-400);
154 }
155
156 .components-range-control__thumb-wrapper span::after,
157 .components-range-control__thumb-wrapper span::before {
158 background-color: var(--sp-smart-primary-2-400);
159 }
160
161 .sp-smart-post-toggle-button-group {
162 border-color: #d7dade;
163
164 &-list {
165 display: flex;
166 width: 100%;
167
168 button.active {
169
170 // color: #fff;
171 svg {
172 fill: #fff;
173
174 path {
175 stroke: #fff;
176 }
177 }
178 }
179
180 button.active+div div {
181 background: var(--sp-smart-primary-2-400);
182 }
183 }
184
185 &:focus-within {
186 box-shadow: none;
187 border-color: #d7dade;
188 }
189
190 &:hover {
191 border-color: #d7dade;
192 }
193
194 button {
195 svg {
196 fill: #777;
197 }
198 }
199 }
200 }
201
202 .components-popover__content:has(.sp-smart-post-typography-fonts) {
203 box-shadow: -4px 4px 12px 2px rgba(0, 0, 0, 0.1);
204 border: 1px solid #dddddd;
205 border-radius: 6px;
206 }
207
208 .sp-smart-post-typography-multiple-button-group button:not(:last-child) span {
209 border-right: 1px solid #ddd;
210 width: 100%;
211 height: 70%;
212 display: flex;
213 align-items: center;
214 justify-content: center;
215 }
216
217 .sp-smart-post-typography-multiple-button-group button.active:not(:last-child) span {
218 border-right-color: var(--sp-smart-primary-2-400);
219 }
220
221 .sp-smart-post-typography-multiple-button-group button:has(+ button.active) span {
222 border-right-color: transparent;
223 }
224
225 .sp-smart-post-typography-fields {
226 display: flex;
227 // justify-content: space-between;
228 gap: 8px;
229
230 .css-1nmdiq5-menu {
231 width: 200px;
232 z-index: 999;
233 }
234 }
235
236 .sp-smart-post-typography-fields .sp-smart-post-select-field {
237 flex-direction: column;
238 }
239
240 .sp-smart-post-typography-fields {
241 flex-direction: row;
242
243 .css-1u9des2-indicatorSeparator {
244 display: none;
245 }
246 }
247
248 .sp-smart-post-typography-fonts {
249
250 .sp-smart-post-typography-line-height-picker,
251 .sp-smart-post-typography-letter-spacing-picker {
252 width: 50%;
253
254 .sp-smart-post-header-control-right input.components-input-control__input {
255 min-width: 156px;
256 }
257 }
258 }
259
260 .sp-smart-post-typography-font-size-presets {
261 display: flex;
262 align-items: center;
263 justify-content: space-between;
264 gap: 8px;
265
266 button.components-button {
267 border-radius: 4px;
268 // transition: 0.3s;
269 padding: 1px;
270 height: 26px;
271
272 &:focus:not(:disabled) {
273 box-shadow: none;
274 }
275
276 svg {
277 fill: none;
278 }
279 }
280
281 &.active button.components-button:focus,
282 &.active button.components-button {
283 box-shadow: none;
284
285 // outline: 2px solid var(--sp-smart-primary-2-400) !important;
286 // padding: 1px;
287 svg {
288 fill: var(--sp-smart-primary-2-400);
289 rect {
290 stroke: var(--sp-smart-primary-2-400);
291 }
292 }
293 }
294
295 &.active {
296
297 .components-base-control,
298 .components-base-control__field {
299 margin-bottom: 0 !important;
300 }
301 .components-input-control .components-input-base {
302 min-height: 32px;
303 height: 32px;
304 input::-webkit-inner-spin-button {
305 min-height: 33px;
306 margin-right: -11px;
307 cursor: pointer;
308 }
309 }
310 }
311
312 .components-base-control {
313 flex: 1;
314
315 .components-range-control__wrapper {
316 flex: auto;
317 }
318 }
319 }
320
321 .sp-smart-post-typography-multiple-button-group {
322 width: 100%;
323
324 .sp-smart-post-component-title {
325 margin-bottom: 0;
326 }
327
328 .components-toggle-group-control::before {
329 background: var(--sp-smart-primary-2-400) !important;
330 }
331
332 .components-toggle-group-control-option-base[aria-checked="true"]="true""] svg {
333 fill: currentColor;
334 outline: none;
335
336 path {
337 fill: #fff;
338 }
339 }
340
341 .components-toggle-group-control-option-base[aria-checked="false"]="false""] {
342 background: #fff;
343 }
344 }
345 .sp-d-flex {
346 display: flex;
347 }
348 .sp-gap-8px {
349 gap: 8px;
350 }
351 .sp-smart-post-typography-multiple-button-group {
352 .sp-smart-post-button-group-list {
353 align-items: center;
354 border: 1px solid #ddd;
355 border-radius: 2px;
356 display: flex;
357 gap: 2px;
358 height: 40px;
359 padding: 4px 3px;
360 width: 100%;
361
362 button {
363 background-color: #fff;
364 box-shadow: none;
365 color: #2f2f2f;
366 justify-content: center;
367 padding: 0;
368 position: relative;
369 width: 100%;
370 width: calc(100% - 4px);
371
372 &.active {
373 background-color: var(--sp-smart-primary-2-50);
374 border-radius: 2px;
375 color: var(--sp-smart-primary-2-600);
376 height: 100%;
377 border: 1px solid var(--sp-smart-primary-2-100) !important;
378
379 span {
380 border-right: none;
381 }
382
383 svg path {
384 fill: var(--sp-smart-primary-2-600);
385 }
386 }
387 }
388 }
389 }
390 .sp-smart-post-typography-word-spacing-latter-spacing-wrapper {
391 input[type="number"]="number""].components-input-control__input {
392 text-align: center;
393 min-height: 32px;
394 height: 32px;
395 font-size: 14px;
396 }
397 .sp-smart-post-component-title {
398 margin-bottom: 0;
399 }
400 }