Skip to content

Commit

Permalink
Update: Fixed responsive stylings
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Mar 20, 2024
1 parent 91b36b7 commit 87be50e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Web-Version/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>About 2048 Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap" rel="stylesheet">
<style>
body {
Expand Down
14 changes: 11 additions & 3 deletions Web-Version/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');

html {
overflow-y: hidden;
html, body {
height: 100%;
}

body {
Expand All @@ -12,16 +12,24 @@ body {
align-items: center;
min-height: 100vh;
margin: 0;
overflow-y: hidden;
}

#gameContainer {
width: 500px;
max-width: 90%;
margin: auto;
padding: 20px;
border-radius: 10px;
background-color: #bbada0;
box-shadow: 0 0 15px rgba(0,0,0,0.2);
overflow: hidden;
}

@media (max-width: 600px) {
#gameContainer {
width: 90%;
padding: 10px;
}
}

#title {
Expand Down

0 comments on commit 87be50e

Please sign in to comment.