press-pix
Version:
基于 PixUI 的 Press 组件库
178 lines (159 loc) • 3.32 kB
text/less
@import '../../common/styles/pubgm/mixins.less';
@import '../../common/styles/pubgm/direction-base.less';
.press-vconsole {
position: fixed;
top: 80%;
left: 90%;
background: #fff;
color: #3a84ff;
border-radius: 100%;
font-size: 20px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.press-debug__wrap{
position: fixed;
.inset-inline-start(0);
top: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 99;
background: rgba(36, 36, 36, .7);
}
.press-debug__head{
display: flex;
align-items: center;
.justify-content-end() ;
.padding-inline-end(.88rem);
padding-top: .32rem;
}
.press-debug__title{
.margin-inline-end(.24rem);
.margin-inline-start(.24rem);
font-size: .4rem;
font-weight: bold;
color: #fff;
}
.press-debug__close{
width: .33rem;
height: .33rem;
.bgUrl('comp/icon-close.png');
z-index: 2;
.rtl-flip-horizontal();
}
.press-debug__content{
position: relative;
display: flex;
.flex-direction-row();
justify-content: space-between;
width: 100%;
height: 4.12rem;
background-color: #282828;
.padding-inline-start(.56rem);
.padding-inline-end(.66rem);
padding-bottom: .32rem;
&::after{
content: '';
position: absolute;
bottom: 0;
.inset-inline-end(0);
width: 6.84rem;
height: 2.8rem;
.bgUrl('comp/img-grid.png');
.rtl-flip-horizontal();
}
}
.press-debug__left{
display: flex;
flex-direction: column;
flex-grow: 1;
z-index: 99;
position: relative;
&.pmg-active{
padding-top: .64rem;
}
}
.press-debug__select{
display: flex;
align-items: center;
height: .64rem;
line-height: .64rem;
.padding-inline-start(.56rem);
font-size: .22rem;
color: rgba(255, 255, 255, .7);
.press-debug__select-text{
line-clamp: 1;
}
}
.press-debug__list{
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: scroll;
overflow-x: hidden;
height: 100%;
background: #1c1c1c;
padding: 0 .16rem;
padding-top: .32rem;
}
.press-debug__item{
display: flex;
.flex-direction-row();
align-items: center;
justify-content: flex-start;
flex-shrink: 0;
width: 90%;
padding: 0.12rem .12rem 0.12rem 0.2rem;
min-height: .64rem;
.margin-inline-end(.24rem);
margin-right: .24rem;
margin-bottom: .24rem;
font-size: .22rem;
color: #fff;
border: .02rem solid rgba(255, 255, 255, .5);
background-color: rgba(53, 53, 53, .6);
word-break: break-all;
&:nth-child(4n){
.margin-inline-end(0);
}
&.press-debug__item-selected{
color: #C7FFF6;
border: .02rem solid #C7FFF6;
background-color: rgba(51, 78, 82, .6);
}
&.press-debug__item-disable{
color: rgba(255, 255, 255, .3);
border: .02rem solid rgba(255, 255, 255, .5);
}
}
.press-debug__placeholder-item{
flex-shrink: 0;
height: .64rem;
margin-bottom: .24rem;
}
.press-debug__confirm{
flex-shrink: 0;
align-self: flex-end;
.margin-inline-start(.66rem);
z-index: 99;
position: relative;
}
.press-debug__tips {
color: #fff;
font-size: 0.22rem;
opacity: 0.8;
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.press-debug__tip {
flex-shrink: 0;
height: .64rem;
display: flex;
}