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 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 gap: 0.5rem;
93 & > span {
94 cursor: pointer;
95 color: var(--color-d);
96 &:hover {
97 text-decoration: underline;
98 }
99 }
100}
101
102.cover {
103 position: relative;
104 width: 100%;
105 max-height: 25%;
106 height: 25%;
107 border-top: 1px solid var(--color-c);
108 display: flex;
109 justify-content: center;
110 & > img {
111 padding: 0.5rem;
112 object-fit: contain;
113 }
114}
115
116@media (max-width: 600px) {
117 .file-browser {
118 z-index: 1;
119 position: absolute;
120 width: 80%;
121 box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
122 }
123
124 .file-browser-overlay {
125 z-index: 1;
126 position: absolute;
127 left: 80%;
128 height: 100%;
129 width: 20%;
130 }
131
132 .hidden {
133 display: none;
134 }
135}
136