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