forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | // The repo home's newest CI run (pages/repo_side.rs) and the shared side-heading style. The dots |
| 2 | // are `.health-dot` (_account_admin.scss). |
| 3 | |
| 4 | .side-h { |
| 5 | display: flex; |
| 6 | align-items: baseline; |
| 7 | justify-content: space-between; |
| 8 | gap: 12px; |
| 9 | padding-bottom: 8px; |
| 10 | border-bottom: 1px solid var(--border-strong); |
| 11 | } |
| 12 | |
| 13 | // The run is one link: an ember dot that glows while the run goes, the number, |
| 14 | // a slim heat bar of the jobs done (while it goes), and one muted line on the right: the current |
| 15 | // job and its clock, or the result and the total time. |
| 16 | .side-run-link { |
| 17 | display: flex; |
| 18 | align-items: center; |
| 19 | gap: 8px; |
| 20 | min-width: 0; |
| 21 | padding: 11px 0; |
| 22 | color: inherit; |
| 23 | text-decoration: none; |
| 24 | |
| 25 | &:hover .side-run-name { |
| 26 | text-decoration: underline; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | .health-dot.ember { |
| 31 | background: var(--heat-3); |
| 32 | box-shadow: 0 0 6px var(--heat-glow); |
| 33 | animation: ember-pulse 1.8s ease-in-out infinite; |
| 34 | |
| 35 | @media (prefers-reduced-motion: reduce) { |
| 36 | animation: none; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | @keyframes ember-pulse { |
| 41 | 50% { |
| 42 | box-shadow: 0 0 10px var(--heat-glow); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | .side-run-name { |
| 47 | flex: none; |
| 48 | color: var(--text); |
| 49 | font-size: 14px; |
| 50 | font-weight: 600; |
| 51 | font-variant-numeric: tabular-nums; |
| 52 | } |
| 53 | |
| 54 | progress.side-run-bar { |
| 55 | -webkit-appearance: none; |
| 56 | appearance: none; |
| 57 | flex: 1 1 auto; |
| 58 | box-sizing: border-box; |
| 59 | min-width: 24px; |
| 60 | height: 4px; |
| 61 | margin: 0; |
| 62 | border: 0; |
| 63 | border-radius: 2px; |
| 64 | overflow: hidden; |
| 65 | background: var(--border); |
| 66 | color: var(--heat-3); |
| 67 | |
| 68 | &::-webkit-progress-bar { |
| 69 | background: var(--border); |
| 70 | } |
| 71 | |
| 72 | &::-webkit-progress-value { |
| 73 | border-radius: 2px; |
| 74 | background: linear-gradient(90deg, var(--heat-2), var(--heat-3), var(--heat-4)); |
| 75 | } |
| 76 | |
| 77 | &::-moz-progress-bar { |
| 78 | border-radius: 2px; |
| 79 | background: linear-gradient(90deg, var(--heat-2), var(--heat-3), var(--heat-4)); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | .side-run-text { |
| 84 | min-width: 0; |
| 85 | margin-left: auto; |
| 86 | overflow: hidden; |
| 87 | font-size: 12px; |
| 88 | font-variant-numeric: tabular-nums; |
| 89 | text-overflow: ellipsis; |
| 90 | white-space: nowrap; |
| 91 | } |