Skip to content

Commit d92e94a

Browse files
authored
Update style.css
1 parent 661f1de commit d92e94a

File tree

1 file changed

+50
-157
lines changed

1 file changed

+50
-157
lines changed

DrumKit/style.css

+50-157
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,58 @@
1-
@import url(https://fonts.googleapis.com/css?family=Handlee|Pacifico);
2-
3-
html,
4-
body {
5-
padding: 0;
6-
margin: 0;
7-
background-color: #fff;
8-
}
9-
10-
.main-wrapper {
11-
margin: 30px auto 0;
12-
width: 1080px;
13-
text-align: center;
14-
}
15-
16-
.main-title {
17-
font-family: 'Pacifico', cursive;
18-
text-align: center;
19-
font-size: 3.2em;
20-
color: #cb2026;
21-
text-shadow: 1px 1px 1px #5a0b0d;
22-
}
23-
24-
.drum-kit-wrapper {
25-
position: relative;
26-
width: 600px;
27-
margin: -100px auto 0;
28-
}
29-
30-
.drum-kit {
31-
width: 100%;
32-
height: 520px;
33-
position: relative;
34-
}
35-
36-
.crash-cymbal {
37-
position: absolute;
38-
top: 114px;
39-
left: 80px;
40-
transform: rotate(-7.2deg) scale(1.5);
41-
transition: all ease-in-out .042s;
42-
}
43-
44-
.hihat-top-cymbal {
45-
position: absolute;
46-
top: 166px;
47-
right: 71px;
48-
transform: scale(1.35);
49-
z-index: 0;
50-
transition: all ease-in-out .042s;
51-
}
52-
53-
.key {
54-
display: inline-block;
55-
transition: all ease-in-out .042s;
56-
position: absolute;
57-
background: #eaeaea;
58-
font-size: 1.5em;
59-
height: 32px;
60-
width: 32px;
1+
html
2+
{
3+
font-size:10px;
4+
background: url('https://i.imgur.com/XSUEg63.jpg') bottom center;
5+
background-size: cover;
6+
}
7+
8+
body,html
9+
{
10+
margin: 0;
11+
padding:0;
12+
font-family: cursive;
13+
}
14+
15+
.keys
16+
{
17+
display:flex;
18+
flex: 1;
19+
min-height:100vh;
20+
align-items: center;
21+
justify-content:center;
22+
}
23+
24+
.key
25+
{
26+
border: .4rem solid black;
27+
border-radius: 1.8rem;
28+
margin: 1rem;
29+
font-size: 1.5rem;
30+
padding: 1rem .5rem;
31+
transition: all .07s ease;
32+
width: 10rem;
6133
text-align: center;
62-
border-radius: 4px;
63-
border: 3px solid #aaa;
64-
color: #444;
65-
box-shadow: 1px 1px 1px rgba(0,0,0,.65);
66-
z-index: 2;
67-
}
68-
69-
.key.kick {
70-
top: 355px;
71-
right: 250px;
72-
}
73-
74-
.key.kick2 {
75-
top: 355px;
76-
right: 308px;
77-
}
78-
79-
.key.snare {
80-
right: 145px;
81-
top: 280px;
82-
}
83-
84-
.key.tom-high {
85-
right: 227px;
86-
top: 240px;
87-
}
88-
89-
.key.tom-mid {
90-
left: 222px;
91-
top: 220px;
92-
}
93-
94-
.key.tom-low {
95-
top: 320px;
96-
left: 133px;
97-
}
98-
99-
.key.crash {
100-
top: 80px;
101-
left: 75px;
102-
}
103-
104-
.key.ride {
105-
left: 165px;
106-
top: 87px;
107-
}
108-
109-
.key.hihat-open {
110-
right: 165px;
111-
top: 144px;
112-
}
113-
114-
.key.hihat-close {
115-
right: 60px;
116-
top: 150px;
117-
}
118-
119-
.playing {
120-
transform: scale(1.12);
121-
}
122-
123-
.key-map-wrapper {
124-
position: absolute;
125-
right: 0;
126-
top: 0;
127-
height: 700px;
128-
background: #111;
129-
width: 250px;
130-
z-index: 3;
131-
}
132-
133-
.key-map-wrapper > h2 {
134-
color: #fff;
135-
font-family: 'Handlee', cursive;
136-
margin-bottom: 35px;
137-
border-bottom: 1px solid #fff;
138-
padding-bottom: 20px;
139-
}
140-
141-
.key-map-list {
142-
list-style: none;
143-
color: #fff;
144-
text-align: left;
34+
color: white;
35+
background: rgba(0,0,0,0.4);
36+
text-shadow: 0 0 .5rem black;
14537
}
14638

147-
.key-map-list > li {
148-
margin-bottom: 25px;
39+
.playing
40+
{
41+
transform: scale(1.1);
42+
border-color: #ffc600;
43+
box-shadow: 0 0 1rem #ffc600;
14944
}
15045

151-
.key-code {
152-
color: #444;
153-
background-color: #eaeaea;
154-
font-size: 1.25em;
155-
padding: 5px 10px;
156-
border-radius: 4px;
157-
border: 3px solid #aaa;
46+
kbd
47+
{
48+
display: block;
49+
font-size: 4rem;
15850
}
15951

160-
.key-sound {
161-
font-size: 1.2em;
162-
margin-left: 10px;
163-
font-family: 'Handlee', cursive;
164-
vertical-align: middle;
52+
.sound
53+
{
54+
font-size: 1.2rem;
55+
text-transform: uppercase;
56+
letter-spacing: .1rem;
57+
color: #ffc600;
16558
}

0 commit comments

Comments
 (0)