Skip to content

Commit f0e0ff1

Browse files
committed
style: update the audio bar css
1 parent a11f1ee commit f0e0ff1

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

src/App.css

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -350,39 +350,6 @@
350350
margin-right: 4px !important;
351351
}
352352

353-
.vp-audio-bars span {
354-
width: 3px !important;
355-
border-radius: 2px !important;
356-
background: #ffffff !important;
357-
animation: vp-audio-bar 0.8s ease-in-out infinite !important;
358-
}
359-
360-
.vp-audio-bars span:nth-child(1) {
361-
animation-delay: 0s !important;
362-
}
363-
364-
.vp-audio-bars span:nth-child(2) {
365-
animation-delay: 0.15s !important;
366-
}
367-
368-
.vp-audio-bars span:nth-child(3) {
369-
animation-delay: 0.3s !important;
370-
}
371-
372-
.vp-audio-bars span:nth-child(4) {
373-
animation-delay: 0.45s !important;
374-
}
375-
376-
@keyframes vp-audio-bar {
377-
0%, 100% {
378-
height: 4px;
379-
}
380-
381-
50% {
382-
height: 20px;
383-
}
384-
}
385-
386353
@media (min-width: 768px) {
387354
.vp-room {
388355
bottom: 20px !important;
@@ -436,6 +403,16 @@
436403
}
437404
}
438405

406+
@keyframes vp-audio-bar {
407+
0%, 100% {
408+
height: 4px !important;
409+
}
410+
411+
50% {
412+
height: 20px !important;
413+
}
414+
}
415+
439416
.vp-wave {
440417
position: absolute !important;
441418
width: 100% !important;
@@ -460,3 +437,26 @@
460437
.vp-wave:nth-child(4) {
461438
animation-delay: 2s !important;
462439
}
440+
441+
.vp-audio-bar {
442+
width: 3px !important;
443+
border-radius: 2px !important;
444+
background: #ffffff !important;
445+
animation: vp-audio-bar 0.8s ease-in-out infinite !important;
446+
}
447+
448+
.vp-audio-bar:nth-child(1) {
449+
animation-delay: 0s !important;
450+
}
451+
452+
.vp-audio-bar:nth-child(2) {
453+
animation-delay: 0.15s !important;
454+
}
455+
456+
.vp-audio-bar:nth-child(3) {
457+
animation-delay: 0.3s !important;
458+
}
459+
460+
.vp-audio-bar:nth-child(4) {
461+
animation-delay: 0.45s !important;
462+
}

src/components/RoomScreen.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ function RoomContainer({ roomName, onLeave }) {
299299
}}
300300
/>
301301
<div className="vp-audio-bars">
302-
<span />
303-
<span />
304-
<span />
305-
<span />
302+
<div className="vp-audio-bar" />
303+
<div className="vp-audio-bar" />
304+
<div className="vp-audio-bar" />
305+
<div className="vp-audio-bar" />
306306
</div>
307307
</>
308308
) : (

0 commit comments

Comments
 (0)