Optimize UI for Xiaomi Redmi Pad 2 (2560x1600)
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
This commit is contained in:
parent
60dbed0412
commit
39dcbe5c37
1 changed files with 65 additions and 32 deletions
|
|
@ -117,7 +117,7 @@ code {
|
|||
.memory-game-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
padding: 15px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -126,24 +126,24 @@ code {
|
|||
|
||||
.start-screen, .results-screen {
|
||||
text-align: center;
|
||||
padding: 40px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.start-screen h1, .results-screen h1 {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 20px;
|
||||
font-size: 2.2rem;
|
||||
margin-bottom: 15px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 1.5rem;
|
||||
font-size: 1.2rem;
|
||||
color: #666;
|
||||
margin-bottom: 40px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.btn-start {
|
||||
font-size: 1.8rem;
|
||||
padding: 20px 60px;
|
||||
font-size: 1.4rem;
|
||||
padding: 15px 45px;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
border: none;
|
||||
|
|
@ -170,14 +170,14 @@ code {
|
|||
|
||||
.game-header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.round-counter {
|
||||
font-size: 1.5rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
padding: 10px;
|
||||
padding: 8px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
|
@ -186,13 +186,13 @@ code {
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 30px;
|
||||
min-height: 300px;
|
||||
margin-bottom: 20px;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.question-image {
|
||||
max-width: 100%;
|
||||
max-height: 400px;
|
||||
max-height: 280px;
|
||||
object-fit: contain;
|
||||
border: 3px solid #ddd;
|
||||
border-radius: 10px;
|
||||
|
|
@ -200,7 +200,7 @@ code {
|
|||
}
|
||||
|
||||
.question-word {
|
||||
font-size: 4rem;
|
||||
font-size: 2.8rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
text-transform: capitalize;
|
||||
|
|
@ -209,8 +209,8 @@ code {
|
|||
.options-area {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
margin-bottom: 30px;
|
||||
gap: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.options-area.image-options {
|
||||
|
|
@ -218,8 +218,8 @@ code {
|
|||
}
|
||||
|
||||
.option-button {
|
||||
padding: 30px;
|
||||
font-size: 2rem;
|
||||
padding: 20px;
|
||||
font-size: 1.5rem;
|
||||
background-color: #f8f9fa;
|
||||
border: 3px solid #ddd;
|
||||
border-radius: 10px;
|
||||
|
|
@ -242,8 +242,8 @@ code {
|
|||
}
|
||||
|
||||
.option-button.image-option {
|
||||
padding: 20px;
|
||||
height: 250px;
|
||||
padding: 15px;
|
||||
height: 180px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -251,7 +251,7 @@ code {
|
|||
|
||||
.option-button.image-option img {
|
||||
max-width: 100%;
|
||||
max-height: 200px;
|
||||
max-height: 150px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
|
|
@ -260,8 +260,8 @@ code {
|
|||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
padding: 40px 60px;
|
||||
font-size: 2.5rem;
|
||||
padding: 30px 45px;
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
border-radius: 15px;
|
||||
z-index: 1000;
|
||||
|
|
@ -293,15 +293,15 @@ code {
|
|||
.results {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 40px;
|
||||
margin: 40px 0;
|
||||
gap: 30px;
|
||||
margin: 25px 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.result-item {
|
||||
padding: 30px;
|
||||
padding: 25px;
|
||||
border-radius: 10px;
|
||||
min-width: 200px;
|
||||
min-width: 180px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
|
@ -317,19 +317,19 @@ code {
|
|||
|
||||
.result-label {
|
||||
display: block;
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.result-value {
|
||||
display: block;
|
||||
font-size: 3.5rem;
|
||||
font-size: 2.8rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.loading {
|
||||
text-align: center;
|
||||
padding: 40px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
|
@ -347,3 +347,36 @@ code {
|
|||
padding: 15px 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 2400px) and (min-height: 1500px) {
|
||||
.memory-game-container {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.game-header {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.question-area {
|
||||
margin-bottom: 15px;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.question-image {
|
||||
max-height: 260px;
|
||||
}
|
||||
|
||||
.options-area {
|
||||
gap: 12px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.option-button.image-option {
|
||||
height: 170px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.option-button.image-option img {
|
||||
max-height: 140px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue