aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/repo/home-file-list.css
blob: ecb26fa6629a42a02a97598baf031ec8eeeaa27a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#repo-files-table {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  border: 1px solid var(--color-light-border);
  border-radius: var(--border-radius);
  margin: 10px 0; /* match the "clone-panel-popup" margin to avoid "visual double-border" */
}

#repo-files-table .svg.octicon-file-directory-fill,
#repo-files-table .svg.octicon-file-submodule {
  color: var(--color-primary);
}

#repo-files-table .svg.octicon-file,
#repo-files-table .svg.octicon-file-symlink-file,
#repo-files-table .svg.octicon-file-directory-symlink {
  color: var(--color-secondary-dark-7);
}

#repo-files-table .repo-file-item {
  display: contents;
}

#repo-files-table .repo-file-item:hover > .repo-file-cell {
  background: var(--color-hover);
}

#repo-files-table .repo-file-line,
#repo-files-table .repo-file-cell {
  border-top: 1px solid var(--color-light-border);
  padding: 6px 10px;
}

#repo-files-table .repo-file-line:first-child {
  border-top: none;
}

#repo-files-table .repo-file-line {
  grid-column: 1 / span 3;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 6px 10px;
}

#repo-files-table .repo-file-last-commit {
  background: var(--color-box-header);
}

#repo-files-table .repo-file-cell.name {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#repo-files-table .repo-file-cell.message {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-light-1);
}

#repo-files-table .repo-file-cell.age {
  text-align: right;
  white-space: nowrap;
  color: var(--color-text-light-1);
}

@media (max-width: 767.98px) {
  #repo-files-table .repo-file-cell.name {
    max-width: 150px;
  }
}