PluginProbe ʕ •ᴥ•ʔ
FrontBlocks for Gutenberg/GeneratePress / 1.3.6
FrontBlocks for Gutenberg/GeneratePress v1.3.6
trunk 0.2.0 0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 ci-artifacts
frontblocks / assets / reading-progress / frontblocks-reading-progress.css
frontblocks / assets / reading-progress Last commit date
frontblocks-reading-progress.css 7 months ago frontblocks-reading-progress.js 7 months ago
frontblocks-reading-progress.css
83 lines
1 /**
2 * Reading Progress Bar styles
3 *
4 * @package FrontBlocks
5 */
6
7 /* Add padding to body to prevent content overlap */
8 body.frbl-reading-progress-active {
9 padding-right: 40px;
10 }
11
12 .frbl-reading-progress-bar {
13 position: fixed;
14 top: 50%;
15 right: 20px;
16 width: 8px;
17 height: 60%;
18 transform: translateY(-50%);
19 background-color: rgba(0, 0, 0, 0.08);
20 z-index: 9999;
21 pointer-events: none;
22 border-radius: 50px;
23 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
24 }
25
26 .frbl-reading-progress-fill {
27 width: 100%;
28 height: 0;
29 background: linear-gradient(180deg, var(--wp--preset--color--primary, #3b82f6) 0%, var(--wp--preset--color--primary, #2563eb) 100%);
30 transition: height 0.15s ease-out;
31 border-radius: 50px;
32 box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
33 }
34
35 /* Smooth scroll transition */
36 @media (prefers-reduced-motion: no-preference) {
37 .frbl-reading-progress-fill {
38 transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1);
39 }
40 }
41
42 /* Accessibility: respect user's motion preferences */
43 @media (prefers-reduced-motion: reduce) {
44 .frbl-reading-progress-fill {
45 transition: none;
46 }
47 }
48
49 /* Mobile adjustments */
50 @media (max-width: 768px) {
51 body.frbl-reading-progress-active {
52 padding-right: 30px;
53 }
54
55 .frbl-reading-progress-bar {
56 width: 6px;
57 right: 12px;
58 height: 50%;
59 }
60 }
61
62 /* For RTL languages, position on the left */
63 body[dir="rtl"].frbl-reading-progress-active {
64 padding-right: 0;
65 padding-left: 40px;
66 }
67
68 [dir="rtl"] .frbl-reading-progress-bar {
69 right: auto;
70 left: 20px;
71 }
72
73 @media (max-width: 768px) {
74 body[dir="rtl"].frbl-reading-progress-active {
75 padding-left: 30px;
76 }
77
78 [dir="rtl"] .frbl-reading-progress-bar {
79 left: 12px;
80 }
81 }
82
83