style: brought back old style for text input
This commit is contained in:
@@ -42,25 +42,50 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-section {
|
.top-section {
|
||||||
background: #F3C8A0;
|
display: grid;
|
||||||
padding: 0.75rem;
|
gap: 0.5rem;
|
||||||
border-radius: 8px;
|
margin-bottom: 0.5rem;
|
||||||
border: 1px solid #5A2C28;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.move-form {
|
.move-form {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.move-form label {
|
.move-form label {
|
||||||
color: #5A2C28;
|
color: #5A2C28;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-hint {
|
.board-hint {
|
||||||
color: #5A2C28;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
color: #5A2C28;
|
||||||
|
}
|
||||||
|
|
||||||
|
.move-form input {
|
||||||
|
border: 2px solid #5A2C28;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #B9DAD1;
|
||||||
|
padding: 0.6rem 0.75rem;
|
||||||
|
min-width: 180px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.move-form button {
|
||||||
|
border: 2px solid #5A2C28;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #C19EF5;
|
||||||
|
color: #5A2C28;
|
||||||
|
padding: 0.6rem 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.move-form button:hover {
|
||||||
|
background: #BA6D4B;
|
||||||
|
color: #F3C8A0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-column {
|
.center-column {
|
||||||
@@ -169,23 +194,32 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-section {
|
.top-section {
|
||||||
padding: 0.5rem;
|
gap: 0.25rem;
|
||||||
margin-bottom: 0.75rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.move-form {
|
.move-form {
|
||||||
flex-wrap: wrap;
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.move-form label {
|
.move-form label {
|
||||||
flex-basis: 100%;
|
align-self: flex-start;
|
||||||
margin-bottom: 0.5rem;
|
}
|
||||||
|
|
||||||
|
.move-form input {
|
||||||
|
width: 100%;
|
||||||
|
min-width: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.move-form button {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-section {
|
.board-section {
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-card {
|
.import-card {
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
@@ -231,8 +265,8 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-section {
|
.top-section {
|
||||||
padding: 0.4rem;
|
gap: 0.15rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-section {
|
.board-section {
|
||||||
|
|||||||
@@ -29,20 +29,14 @@
|
|||||||
<!-- Center - Chess Board -->
|
<!-- Center - Chess Board -->
|
||||||
<div class="col-lg-6 col-md-12 col-12 order-lg-2 order-1">
|
<div class="col-lg-6 col-md-12 col-12 order-lg-2 order-1">
|
||||||
<section class="center-column d-flex flex-column h-100">
|
<section class="center-column d-flex flex-column h-100">
|
||||||
<div class="top-section mb-3">
|
<section class="top-section">
|
||||||
<form class="move-form d-flex flex-wrap gap-2 mb-2" (ngSubmit)="facade.submitMove()">
|
<form class="move-form" (ngSubmit)="facade.submitMove()">
|
||||||
<label for="uciMove" class="form-label mb-0">Play move (UCI)</label>
|
<label for="uciMove">Play move (UCI)</label>
|
||||||
<input
|
<input id="uciMove" name="uciMove" [(ngModel)]="facade.moveInput" placeholder="e2e4" />
|
||||||
id="uciMove"
|
<button type="submit">Send Move</button>
|
||||||
name="uciMove"
|
|
||||||
class="form-control flex-grow-1"
|
|
||||||
[(ngModel)]="facade.moveInput"
|
|
||||||
placeholder="e2e4"
|
|
||||||
/>
|
|
||||||
<button type="submit" class="btn">Send Move</button>
|
|
||||||
</form>
|
</form>
|
||||||
<p class="board-hint small mb-0">Click your piece to highlight legal targets.</p>
|
<p class="board-hint">Click your piece to highlight legal targets.</p>
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
<div class="board-section flex-grow-1 d-flex align-items-center justify-content-center">
|
<div class="board-section flex-grow-1 d-flex align-items-center justify-content-center">
|
||||||
<app-chess-board
|
<app-chess-board
|
||||||
|
|||||||
Reference in New Issue
Block a user