-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
106 lines (106 loc) · 2.14 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
h1 {
text-align: center;
text-shadow: 2px 2px 4px #000;
font: bold 52px Helvetica, Arial, Sans-Serif;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
width: 100%;
}
.choices-wrapper {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
}
button {
width: 150px;
height: 150px;
margin: 20px;
}
button#rock {
background: url( "images/rock.png" );
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
button#paper {
background: url( "images/paper.png" );
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
button#scissors {
background: url( "images/scissors.png" );
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
.scoreboard-wrapper {
display: flex;
flex-direction: row;
justify-content: center;
margin: 20px 0px 0px 0px;
}
.player-score {
flex-grow: 1;
text-align: right;
text-shadow: 2px 2px 4px #000;
font: bold 100px Helvetica, Arial, Sans-Serif;
width: 15%;
}
.player-choice {
flex-grow: 1;
width: 35%;
}
.computer-choice {
flex-grow: 1;
transform: scaleX(-1);
width: 35%;
}
.computer-score {
flex-grow: 1;
text-align: left;
text-shadow: 2px 2px 4px #000;
font: bold 100px Helvetica, Arial, Sans-Serif;
width: 15%;
}
.messages {
flex-grow: 1;
text-align: center;
text-shadow: 2px 2px 4px #000;
font: bold 58px Helvetica, Arial, Sans-Serif;width: 40%;
width: 100%;
}
div img {
width: 300px;
}
.shaking-left {
animation: shake-left 0.6s 3;
animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}
.shaking-right {
animation: shake-right 0.6s 3;
animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes shake-left {
0% {
}
50% {
transform: rotate(-45deg) translate(-50px,-200px);
}
100% {
}
}
@keyframes shake-right {
0% {
}
50% {
transform: rotate(45deg) translate(-50px,-200px) scaleX(-1);
}
100% {
}
}