style.css (1.5 KB)
1 html { 2 background: #000; 3 touch-action: manipulation; 4 } 5 6 body { 7 --footer-space: calc((22.5dvh - 72px) / 2); 8 display: flex; 9 flex-direction: column; 10 height: 100dvh; 11 max-width: 520px; 12 margin: 0 auto; 13 overflow: hidden; 14 touch-action: manipulation; 15 -webkit-user-select: none; 16 user-select: none; 17 -webkit-tap-highlight-color: transparent; 18 } 19 20 #tapes { 21 flex: 1; 22 display: flex; 23 flex-direction: column; 24 overflow-y: auto; 25 scrollbar-width: none; 26 } 27 28 .tape { 29 flex: none; 30 height: 15.5dvh; 31 overflow: hidden; 32 touch-action: none; 33 } 34 35 .tape:first-child { 36 margin-top: auto; 37 } 38 39 .tape.finished { 40 cursor: grab; 41 } 42 43 .tape.grabbed { 44 cursor: grabbing; 45 } 46 47 .tape.throttle { 48 cursor: col-resize; 49 } 50 51 .tape.volume { 52 cursor: row-resize; 53 } 54 55 .tape canvas { 56 display: block; 57 width: 92%; 58 height: 15.5dvh; 59 margin-inline: auto; 60 } 61 62 footer { 63 flex: none; 64 position: relative; 65 display: grid; 66 place-items: center; 67 padding: calc(var(--footer-space) / 2) 0 var(--footer-space); 68 touch-action: none; 69 } 70 71 footer::before { 72 content: ''; 73 position: absolute; 74 inset: auto 0 100%; 75 height: 28px; 76 background: linear-gradient(to top, #000, rgb(0 0 0 / 0.6) 30%, transparent); 77 pointer-events: none; 78 } 79 80 #record { 81 width: 72px; 82 height: 72px; 83 padding: 0; 84 border: 0; 85 background: none; 86 cursor: pointer; 87 } 88 89 #record::before { 90 content: ''; 91 display: block; 92 height: 100%; 93 border-radius: 50%; 94 background: #f00; 95 transition: transform 0.1s ease-out, border-radius 0.1s ease-out; 96 } 97 98 #record.recording::before { 99 transform: scale(0.905); 100 border-radius: 22%; 101 }