reorder buttons

This commit is contained in:
SrGooglo 2023-05-25 03:23:54 +00:00
parent 827306ff7d
commit 7ad9cb8e5e
2 changed files with 30 additions and 48 deletions

View File

@ -429,6 +429,7 @@ export default class AudioPlayer extends React.Component {
} }
<antd.Button <antd.Button
className="bottom_btn"
icon={<Icons.X />} icon={<Icons.X />}
onClick={this.close} onClick={this.close}
shape="circle" shape="circle"

View File

@ -16,10 +16,8 @@
&.minimized { &.minimized {
pointer-events: none; pointer-events: none;
opacity: 0;
height: 0px; animation: minimize 150ms ease-in-out forwards;
width: 0px;
} }
&.hovering { &.hovering {
@ -96,15 +94,18 @@
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: fit-content;
height: 100%;
.extra_btns { .extra_btns {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
align-items: center; //align-items: center;
justify-content: space-between; //justify-content: flex-start;
gap: 10px;
opacity: 0; opacity: 0;
@ -119,6 +120,10 @@
margin: 0 !important; margin: 0 !important;
} }
} }
.bottom_btn {
//
}
} }
} }
@ -220,6 +225,7 @@
.controls { .controls {
display: inline-flex; display: inline-flex;
flex-direction: row;
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
@ -341,47 +347,6 @@
color: var(--text-color); color: var(--text-color);
} }
} }
.bpmTicker {
position: absolute;
top: 0;
left: 0;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: var(--background-color-contrast);
transform: translate(-50%, -50%);
&.pulse {
animation: pulseBPM;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
animation-duration: 1s;
}
}
}
@keyframes pulseBPM {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
} }
.ant-popover-inner-content { .ant-popover-inner-content {
@ -407,4 +372,20 @@
to { to {
opacity: 1; opacity: 1;
} }
}
@keyframes minimize {
0% {
opacity: 1;
}
99% {
opacity: 0;
//transform: translateX(100%);
}
100% {
opacity: 0;
height: 0px;
}
} }