@function toREM($px) { @return $px/100*1rem } $uiwidth: 375; html { font-size: (100/$uiwidth) * 100vw; @media screen and (max-width: 320px) { font-size: 80px; } @media screen and (min-width: 750px) { font-size: 120px; } } .flex-center-all { display: flex; align-items: center; justify-content: center; } .flex-align-c { display: flex; align-items: center; } .tc { text-align: center; } .pfi { position: fixed; } .pab { position: absolute } .pre { position: relative; } .flex { display: flex; } .flex-1 { flex: 1; } .flex-column { height: 100%; display: flex; flex-direction: column; } .flex-column-container { flex: 1; overflow-y: auto; } .flex-jub { display: flex; justify-content: space-between; } .mb-20 { margin-bottom: toREM(20); } .mb-15 { margin-bottom: toREM(15); } [v-cloak] { display: none; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .w100 { width: 100%; } .h100 { height: 100%; } .fl { float: left; } .fr { float: right; } .mt-16 { margin-top: toREM(16); } .mb-5 { margin-bottom: toREM(5); } #app { font-size: toREM(12); color: #fff; } .layout { background-color: #000; font-size: toREM(12); .layout-view { height: calc(100% - toREM(40)); width: 100%; position: relative; display: flex; align-content: center; justify-content: center; align-items: center; flex-wrap: nowrap; .videoRotate { // position: absolute; // left: 0; // top: 0; display: block; object-fit: fill; } } .layout-footer { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; height: toREM(40); img { margin: auto; width: toREM(30); height: toREM(30); } } // 右侧抽屉框 .levitated-sphere-overlay { height: calc(100% - toREM(60)); background-color: transparent; } .levitated-sphere-drawer { top: 45.5%; height: calc(100% - toREM(60)); max-height: none !important; min-width: toREM(70); color: #fff; background-color: rgba(2, 2, 6, .5); padding: toREM(30) toREM(10) 0; box-sizing: border-box; .drawer-item { line-height: toREM(30); border-radius: toREM(3); -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -khtml-user-select: none; user-select: none; &.active { background: rgba(255, 255, 255, 1); color: #000; } } .exit { line-height: toREM(30); img { width: toREM(24); height: toREM(24); } } } // 计时规则 .billing-rules-modal { text-align: center; font-size: toREM(14); color: #757580; text-align: center; .van-dialog__content { padding: 0 toREM(28) toREM(28); } .billing-rules-img { width: toREM(104); height: toREM(140); } .billing-rules-title { font-size: toREM(18); font-weight: 600; color: #363636; margin-bottom: toREM(5); } .billing-rules-tips { margin-top: toREM(5); } .billing-rules-time { color: #00DB88; font-size: toREM(15); } .billing-rules-btn { height: toREM(50); line-height: toREM(50); text-align: center; margin-top: toREM(24); background: linear-gradient(90deg, #00A3FF 0%, #04F79A 100%); border-radius: toREM(8); font-size: toREM(12); color: #FFFFFF; } } // 应用推荐 .apply-recommend-modal { overflow: visible; .van-dialog__content { padding: toREM(10) toREM(28) toREM(28); &>div { height: toREM(350); display: flex; flex-direction: column; .apply-recommend-title { font-size: toREM(16); font-weight: 500; color: #363636; } .apply-recommend-list { flex: 1; overflow-y: auto; margin-top: toREM(16); &::-webkit-scrollbar { display: none; } .left { width: calc(100% - toREM(68)); &>img { width: toREM(36); height: toREM(36); } &>div { width: calc(100% - toREM(36)); padding-left: toREM(10); box-sizing: border-box; } .title { width: 100%; font-size: toREM(16); color: #363636; max-width: 100%; } .download-num { font-size: toREM(12); color: #757580; } } .right { &>div { width: toREM(68); height: toREM(30); line-height: toREM(30); text-align: center; background: linear-gradient(90deg, #00A3FF 0%, #04F79A 100%); border-radius: toREM(8); font-size: toREM(12); color: #FFFFFF; } } } .apply-recommend-btn { height: toREM(50); line-height: toREM(50); margin-top: toREM(14); background: linear-gradient(225deg, #FF62F8 0%, #FF9D5C 100%); border-radius: toREM(8); font-size: toREM(12); color: #FFFFFF; } } .apply-recommend-close { bottom: -12%; left: 50%; transform: translateX(-50%); width: toREM(38); height: toREM(38); } } } // 粘贴版 .paste-version-modal { background-color: transparent; overflow: visible; .van-dialog__content { background-color: rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; height: toREM(270); padding-bottom: toREM(28); border-radius: toREM(16); .paste-version-title { height: toREM(48); line-height: toREM(48); font-size: toREM(16); margin: 0 toREM(18); &>span:first-child { top: 50%; left: 50%; transform: translate(-50%, -50%); } .paste-version-clear { position: absolute; top: 52%; transform: translateY(-52%); right: 0; height: toREM(20); line-height: toREM(20); padding: 0 toREM(10); font-size: toREM(12); background: #3666f2; border-radius: toREM(3); color: #ffffff; } } .paste-version-list { flex: 1; overflow-y: auto; & .van-swipe-cell { margin: 0 toREM(18); box-sizing: border-box; height: toREM(32); line-height: toREM(32); text-align: center; font-size: toREM(13); color: #666; background-color: #fff; border-radius: toREM(5); overflow: hidden; .van-swipe-cell__wrapper { width: 100%; height: 100%; } .ellipsis { width: 100%; height: 100%; padding: 0 toREM(10); box-sizing: border-box; } } &::-webkit-scrollbar { display: none; } .paste-version-delete { width: toREM(40); height: 100%; border: none; background: #f04646; color: #fff; font-size: toREM(12); text-align: center; border-radius: 0 toREM(5) toREM(5) 0; } } .paste-version-close { width: toREM(38); height: toREM(38); bottom: -20%; left: 50%; transform: translateX(-50%); } .paste-version-empty { img { width: toREM(128); height: toREM(160); } &>div>div { margin-top: toREM(9); font-size: toREM(15); } } } } // 分辨率 .resolution-ratio-modal { background-color: transparent; .van-dialog__content { &>div { padding: toREM(1); background: linear-gradient(180deg, rgba(118, 204, 255, 1), rgba(195, 40, 255, 1)); overflow: hidden; border-radius: toREM(20); &>div { height: 100%; padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: toREM(20); color: rgba(255, 255, 255, 0.6); background-color: #000000; font-size: toREM(16); .resolution-ratio-btn { padding: toREM(10) toREM(19); border-bottom: toREM(1) solid rgba(255, 255, 255, 0.2); &>div:last-child { color: #fff; } } .resolution-ratio-list { padding: toREM(15) 0; font-size: toREM(14); &>div { display: flex; line-height: toREM(43); justify-content: center; &.active { font-size: toREM(16); color: #fff; background: url(../../static/img/phone-size-active.png) no-repeat center center; background-size: 60% 100%; } } } } } } } // 续费时长 .renewal-duration-modal { // display: flex; // flex-direction: column; // align-items: center; img { width: toREM(104); height: toREM(140); } .renewal-duration-title { margin-top: toREM(7); font-size: toREM(18); font-weight: 600; color: #363636; } .renewal-duration-tip { margin-top: toREM(7); font-size: toREM(14); color: #757580; } .renewal-duration-btn { height: toREM(50); line-height: toREM(50); text-align: center; background: linear-gradient(90deg, #00A3FF 0%, #04F79A 100%); border-radius: toREM(8); font-size: toREM(12); color: #FFFFFF; margin: toREM(28); } } .copy-text-modal { color: #000; padding: toREM(10); .van-field__control { border: toREM(1) solid #d6d1d17e; border-radius: toREM(16); padding: toREM(10); } } } // 顶部计时样式 .timing { top: 2%; right: 5%; padding: toREM(6) toREM(5) toREM(6) toREM(9); background: rgba(0, 0, 0, 0.6); border-radius: toREM(30); font-size: toREM(14); z-index: 1; &>div { vertical-align: middle; height: toREM(20); line-height: toREM(20); } &>div::after { border-right: toREM(1) solid #FFFFFF; content: ''; width: toREM(2); height: 45%; display: inline-block; vertical-align: middle; margin-bottom: toREM(3); padding: 0 toREM(3); opacity: .3; } &>img { width: toREM(20); height: toREM(20); } } // 悬浮框 .levitated-sphere { position: fixed; z-index: 1; img { width: toREM(42); height: toREM(42); } }