forked from tylerpalef/paw-patrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
141 lines (122 loc) · 3.07 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
html {
font-size: 10px;
/* Dictates the size of the pup grid */
margin: 0;
padding: 0;
font-family: 'Baloo Bhaijaan', cursive;
/* Just setting the font for the numbers */
}
.bg { /* Pretty straight forward, this is the background */
z-index: 0;
margin: 0;
padding: 0;
background-size: cover;
position: fixed;
height: 100%;
width: 100%;
}
.keys { /* This is the main grid with the pups */
display: grid;
grid-template-columns: 1fr 1fr 1fr;
width: 160%;
position: absolute;
top: 11vh;
left: 22vw;
}
.wrapper { /* This houses the pups on the page */
z-index: 1;
position: absolute;
padding-left: 33%;
}
/* Each pup has their own individual styling on the grid */
.key-chase {
border: .4rem solid #2b4083;
border-radius: 6rem;
margin: 1rem;
transition: all .07s ease;
text-align: center;
background: rgba(211, 48, 49, 0.2);
text-shadow: 0 0 .5rem black;
}
.key-marshall {
border: .4rem solid #d2232a;
border-radius: 6rem;
margin: 1rem;
transition: all .07s ease;
text-align: center;
background: rgba(254, 236, 2, 0.2);
text-shadow: 0 0 .5rem black;
}
.key-skye {
border: .4rem solid #d283a3;
border-radius: 6rem;
margin: 1rem;
transition: all .07s ease;
text-align: center;
background: rgba(227, 56, 148, 0.2);
text-shadow: 0 0 .5rem black;
}
.key-rubble {
border: .4rem solid #f8e600;
border-radius: 6rem;
margin: 1rem;
transition: all .07s ease;
text-align: center;
background: rgba(245, 140, 31, 0.2);
text-shadow: 0 0 .5rem black;
}
.key-rocky {
border: .4rem solid #489a45;
border-radius: 6rem;
margin: 1rem;
transition: all .07s ease;
text-align: center;
background: rgba(25, 120, 180, 0.2);
text-shadow: 0 0 .5rem black;
}
.key-zuma {
border: .4rem solid #ed6c35;
border-radius: 6rem;
margin: 1rem;
transition: all .07s ease;
text-align: center;
background: rgba(1, 87, 136, 0.2);
text-shadow: 0 0 .5rem black;
}
.playing { /* This is the animation for the pups when they are selected via click or key down*/
transform: scale(1.1);
border-color: white;
box-shadow: 0 0 1rem white;
}
kbd { /* This impacts the sizing of the pup grid */
display: block;
font-size: 4rem;
}
.sound { /* This is the text to click the numbers */
font-size: 3rem;
text-transform: uppercase;
color: white;
}
#bt { /* This ID allows the button to work for the pups */
border-style: none;
border-width: 0;
padding: 0;
background: content-box;
}
button:focus { /* This removes the blue line from the selected pup as they are buttons */
outline:0;
}
@media only screen and (max-width: 1210px) {
.keys {
grid-template-columns: 1fr 1fr 1fr;
width: 220%;
top: 18vh;
left: 12.5vw;
}
@media only screen and (max-width: 600px) {
.keys {
grid-template-columns: 1fr 1fr;
width: 250%;
top: 20vh;
left: 9vw;
}