Skip to content

Commit 0022f6d

Browse files
committed
fix issues caused by switching to dark-mode
1 parent 33768ba commit 0022f6d

File tree

1 file changed

+58
-46
lines changed

1 file changed

+58
-46
lines changed

client/finder-admin.scss

Lines changed: 58 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ul.messagelist {
1818
position: relative;
1919
}
2020

21-
$trash-background: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--darkened-bg) 10px, var(--darkened-bg) 20px);
21+
$trash-background: repeating-linear-gradient(45deg, var(--body-bg), var(--body-bg) 10px, var(--darkened-bg) 10px, var(--darkened-bg) 20px);
2222
$follow-folder-border: 2px dashed var(--border-color);
2323
$copied-inode-border: 2px dashed rgb(48, 164, 0);
2424
$active-rectangle: rgb(210, 210, 112);
@@ -58,13 +58,14 @@ $active-rectangle: rgb(210, 210, 112);
5858
box-sizing: border-box;
5959
display: flex;
6060
flex-wrap: wrap;
61-
margin: 0 15px;
61+
margin: 0 14px;
6262
padding: 0;
6363

6464
li {
6565
display: list-item;
6666
list-style: none;
6767
padding: 0;
68+
6869
&:not(:empty) {
6970
cursor: pointer;
7071
border-radius: 4px;
@@ -257,21 +258,21 @@ $active-rectangle: rgb(210, 210, 112);
257258
display: flex;
258259
flex-wrap: wrap;
259260
margin: 10px 0 0 0;
260-
padding: 0 15px;
261+
padding: 0 12px;
261262
border-bottom: 1px solid var(--border-color);
262263

263264
li {
264265
display: list-item;
265266
list-style: none;
266-
margin: -5px 1px -1px 1px;
267+
margin: -5px 2px -1px 2px;
267268
padding: 6px 14px;
268269
font-size: 16px;
269270
font-weight: bold;
270271
border: 1px solid var(--border-color);
271272
border-top-left-radius: 4px;
272273
border-top-right-radius: 4px;
273274
border-bottom: 1px solid var(--body-bg);
274-
background-color: var(--darkened-bg);
275+
background-color: var(--selected-bg);
275276

276277
&.active, &.current {
277278
background-color: var(--body-bg);
@@ -280,23 +281,29 @@ $active-rectangle: rgb(210, 210, 112);
280281
cursor: pointer;
281282
border-bottom: 1px solid var(--border-color);
282283
}
283-
&.drag-over {
284+
&.drag-over:not(.active) {
284285
color: var(--selected-row);
285286
background-color: var(--button-hover-bg);
286287
}
287288
&.trash {
288-
background-image: $trash-background;
289-
background-color: transparent;
290-
background-attachment: fixed;
289+
&.active {
290+
background-image: $trash-background;
291+
background-color: transparent;
292+
background-attachment: fixed;
293+
}
291294
margin-left: auto;
292295
}
293296

294297
span {
295298
cursor: pointer;
296299
margin-left: 10px;
297-
:hover {
298-
background-color: lightgrey;
300+
color: var(--link-fg);
301+
border-radius: 50%;
302+
&:hover {
303+
color: var(--link-hover-color);
304+
background-color: var(--primary);
299305
}
306+
300307
> svg {
301308
height: 16px;
302309
width: 16px;
@@ -343,6 +350,15 @@ $active-rectangle: rgb(210, 210, 112);
343350
}
344351
}
345352

353+
.status {
354+
font-size: 18px;
355+
font-weight: bold;
356+
line-height: 50px;
357+
color: var(--body-quiet-color);
358+
padding-left: 2em;
359+
width: auto;
360+
}
361+
346362
ul.inode-list {
347363
> li {
348364
&.dragging .inode, &.cutted .inode {
@@ -476,9 +492,6 @@ $active-rectangle: rgb(210, 210, 112);
476492
list-style: none;
477493
padding: 5px;
478494
border: 1px solid transparent;
479-
cursor: pointer;
480-
font-size: 15px;
481-
line-height: 18px;
482495

483496
&:hover {
484497
filter: brightness(1.125);
@@ -495,14 +508,6 @@ $active-rectangle: rgb(210, 210, 112);
495508
cursor: not-allowed;
496509
}
497510

498-
&.status {
499-
font-size: 18px;
500-
font-weight: bold;
501-
line-height: 50px;
502-
color: var(--body-quiet-color);
503-
padding-left: 2em;
504-
}
505-
506511
[aria-roledescription="draggable"]:focus-visible {
507512
outline: none;
508513
}
@@ -596,44 +601,51 @@ $active-rectangle: rgb(210, 210, 112);
596601
.tiles ul.inode-list {
597602
gap: 10px;
598603

599-
li .inode .figure-labels {
600-
inset: 5px;
601-
span {
602-
width: 12px;
603-
height: 12px;
604-
display: inline-block;
605-
border-radius: 50%;
606-
margin-left: -4px;
607-
}
608-
}
609-
610604
li:not(.status) {
611605
min-height: 250px;
612606
width: 190px;
607+
cursor: pointer;
608+
font-size: 15px;
609+
line-height: 18px;
610+
611+
.inode .figure-labels {
612+
inset: 5px;
613+
614+
span {
615+
width: 12px;
616+
height: 12px;
617+
display: inline-block;
618+
border-radius: 50%;
619+
margin-left: -4px;
620+
}
621+
}
613622
}
614623
}
615624

616625
.mosaic ul.inode-list {
617626
gap: 5px;
618627

619-
li .inode .figure-labels {
620-
inset: 2px;
621-
622-
span {
623-
width: 8px;
624-
height: 8px;
625-
display: inline-block;
626-
border-radius: 50%;
627-
margin-left: -3px;
628-
}
629-
}
630-
631628
li:not(.status) {
632629
min-height: 120px;
633630
width: 70px;
631+
cursor: pointer;
632+
font-size: 15px;
633+
line-height: 18px;
634+
635+
.inode .figure-labels {
636+
inset: 2px;
637+
638+
span {
639+
width: 8px;
640+
height: 8px;
641+
display: inline-block;
642+
border-radius: 50%;
643+
margin-left: -3px;
644+
}
645+
}
634646
}
635-
}
636647

648+
}
637649

638650
.list ul.inode-list, .columns ul.inode-list {
639651
display: block;

0 commit comments

Comments
 (0)