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