mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
style diagram select checkbox and label text
This commit is contained in:
@@ -66,19 +66,24 @@ const Chessboard = ({
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<PgnViewer gamePgn={gameState.pgn || ""} />
|
<PgnViewer gamePgn={gameState.pgn || ""} />
|
||||||
<div className="flex justify-between max-w-150">
|
<div className="flex justify-between max-w-150 mt-2">
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2 items-center">
|
||||||
<label htmlFor="diagram-add">Select Diagram</label>
|
<label
|
||||||
|
htmlFor="diagram-add"
|
||||||
|
className="text-sm text-(--base-content)"
|
||||||
|
>
|
||||||
|
Select Diagram
|
||||||
|
</label>
|
||||||
<input
|
<input
|
||||||
id="diagram-add"
|
id="diagram-add"
|
||||||
name="diagram-add"
|
name="diagram-add"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
className="cursor-pointer"
|
className="checkbox-accent"
|
||||||
onChange={handleToggleDiagram}
|
onChange={handleToggleDiagram}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label className="toggle">
|
<label className="toggle text-sm text-(--base-content)">
|
||||||
Render move times
|
Render move times
|
||||||
<input
|
<input
|
||||||
id="render-times"
|
id="render-times"
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
/* Checkbox */
|
||||||
|
.checkbox-accent {
|
||||||
|
accent-color: var(--accent);
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toggle */
|
||||||
.toggle {
|
.toggle {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user