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