-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
179 lines (174 loc) · 4.46 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
html, body {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
color: #333333;
font-family: "Lato", Calibri, sans-serif;
font-size: 16px;
background-color: #3A3042; }
html h1, body h1 {
margin-top: 10px; }
html h2, body h2 {
font-size: 1.3em; }
html h3, body h3 {
font-size: 1.1em; }
html a, body a {
text-decoration: none;
color: #333333;
font-weight: 700; }
html a:hover, body a:hover {
text-decoration: underline; }
html hr, body hr {
border: 0;
height: 1px;
background-color: #333;
background-image: linear-gradient(to right, #333333, #ccc); }
html .clearfix, body .clearfix {
clear: both; }
div.column {
position: relative;
float: left;
overflow: auto;
height: 100%;
min-height: 100%;
width: 50%; }
@media screen and (max-width: 1000px) {
div.column {
width: 100% !important;
overflow: hidden;
height: auto; } }
div.info, div.stats {
width: 70%;
margin: 13vmin auto 0;
box-sizing: border-box;
padding: 20px 30px;
background-color: #F1F1FF;
color: #3A3042;
border-radius: 3px;
box-shadow: 1px 1px 3px #232621; }
div.stats {
margin: 50px auto !important; }
div.stats .wrapper {
display: flex; }
div.stats #player1 {
text-align: center;
display: inline-block;
width: 50%;
float: left;
background-color: #B93848;
box-sizing: border-box;
padding: 0 15px 20px;
border-top-left-radius: 3px;
color: #232621; }
div.stats #player1 .capturedPiece {
width: 2.4vmin;
height: 2.4vmin;
background-color: #232621;
background-size: 65%;
background-repeat: no-repeat;
background-position: center;
border-radius: 6vmin;
display: inline-block;
box-sizing: border-box;
transition: all 0.2s linear;
margin: 5px; }
div.stats #player2 {
text-align: center;
display: inline-block;
width: 50%;
float: left;
background-color: #232621;
box-sizing: border-box;
padding: 0 15px 20px;
border-top-right-radius: 3px;
color: #B93848; }
div.stats #player2 .capturedPiece {
width: 2.4vmin;
height: 2.4vmin;
background-color: #B93848;
background-size: 65%;
background-repeat: no-repeat;
background-position: center;
border-radius: 6vmin;
display: inline-block;
box-sizing: border-box;
transition: all 0.2s linear;
margin: 5px; }
div.stats div.turn {
height: 10px;
width: 100%;
background: linear-gradient(to right, #BEEE62 50%, transparent 50%);
border-radius: 0 0 3px 3px; }
div.stats span#winner {
display: block;
padding: 10px 0 0;
text-align: center; }
div.stats button#cleargame {
display: block;
border: 0;
color: #F1F1FF;
border-radius: 5px;
cursor: pointer;
margin: 20px auto 10px;
padding: 10px;
background-color: #16A8C7;
box-shadow: 1px 1px 3px #232621;
transition: background-color 0.15s linear; }
div.stats button#cleargame:hover {
background-color: #0c5a6b; }
div#board {
position: absolute;
top: calc(50% - 40vmin);
left: calc(50% - 40vmin);
width: 80vmin;
height: 80vmin;
border-radius: 5px;
box-shadow: 1px 1px 3px #232621;
background-color: #B93848;
overflow: hidden; }
div#board .tile {
width: 10vmin;
height: 10vmin;
position: absolute;
background-color: #232621; }
div#board .player1pieces .piece {
position: absolute;
width: 8vmin;
height: 8vmin;
background-color: #e4a6ae;
background-size: 65%;
background-repeat: no-repeat;
background-position: center;
border-radius: 6vmin;
display: inline-block;
box-sizing: border-box;
transition: all 0.2s linear;
margin-top: 1vmin;
margin-left: 1vmin;
cursor: pointer;
border: 1vmin solid #B93848; }
div#board .player1pieces .piece.selected {
box-shadow: 0 0 10px 5px #16A8C7; }
div#board .player2pieces .piece {
position: absolute;
width: 8vmin;
height: 8vmin;
background-color: #F1F1FF;
background-size: 65%;
background-repeat: no-repeat;
background-position: center;
border-radius: 6vmin;
display: inline-block;
box-sizing: border-box;
transition: all 0.2s linear;
margin-top: 1vmin;
margin-left: 1vmin;
cursor: pointer;
border: 1vmin solid #8b8bff; }
div#board .player2pieces .piece.selected {
box-shadow: 0 0 10px 5px #16A8C7; }
/*# sourceMappingURL=style.css.map */