mirror of
https://github.com/ghndrx/k8s-game-2048.git
synced 2026-02-10 14:54:59 +00:00
Auto-promote: Merge develop to staging after successful dev tests
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>2048 Game - v2.0.5</title>
|
<title>2048 Game - v2.0.6</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link rel="icon" type="image/png" href="favicon.png">
|
<link rel="icon" type="image/png" href="favicon.png">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
115
src/style.css
115
src/style.css
@@ -1,5 +1,9 @@
|
|||||||
/* 2048 Game CSS - Knative Edition */
|
/* 2048 Game CSS - Knative Edition */
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -11,7 +15,11 @@ html, body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding: 40px 20px;
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
@@ -26,23 +34,25 @@ h1.title {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 580px;
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 20px;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 25px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 15px;
|
gap: 10px;
|
||||||
|
padding: 0 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header h1 {
|
.header h1 {
|
||||||
color: #776e65;
|
color: #776e65;
|
||||||
font-size: 80px;
|
font-size: clamp(48px, 8vw, 80px);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@@ -111,13 +121,17 @@ h1.title {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
padding: 0 15px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-intro {
|
.game-intro {
|
||||||
line-height: 1.65;
|
line-height: 1.65;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-right: 20px;
|
margin-right: 15px;
|
||||||
|
font-size: clamp(14px, 2.5vw, 18px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.restart-button {
|
.restart-button {
|
||||||
@@ -146,8 +160,10 @@ h1.title {
|
|||||||
touch-action: none;
|
touch-action: none;
|
||||||
background: #bbada0;
|
background: #bbada0;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
width: 512px;
|
width: 100%;
|
||||||
height: 512px;
|
max-width: 520px;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
margin: 0 auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,13 +319,15 @@ h1.title {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.game-explanation {
|
.game-explanation {
|
||||||
margin-top: 30px;
|
margin-top: 25px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
padding: 0 15px;
|
||||||
|
font-size: clamp(14px, 2vw, 16px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-explanation p {
|
.game-explanation p {
|
||||||
margin: 10px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keep-playing-button, .retry-button {
|
.keep-playing-button, .retry-button {
|
||||||
@@ -389,24 +407,79 @@ h1.title {
|
|||||||
/* Additional responsive improvements */
|
/* Additional responsive improvements */
|
||||||
@media screen and (max-width: 640px) {
|
@media screen and (max-width: 640px) {
|
||||||
body {
|
body {
|
||||||
padding: 20px 10px;
|
padding: 15px;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
max-width: 520px;
|
}
|
||||||
padding: 15px;
|
|
||||||
|
.header {
|
||||||
|
padding: 0 10px;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header h1 {
|
.header h1 {
|
||||||
font-size: 60px;
|
font-size: clamp(40px, 10vw, 60px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.above-game {
|
||||||
|
padding: 0 10px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-intro {
|
||||||
|
margin-right: 0;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.restart-button {
|
||||||
|
align-self: center;
|
||||||
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-container {
|
.game-container {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
max-width: 480px;
|
width: calc(100vw - 30px);
|
||||||
height: auto;
|
max-width: 450px;
|
||||||
aspect-ratio: 1;
|
}
|
||||||
margin: 0 auto;
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
|
body {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header h1 {
|
||||||
|
font-size: clamp(32px, 12vw, 48px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-container {
|
||||||
|
width: calc(100vw - 20px);
|
||||||
|
max-width: 400px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scores-container {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-container {
|
||||||
|
padding: 8px 12px;
|
||||||
|
min-width: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1200px) {
|
||||||
|
.container {
|
||||||
|
max-width: 650px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-container {
|
||||||
|
max-width: 550px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user