-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
125 lines (112 loc) · 1.92 KB
/
style.scss
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
$red: #e74c3c;
$whitegrey: #ececec;
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Boogaloo', cursive;
flex-direction: column;
}
h1 {
animation: 2s ease-in-out slideIn;
}
@keyframes slideIn {
0% {
transform: translateX(-400%);
}
100% {
transform: translateX(0);
}
}
.piano {
width: 400px;
height: 400px;
margin: 0 auto;
position: relative;
overflow: hidden;
box-shadow: 0 5px 10px 2px black;
display: flex;
}
.user-controls {
width: 450px;
height: 100px;
margin: 0 auto;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
justify-content: space-around;
align-items: center;
}
.strict-mode > button {
&:hover {
background: crimson;
}
}
.scoreboard {
width: 60px;
background: #000;
border-radius: 50%;
height: 60px;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 2em;
margin: 5px;
}
.key {
width: 100px;
height: 100px;
min-height: 100%;
border: 1px solid black;
position: relative;
transition: 0.5s ease-in-out;
&:after {
width: 50px;
height: 170px;
margin-left: 75px;
overflow: hidden;
background: #000;
content: '';
position: absolute;
z-index: 3;
box-shadow: inset 1px 1px 7px 1px #777;
}
}
.key > p {
position: absolute;
bottom: 100px;
font-size: 3em;
left: 40%;
}
#b {
width: 100px;
height: 100px;
min-height: 100%;
border: 1px solid black;
position: relative;
&:after {
opacity: 0;
}
}
button {
outline: 0;
color: #000;
transition: background 500ms ease-in-out, color 500ms ease-in-out;
width: 100px;
height: 40px;
// height: 100px;
&:hover {
color: $whitegrey;
background: {
position: 100%;
}
}
}