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