FileBrowser.css
⎇
Raw
1.file-browser {
2 flex-grow: 1;
3 flex-basis: 0;
4 height: 100%;
5 background-color: var(--color-a);
6 display: flex;
7 flex-direction: column;
8 border-right: 1px solid var(--color-c);
9 z-index: 1;
10}
11
12.browser-actions {
13 display: flex;
14 align-items: center;
15 border-bottom: 1px solid var(--color-c);
16 padding: 0.5rem;
17
18 & > div {
19 display: flex;
20 flex-wrap: wrap;
21 gap: 0.5rem;
22 }
23
24 & > span {
25 text-wrap: nowrap;
26 margin: 1rem;
27 }
28
29 & > .refresh-button {
30 background: none;
31 }
32
33 & > .offline-button {
34 text-wrap: nowrap;
35 width: min-content;
36 margin-left: 1rem;
37 }
38}
39
40.file-list-wrapper {
41 position: relative;
42 flex: 1;
43 min-height: 0;
44 display: flex;
45 flex-direction: column;
46 & > .error {
47 display: flex;
48 width: 100%;
49 height: 100%;
50 align-items: center;
51 justify-content: center;
52 }
53
54 & > .file-list {
55 overflow-y: auto;
56 padding: 0.5rem;
57
58 & > .loading-spinner {
59 position: absolute;
60 }
61
62 & > .directory-item,
63 & > .file-item {
64 & > svg {
65 flex-shrink: 0;
66 margin-right: 1rem;
67 }
68 padding: 0.5rem;
69 margin-bottom: 0.25rem;
70 background-color: var(--color-c);
71 border-radius: 4px;
72 display: flex;
73 align-items: center;
74 &:hover {
75 background-color: var(--color-c-highlight);
76 }
77
78 & > span {
79 min-width: 0;
80 }
81 }
82
83 & > .directory-item {
84 font-weight: bold;
85 cursor: pointer;
86 }
87 }
88}
89
90.breadcrumb {
91 padding: 0.5rem;
92 border-bottom: 1px solid var(--color-c);
93 display: flex;
94 flex-wrap: wrap;
95 gap: 0.5rem;
96 & > span {
97 cursor: pointer;
98 color: var(--color-d);
99 &:hover {
100 text-decoration: underline;
101 }
102 }
103}
104
105.cover {
106 position: relative;
107 width: 100%;
108 max-height: 25%;
109 height: 25%;
110 border-top: 1px solid var(--color-c);
111 display: flex;
112 justify-content: center;
113 & > img {
114 padding: 2.5%;
115 object-fit: contain;
116 }
117}
118
119@media (max-width: 600px) {
120 .file-browser {
121 position: absolute;
122 width: 80%;
123 box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
124 }
125
126 .hidden {
127 display: none;
128 }
129}
130