Commit d7d2c90 1 parent d8cefe7 commit d7d2c90 Copy full SHA for d7d2c90
File tree 1 file changed +14
-6
lines changed
1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 58
58
text-align : left;
59
59
vertical-align : top;
60
60
}
61
-
61
+ textarea ::placeholder {
62
+ color : # 7f7e7e ;
63
+ opacity : 1 ;
64
+ }
65
+ .light-mode textarea ::placeholder {
66
+ color : # 333 ;
67
+ opacity : 0.5 ;
68
+ }
62
69
.icon {
63
70
cursor : pointer;
64
71
opacity : 0.5 ;
65
72
transition : opacity 0.3s , color 0.3s ;
66
73
font-size : 14px ;
67
74
color : # e0e0e0 ;
68
75
}
69
-
76
+ .light-mode .icon {
77
+ color : # 333 ;
78
+ }
70
79
.icon : hover {
71
80
opacity : 1 ;
72
- color : # e0e0e0 ;
81
+
73
82
}
74
83
</ style >
75
84
</ head >
139
148
const day = now . getDate ( ) . toString ( ) . padStart ( 2 , "0" ) ;
140
149
const hours = now . getHours ( ) . toString ( ) . padStart ( 2 , "0" ) ;
141
150
const minutes = now . getMinutes ( ) . toString ( ) . padStart ( 2 , "0" ) ;
142
-
151
+
143
152
return `shiro_${ year } -${ month } -${ day } _${ hours } -${ minutes } .txt` ;
144
153
} ;
145
154
187
196
188
197
const applyTheme = ( ) => {
189
198
const usingLightMode = document . body . classList . contains ( "light-mode" ) ;
190
-
199
+
191
200
document . body . style . background = usingLightMode ? "#f5f5f5" : "#1e1e1e" ;
192
201
document . body . style . color = usingLightMode ? "#333" : "#e0e0e0" ;
193
202
textarea . style . color = usingLightMode ? "#333" : "#e0e0e0" ;
197
206
198
207
// Update all icons
199
208
icons . forEach ( icon => {
200
- icon . style . color = usingLightMode ? "#333" : "#e0e0e0" ;
201
209
icon . style . opacity = buttonsHidden ? "0" : "0.5" ;
202
210
} ) ;
203
211
You can’t perform that action at this time.
0 commit comments