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; /*for loading screen*/
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 display: flex;
58 flex-direction: column;
59 gap: 0.25rem;
60
61 & > .directory-item,
62 & > .file-item {
63 padding: 0.5rem;
64 background-color: var(--color-c);
65 display: flex;
66 gap: 1.5rem;
67 align-items: center;
68 &:hover {
69 background-color: var(--color-c-highlight);
70 }
71 }
72
73 & > .directory-item {
74 font-weight: bold;
75 cursor: pointer;
76 }
77 }
78}
79
80.breadcrumb {
81 padding: 0.5rem;
82 border-bottom: 1px solid var(--color-c);
83 display: flex;
84 flex-wrap: wrap;
85 gap: 0.5rem;
86 & > span {
87 cursor: pointer;
88 color: var(--color-d);
89 &:hover {
90 text-decoration: underline;
91 }
92 }
93}
94
95.cover {
96 position: relative;
97 width: 100%;
98 max-height: 25%;
99 height: 25%;
100 border-top: 1px solid var(--color-c);
101 display: flex;
102 justify-content: center;
103 & > img {
104 padding: 2.5%;
105 object-fit: contain;
106 }
107}
108
109@media (max-width: 600px) {
110 .file-browser {
111 position: absolute;
112 width: 80%;
113 box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
114 }
115
116 .hidden {
117 display: none;
118 }
119}
120