PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
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 / blocks / table-of-content / style.scss

style.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/blocks/table-of-content/style.scss

826 lines 16.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-table-of-content-toc .sps-toc-title {
2 transition: all 0.3s;
3 display: block;
4 }
5
6
7 .sp-table-of-content-toc .sps-toc-wrapper {
8 transition: all 0.4s;
9 }
10
11 .sps-toc-list,
12 .sps-toc-sublist {
13 list-style-type: none;
14 padding-inline-start: 0px;
15 margin: 0;
16 }
17
18 .sps-toc-item {
19 position: relative;
20 }
21
22 .sps-toc-link {
23 text-decoration: none;
24 color: inherit;
25 display: block;
26 padding: 5px 0;
27 transition: all 0.2s ease;
28 }
29
30 //......................................
31 /* Base styles for all list types */
32 .sps-toc-list,
33 .sps-toc-sublist {
34 margin: 0;
35 }
36
37 /* None style */
38 .sp-table-of-content-toc .sps-toc-style-none {
39 list-style: none !important;
40 padding-left: 0;
41 }
42
43 .sp-table-of-content-toc .sps-toc-style-none .sps-toc-sublist {
44 list-style: none !important;
45 padding-left: 0;
46 }
47
48 .sp-table-of-content-toc .sps-toc-style-none .sps-toc-number {
49 display: none;
50 }
51
52
53 .sp-table-of-content-toc:not(:has(.presetTwo)):not(:has(.presetFive)) .sps-toc-style-bullet {
54 list-style: disc;
55 padding-left: 1.5em;
56 }
57
58
59
60 .sp-table-of-content-toc:not(:has(.presetTwo)):not(:has(.presetFive)) .sps-toc-style-bullet .sps-toc-sublist {
61 list-style: disc;
62 }
63
64
65 .presetTwo .sps-toc-style-bullet .sps-toc-link-wrapper,
66 .presetFive .sps-toc-style-bullet .sps-toc-link-wrapper {
67 padding: 2px 1px 1px 28px;
68 border-radius: 6px;
69 list-style: none;
70 /* Remove default bullets */
71 position: relative;
72 }
73
74 .presetTwo .sps-toc-style-bullet .sps-toc-link-wrapper::before,
75 .presetFive .sps-toc-style-bullet .sps-toc-link-wrapper::before {
76 content: "•";
77 /* Custom bullet */
78 position: absolute;
79 left: 8px;
80 /* Position bullet inside padding */
81 color: #333;
82 /* Bullet color */
83 font-weight: bold;
84 }
85
86 .sp-table-of-content-toc .sps-toc-style-bullet .sps-toc-number {
87 display: none;
88 }
89
90
91 /* Decimal style (multi-level) - 1., 1.1., 1.2., 1.2.1. */
92 .sp-table-of-content-toc .sps-toc-style-decimal {
93 list-style: none;
94 counter-reset: item;
95 padding-left: 0;
96 }
97
98 .sp-table-of-content-toc .sps-toc-style-decimal .sps-toc-item {
99 counter-increment: item;
100 position: relative;
101 list-style: none;
102 // padding-left: 1.5em;
103 }
104
105 .sp-table-of-content-toc .sps-toc-style-decimal .sps-toc-item .sps-toc-number::before {
106 content: counters(item, ".") ". ";
107 font-weight: 600;
108 position: absolute;
109 left: 0;
110 // padding-left: 10px;
111 padding-left: 2px;
112 }
113
114 .sp-table-of-content-toc .sps-toc-style-decimal .sps-toc-sublist {
115 list-style: none;
116 counter-reset: item;
117 // margin-top: 0.5em;
118 // padding-left: 1.5em;
119 }
120
121 .sp-table-of-content-toc .sps-toc-style-decimal .sps-toc-sublist .sps-toc-item {
122 counter-increment: item;
123 position: relative;
124 }
125
126 /* Numeric Outline (1. a. b. i.) */
127 .sp-table-of-content-toc .sps-toc-style-numericOutline {
128 list-style: none;
129 counter-reset: toc-counter-0;
130 padding-left: 0;
131 }
132
133 .sp-table-of-content-toc .sps-toc-style-numericOutline .sps-toc-item {
134 position: relative;
135 list-style: none;
136 }
137
138 /* Level 0 (1, 2, 3...) */
139 .sps-toc-style-numericOutline .sps-toc-item[data-depth="0"]="0""] {
140 counter-increment: toc-counter-0;
141 }
142
143 .sps-toc-style-numericOutline .sps-toc-item[data-depth="0"]="0""] .sps-toc-number::before {
144 content: counter(toc-counter-0, decimal) ". ";
145 position: absolute;
146 left: 0;
147 font-weight: 600;
148 // padding-left: 10px;
149 padding-left: 2px;
150 }
151
152 /* Level 1 (a, b, c...) */
153 .sps-toc-style-numericOutline .sps-toc-sublist {
154 list-style: none;
155 counter-reset: toc-counter-1;
156 }
157
158 .sps-toc-style-numericOutline .sps-toc-item[data-depth="1"]="1""] {
159 counter-increment: toc-counter-1;
160 }
161
162 .sps-toc-style-numericOutline .sps-toc-item[data-depth="1"]="1""] .sps-toc-number::before {
163 content: counter(toc-counter-1, lower-alpha) ". ";
164 position: absolute;
165 left: 0;
166 font-weight: 600;
167 padding-left: 10px;
168 }
169
170 /* Level 2 (i, ii, iii...) */
171 .sps-toc-style-numericOutline .sps-toc-sublist .sps-toc-sublist {
172 counter-reset: toc-counter-2;
173 }
174
175 .sps-toc-style-numericOutline .sps-toc-item[data-depth="2"]="2""] {
176 counter-increment: toc-counter-2;
177 }
178
179 .sps-toc-style-numericOutline .sps-toc-item[data-depth="2"]="2""] .sps-toc-number::before {
180 content: counter(toc-counter-2, lower-roman) ". ";
181 position: absolute;
182 left: 0;
183 font-weight: 600;
184 }
185
186 /* Level 3 (A, B, C...) - optional if needed */
187 .sps-toc-style-numericOutline .sps-toc-sublist .sps-toc-sublist .sps-toc-sublist {
188 counter-reset: toc-counter-3;
189 }
190
191 .sps-toc-style-numericOutline .sps-toc-item[data-depth="3"]="3""] {
192 counter-increment: toc-counter-3;
193 }
194
195 .sps-toc-style-numericOutline .sps-toc-item[data-depth="3"]="3""] .sps-toc-number::before {
196 content: counter(toc-counter-3, lower-alpha) ". ";
197 position: absolute;
198 left: 0;
199 font-weight: 600;
200 }
201
202 /* Roman - Alphabetic Mix (I. A. 1.) */
203 .sp-table-of-content-toc .sps-toc-style-romanAlphabeticMix {
204 list-style: none;
205 counter-reset: toc-counter-0;
206 padding-left: 0;
207 }
208
209 .sp-table-of-content-toc .sps-toc-style-romanAlphabeticMix .sps-toc-item {
210 position: relative;
211 list-style: none;
212 }
213
214 /* Level 0 (I, II, III...) */
215 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="0"]="0""] {
216 counter-increment: toc-counter-0;
217 }
218
219 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="0"]="0""] .sps-toc-number::before {
220 content: counter(toc-counter-0, lower-roman) ". ";
221 position: absolute;
222 left: 0;
223 font-weight: 600;
224 padding-left: 10px;
225 }
226
227 /* Level 1 (A, B, C...) */
228 .sps-toc-style-romanAlphabeticMix .sps-toc-sublist {
229 list-style: none;
230 counter-reset: toc-counter-1;
231 }
232
233 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="1"]="1""] {
234 counter-increment: toc-counter-1;
235 }
236
237 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="1"]="1""] .sps-toc-number::before {
238 content: counter(toc-counter-1, lower-alpha) ". ";
239 position: absolute;
240 left: 0;
241 font-weight: 600;
242 }
243
244 /* Level 2 (1, 2, 3...) */
245 .sps-toc-style-romanAlphabeticMix .sps-toc-sublist .sps-toc-sublist {
246 counter-reset: toc-counter-2;
247 }
248
249 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="2"]="2""] {
250 counter-increment: toc-counter-2;
251 }
252
253 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="2"]="2""] .sps-toc-number::before {
254 content: counter(toc-counter-2, decimal) ". ";
255 position: absolute;
256 left: 0;
257 font-weight: 600;
258 }
259
260 /* Level 3 (a, b, c...) - optional if needed */
261 .sps-toc-style-romanAlphabeticMix .sps-toc-sublist .sps-toc-sublist .sps-toc-sublist {
262 counter-reset: toc-counter-3;
263 }
264
265 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="3"]="3""] {
266 counter-increment: toc-counter-3;
267 }
268
269 .sps-toc-style-romanAlphabeticMix .sps-toc-item[data-depth="3"]="3""] .sps-toc-number::before {
270 content: counter(toc-counter-3, lower-alpha) ". ";
271 position: absolute;
272 left: 0;
273 font-weight: 600;
274 }
275
276
277 /* Padded Numbers (01. a. b. i.) */
278 .sp-table-of-content-toc .sps-toc-style-paddedNumbers {
279 list-style: none;
280 counter-reset: toc-counter-0;
281 padding-left: 0;
282 }
283
284 .sp-table-of-content-toc .sps-toc-style-paddedNumbers .sps-toc-item {
285 position: relative;
286 list-style: none;
287 // padding-left: 1.5em;
288 }
289
290 /* Level 0 (01, 02, 03...) */
291 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="0"]="0""] {
292 counter-increment: toc-counter-0;
293 }
294
295 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="0"]="0""] .sps-toc-number::before {
296 content: counter(toc-counter-0, decimal-leading-zero) ". ";
297 position: absolute;
298 left: 0;
299 font-weight: 600;
300 padding-left: 10px;
301 }
302
303 /* Level 1 (a, b, c...) */
304 .sps-toc-style-paddedNumbers .sps-toc-sublist {
305 list-style: none;
306 counter-reset: toc-counter-1;
307 // margin-top: 0.5em;
308 // padding-left: 1.5em;
309 }
310
311 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="1"]="1""] {
312 counter-increment: toc-counter-1;
313 }
314
315 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="1"]="1""] .sps-toc-number::before {
316 content: counter(toc-counter-1, lower-alpha) ". ";
317 position: absolute;
318 left: 0;
319 font-weight: 600;
320 }
321
322 /* Level 2 (i, ii, iii...) */
323 .sps-toc-style-paddedNumbers .sps-toc-sublist .sps-toc-sublist {
324 counter-reset: toc-counter-2;
325 }
326
327 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="2"]="2""] {
328 counter-increment: toc-counter-2;
329 }
330
331 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="2"]="2""] .sps-toc-number::before {
332 content: counter(toc-counter-2, lower-roman) ". ";
333 position: absolute;
334 left: 0;
335 font-weight: 600;
336 }
337
338 /* Level 3 (1, 2, 3...) - optional if needed */
339 .sps-toc-style-paddedNumbers .sps-toc-sublist .sps-toc-sublist .sps-toc-sublist {
340 counter-reset: toc-counter-3;
341 }
342
343 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="3"]="3""] {
344 counter-increment: toc-counter-3;
345 }
346
347 .sps-toc-style-paddedNumbers .sps-toc-item[data-depth="3"]="3""] .sps-toc-number::before {
348 content: counter(toc-counter-3, decimal) ". ";
349 position: absolute;
350 left: 0;
351 font-weight: 600;
352 }
353
354
355 /* Add depth-specific styles for better visual hierarchy */
356 // .sps-toc-item[data-depth="0"] {
357 // font-weight: 600;
358 // }
359
360 // .sps-toc-item[data-depth="1"] {
361 // font-weight: 500;
362 // // margin-top: 0.3em;
363 // }
364
365 // .sps-toc-item[data-depth="2"] {
366 // font-weight: 400;
367 // // margin-top: 0.2em;
368 // }
369
370 // /* Add color differentiation for levels */
371 // .sps-toc-item[data-depth="0"] .sps-toc-link {
372 // color: #2c3e50;
373 // }
374
375 // .sps-toc-item[data-depth="1"] .sps-toc-link {
376 // color: #34495e;
377 // }
378
379 // .sps-toc-item[data-depth="2"] .sps-toc-link {
380 // color: #7f8c8d;
381 // }
382
383 //.......................copy
384
385 /* Copy button styles */
386 .sps-toc-item {
387 position: relative;
388 }
389
390 .sp-table-of-content-toc .sps-toc-link-wrapper {
391 display: flex;
392 align-items: flex-start;
393 }
394
395 .sp-table-of-content-toc .sps-toc-left {
396 justify-content: left;
397 }
398
399 .sp-table-of-content-toc .sps-toc-center {
400 justify-content: center;
401 }
402
403 .sp-table-of-content-toc .sps-toc-right {
404 justify-content: right;
405 }
406
407
408 .sps-toc-copy {
409 flex-shrink: 0;
410 background: none;
411 border: none;
412 cursor: pointer;
413 padding: 4px;
414 border-radius: 3px;
415 opacity: 0;
416 /* start hidden */
417 transform: translateY(-3px);
418 /* slight lift effect */
419 transition: opacity 0.55s ease, transform 0.55s ease;
420 align-items: center;
421 justify-content: center;
422 margin-left: 8px;
423 margin-top: 2px;
424 display: flex;
425 /* keep in layout */
426 visibility: hidden;
427 /* hidden when not hovered */
428
429 }
430
431 .sps-toc-link-wrapper:hover .sps-toc-copy {
432 opacity: 1;
433 transform: translateY(0);
434 /* slide into place */
435 visibility: visible;
436 }
437
438
439 .sps-toc-copy:hover {
440 opacity: 1;
441 background-color: #f0f0f0;
442
443
444 }
445
446 .sps-toc-copy svg {
447 width: 14px;
448 height: 14px;
449
450 }
451
452 .sps-toc-copy.copied {
453 opacity: 1;
454 color: #4caf50;
455 }
456
457 /* Ensure proper spacing for numbered lists */
458 .sps-toc-style-decimal .sps-toc-item,
459 .sps-toc-style-numericOutline .sps-toc-item,
460 .sps-toc-style-romanAlphabeticMix .sps-toc-item,
461 .sps-toc-style-paddedNumbers .sps-toc-item {
462 display: block;
463 }
464
465 .sps-toc-style-decimal .sps-toc-number {
466 margin-right: 1.1em;
467 display: inline;
468 }
469
470 .sps-toc-style-decimal .sps-toc-sublist .sps-toc-number {
471 margin-right: 2em;
472 }
473
474 .sps-toc-style-decimal .sps-toc-sublist li[data-depth="2"]="2""] .sps-toc-number {
475 margin-right: 2.8em;
476 }
477
478
479 .sps-toc-style-numericOutline .sps-toc-item:nth-of-type(n+100) .sps-toc-number,
480 .sps-toc-style-romanAlphabeticMix .sps-toc-item:nth-of-type(n+100) .sps-toc-number {
481 margin-right: 1.6em;
482 display: inline;
483 }
484
485 .sps-toc-style-numericOutline .sps-toc-number,
486 .sps-toc-style-romanAlphabeticMix .sps-toc-number {
487 margin-right: 1.2em;
488 display: inline;
489 }
490
491 .sps-toc-style-paddedNumbers .sps-toc-number {
492 margin-right: 1.7em;
493 display: inline;
494 }
495
496 .sps-toc-style-paddedNumbers .sps-toc-sublist .sps-toc-number {
497 margin-right: 1.1em;
498 display: inline;
499 }
500
501 //.........
502 .sps-toc-link-wrapper {
503 display: flex;
504 align-items: center;
505 justify-content: space-between;
506 gap: 8px;
507
508
509 /* optional, spacing between left and right */
510 }
511
512 .sps-toc-link {
513 flex: 1;
514 /* take all available space */
515 display: flex;
516 gap: 10px;
517
518 min-width: 0;
519 /* prevents flex text overflow issues */
520 }
521
522 .sps-toc-actions {
523 display: flex;
524 align-items: center;
525 gap: 6px;
526 /* space between copy & toggle */
527 }
528
529 .sps-toc-copy,
530 .sps-toc-toggle {
531 background: none;
532 border: none;
533 cursor: pointer;
534 padding: 2px;
535 display: flex;
536 align-items: center;
537 justify-content: center;
538 color: inherit;
539 }
540
541
542 .sps-toc-header-row {
543 display: flex;
544 align-items: center;
545 justify-content: space-between;
546 }
547
548 .sps-toc-header {
549 flex: 0 0 95%;
550 }
551
552 .sp-main-collapse-toggle {
553 flex: 0 0 5%;
554 display: flex;
555 justify-content: flex-end;
556 }
557
558
559
560 .sps-toc-main-toggle {
561 cursor: pointer;
562 background: none;
563 display: flex;
564 align-items: center;
565 justify-content: center;
566 transition: background-color 0.2s ease;
567 margin-left: -18px;
568
569 }
570
571 .sps-toc-main-toggle-icon {
572 transition: transform 0.3s ease;
573 }
574
575 .sps-toc-main-toggle-icon.expanded {
576 transform: rotate(180deg);
577 }
578
579 .sps-toc-toggle {
580 background: none;
581 border: none;
582 cursor: pointer;
583 padding: 0;
584 display: inline-flex;
585 align-items: center;
586 justify-content: center;
587 color: inherit;
588 }
589
590 .sps-toc-collapsed {
591 display: none;
592 }
593
594 .sps-toc-sublist-collapsed {
595 display: none;
596 }
597
598 .sps-toc-toggle-icon {
599 transition: transform 0.3s;
600 }
601
602 .sps-toc-toggle.expanded .sps-toc-toggle-icon {
603 transform: rotate(90deg);
604 }
605
606 .sps-toc-main-toggle-icon {
607 transition: transform 0.3s;
608 }
609
610 .sps-toc-main-toggle.expanded .sps-toc-main-toggle-icon {
611 transform: rotate(180deg);
612 }
613
614
615 .sps-toc-sublist .sps-toc-item[data-depth="1"]="1""] .sps-toc-link-wrapper:last-child {
616 border-bottom: none
617 }
618
619 .sps-toc-main-toggle:focus,
620 .sps-toc-toggle:focus,
621 .sps-toc-link:focus {
622 outline: none;
623 }
624
625 .sp-table-of-content-toc .sps-toc-header {
626 display: flex;
627 align-items: center;
628 gap: 25px;
629 }
630
631 //select ...
632
633 .sps-toc-container.presetThree {
634 position: relative;
635 border-left: 2px solid #e0e0e0;
636 padding-left: 15px;
637
638 }
639
640
641 .sps-toc-container.presetFour,
642 .sps-toc-container.presetFive {
643 position: relative;
644 padding-left: 15px;
645
646 }
647
648 /* Hide scrollbar for Chrome, Safari and Opera */
649 .sps-toc-container::-webkit-scrollbar {
650 display: none;
651 }
652
653 .sps-toc-indicator {
654 position: absolute;
655 left: -2px;
656 width: 3px;
657 // background-color: #1A74E4;
658 // transition: top 0.3s ease, height 0.3s ease;
659 transition: transform 0.3s ease, opacity 0.3s ease;
660 border-radius: 3px;
661 z-index: 1;
662 }
663
664
665 .sps-toc-link-selected {
666 // font-weight: 600;
667 color: #2e7d32;
668 }
669
670 /* Optional: Add hover effect */
671 .sps-toc-link:hover {
672 color: #2e7d32;
673 }
674
675 /* Ensure the list items are positioned correctly */
676 .sps-toc-item {
677 position: relative;
678 z-index: 2;
679 }
680
681 /* Add padding to the bottom of the container to ensure last items are visible */
682 .sps-toc-list {
683 padding-bottom: 10px;
684 }
685
686 .sps-toc-container.presetTwo .sps-toc-link,
687 .sps-toc-container.presetFive .sps-toc-link {
688 display: flex;
689 gap: 10px;
690 }
691
692
693 /* Smooth transitions for collapsible elements */
694 .sps-toc-list {
695 transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
696 overflow: hidden;
697 // max-height: 2000px;
698 max-height: 100%;
699 opacity: 1;
700 }
701
702 .sps-toc-list.sps-toc-collapsed {
703 max-height: 0;
704 opacity: 0;
705 }
706
707 .sps-toc-sublist {
708 transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
709 max-height: 2000px;
710 opacity: 1;
711 }
712
713 .sps-toc-sublist.sps-toc-sublist-collapsed {
714 max-height: 0;
715 opacity: 0;
716 }
717
718 /* Smooth rotation for toggle icons */
719 .sps-toc-toggle svg,
720 .sps-toc-main-toggle svg {
721 transition: transform 0.3s ease-in-out;
722 }
723
724 .sps-toc-toggle.expanded svg {
725 transform: rotate(180deg);
726 }
727
728 .sps-toc-main-toggle.expanded svg {
729 transform: rotate(180deg);
730 }
731
732 /* Indicator when hidden - no transition */
733 .sps-toc-indicator.hidden {
734 transition: none;
735 opacity: 0;
736 height: 0;
737 }
738
739 /* Ensure full width coverage */
740 .sps-toc-item {
741 width: 100%;
742 box-sizing: border-box;
743 }
744
745 /* Actions container */
746 .sps-toc-actions {
747 display: flex;
748 align-items: center;
749 gap: 5px;
750 margin-left: 10px;
751 }
752
753 /* Copy button */
754 .sps-toc-copy {
755 background: none;
756 border: none;
757 cursor: pointer;
758 padding: 2px;
759 opacity: 0.7;
760 transition: opacity 0.2s;
761 }
762
763 .sps-toc-copy:hover {
764 opacity: 1;
765 }
766
767 /* Toggle button */
768 .sps-toc-toggle {
769 background: none;
770 border: none;
771 cursor: pointer;
772 padding: 2px;
773 display: flex;
774 align-items: center;
775 justify-content: center;
776 }
777
778 /* Hidden container class */
779 .sps-toc-container.sps-toc-hidden {
780 display: none;
781 }
782 @media only screen and (max-width: 599px) {
783 .sp-smart-post-table-of-content.sp-table-of-content-toc {
784 position: static !important;
785 width: 100% !important;
786 }
787 }
788
789 .sp-table-of-content-toc {
790 transform: none;
791 z-index: 99;
792 width: auto;
793
794 &.sp-toc-position-static {
795 position: static;
796 }
797 &.sp-toc-position-sticky {
798 position: sticky;
799 transform: none;
800 }
801 &.sp-toc-position-floating {
802 position: static;
803 width: 30%;
804
805 &.sp-toc-floating-top-left {
806 left: 20px;
807 }
808 &.sp-toc-floating-top-right {
809 right: 20px;
810 }
811 &.sp-toc-floating-top-center {
812 left: 50%;
813 transform: translateX(-50%);
814 }
815 &.sp-toc-floating-middle-left {
816 top: 50%;
817 left: 20px;
818 transform: translateY(-50%);
819 }
820 &.sp-toc-floating-middle-right {
821 top: 50%;
822 right: 20px;
823 transform: translateY(-50%);
824 }
825 }
826 }