File: piano.css

package info (click to toggle)
kuttypy 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,896 kB
  • sloc: python: 58,651; javascript: 14,686; xml: 5,767; ansic: 2,716; makefile: 453; asm: 254; sh: 48
file content (104 lines) | stat: -rw-r--r-- 1,656 bytes parent folder | download | duplicates (2)
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

/*---------PIANO ----------*/


.nowplaying {
      font-size: 30px;
      line-height: 1;
      color: #eee;
      text-shadow: 0 0 5rem #028ae9;
      transition: all .07s ease;
      min-height: 20px;
    }

.keys {
      display: block;
      width: 100%;
      height: 150px;
      max-width: 880px;
      position: relative;
      margin: 40px auto 0;
      cursor: none;
    }

.key {
      position: relative;
      border: 4px solid black;
      border-radius: .5rem;
      transition: all .07s ease;
      display: block;
      box-sizing: border-box;
      z-index: 2;
    }

.key:not(.sharp) {
      float: left;
      width: 10%;
      height: 100%;
      background: rgba(255, 255, 255, .8);    
    }

.key.sharp {
      position: absolute;
      width: 6%;
      height: 60%;
      background: #000;
      color: #cee;
      top: 0;
      z-index: 3;
    }

.key[data-note="C#"] {
      left: 7%;
    }

.key[data-note="D#"] {
      left: 17%;
    }

.key[data-note="F#"]  {
      left: 37%;
    }

.key[data-note="G#"] {
      left: 47%;
    }

.key[data-note="A#"] {
      left: 57%;    
    }

.key[data-note="2C#"] {
      left: 77%;    
    }

.key[data-note="2D#"] {
      left: 87%;    
    }

.playing {
      transform: scale(.95);
      border-color: #028ae9;
      box-shadow: 0 0 1rem #028ae9;
    }

.hints {
      display: block;
      width: 100%;
      opacity: 0.5;
      position: absolute;
      bottom: 7px;
      font-size: 11px;
    }

.nhints {
      display: block;
      width: 100%;
      opacity: 0.5;
      color:blue;
      position: absolute;
      bottom: 24px;
      left:20%;
      font-size: 13px;
    }