Skip to content

Commit 354b0a5

Browse files
authored
Update style.css
1 parent 00d912c commit 354b0a5

1 file changed

Lines changed: 25 additions & 24 deletions

File tree

webchat/style.css

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ header h1 {
3838
main {
3939
max-width: 792px;
4040
margin: 2.5em auto;
41-
margin-left: 300px;
41+
margin-left: 320px;
4242
background: #fff;
4343
border-radius: 12px;
4444
box-shadow: 0 2px 16px rgba(30,30,50,0.10);
@@ -148,7 +148,7 @@ main {
148148
padding: 1.2em 1.7em 1.2em 1.5em;
149149
display: inline-block;
150150
min-width: 220px;
151-
max-width: 320px;
151+
max-width: 300px;
152152
width: auto;
153153
z-index: 10;
154154
}
@@ -168,27 +168,6 @@ main {
168168
word-break: break-word;
169169
}
170170

171-
/* --- TOKEN COUNTER BUTTON (½-inch above dark-mode toggle) --- */
172-
#token-counter-btn {
173-
position: fixed;
174-
/* dark-mode button sits at bottom: 2em, height: 2.5em ⇒
175-
add 0.5-inch (~12.7 mm ≈ 48 px) gap above it */
176-
bottom: calc(2em + 2.5em + 0.5in); /* ≈ 2em + 40px + 48px */
177-
right : 2em;
178-
width : 2.5em;
179-
height: 2.5em;
180-
border-radius: 50%;
181-
border: none;
182-
background: #ffb547; /* coin color */
183-
color: #000;
184-
font-size: 1.2em; /* 🪙 icon size */
185-
cursor: pointer;
186-
z-index: 101;
187-
box-shadow: 0 2px 6px rgba(40,40,60,0.10);
188-
}
189-
#token-counter-btn:hover {
190-
background: #ffd376;
191-
192171
/* --- DARK MODE --- */
193172
body.dark-mode {
194173
background: #181b24;
@@ -249,7 +228,29 @@ body.dark-mode #darkModeToggle {
249228
color: #fff;
250229
}
251230

252-
/* --- Responsive improvements (optional) --- */
231+
/* --- TOKEN COUNTER BUTTON (½-inch above dark-mode toggle) --- */
232+
#token-counter-btn {
233+
position: fixed;
234+
/* dark-mode button sits at bottom: 2em, height: 2.5em ⇒
235+
add 0.5-inch (~12.7 mm ≈ 48 px) gap above it */
236+
bottom: calc(2em + 2.5em + 0.5in); /* ≈ 2em + 40px + 48px */
237+
right : 2em;
238+
width : 2.5em;
239+
height: 2.5em;
240+
border-radius: 50%;
241+
border: none;
242+
background: #ffb547; /* coin color */
243+
color: #000;
244+
font-size: 1.2em; /* 🪙 icon size */
245+
cursor: pointer;
246+
z-index: 101;
247+
box-shadow: 0 2px 6px rgba(40,40,60,0.10);
248+
}
249+
#token-counter-btn:hover {
250+
background: #ffd376;
251+
}
252+
253+
/* --- Responsive improvements --- */
253254
@media (max-width: 900px) {
254255
#sidebar {
255256
left: 1em;

0 commit comments

Comments
 (0)