-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
102 lines (90 loc) · 2.01 KB
/
Copy pathcontent.css
File metadata and controls
102 lines (90 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* Substack Reader – injected styles */
/* ── Progress bar ── */
#sr-progress-container {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 5px;
z-index: 2147483647;
background: rgba(0, 0, 0, 0.1);
pointer-events: none;
}
#sr-progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #ff6b35, #f7a05a);
transition: width 0.12s ease-out;
border-radius: 0 3px 3px 0;
}
#sr-progress-label {
position: fixed;
top: 10px;
right: 12px;
font-size: 11px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-weight: 700;
color: #fff;
background: rgba(0, 0, 0, 0.55);
padding: 2px 7px;
border-radius: 10px;
pointer-events: none;
z-index: 2147483647;
}
#sr-progress-context {
position: fixed;
top: 34px;
right: 12px;
display: flex;
align-items: center;
gap: 6px;
max-width: min(42ch, calc(100vw - 24px));
padding: 6px 10px;
border-radius: 999px;
background: rgba(255, 248, 242, 0.94);
color: #6c3c1f;
font-size: 11px;
font-family: Georgia, "Times New Roman", serif;
font-weight: 700;
box-shadow: 0 10px 24px rgba(73, 37, 15, 0.14);
backdrop-filter: blur(8px);
pointer-events: none;
z-index: 2147483647;
}
#sr-progress-divider {
opacity: 0.45;
}
#sr-progress-section {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ── Bionic reading ── */
/* font-weight is set via inline style on each .sr-bold span,
which beats any non-!important page CSS */
@media (max-width: 640px) {
#sr-progress-label {
top: 10px;
right: 10px;
}
#sr-progress-context {
top: 34px;
left: 10px;
right: 10px;
justify-content: center;
}
}
@media (prefers-color-scheme: dark) {
#sr-progress-container {
background: rgba(255, 255, 255, 0.12);
}
#sr-progress-label {
background: rgba(12, 12, 13, 0.7);
}
#sr-progress-context {
background: rgba(37, 24, 16, 0.92);
color: #ffd8bf;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
}