Skip to content

Commit 8d85a62

Browse files
Fix svg colors in file list table (#17903)
* Fix svg colors in file list table Turns out this can be fixed by just removing rules. Directory and file icons have other rules that still make them color correctly. * tweak color on file icons Co-authored-by: wxiaoguang <[email protected]>
1 parent f7094c8 commit 8d85a62

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

web_src/less/_repository.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@
304304
.svg {
305305
margin-left: 3px;
306306
margin-right: 5px;
307-
color: #777777;
308307

309308
&.octicon-reply {
310309
margin-right: 10px;
@@ -314,6 +313,11 @@
314313
&.octicon-file-submodule {
315314
color: var(--color-primary);
316315
}
316+
317+
&.octicon-file,
318+
&.octicon-file-symlink-file {
319+
color: var(--color-secondary-dark-7);
320+
}
317321
}
318322
}
319323

web_src/less/themes/theme-arc-green.less

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,6 @@ td.blob-hunk {
401401
color: var(--color-secondary-dark-6);
402402
}
403403

404-
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory,
405-
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
406-
color: #7c9b5e;
407-
}
408-
409404
.repository.labels .ui.basic.black.label {
410405
background-color: #bbbbbb !important;
411406
}
@@ -588,10 +583,6 @@ footer .container .links > * {
588583
border-left-color: #888;
589584
}
590585

591-
.repository.file.list #repo-files-table tbody .svg {
592-
color: var(--color-secondary-dark-6);
593-
}
594-
595586
.repository.release #release-list > li .detail .dot {
596587
background-color: #505667;
597588
border-color: #383c4a;

0 commit comments

Comments
 (0)