@@ -213,6 +213,220 @@ code { |
| 213 | 213 | border-bottom: 0; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | +.shithub-offcanvas-open { |
| 217 | + overflow: hidden; |
| 218 | +} |
| 219 | +.shithub-offcanvas { |
| 220 | + position: fixed; |
| 221 | + inset: 0; |
| 222 | + z-index: 120; |
| 223 | +} |
| 224 | +.shithub-offcanvas[hidden] { |
| 225 | + display: none; |
| 226 | +} |
| 227 | +.shithub-offcanvas-backdrop { |
| 228 | + position: absolute; |
| 229 | + inset: 0; |
| 230 | + width: 100%; |
| 231 | + height: 100%; |
| 232 | + padding: 0; |
| 233 | + border: 0; |
| 234 | + background: rgba(1, 4, 9, 0.58); |
| 235 | + cursor: default; |
| 236 | +} |
| 237 | +.shithub-offcanvas-panel { |
| 238 | + position: relative; |
| 239 | + width: min(320px, calc(100vw - 14px)); |
| 240 | + min-height: 100vh; |
| 241 | + max-height: 100vh; |
| 242 | + display: flex; |
| 243 | + flex-direction: column; |
| 244 | + padding: 1rem 0.5rem; |
| 245 | + color: var(--fg-default); |
| 246 | + background: var(--canvas-inset); |
| 247 | + border: 1px solid var(--border-default); |
| 248 | + border-left: 0; |
| 249 | + border-radius: 0 12px 12px 0; |
| 250 | + box-shadow: 16px 0 48px rgba(1, 4, 9, 0.42); |
| 251 | + overflow-y: auto; |
| 252 | +} |
| 253 | +.shithub-offcanvas-head { |
| 254 | + display: flex; |
| 255 | + align-items: center; |
| 256 | + justify-content: space-between; |
| 257 | + gap: 1rem; |
| 258 | + padding: 0 0.5rem 1.1rem; |
| 259 | +} |
| 260 | +.shithub-offcanvas-mark { |
| 261 | + display: inline-flex; |
| 262 | + color: var(--fg-default); |
| 263 | +} |
| 264 | +.shithub-offcanvas-mark:hover { |
| 265 | + text-decoration: none; |
| 266 | +} |
| 267 | +.shithub-offcanvas-mark svg { |
| 268 | + width: 32px; |
| 269 | + height: 32px; |
| 270 | + color: var(--fg-default); |
| 271 | +} |
| 272 | +.shithub-offcanvas-close { |
| 273 | + display: inline-flex; |
| 274 | + align-items: center; |
| 275 | + justify-content: center; |
| 276 | + width: 32px; |
| 277 | + height: 32px; |
| 278 | + padding: 0; |
| 279 | + border: 0; |
| 280 | + border-radius: 6px; |
| 281 | + color: var(--fg-muted); |
| 282 | + background: transparent; |
| 283 | + cursor: pointer; |
| 284 | +} |
| 285 | +.shithub-offcanvas-close:hover { |
| 286 | + color: var(--fg-default); |
| 287 | + background: var(--canvas-subtle); |
| 288 | +} |
| 289 | +.shithub-offcanvas-nav { |
| 290 | + display: flex; |
| 291 | + flex-direction: column; |
| 292 | + gap: 0.125rem; |
| 293 | + padding: 0 0.25rem 0.75rem; |
| 294 | +} |
| 295 | +.shithub-offcanvas-nav-secondary { |
| 296 | + padding-top: 0.75rem; |
| 297 | + border-top: 1px solid var(--border-default); |
| 298 | +} |
| 299 | +.shithub-offcanvas-link { |
| 300 | + display: flex; |
| 301 | + align-items: center; |
| 302 | + gap: 0.65rem; |
| 303 | + min-height: 32px; |
| 304 | + padding: 0.35rem 0.5rem; |
| 305 | + border-radius: 6px; |
| 306 | + color: var(--fg-default); |
| 307 | + font-size: 0.875rem; |
| 308 | + font-weight: 600; |
| 309 | +} |
| 310 | +.shithub-offcanvas-link:hover, |
| 311 | +.shithub-offcanvas-link:focus-visible { |
| 312 | + color: var(--fg-default); |
| 313 | + background: var(--canvas-subtle); |
| 314 | + text-decoration: none; |
| 315 | +} |
| 316 | +.shithub-offcanvas-link svg { |
| 317 | + flex: 0 0 auto; |
| 318 | + color: var(--fg-muted); |
| 319 | +} |
| 320 | +.shithub-offcanvas-repos { |
| 321 | + margin: 0 0.25rem; |
| 322 | + padding: 0.9rem 0.25rem 0.75rem; |
| 323 | + border-top: 1px solid var(--border-default); |
| 324 | +} |
| 325 | +.shithub-offcanvas-section-head { |
| 326 | + display: flex; |
| 327 | + align-items: center; |
| 328 | + justify-content: space-between; |
| 329 | + gap: 1rem; |
| 330 | + padding: 0 0.25rem 0.45rem; |
| 331 | +} |
| 332 | +.shithub-offcanvas-section-head h2 { |
| 333 | + margin: 0; |
| 334 | + color: var(--fg-muted); |
| 335 | + font-size: 0.75rem; |
| 336 | + font-weight: 700; |
| 337 | +} |
| 338 | +.shithub-offcanvas-section-head a { |
| 339 | + display: inline-flex; |
| 340 | + color: var(--fg-muted); |
| 341 | +} |
| 342 | +.shithub-offcanvas-section-head a:hover { |
| 343 | + color: var(--fg-default); |
| 344 | + text-decoration: none; |
| 345 | +} |
| 346 | +.shithub-offcanvas-repo-list { |
| 347 | + display: flex; |
| 348 | + flex-direction: column; |
| 349 | + gap: 0.125rem; |
| 350 | +} |
| 351 | +.shithub-offcanvas-repo-item { |
| 352 | + display: grid; |
| 353 | + grid-template-columns: 20px minmax(0, 1fr); |
| 354 | + align-items: center; |
| 355 | + gap: 0.55rem; |
| 356 | + min-height: 32px; |
| 357 | + padding: 0.25rem; |
| 358 | + border-radius: 6px; |
| 359 | + color: var(--fg-default); |
| 360 | + font-size: 0.875rem; |
| 361 | + font-weight: 600; |
| 362 | + line-height: 1.25; |
| 363 | +} |
| 364 | +.shithub-offcanvas-repo-item:hover, |
| 365 | +.shithub-offcanvas-repo-item:focus-visible { |
| 366 | + background: var(--canvas-subtle); |
| 367 | + text-decoration: none; |
| 368 | +} |
| 369 | +.shithub-offcanvas-repo-item img { |
| 370 | + width: 20px; |
| 371 | + height: 20px; |
| 372 | + border-radius: 50%; |
| 373 | + background: var(--canvas-default); |
| 374 | +} |
| 375 | +.shithub-offcanvas-repo-item span { |
| 376 | + min-width: 0; |
| 377 | + overflow-wrap: anywhere; |
| 378 | +} |
| 379 | +.shithub-offcanvas-show-more { |
| 380 | + display: inline-flex; |
| 381 | + margin: 0.35rem 0.25rem 0; |
| 382 | + color: var(--fg-muted); |
| 383 | + font-size: 0.75rem; |
| 384 | +} |
| 385 | +.shithub-offcanvas-show-more:hover { |
| 386 | + color: var(--accent-fg); |
| 387 | +} |
| 388 | +.shithub-offcanvas-notice { |
| 389 | + display: grid; |
| 390 | + grid-template-columns: 16px minmax(0, 1fr) 24px; |
| 391 | + align-items: center; |
| 392 | + gap: 0.5rem; |
| 393 | + margin: 0.75rem 0.5rem 0; |
| 394 | + padding: 0.7rem 0.55rem; |
| 395 | + border: 1px solid var(--accent-emphasis); |
| 396 | + border-radius: 6px; |
| 397 | + color: var(--fg-default); |
| 398 | + background: rgba(9, 105, 218, 0.1); |
| 399 | + font-size: 0.75rem; |
| 400 | +} |
| 401 | +.shithub-offcanvas-notice[hidden] { |
| 402 | + display: none; |
| 403 | +} |
| 404 | +.shithub-offcanvas-notice > span { |
| 405 | + display: inline-flex; |
| 406 | + color: var(--accent-fg); |
| 407 | +} |
| 408 | +.shithub-offcanvas-notice p { |
| 409 | + margin: 0; |
| 410 | + min-width: 0; |
| 411 | + font-weight: 600; |
| 412 | +} |
| 413 | +.shithub-offcanvas-notice button { |
| 414 | + display: inline-flex; |
| 415 | + align-items: center; |
| 416 | + justify-content: center; |
| 417 | + width: 24px; |
| 418 | + height: 24px; |
| 419 | + padding: 0; |
| 420 | + border: 0; |
| 421 | + border-radius: 6px; |
| 422 | + color: var(--accent-fg); |
| 423 | + background: transparent; |
| 424 | + cursor: pointer; |
| 425 | +} |
| 426 | +.shithub-offcanvas-notice button:hover { |
| 427 | + background: rgba(9, 105, 218, 0.16); |
| 428 | +} |
| 429 | + |
| 216 | 430 | /* User-menu dropdown — uses native <details>/<summary> so it works without JS. */ |
| 217 | 431 | .shithub-user-menu { position: relative; } |
| 218 | 432 | .shithub-user-menu > summary { |