-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathboard.css
100 lines (85 loc) · 1.45 KB
/
board.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
#board{
border-radius: .2em;
overflow: hidden;
border: 2px solid #555;
}
.Checkers-Box{
width: 4em;
height: 4em;
display: inline-block;
vertical-align: top;
position: relative;
}
.Checkers-Box[data-color=black]{
background-color: #333;
}
.Checkers-Box[data-color=white]{
background-color: #EEE;
}
.Checkers-Box[data-selected=white]{
background-color: #35608a;
}
.Checkers-Box[data-selected=black]{
background-color: #BED8F3;
}
.Checkers-Man{
position: absolute;
margin: .5em;
border-radius: 3.5em;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: auto;
width: auto;
}
.Checkers-Man[data-color=white]{
background-color: #c6e2ff;
}
.Checkers-Man[data-color=black]{
background-color: #5186bb;
}
.Checkers-KingTag{
position: absolute;
margin: 1em;
border-radius: 3.5em;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: auto;
width: auto;
display: none;
}
.Checkers-Man[data-king] .Checkers-KingTag{
display: block;
}
.Checkers-Man[data-color=white] > .Checkers-KingTag{
background-color: #5186bb;
}
.Checkers-Man[data-color=black] > .Checkers-KingTag{
background-color: #c6e2ff;
}
.Checkers-Row{
white-space: nowrap;
}
@media screen and (max-width: 320px){
.Checkers-Box{
width: 34px;
height: 34px;
}
.Checkers-KingTag{
border-radius: 2px;
margin: 7px;
}
}
@media screen and (min-width: 321px) and (max-width: 360px){
.Checkers-Box{
width: 40px;
height: 40px;
}
.Checkers-KingTag{
border-radius: 6px;
margin: 8px;
}
}