initial commit
This commit is contained in:
265
styles.css
Normal file
265
styles.css
Normal file
@@ -0,0 +1,265 @@
|
||||
/* ===== Shared styles ===== */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: #1a1a2e;
|
||||
color: #e0e0e0;
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
color: #e0e0e0;
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 10px;
|
||||
color: #c0c0c0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
button {
|
||||
background: #3a3a5c;
|
||||
color: #e0e0e0;
|
||||
border: 1px solid #555;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: #4a4a7c;
|
||||
}
|
||||
|
||||
input[type="number"] {
|
||||
width: 48px;
|
||||
height: 32px;
|
||||
text-align: center;
|
||||
background: #2a2a4a;
|
||||
color: #e0e0e0;
|
||||
border: 1px solid #555;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
input[type="text"], textarea {
|
||||
background: #2a2a4a;
|
||||
color: #e0e0e0;
|
||||
border: 1px solid #555;
|
||||
border-radius: 3px;
|
||||
padding: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ===== Board grid ===== */
|
||||
.board-container {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.board-table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.board-table td {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.board-cell {
|
||||
background: #3a3a3a;
|
||||
border: 1px solid #888;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.board-cell.blocked {
|
||||
background: #1a1a1a;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.board-cell.filled {
|
||||
background: lightgreen;
|
||||
border: 1px solid #888;
|
||||
}
|
||||
|
||||
/* ===== Constraint labels ===== */
|
||||
.constraint-label {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: #ccc;
|
||||
padding: 2px 6px;
|
||||
min-width: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.constraint-label.over {
|
||||
color: #ff4444;
|
||||
}
|
||||
|
||||
/* ===== Piece designer grid (3x3) ===== */
|
||||
.piece-designer-grid {
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(3, 36px);
|
||||
grid-template-rows: repeat(3, 36px);
|
||||
gap: 2px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.piece-designer-cell {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: #3a3a3a;
|
||||
border: 1px solid #888;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.piece-designer-cell.active {
|
||||
background: lightgreen;
|
||||
}
|
||||
|
||||
/* ===== Piece inventory ===== */
|
||||
.inventory {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
padding: 10px;
|
||||
min-height: 60px;
|
||||
background: #222244;
|
||||
border: 1px solid #444;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.inventory-piece {
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(3, 24px);
|
||||
grid-template-rows: repeat(3, 24px);
|
||||
gap: 1px;
|
||||
padding: 4px;
|
||||
background: #2a2a4a;
|
||||
border: 1px solid #555;
|
||||
border-radius: 4px;
|
||||
cursor: grab;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.inventory-piece:hover {
|
||||
border-color: #88f;
|
||||
}
|
||||
|
||||
.inventory-piece-cell {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: #3a3a3a;
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
.inventory-piece-cell.active {
|
||||
background: lightgreen;
|
||||
}
|
||||
|
||||
.delete-piece-btn {
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: -8px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #cc3333;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.delete-piece-btn:hover {
|
||||
background: #ff4444;
|
||||
}
|
||||
|
||||
/* ===== Drag ghost ===== */
|
||||
.drag-ghost {
|
||||
position: fixed;
|
||||
pointer-events: none;
|
||||
z-index: 9999;
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(3, 36px);
|
||||
grid-template-rows: repeat(3, 36px);
|
||||
gap: 1px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.drag-ghost-cell {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.drag-ghost-cell.active {
|
||||
background: lightgreen;
|
||||
border: 1px solid #6a6;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* ===== Layout helpers ===== */
|
||||
.page-layout {
|
||||
display: flex;
|
||||
gap: 40px;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.panel {
|
||||
background: #16213e;
|
||||
border: 1px solid #333;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: inline-block;
|
||||
margin-bottom: 16px;
|
||||
color: #88aaff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ===== Play page specific ===== */
|
||||
.play-inventory {
|
||||
max-width: 300px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.highlight-valid {
|
||||
outline: 2px solid #4f4;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.highlight-invalid {
|
||||
outline: 2px solid #f44;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
Reference in New Issue
Block a user