Skip to content

Commit a0efe0b

Browse files
authored
(Github Image Viewer) Slightly improved the floater text style (#165)
* Set text color to black on light background * Align title text to center
1 parent 280c864 commit a0efe0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Github_Image_Viewer/Github_Image_Viewer.user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969

7070
var floaterTitle = GithubImageViewer._floaterTitle = document.createElement("div");
7171
floaterTitle.style.backgroundColor = "#e6f1f6";
72+
floaterTitle.style.color = "black";
73+
floaterTitle.style.textAlign = "center";
7274
floaterTitle.style.borderBottom = "1px solid #d8e6ec";
7375
floaterTitle.style.padding = "3px 5px";
7476
floaterMouseAlign.appendChild(floaterTitle);
@@ -90,6 +92,7 @@
9092

9193
var floaterMeta = GithubImageViewer._floaterMeta = document.createElement("div");
9294
floaterMeta.style.backgroundColor = "#f8f8f8";
95+
floaterMeta.style.color = "black";
9396
floaterMeta.style.padding = "3px";
9497
floaterMeta.style.textAlign = "center";
9598
floaterMeta.style.whiteSpace = "nowrap";

0 commit comments

Comments
 (0)