-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
109 lines (93 loc) · 1.53 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
* {
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
overflow: hidden;
font-family: 'Sigmar One', cursive;
font-size: 16px;
line-height: 1.2;
}
#container {
padding-top: 2rem;
height: 80vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#button-container {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 0 1rem;
}
button {
display: block;
justify-self: end;
width: 7rem;
height: 7rem;
background: no-repeat;
border: none;
outline:none;
}
/* Added class */
.clicked-button {
transform: scale(0.9);
transition: all 0.2s;
}
#newGame {
margin: 0 auto;
font-weight: 900;
font-size: 2rem;
font-family: 'Sigmar One', cursive;
}
/* Animation for New Game button */
@keyframes scaling {
10% {
transform: scale(1.0);
}
100% {
transform: scale(0.9);
}
}
#newGame:hover {
animation: scaling 0.2s infinite alternate;
}
/* Hiding button text */
.choice {
background-size: contain;
font-size: 0px;
}
#rock {
background-image: url(img/stones.svg);
}
#paper {
background-image: url(img/copy.svg);
}
#scissors {
background-image: url(img/scissors.svg);
}
/* Added div */
#divScore {
min-height: 10rem;
text-align: center;
font-size: 1.5rem;
}
#scoreResults {
font-size: 2rem;
}
footer {
width: 100%;
left: 0;
bottom: 0;
display: flex;
justify-content: space-between;
align-content: flex-end;
}
footer div {
padding: 0 .5rem;
}