forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_min_code.scss73 lines, 1.6 KiBHistoryRawDownload
1// The code pages: only what style/_min.scss does not already give them.
2
3// A pressed view (unified, split, whitespace) reads as the current one.
4.sub a[aria-pressed="true"] {
5 color: var(--text);
6}
7
8// A commit row: the subject takes the room left, the rest stays on the line.
9.commits-r .name {
10 min-width: 0;
11 overflow: hidden;
12 text-overflow: ellipsis;
13 white-space: nowrap;
14}
15
16.commits-chev {
17 display: inline-flex;
18 flex: none;
19 color: var(--muted);
20
21 svg {
22 width: 14px;
23 height: 14px;
24 }
25}
26
27details.commits-d[open] .commits-chev svg {
28 transform: rotate(180deg);
29}
30
31.pull-file.current .name {
32 color: var(--text);
33 font-weight: 600;
34}
35
36// Far-right alignment left by the older code pages: the file finder sits after the path bar, a
37// tree row's age follows its name, and the strip's chips follow its facts.
38main .repo-grid.repo-home .browse-bar .finder-open {
39 margin-left: 12px;
40}
41
42// The two panes' head lines keep the panes' inner edge.
43.repo-grid.repo-home .browse-bar {
44 padding-left: 12px;
45 padding-right: 12px;
46}
47
48.repo-readme > .acts {
49 margin: 0;
50 padding: 8px 12px;
51}
52
53.repo-grid.repo-home .tree-entry-age {
54 margin-left: 0;
55}
56
57.repo-strip .strip-chips {
58 margin-left: 0;
59}
60
61// Browse files keeps the row's spacing: its padding is for the hover shape, not extra room, so a
62// wrapped one starts on the row's text edge like the facts above it.
63.commits-r > a.act {
64 margin-left: -10px;
65}
66
67// On a phone every commit row has the same two lines: the subject, then who, when, the hash, its
68// checks and Browse files.
69@media (max-width: 700px) {
70 .commits-r > .name {
71 flex-basis: 100%;
72 }
73}