- Moved filter button bar from App.jsx to GameList.jsx for better separation of concerns. - Updated GameList to accept filter/setFilter props and render the filter bar internally. - Moved .new-game-button styles to global CSS for consistent styling. - Ensured filter button styles remain in GameList.module.css. - Improves modularity and UI consistency.
79 lines
1.6 KiB
CSS
79 lines
1.6 KiB
CSS
/* Global resets and utility styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #1a1a1a;
|
|
color: white;
|
|
min-height: 100vh;
|
|
overscroll-behavior: none;
|
|
}
|
|
input, select {
|
|
min-height: 44px;
|
|
padding: 12px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
/* Global resets and utility styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #1a1a1a;
|
|
color: white;
|
|
min-height: 100vh;
|
|
overscroll-behavior: none;
|
|
}
|
|
input, select {
|
|
min-height: 44px;
|
|
padding: 12px;
|
|
font-size: 1.2rem;
|
|
}
|
|
@media screen and (max-width: 480px) {
|
|
.fullscreen-toggle {
|
|
bottom: 15px;
|
|
right: 15px;
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
}
|
|
|
|
.new-game-button {
|
|
width: 100%;
|
|
background: #222;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 0;
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
padding: 20px 0;
|
|
margin-bottom: 16px;
|
|
cursor: pointer;
|
|
transition: background 0.2s, color 0.2s;
|
|
text-align: center;
|
|
display: block;
|
|
}
|
|
|
|
.new-game-button:hover {
|
|
background: #333;
|
|
} |