feat: added web view 1v1
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
.board-shell {
|
||||
width: min(100%, 82dvh, 760px);
|
||||
max-width: calc(100dvw - 2rem);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.board-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(8, 1fr);
|
||||
border: 2px solid #5A2C28;
|
||||
border-radius: 10px 10px 0 0;
|
||||
overflow: hidden;
|
||||
background: #5A2C28;
|
||||
}
|
||||
|
||||
.square {
|
||||
position: relative;
|
||||
aspect-ratio: 1 / 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.square.light {
|
||||
background-image: url('/arabian-chess/sprites/board/board_square_white.png');
|
||||
}
|
||||
|
||||
.square.dark {
|
||||
background-image: url('/arabian-chess/sprites/board/board_square_black.png');
|
||||
}
|
||||
|
||||
.square.highlighted::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 28%;
|
||||
height: 28%;
|
||||
border-radius: 50%;
|
||||
background: rgba(193, 158, 245, 0.75);
|
||||
border: 2px solid #5A2C28;
|
||||
}
|
||||
|
||||
.square.selected {
|
||||
outline: 3px solid #BA6D4B;
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
.board-bottom {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border: 2px solid #5A2C28;
|
||||
border-top: 0;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user