summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/file-icon.css
blob: 078352096cfc518253714b2ad8b23b6ba0b19b41 (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
[data-component="file-icon"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/*
  File tree: show monochrome weak icons by default.
  On hover, show the original file-type colors.
*/
[data-component="filetree"] .filetree-icon--mono {
  color: var(--icon-base);
}

[data-component="filetree"] .filetree-iconpair {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
}

[data-component="filetree"] .filetree-iconpair [data-component="file-icon"] {
  position: absolute;
  inset: 0;
}

[data-component="filetree"] .filetree-iconpair .filetree-icon--color {
  opacity: 0;
}

[data-component="filetree"]:hover .filetree-iconpair .filetree-icon--color {
  opacity: 1;
}

[data-component="filetree"]:hover .filetree-iconpair .filetree-icon--mono {
  opacity: 0;
}