.tempoPractice { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: hidden; display: flex; // flex-direction: column; background: url("./images/bg.png") no-repeat center center / cover; .containerLeft { height: 100%; } &.modal { .head { padding: 0 23px 8px 23px; } .iconBack { opacity: 0; pointer-events: none; visibility: hidden; } .head { padding: 0 23px 8px 23px; } } &.courseware { .head { justify-content: center; } } } .conCon { flex: 1 auto; display: flex; align-items: center; } .pc { .container { max-width: 1200px; gap: 20px 0; } .beatSection { .beat { width: 206px; height: 284px; img { width: 140px; } } &.small { .beat { width: 117px !important; height: 161px !important; img { width: 80px; } } } } .footer { padding-bottom: 36px; } } .head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 23px 8px 41px; transition: opacity 0.3s ease-in-out; .back { padding-top: 17px; width: 46px; height: 46px; img { width: 46px; height: 46px; display: block; } } .title { img { width: 173px; height: 75px; display: block; } } } .container { display: flex; align-items: center; justify-content: center; flex: 1 auto; flex-wrap: wrap; // gap: 15px 0; // margin-bottom: 15px; max-width: 900px; margin: 0 auto; } .beatSection { display: flex; align-items: center; justify-content: center; // margin-bottom: 15px; margin: 7px 0; &.small { width: 50%; // margin: 0 16px; &:nth-child(2n + 1) { justify-content: flex-end; padding-right: 12px; } &:nth-child(2n + 2) { justify-content: flex-start; padding-left: 12px; } .beat { border: 2px solid #fff; // width: 65px; // height: 86px; width: 60px; height: 72px; cursor: pointer; margin: 0 7px; border-radius: 7px; &::before, &::after { width: 19px; height: 5px; } img { width: 48px; } } } .beat { display: flex; align-items: center; flex-direction: column; margin: 0 13px; width: 118px; height: 156px; box-shadow: 0px 2px 16px 0px #76C3D2; border-radius: 14px; border: 3px solid #fff; background: #FFFFFF; position: relative; &>div { display: flex; align-items: center; justify-content: center; flex: 1; } :global { .sortable-chosen.sortable-ghost { display: none !important; } } .direction { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; align-items: center; flex-direction: column; z-index: 9; &>div { width: 100%; flex: 1; } } &.active { border: 3px solid rgba(255, 167, 0, 1); } .imgSection { display: flex; align-items: center; justify-content: center; flex: 1; } img { width: 96px; } &.disabledChange { &::before, &::after { display: none; } } &::before, &::after { content: ''; display: block; width: 30px; height: 7px; background: url('./images/icon-arrow.png') no-repeat center center / contain; margin: 0 auto; } &::before { margin-top: 3px; } &::after { margin-bottom: 3px; transform: rotate(180deg); } } :global { .onstart { .sortable-chosen.sortable-ghost { display: inherit !important; } } .sortable-drag { opacity: 0 !important; } } } .footer { padding: 12px 0 20px; display: flex; align-items: center; justify-content: center; &>div { margin: 0 9px; cursor: pointer; img { width: inherit; height: inherit; display: block; } } .play { width: 54px; height: 55px; } .playType { width: 175px; height: 39px; } .randomTempo { width: 90px; height: 39px; } .setting { width: 74px; height: 39px; } .speedChange { width: 110px; height: 39px; background: url('./images/btn-4.png') no-repeat center center / contain; display: flex; align-items: center; padding: 9px; display: flex; align-items: center; :global { .van-popover__wrapper { flex: 1; } } .speedNum { flex: 1; font-size: 16px; font-weight: 600; color: #6B3B19; display: flex; align-items: center; justify-content: center; &::after { content: ''; display: inline-block; width: 8px; height: 5px; margin-left: 4px; background: url('./images/icon-arrow2.png') no-repeat center center / contain; } } } .speedPlus, .speedAdd { width: 21px; height: 21px; } } .settingPopup { background: transparent; overflow: visible; :global { .bom_drag { pointer-events: none; } .bom_drag_point { opacity: 0.3; } .bom_drag_point, .bom_drag_point_right { pointer-events: all; } } } .popupContainer { margin-top: -10px !important; --van-popover-action-height: 32px; --van-popover-action-font-size: 14px; --van-popover-radius: 12px; --van-popover-action-width: 85px; padding: 4Px 0; border-radius: 12px; background-color: #fff; box-shadow: 0 0.05333rem 0.32rem rgba(50, 50, 51, .12); border-radius: var(--van-popover-radius); overflow: hidden; :global { .van-popover__content { max-height: 200px; box-shadow: none; overflow-y: auto; &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(0, 0, 0, 0.2); } &::-webkit-scrollbar-track { border-radius: 0; background: rgba(0, 0, 0, 0.1); } } .van-popover__action { padding: 0 9px; } } } :global { .settingBoxClass_drag .settingContainer_pc { border-radius: 16px; height: 60vh !important; } } .containerLeft { flex: 1; display: flex; flex-direction: column; &.leftShow { .beatSection { .beat { width: 80px; height: 100px; margin: 0 8px; img { width: 64px; } } &.small { &:nth-child(2n + 1) { justify-content: flex-end; padding-right: 4px; } &:nth-child(2n + 2) { justify-content: flex-start; padding-left: 4px; } .beat { width: 44px !important; height: 58px !important; margin: 0 3px; img { width: 28px; } } } } .footer { &>div { margin: 0 4px; } .play { width: 42px; height: 42px; } .playType { width: 147px; height: 33px; } .randomTempo { width: 75px; height: 33px; } .speedChange { width: 92px; height: 33px; .speedNum { font-size: 13px; } .speedPlus, .speedAdd { width: 18px; height: 18px; } } } } } .containerRight { width: 281px; transition: all .1s ease; &.rightHide { transform: translateX(100%); width: 0; transition: all .1s ease; .settingModalShow { display: none; } } } .settingModalShow { height: 100% !important; width: 281px !important; } @media all and (max-width: 720px) { .containerLeft { flex: 1; display: flex; flex-direction: column; &.leftShow { .beatSection { .beat { width: 70px; height: 90px; margin: 0 8px; img { width: 64px; } } &.small { &:nth-child(2n + 1) { justify-content: flex-end; padding-right: 4px; } &:nth-child(2n + 2) { justify-content: flex-start; padding-left: 4px; } .beat { width: 35px !important; height: 46px !important; margin: 0 3px; img { width: 28px; } } } } .footer { &>div { margin: 0 4px; } .play { width: 35px; height: 35px; } .playType { width: 129px; height: 29px; } .randomTempo { width: 67px; height: 29px; } .speedChange { width: 81px; height: 29px; .speedNum { font-size: 12px; } .speedPlus, .speedAdd { width: 16px; height: 16px; } } } } } .containerRight { width: 245px; transition: all 0.03s ease; } .settingModalShow { height: 100% !important; width: 245px !important; } .containerRight { width: 245px; transition: all 0.03s ease; &.rightHide { transform: translateX(100%); width: 0; transition: all 0.03s ease; } } }