Skip to content

Commit 5f1cd01

Browse files
committed
Add button and knob styles for 2048Clone theme
Based off of MinesweeperClone. The checkbox images are also lifted from there.
1 parent bf5abb7 commit 5f1cd01

File tree

3 files changed

+66
-3
lines changed

3 files changed

+66
-3
lines changed

public/images/Checkbox_checked.png

850 Bytes
Loading

public/images/Checkbox_unchecked.png

224 Bytes
Loading

src/styles/themes/classic.css

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ body.classic .top-menu > .menu-options > .score-wrap-box > .space {
176176
}
177177

178178
body.classic .top-menu > .menu-options > .commands {
179-
margin-top: 40px;
179+
margin-top: 20px;
180180
}
181181

182182
body.classic .top-menu > .title {
@@ -203,11 +203,54 @@ body.classic button.close:hover > svg {
203203
}
204204

205205
body.classic button.button {
206-
background-color: rgba(0, 0, 0, 0);
206+
background-color: yellow;
207+
border: 2px solid black;
208+
border-bottom: none;
209+
border-radius: 0;
210+
}
211+
212+
body.classic button.button:last-child {
213+
border-bottom: 2px solid black;
214+
}
215+
216+
body.classic button.button > * {
217+
color: black;
207218
}
208219

209220
body.classic button.button:hover {
210-
color: var(--hovered-color);
221+
background-color: rgb(171, 171, 0);
222+
color: white;
223+
}
224+
225+
/* Specific Buttons */
226+
227+
body.classic button.button.share-button,
228+
body.classic button.button.clipboard-button {
229+
padding: 0.5em 0.5em 0.5em 0.5em;
230+
margin: 0.5em 0em 0.5em 0em;
231+
background-color: var(--green);
232+
border: 2px solid black;
233+
}
234+
235+
body.classic button.button.share-button > *,
236+
body.classic button.button.clipboard-button > * {
237+
color: black;
238+
font-weight: bold;
239+
}
240+
241+
body.classic button.button.share-button:hover,
242+
body.classic button.button.clipboard-button:hover {
243+
background-color: rgb(0, 82, 0);
244+
}
245+
246+
body.classic button.button.new-game {
247+
padding: 1em 0.5em 1em 0.5em;
248+
margin: 0.5em 0em 0.5em 0em;
249+
}
250+
251+
body.classic button.button.new-game > * {
252+
color: black;
253+
font-weight: bold;
211254
}
212255

213256
/* NTS: Hover color still appears and won't go away after tapping elsewhere on iOS.
@@ -290,3 +333,23 @@ body.classic .dialog.game-over {
290333
body.classic .dialog.win {
291334
background-color: lime;
292335
}
336+
337+
/* Settings Knob Modifications for Classic theme */
338+
339+
body.classic .knob {
340+
position: relative;
341+
342+
width: 32px;
343+
height: 32px;
344+
border-radius: 0;
345+
346+
background-image: url("/images/Checkbox_unchecked.png");
347+
}
348+
349+
body.classic .knob.enabled {
350+
background-image: url("/images/Checkbox_checked.png");
351+
}
352+
353+
body.classic .knob > .knob-inside {
354+
display: none;
355+
}

0 commit comments

Comments
 (0)