-
Notifications
You must be signed in to change notification settings - Fork 0
/
style1.css
96 lines (86 loc) · 1.76 KB
/
style1.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
html {
background-color: #eed;
font-family: sans-serif;
font-size: 64.5%;
}
.wrapper {
font-size: 1.5rem;
height: 500px;
margin: 0 auto;
width: 500px;
}
canvas {
background-image: url("https://assets.codepen.io/215128/snakesAndLaddersBoard.jpg");
border: 5px solid grey;
border-radius: 7px;
height: 500px;
width: 500px;
}
.playerYou .wrapper {
color: #8a0022;
}
.playerYou canvas {
border-color: #f36;
}
.playerYou #diceThrow {
background-color: #f361;
background-blend-mode: multiply;
border-color: #d60036;
}
.playerAutoBot .wrapper {
color: #3a480e;
}
.playerAutoBot canvas {
border-color: #8a2;
}
.playerAutoBot #diceThrow {
background-color: #8a22;
background-blend-mode: multiply;
border-color: #556a15;
}
#diceThrow {
background-image: url("https://assets.codepen.io/215128/diceSpots.png");
background-size: 50px;
border: 2px solid black;
border-radius: 7px;
cursor: pointer;
display: inline-block;
height: 50px;
width: 50px;
}
#diceThrow.s6 {
background-position: 0 0;
}
#diceThrow.s5 {
background-position: 0 -50px;
}
#diceThrow.s4 {
background-position: 0 -100px;
}
#diceThrow.s3 {
background-position: 0 -150px;
}
#diceThrow.s2 {
background-position: 0 -200px;
}
#diceThrow.s1 {
background-position: 0 -250px;
}
.buttonWrapper {
display: flex;
margin: 15px 15px;
}
button {
border-radius: 7px;
margin-left: 100px;
padding: 10px 30px;
}
.hidden {
display: none;
}
h1 {
margin-bottom: 5px;
}
h2 {
margin-top: 0;
}