Skip to content

Commit 99d873d

Browse files
committed
dark mode fixes
1 parent 19daf42 commit 99d873d

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

src/background/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,5 +2526,5 @@ function renderDiffHtml(diff) {
25262526
};
25272527

25282528
const html = sanitized.map(([op, data]) => renderBody(op, data)).join('');
2529-
return `<pre class="ldiff-output" id="outputdiv">${html}</pre>`;
2529+
return `<pre class="ldiff-output">${html}</pre>`;
25302530
}

src/content/content.css

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
border: 1px solid rgba(0, 0, 0, 0.15);
7979
font-size: 12px;
8080
height: 28px;
81-
background: #fff;
82-
color: #333;
81+
background-color: #ffffff !important;
82+
color: #333 !important;
8383
appearance: none;
8484
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23666666' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.4-12.8z'/%3E%3C/svg%3E");
8585
background-repeat: no-repeat;
@@ -149,6 +149,7 @@
149149
text-overflow: ellipsis !important;
150150
overflow: hidden !important;
151151
color: #333 !important;
152+
background-color: #ffffff !important;
152153
-webkit-text-fill-color: #333 !important;
153154
text-indent: 0 !important;
154155
letter-spacing: normal !important;
@@ -193,8 +194,8 @@
193194
border: 1px solid rgba(0, 0, 0, 0.15);
194195
font-size: 12px;
195196
min-height: 28px !important;
196-
background: #fff;
197-
color: #333;
197+
background-color: #ffffff !important;
198+
color: #333 !important;
198199
appearance: none;
199200
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23666666' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.4-12.8z'/%3E%3C/svg%3E");
200201
background-repeat: no-repeat;
@@ -250,6 +251,10 @@
250251
margin: 0;
251252
word-break: normal;
252253
overflow-wrap: break-word;
254+
background-color: transparent !important;
255+
color: inherit !important;
256+
border: none !important;
257+
line-height: inherit !important;
253258
}
254259

255260
#license-diff-display .ldiff-pending {
@@ -439,8 +444,8 @@
439444
border: 1px solid rgba(0, 0, 0, 0.15);
440445
font-size: 12px;
441446
min-height: 30px !important;
442-
background: #fff;
443-
color: #333;
447+
background-color: #ffffff !important;
448+
color: #333 !important;
444449
appearance: none;
445450
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23666666' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.4-12.8z'/%3E%3C/svg%3E");
446451
background-repeat: no-repeat;
@@ -576,6 +581,12 @@
576581
border: 1px solid #3b3e46 !important;
577582
}
578583

584+
#license-diff-ui.ld-theme-dark #license-diff-dropdown option {
585+
background-color: #212830 !important;
586+
color: #f0f6fc !important;
587+
-webkit-text-fill-color: #f0f6fc !important;
588+
}
589+
579590
#license-diff-ui.ld-theme-dark #license-diff-url a {
580591
color: #4493f8 !important;
581592
border-bottom: 1px dotted transparent !important;

0 commit comments

Comments
 (0)