-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsheet.css
More file actions
265 lines (247 loc) · 8.87 KB
/
Copy pathsheet.css
File metadata and controls
265 lines (247 loc) · 8.87 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
/* ===== Blue trigger button ===== */
#sh_stats-floating-btn {
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
background-color: #0ea5e9; /* blue */
color: white;
border: none;
border-radius: 50px;
padding: 12px 18px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
transition: transform 0.2s ease, filter 0.2s ease;
}
#sh_stats-floating-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
#sh_stats-floating-btn:active { transform: translateY(0); }
/* ===== Drawer ===== */
#sh_stats-drawer {
position: fixed;
top: 0;
right: -380px;
width: 360px;
height: 100vh;
background: #0f0f10;
color: #e5e5e5;
box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
transition: right 0.3s ease;
z-index: 10000;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}
#sh_stats-drawer.sh_open { right: 0; }
#sh_stats-drawer .sh_drawer-content {
padding: 18px 16px;
height: 100vh; /* requested */
overflow: auto; /* requested */
}
/* Header bar */
#sh_stats-drawer .sh_drawer-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 12px;
}
#sh_stats-drawer .sh_drawer-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fafafa; }
#sh_stats-drawer .sh_header-actions { display: flex; gap: 6px; }
#sh_stats-drawer #sh_close-drawer,
#sh_stats-drawer #sh_refresh-stats {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.18);
color: #d4d4d4;
width: 28px;
height: 28px;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
line-height: 1;
}
#sh_stats-drawer #sh_close-drawer:hover,
#sh_stats-drawer #sh_refresh-stats:hover { background: rgba(255, 255, 255, 0.06); }
/* Loader */
.sh_hidden { display: none !important; }
#sh_stats-loader,
#sh_paid-loader {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 4px;
}
.sh_spinner {
width: 22px; height: 22px; border-radius: 50%;
border: 3px solid rgba(255, 255, 255, 0.16);
border-top-color: #d4d4d4;
animation: sh_spin 0.9s linear infinite;
}
@keyframes sh_spin { to { transform: rotate(360deg); } }
/* Loader label with animated dots */
.sh_loader-label {
position: relative;
font-size: 13px;
color: #cfcfcf;
}
.sh_loader-label::after {
content: '…';
display: inline-block;
animation: sh_dots 1.4s steps(4, end) infinite;
}
@keyframes sh_dots {
0% { content: ''; }
25% { content: '.'; }
50% { content: '..'; }
75% { content: '...'; }
100% { content: ''; }
}
/* Stat cards */
#sh_stats-cards .sh_stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#sh_stats-cards .sh_stat {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 12px;
}
#sh_stats-cards .sh_label { font-size: 12px; color: #b3b3b3; letter-spacing: 0.2px; }
#sh_stats-cards .sh_value { font-size: 18px; font-weight: 800; color: #f5f5f5; margin-top: 4px; }
#sh_stats-cards .sh_value:hover { text-decoration: underline dotted; cursor: help; }
#sh_stats-cards .sh_hint { font-size: 11px; color: #9a9a9a; margin-top: 2px; }
/* ===== Section spacing + headers ===== */
#sh_activity,
#sh_views,
#sh_paid {
margin-top: 30px; /* ~20-30px between sections */
}
.sh_activity-header,
.sh_views-header,
.sh_paid-header {
margin: 0 0 8px 0;
font-weight: 700;
font-size: 16px;
color: #eaeaea;
}
/* Activity full-width */
#sh_activity .sh_activity-layout.sh_fullwidth { display: grid; grid-template-rows: auto 1fr; row-gap: 8px; }
#sh_activity .sh_x-axis-top.sh_fullwidth { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: var(--gap); }
#sh_activity .sh_x-top-tick { height: 14px; font-size: 10px; color: #b3b3b3; text-align: left; }
#sh_activity .sh_activity-grid.sh_fullwidth { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: var(--cell); gap: var(--gap); }
/* Green ramp (GitHub-like) */
#sh_activity .sh_cell { width: 100%; height: var(--cell); border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.1); }
#sh_activity .sh_cell.sh_empty { background: transparent; border-color: transparent; }
#sh_activity .sh_level-0 { background: transparent; border-color: rgba(148, 163, 184, 0.25); }
#sh_activity .sh_level-1 { background: #0a2f1f; }
#sh_activity .sh_level-2 { background: #14532d; }
#sh_activity .sh_level-3 { background: #166534; }
#sh_activity .sh_level-4 { background: #22c55e; }
#sh_activity .sh_cell:hover { outline: 1px solid #93c5fd; }
/* Legend */
#sh_activity .sh_activity-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #b3b3b3; font-size: 11px; }
#sh_activity .sh_legend-box { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(255, 255, 255, 0.1); }
#sh_activity .sh_legend-box.sh_level-0 { background: transparent; border-color: rgba(148, 163, 184, 0.25); }
#sh_activity .sh_legend-box.sh_level-1 { background: #0a2f1f; }
#sh_activity .sh_legend-box.sh_level-2 { background: #14532d; }
#sh_activity .sh_legend-box.sh_level-3 { background: #166534; }
#sh_activity .sh_legend-box.sh_level-4 { background: #22c55e; }
/* Tooltip */
.sh_tooltip {
position: fixed; z-index: 10001; pointer-events: none;
background: rgba(17, 17, 17, 0.96); color: #e5e5e5; font-size: 12px;
padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
max-width: 220px;
}
.sh_tooltip.sh_hidden { opacity: 0; visibility: hidden; }
/* === Views sparkline === */
.sh_views-chart-wrap {
position: relative;
width: 100%;
height: 120px;
background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
border: 1px solid rgba(255,255,255,0.1);
border-radius: 10px;
}
.sh_views-spark {
position: absolute; top: 8px; bottom: 8px; left: 48px; right: 8px;
width: auto; height: 85%; display: block; z-index: 1; width: 80%;
}
.sh_bar { fill: #38bdf8; opacity: 0.9; }
.sh_bar:hover { opacity: 1; }
.sh_gridline { stroke: rgba(255, 255, 255, 0.08); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.sh_avg-line { stroke: #93c5fd; stroke-dasharray: 3 2; stroke-width: 0.8; opacity: 0.95; vector-effect: non-scaling-stroke; }
.sh_views-ylabs {
position: absolute; left: 8px; top: 8px; bottom: 8px; width: 36px;
display: flex; flex-direction: column; justify-content: space-between;
pointer-events: none; z-index: 2;
}
.sh_views-ylabs span { font-size: 10px; color: #b3b3b3; line-height: 1; }
.sh_views-avglab {
position: absolute; right: 12px; padding: 2px 4px; font-size: 10px;
background: rgba(147,197,253,0.12); border: 1px solid rgba(147,197,253,0.35);
border-radius: 4px; color: #e5e7eb; transform: translateY(-50%); pointer-events: none; z-index: 3;
}
#sh_views .sh_views-axis { display: none !important; } /* hidden */
/* === Paid partnerships UI (COMPACT) === */
#sh_paid-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.sh_paid-empty { font-size: 12px; color: #9aa3af; }
.sh_paid-item {
display: grid;
grid-template-columns: 66px 1fr; /* column width */
gap: 8px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 8px;
}
.sh_paid-thumb {
display: block;
width: 65px; /* thumb size */
height: 90px; /* thumb size */
border-radius: 8px;
overflow: hidden;
background: #111827;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.sh_paid-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.sh_paid-thumb--fallback {
background: linear-gradient(135deg, #0b1220, #111827);
}
.sh_paid-body { display: flex; flex-direction: column; gap: 4px; }
.sh_paid-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sh_paid-brand { font-weight: 700; color: #f3f4f6; font-size: 13px; }
.sh_paid-right { display: flex; align-items: center; gap: 6px; }
.sh_paid-meta {
font-size: 10px; color: #b3b3b3;
display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
/* 2-line clamp for caption (as requested) */
.sh_paid-caption {
color: #d1d5db;
font-size: 12px;
line-height: 1.25;
display: -webkit-box;
-webkit-line-clamp: 2; /* 2 lines */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 2.6em;
}
/* Confidence badges */
.sh_badge {
padding: 1px 5px;
border-radius: 999px;
font-size: 10px;
border: 1px solid rgba(255, 255, 255, 0.12);
}
.sh_badge-good { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.35); color: #34d399; }
.sh_badge-warn { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.35); color: #f59e0b; }
.sh_badge-neutral { background: rgba(148, 163, 184, 0.18); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }