refactor(new-game): modernize UI, remove player selects
- Refactored New Game screen to use a modern, card-like, dark-themed layout - Removed select dropdowns for previous players, now only datalist+input for player names - Updated paddings, backgrounds, borders, and font sizes for a visually consistent, modern look - No logic changes, only markup and style Refs #1
This commit is contained in:
@@ -18,94 +18,117 @@
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.screen-title {
|
||||
font-size: 24px;
|
||||
margin-bottom: 20px;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin-bottom: 32px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
.player-inputs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
gap: 24px;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.player-input {
|
||||
margin-bottom: 20px;
|
||||
background: #222;
|
||||
border-radius: 8px;
|
||||
padding: 20px 16px 16px 16px;
|
||||
margin-bottom: 0;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.12);
|
||||
}
|
||||
.player-input label {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: 12px;
|
||||
color: #ccc;
|
||||
font-size: 24px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.name-input-container {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
.name-select {
|
||||
flex: 1;
|
||||
padding: 30px;
|
||||
border: 2px solid #333;
|
||||
background: #2a2a2a;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
min-height: 44px;
|
||||
gap: 12px;
|
||||
}
|
||||
.name-input {
|
||||
flex: 2;
|
||||
padding: 30px;
|
||||
padding: 14px 12px;
|
||||
border: 2px solid #333;
|
||||
background: #2a2a2a;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
font-size: 1.1rem;
|
||||
min-height: 44px;
|
||||
}
|
||||
.name-select:focus, .name-input:focus {
|
||||
outline: none;
|
||||
border-color: #666;
|
||||
border-radius: 0 6px 6px 0;
|
||||
}
|
||||
.game-settings {
|
||||
margin-top: 20px;
|
||||
margin-top: 0;
|
||||
width: 100%;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.setting-group {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.setting-group select {
|
||||
.setting-group label {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
color: #ccc;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.setting-group select, .setting-group input {
|
||||
width: 100%;
|
||||
padding: 30px;
|
||||
padding: 14px 12px;
|
||||
border: 2px solid #333;
|
||||
background: #2a2a2a;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
font-size: 1.1rem;
|
||||
min-height: 44px;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.setting-group input {
|
||||
width: 100%;
|
||||
padding: 30px;
|
||||
border: 2px solid #333;
|
||||
background: #2a2a2a;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
}
|
||||
.setting-group input:focus {
|
||||
.setting-group input:focus, .setting-group select:focus {
|
||||
outline: none;
|
||||
border-color: #666;
|
||||
}
|
||||
.validation-error {
|
||||
color: #f44336;
|
||||
background: #2a2a2a;
|
||||
border-radius: 6px;
|
||||
padding: 12px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 1.1rem;
|
||||
text-align: center;
|
||||
}
|
||||
.nav-buttons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin: 20px 0 40px 0;
|
||||
gap: 12px;
|
||||
margin: 16px 0 0 0;
|
||||
}
|
||||
.btn {
|
||||
flex: 1;
|
||||
min-width: 100px;
|
||||
padding: 20px;
|
||||
padding: 18px;
|
||||
color: white;
|
||||
background: #333;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-size: 20px;
|
||||
border-radius: 6px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
touch-action: manipulation;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
}
|
||||
.btn:hover {
|
||||
background: #444;
|
||||
}
|
||||
.new-game-form {
|
||||
width: 100%;
|
||||
max-width: 700px;
|
||||
margin: 32px auto 0 auto;
|
||||
background: #181818;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 16px rgba(0,0,0,0.4);
|
||||
padding: 32px 24px 24px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user