Download static/css/weekly.css from Elvis85/bookrank: direct link, hf CLI and curl.
- Browser
- Download file 7.91 kB
-
https://huggingface.co/spaces/Elvis85/bookrank/resolve/main/static/css/weekly.css
- Command line
-
hf download hf://spaces/Elvis85/bookrank/static/css/weekly.css
-
curl -L -o weekly.css https://huggingface.co/spaces/Elvis85/bookrank/resolve/main/static/css/weekly.css
7.91 kB
| /* Weekly report list: Amazon's time-ordered shelves in the Charts tone. | |
| Replaces the ~410-line inline <style> block that used to live in the | |
| template; shared shelf primitives come from browse.css. */ | |
| /* The month shelves and the filter section replace the sidebar nav here. */ | |
| .weekly-page .sidebar, | |
| .weekly-page .sidebar-toggle { | |
| display: none ; | |
| } | |
| /* --- Generating banner --- */ | |
| .generating-banner { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| margin-bottom: 28px; | |
| padding: 12px 16px; | |
| border: 1px solid #f3d9a4; | |
| border-left: 3px solid var(--link-blue); | |
| border-radius: 4px; | |
| background: var(--bg-card); | |
| color: var(--text-secondary); | |
| font-size: 13px; | |
| } | |
| .generating-banner-icon { | |
| color: var(--text-muted); | |
| font-size: 15px; | |
| line-height: 1; | |
| } | |
| /* --- Month shelves: report cards instead of book covers --- */ | |
| .browse-rail--report { | |
| grid-auto-columns: 260px; | |
| } | |
| .browse-report-card { | |
| display: flex; | |
| height: 100%; | |
| flex-direction: column; | |
| gap: 8px; | |
| padding: 18px 20px; | |
| border: 1px solid var(--border-color); | |
| border-radius: 4px; | |
| background: var(--bg-card); | |
| text-decoration: none; | |
| transition: border-color 180ms ease; | |
| } | |
| .browse-report-card:hover { border-color: var(--text-muted); } | |
| .browse-report-card:focus-visible { outline: 2px solid var(--link-blue); outline-offset: 2px; } | |
| .browse-report-period { | |
| color: var(--link-blue); | |
| font: 700 13px/1 Georgia, 'Times New Roman', serif; | |
| letter-spacing: 0.02em; | |
| } | |
| .browse-report-title { | |
| color: var(--text-primary); | |
| font-family: Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif; | |
| font-size: 16px; | |
| font-weight: 500; | |
| line-height: 1.4; | |
| overflow: hidden; | |
| -webkit-line-clamp: 3; | |
| -webkit-box-orient: vertical; | |
| display: -webkit-box; | |
| } | |
| .browse-report-stats { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| margin-top: auto; | |
| padding-top: 10px; | |
| border-top: 1px solid var(--border-color); | |
| color: var(--text-muted); | |
| font-size: 12px; | |
| } | |
| /* --- Filter section --- */ | |
| .weekly-page .content-section { margin-bottom: 40px; } | |
| .weekly-page .filter-section { | |
| padding: 0 0 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| margin-bottom: 28px; | |
| } | |
| .weekly-page .filter-controls { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 16px; | |
| align-items: flex-end; | |
| } | |
| .weekly-page .filter-group { | |
| display: flex; | |
| min-width: 180px; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .weekly-page .filter-group > label { | |
| color: var(--text-secondary); | |
| font-size: 12px; | |
| font-weight: 600; | |
| letter-spacing: 0.12em; | |
| text-transform: uppercase; | |
| } | |
| .weekly-page .form-select, | |
| .weekly-page .form-input { | |
| min-height: 44px; | |
| padding: 0 12px; | |
| border: 1px solid var(--border-color); | |
| border-radius: 4px; | |
| background: var(--bg-card); | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| } | |
| .weekly-page .form-select:focus, | |
| .weekly-page .form-input:focus { | |
| outline: none; | |
| border-color: var(--link-blue); | |
| box-shadow: 0 0 0 3px rgb(0 114 245 / 12%); | |
| } | |
| .weekly-page .search-box { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .weekly-page .search-box .form-input { flex: 1; } | |
| .weekly-page .search-btn { | |
| display: inline-flex; | |
| width: 44px; | |
| align-items: center; | |
| justify-content: center; | |
| border: 1px solid var(--border-color); | |
| border-radius: 4px; | |
| background: var(--bg-card); | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| } | |
| .weekly-page .search-btn:hover { border-color: var(--text-muted); color: var(--text-primary); } | |
| /* --- Report list --- */ | |
| .weekly-page .reports-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0; | |
| } | |
| .weekly-page .report-card { | |
| display: grid; | |
| grid-template-columns: 72px minmax(0, 1fr); | |
| gap: 24px; | |
| padding: 26px 0; | |
| border-bottom: 1px solid var(--border-color); | |
| background: transparent; | |
| border-radius: 0; | |
| box-shadow: none; | |
| transition: none; | |
| } | |
| .weekly-page .report-card:hover { transform: none; box-shadow: none; } | |
| .weekly-page .report-card[hidden] { display: none; } | |
| .weekly-page .news-date-badge { | |
| display: flex; | |
| width: auto; | |
| height: auto; | |
| flex-direction: column; | |
| align-items: flex-start; | |
| justify-content: flex-start; | |
| gap: 2px; | |
| padding: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| } | |
| .weekly-page .news-day { | |
| color: var(--text-primary); | |
| font: 400 34px/1 Georgia, 'Times New Roman', serif; | |
| letter-spacing: -0.04em; | |
| } | |
| .weekly-page .news-month { color: var(--text-muted); font-size: 12px; letter-spacing: 0.08em; } | |
| .weekly-page .news-card-content { min-width: 0; } | |
| .weekly-page .news-title { | |
| margin: 0 0 8px; | |
| font-family: Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif; | |
| font-size: 22px; | |
| font-weight: 500; | |
| letter-spacing: -0.02em; | |
| line-height: 1.35; | |
| } | |
| .weekly-page .news-title a { color: var(--text-primary); text-decoration: none; } | |
| .weekly-page .news-title a:hover { text-decoration: underline; } | |
| .weekly-page .news-meta, | |
| .weekly-page .news-period { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| color: var(--text-muted); | |
| font-size: 12px; | |
| } | |
| .weekly-page .news-summary { | |
| margin: 10px 0 0; | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| line-height: 1.7; | |
| } | |
| .weekly-page .news-highlights { margin-top: 12px; } | |
| .weekly-page .highlights-list { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px 20px; | |
| margin: 0; | |
| padding: 0; | |
| list-style: none; | |
| } | |
| .weekly-page .highlights-list li { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| color: var(--text-secondary); | |
| font-size: 12px; | |
| } | |
| .weekly-page .news-actions { | |
| display: flex; | |
| gap: 10px; | |
| margin-top: 16px; | |
| } | |
| .weekly-page .news-actions .btn { | |
| min-height: 38px; | |
| border-radius: 4px; | |
| font-size: 13px; | |
| } | |
| .weekly-page .news-actions .btn-primary { | |
| border-color: var(--text-primary); | |
| background: var(--text-primary); | |
| color: var(--text-white); | |
| } | |
| .weekly-page .news-actions .btn-outline { | |
| border-color: var(--border-color); | |
| background: transparent; | |
| color: var(--text-secondary); | |
| } | |
| .weekly-page .news-actions .btn-outline:hover { border-color: var(--text-muted); color: var(--text-primary); } | |
| /* --- About card --- */ | |
| .weekly-page .section-card { | |
| padding: 26px 28px; | |
| border: 1px solid var(--border-color); | |
| border-radius: 4px; | |
| background: var(--bg-card); | |
| } | |
| .weekly-page .section-title { | |
| margin: 0 0 12px; | |
| color: var(--text-primary); | |
| font-family: Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif; | |
| font-size: 19px; | |
| font-weight: 500; | |
| } | |
| .weekly-page .section-content p { | |
| margin: 0 0 12px; | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| line-height: 1.7; | |
| } | |
| .weekly-page .list-disc { | |
| margin: 0; | |
| padding-left: 20px; | |
| color: var(--text-secondary); | |
| font-size: 13px; | |
| line-height: 1.9; | |
| } | |
| .weekly-page .empty-state { | |
| padding: 56px 24px; | |
| border: 1px solid var(--border-color); | |
| border-radius: 4px; | |
| background: var(--bg-card); | |
| } | |
| @media (max-width: 760px) { | |
| .browse-rail--report { grid-auto-columns: 216px; } | |
| .weekly-page .report-card { | |
| grid-template-columns: 1fr; | |
| gap: 10px; | |
| padding: 20px 0; | |
| } | |
| .weekly-page .news-day { font-size: 27px; } | |
| .weekly-page .news-title { font-size: 18px; } | |
| .weekly-page .filter-group { min-width: 0; width: 100%; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .weekly-page .browse-report-card, | |
| .weekly-page .report-card { animation: none; transition: none; transform: none; } | |
| } | |
| /* Desktop weekly typography: +2px for list summary and recommendation facts (14->16px) */ | |
| @media (min-width: 761px) { | |
| body.weekly-page .news-summary { | |
| font-size: 16px; | |
| } | |
| body.weekly-detail-page .recommendation-reason p { | |
| font-size: 18px; | |
| } | |
| } | |