ParetoOptimal commited on
Commit
1d75b23
·
verified ·
1 Parent(s): 34fd351

Update static/app.css

Browse files

mobile responsiveness, n' such, too

Files changed (1) hide show
  1. static/app.css +28 -0
static/app.css CHANGED
@@ -905,3 +905,31 @@ a.footer-cta:hover { transform: translateY(-2px); filter: brightness(1.07); }
905
  .tile-v { color: var(--violet); background: none;
906
  -webkit-background-clip: initial; background-clip: initial;
907
  -webkit-text-fill-color: currentColor; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
905
  .tile-v { color: var(--violet); background: none;
906
  -webkit-background-clip: initial; background-clip: initial;
907
  -webkit-text-fill-color: currentColor; }
908
+
909
+ /* ---- mobile responsiveness fixes (phone) ---- */
910
+
911
+ /* Top nav: on a phone the brand wordmark + 5 links overflow a single row
912
+ (logo overlaps "Home", "Memory" clipped, "Feed" off-screen). Stack the brand
913
+ above a horizontally-scrollable link strip so nothing overlaps and every
914
+ page stays reachable. Reuses the classes from _nav_html(). */
915
+ @media (max-width: 600px) {
916
+ #site-nav .nav-inner { flex-direction: column; align-items: stretch;
917
+ justify-content: flex-start; gap: 6px; padding: 8px 14px; }
918
+ .nav-brand { justify-content: flex-start; font-size: .98rem; }
919
+ .nav-links { width: 100%; gap: 16px; flex-wrap: nowrap; overflow-x: auto;
920
+ -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
921
+ .nav-links::-webkit-scrollbar { display: none; }
922
+ .nav-solo { flex: 0 0 auto; white-space: nowrap; }
923
+ }
924
+
925
+ /* Activity "Activity by stage" chart shares a 2-col row with the timeline, so on
926
+ a phone it's stuck at half width and the x-axis stage labels collapse into
927
+ garbled overlapping text. Stack the row so the chart renders full-width. */
928
+ @media (max-width: 760px) {
929
+ .act-chart-row { flex-direction: column !important; }
930
+ .act-chart-row > * { width: 100% !important; }
931
+ }
932
+
933
+ /* Footer: keep "on Hugging Face" (its own <a> in .footer-meta) on one line
934
+ instead of breaking as "on Hugging" / "Face". */
935
+ .footer-meta a { white-space: nowrap; }