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 display: flex;
72 align-items: center;
73 &:hover {
74 background-color: var(--color-c-highlight);
75 }
76
77 & > span {
78 min-width: 0;
79 }
80 }
81
82 & > .directory-item {
83 font-weight: bold;
84 cursor: pointer;
85 }
86 }
87}
88
89.breadcrumb {
90 padding: 0.5rem;
91 border-bottom: 1px solid var(--color-c);
92 display: flex;
93 flex-wrap: wrap;
94 gap: 0.5rem;
95 & > span {
96 cursor: pointer;
97 color: var(--color-d);
98 &:hover {
99 text-decoration: underline;
100 }
101 }
102}
103
104.cover {
105 position: relative;
106 width: 100%;
107 max-height: 25%;
108 height: 25%;
109 border-top: 1px solid var(--color-c);
110 display: flex;
111 justify-content: center;
112 & > img {
113 padding: 2.5%;
114 object-fit: contain;
115 }
116}
117
118@media (max-width: 600px) {
119 .file-browser {
120 position: absolute;
121 width: 80%;
122 box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
123 }
124
125 .hidden {
126 display: none;
127 }
128}
129