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