projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some bugs fixes
[xogo.git]
/
common.css
diff --git
a/common.css
b/common.css
index
8159d76
..
c1ba77c
100644
(file)
--- a/
common.css
+++ b/
common.css
@@
-11,11
+11,17
@@
vertical-align: baseline;
}
vertical-align: baseline;
}
+html {
+ height: 100%;
+}
+
body {
body {
+ height: 100%;
margin: 0;
margin: 0;
- /*text-align: center;*/
background-color: #f8f8f8;
font-family: Arial, Verdana, Tahoma, sans-serif;
background-color: #f8f8f8;
font-family: Arial, Verdana, Tahoma, sans-serif;
+ /* https://stackoverflow.com/a/24392249/12660887 */
+ position: relative;
}
main {
}
main {
@@
-46,6
+52,11
@@
main > div {
}
}
}
}
+.author {
+ color: darkblue;
+ font-style: italic;
+}
+
#boardContainer {
margin: 0;
padding: 0;
#boardContainer {
margin: 0;
padding: 0;
@@
-60,6
+71,15
@@
h1 {
margin: 10px 0;
}
margin: 10px 0;
}
+h4 {
+ font-size: 1.5rem;
+ font-weight: bold;
+ text-align: center;
+ display: block;
+ margin: 10px 0;
+ color: darkgreen;
+}
+
#gameInfos,
#boardContainer,
#gameStopped,
#gameInfos,
#boardContainer,
#gameStopped,
@@
-145,11
+165,18
@@
button:hover, button.block-btn:hover {
button.block-btn {
display: block;
background-color: #01786F;
button.block-btn {
display: block;
background-color: #01786F;
- margin: 0 auto
20px auto;
+ margin: 0 auto
30px auto; /*TODO: margin-bottom 20px ? */
font-size: 2rem;
padding: 15px 32px;
}
font-size: 2rem;
padding: 15px 32px;
}
+button.cancel-something {
+ background-color: darkred;
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+
#upLeftInfos {
position: absolute;
left: 0;
#upLeftInfos {
position: absolute;
left: 0;
@@
-185,6
+212,7
@@
button.block-btn {
/* Options when starting custom game */
.words {
line-height: 0.9em;
/* Options when starting custom game */
.words {
line-height: 0.9em;
+ margin-top: 15px;
}
.words > .row {
margin: 0;
}
.words > .row {
margin: 0;
@@
-203,8
+231,17
@@
button.block-btn {
text-align: center;
}
text-align: center;
}
-.option-select, .option-check {
- margin: 15px 0;
+.option-select, .option-input {
+ margin: 15px 0 0 0;
+}
+
+.option-input {
+ display: inline-block;
+ margin-right: 10px;
+}
+
+.option-input input[type=number] {
+ width: 64px;
}
.btn-wrap {
}
.btn-wrap {
@@
-237,15
+274,9
@@
a {
}
/* Board container (without reserves) */
}
/* Board container (without reserves) */
-
#
chessboard {
+
.
chessboard {
position: absolute;
cursor: pointer;
position: absolute;
cursor: pointer;
-}
-
-/* Board container can be resized */
-.resizeable {
- resize: both;
- overflow: hidden;
min-width: 200px;
min-height: 200px;
}
min-width: 200px;
min-height: 200px;
}
@@
-260,18
+291,24
@@
piece {
pointer-events: none;
}
pointer-events: none;
}
+piece.hidden {
+ display: none;
+}
+
/* Drawing of the board */
/* Drawing of the board */
-
#
chessboard_SVG {
+
.
chessboard_SVG {
width: 100%;
height: 100%;
}
width: 100%;
height: 100%;
}
+/* Default squares colors (can be overriden or unused) */
.dark-square {
fill: #b58863;
}
.light-square {
fill: #f0d9b5;
}
.dark-square {
fill: #b58863;
}
.light-square {
fill: #f0d9b5;
}
+
.in-shadow {
filter: brightness(50%);
}
.in-shadow {
filter: brightness(50%);
}