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: 1;
12 min-width: 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 gap: 0.5rem;
25 border-bottom: 1px solid var(--color-c);
26 padding: 0.5rem;
27
28 & > div {
29 display: flex;
30 flex-wrap: wrap;
31 gap: 0.5rem;
32 }
33
34 & > span {
35 text-wrap: nowrap;
36 margin: 1rem;
37 }
38}
39
40.filter-files {
41 border: none;
42 border-bottom: 1px solid var(--color-c);
43}
44
45.file-list-wrapper {
46 position: relative; /*for loading screen*/
47 flex: 1;
48 min-height: 0;
49 display: flex;
50 flex-direction: column;
51 & > .error {
52 display: flex;
53 width: 100%;
54 height: 100%;
55 align-items: center;
56 justify-content: center;
57 }
58
59 & > .file-list {
60 overflow-y: auto;
61 padding: 0.5rem;
62 display: flex;
63 flex-direction: column;
64 gap: 0.25rem;
65
66 & > .directory-item,
67 & > .file-item {
68 padding: 0.5rem;
69 background-color: var(--color-c);
70 display: flex;
71 gap: 1.5rem;
72 align-items: center;
73 &:hover {
74 background-color: var(--color-c-highlight);
75 }
76 & > span {
77 min-width: 0;
78 margin-right: auto;
79 }
80 }
81
82 & > .directory-item {
83 font-weight: bold;
84 cursor: pointer;
85 & > .download-button-wrapper {
86 display: flex;
87 flex-direction: column;
88 align-items: center;
89 line-height: 0.5rem;
90 font-size: 12px;
91 }
92 }
93 }
94}
95
96.breadcrumb {
97 padding: 0.5rem;
98 border-bottom: 1px solid var(--color-c);
99 display: flex;
100 flex-wrap: wrap;
101
102 &.breadcrumb-nowrap {
103 flex-wrap: nowrap;
104 text-wrap: nowrap;
105 & > span {
106 text-overflow: ellipsis;
107 overflow: hidden;
108 flex: 1;
109 max-width: fit-content;
110 }
111 }
112
113 gap: 0.5rem;
114 & > span {
115 cursor: pointer;
116 color: var(--color-d);
117 &:hover {
118 text-decoration: underline;
119 }
120 }
121 & > .toggle-browser-actions {
122 margin-left: auto;
123 }
124}
125
126.cover {
127 position: relative;
128 height: 25%;
129 border-top: 1px solid var(--color-c);
130 display: flex;
131 justify-content: center;
132 & > img {
133 padding: 0.5rem;
134 object-fit: contain;
135 max-height: 100%;
136 max-width: 100%;
137 }
138}
139
140@media (max-width: 750px) {
141 .file-browser {
142 z-index: 1;
143 position: absolute;
144 width: 100%;
145 box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
146 }
147
148 .hidden {
149 display: none;
150 }
151}
152