-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bc70ad
commit 0af8147
Showing
4 changed files
with
67 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ RUN cargo clippy --all-features --no-deps | |
RUN cargo test | ||
|
||
CMD trunk build --release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,47 @@ | ||
button { | ||
width:85px; | ||
height:30px; | ||
font-size: 14px; | ||
background-color: #c4ffc6; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif | ||
/* Background div fills the viewport */ | ||
#background { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.timerDisplay { | ||
font-size: 200px; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif | ||
/* Main title spans full width */ | ||
.mainTitle { | ||
width: 100%; | ||
text-align: left; | ||
font-size: clamp(1rem, 2vw, 2rem); /* Responsive font size */ | ||
} | ||
|
||
/* Rounds display spans full width */ | ||
.roundsDisplay { | ||
font-size: 50px; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif; | ||
color: #014d04; | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
font-size: clamp(1rem, 4vw, 2rem); | ||
} | ||
|
||
.mainTitle { | ||
font-size: 20px; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif | ||
/* Timer display adjusts with viewport */ | ||
.timerDisplay { | ||
width: 100%; | ||
font-size: clamp(2rem, 25vw, 12rem); /* Responsive font size */ | ||
text-align: center; | ||
} | ||
|
||
/* Button container uses Flexbox */ | ||
#buttonDisplay { | ||
width: 100%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
|
||
/* Buttons adjust based on container width */ | ||
#buttonDisplay button { | ||
flex: 1 1 20%; /* Adjust percentage as needed */ | ||
margin: 0.5%; | ||
min-width: 80px; /* Optional: prevent buttons from becoming too small */ | ||
max-width: 100px; /* Optional: prevent buttons from becoming too large */ | ||
font-size: clamp(0.875rem, 1.5vw, 1.5rem); /* Responsive font size */ | ||
background-color: #c4ffc6; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif; | ||
} |