Skip to content

Commit

Permalink
First working model.
Browse files Browse the repository at this point in the history
  • Loading branch information
StillLearnin committed Jan 16, 2016
1 parent fab8ca1 commit 9f77e17
Show file tree
Hide file tree
Showing 79 changed files with 3,867 additions and 0 deletions.
88 changes: 88 additions & 0 deletions assets/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
* Chessground base css properties, for clarity.
*
* You can then include either desktop.css or mobile.css.
*
* And you need to include the css files in themes folder in order to have the
* board and pieces displayed!
*/

.cg-board-wrap {
width: 100%;
height: 100%;
}
.cg-board {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
line-height: 0;
background-size: cover;
position: relative;
width: 100%;
height: 100%;
}
square {
position: absolute;
width: 12.5%;
height: 12.5%;
}
square[data-coord-x]::after {
position: absolute;
left: 1px;
bottom: 1px;
font-size: 10px;
line-height: 10px;
content: attr(data-coord-x);
color: #fff;
opacity: 0.5;
}
square[data-coord-y]::before {
position: absolute;
right: 1px;
top: 1px;
font-size: 10px;
line-height: 10px;
content: attr(data-coord-y);
color: #fff;
opacity: 0.5;
}
square.move-dest {
background: radial-gradient(rgba(20, 85, 30, 0.5) 22%, #208530 0, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0) 0);
}
square.premove-dest {
background: radial-gradient(rgba(20, 30, 85, 0.5) 22%, #203085 0, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0) 0);
}
square.last-move {
background-color: rgba(155, 199, 0, 0.41);
}
square.selected {
background-color: rgba(20, 85, 30, 0.5);
}
square.check {
background: radial-gradient(ellipse at center, rgba(255, 0, 0, 1) 0%, rgba(231, 0, 0, 1) 25%, rgba(169, 0, 0, 0) 89%, rgba(158, 0, 0, 0) 100%);
}
square.current-premove {
background-color: rgba(20, 30, 85, 0.5);
}
piece {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
z-index: 2;
will-change: transform;
}
piece.dragging {
z-index: 9;
}
piece.ghost {
opacity: 0.3;
}
.minimal-dom piece {
position: absolute;
width: 12.5%;
height: 12.5%;
}
10 changes: 10 additions & 0 deletions assets/desktop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.cg-board {
cursor: pointer;
}
.cg-board .cg-square.move-dest.drag-over,
.cg-board .cg-square.premove-dest.drag-over {
box-shadow: inset 0 0 10px 2px rgba(216, 85, 0, 0.9);
}
piece.dragging {
cursor: move;
}
Binary file added assets/images/board/3d/Light-Wood.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/board/blue2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/board/marble.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/board/wood2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bK-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bK.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bN.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bP.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bQ.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/bR.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wK-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wK.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wN.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wP.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wQ.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wR.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/cburnett/wbK.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/pieces/merida/bB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9f77e17

Please sign in to comment.