Skip to content

Commit d7d2c90

Browse files
authored
Improve color consistency (#16)
1 parent d8cefe7 commit d7d2c90

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

index.html

+14-6
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,27 @@
5858
text-align: left;
5959
vertical-align: top;
6060
}
61-
61+
textarea::placeholder {
62+
color: #7f7e7e;
63+
opacity: 1;
64+
}
65+
.light-mode textarea::placeholder {
66+
color: #333;
67+
opacity: 0.5;
68+
}
6269
.icon {
6370
cursor: pointer;
6471
opacity: 0.5;
6572
transition: opacity 0.3s, color 0.3s;
6673
font-size: 14px;
6774
color: #e0e0e0;
6875
}
69-
76+
.light-mode .icon {
77+
color: #333;
78+
}
7079
.icon:hover {
7180
opacity: 1;
72-
color: #e0e0e0;
81+
7382
}
7483
</style>
7584
</head>
@@ -139,7 +148,7 @@
139148
const day = now.getDate().toString().padStart(2, "0");
140149
const hours = now.getHours().toString().padStart(2, "0");
141150
const minutes = now.getMinutes().toString().padStart(2, "0");
142-
151+
143152
return `shiro_${year}-${month}-${day}_${hours}-${minutes}.txt`;
144153
};
145154

@@ -187,7 +196,7 @@
187196

188197
const applyTheme = () => {
189198
const usingLightMode = document.body.classList.contains("light-mode");
190-
199+
191200
document.body.style.background = usingLightMode ? "#f5f5f5" : "#1e1e1e";
192201
document.body.style.color = usingLightMode ? "#333" : "#e0e0e0";
193202
textarea.style.color = usingLightMode ? "#333" : "#e0e0e0";
@@ -197,7 +206,6 @@
197206

198207
// Update all icons
199208
icons.forEach(icon => {
200-
icon.style.color = usingLightMode ? "#333" : "#e0e0e0";
201209
icon.style.opacity = buttonsHidden ? "0" : "0.5";
202210
});
203211

0 commit comments

Comments
 (0)