vr-uniapp/src/views/layout/components/main/index.scss

303 lines
7.9 KiB
SCSS

.siderbar {
width: 34rem;
padding: 2rem 3rem;
background-color: #fff;
overflow: auto;
.el-collapse {
border: 0;
:deep(.el-collapse-item__wrap) {
border: 0;
}
:deep(.el-collapse-item__header) {
border: 0;
}
}
.component {
.item {
width: calc(100% / 3);
padding: 0.5rem;
.img {
width: 3rem;
height: 3rem;
}
}
}
&-show {
display: flex;
padding: 0.5rem;
transition: box-shadow 0.5s ease;
}
&-show:hover {
cursor: pointer;
border-radius: 0.5rem;
box-shadow: 0 0 0.5rem 0 rgba(24, 144, 255, 0.3);
transform: scale(1.05);
transition: all 0.4s;
}
&-hidden {
display: none;
}
}
@media screen and (max-width: 1560px) {
.siderbar {
width: 32rem;
}
.drawer-container {
display: none;
}
}
.main {
flex: 1;
position: relative;
height: 100%;
width: 100%;
.acticons {
position: absolute;
left: 50%;
margin-left: 26rem;
top: 0;
display: flex;
flex-direction: column;
gap: 2rem;
z-index: 1;
.el-button {
border-radius: 0.4rem;
}
.el-button + .el-button {
margin-left: 0;
}
}
.model {
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
height: 100%;
.model-content {
position: relative;
height: 84.6rem;
.model-bottom {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
z-index: 2;
.roll {
border-top: 0.1rem solid #f5f5f5;
height: 4rem;
width: 39rem;
background: #fff;
margin: 0 auto;
}
}
.model-drag {
overflow-y: auto;
padding-top: 0.2rem;
max-height: 84.4rem;
&::-webkit-scrollbar {
display: none;
}
.model-wall {
width: 39rem;
background: #f5f5f5;
margin: 0 auto;
.drag-area .float-window {
position: fixed;
max-width: 39rem;
margin: 0 auto;
z-index: 3;
}
.main-content {
max-width: 39rem;
overflow: hidden;
}
}
}
// 悬浮按钮控制, 未选中情况下宽度自适应
.plug-in-table.float-window {
.plug-in-name {
display: none;
}
}
// 选中情况下宽度是100%
.plug-in-border.float-window {
.plug-in-name {
display: block;
}
}
.plug-in-border {
position: relative;
// border: 0.2rem solid $cr-main;
z-index: 1;
box-sizing: border-box;
}
.plug-in-border::before {
content: '';
width: calc(100% + 0.4rem);
height: calc(100% + 0.4rem);
position: absolute;
top: -0.2rem;
left: -0.2rem;
border: 0.2rem solid $cr-main;
}
.plug-in-animation {
transition: all 0.3s ease-in-out;
&:hover {
box-shadow: 0 2px 8px rgba(50, 55, 58, 0.1);
}
}
.plug-in-table {
display: table;
width: 100%;
cursor: move;
transform: translateZ(0rem) !important;
}
.plug-in-name {
position: absolute;
top: 0;
background: #fff;
left: -10rem;
width: 8.6rem;
height: 3.2rem;
text-align: center;
line-height: 3.2rem;
font-size: 1.3rem;
color: #666;
border-radius: 0.3rem;
z-index: 99;
&::before {
content: '';
position: absolute;
width: 1rem;
height: 1rem;
background: #fff;
transform: rotate(45deg);
top: 50%;
right: -0.5rem;
margin-top: -0.5rem;
}
}
.plug-in-close::before {
position: absolute;
content: '\5DF2\9690\85CF';
background: rgba(0, 0, 0, 0.5);
width: 100%;
height: 100%;
z-index: 99;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.plug-in-right {
background: $cr-main;
position: absolute;
right: -5rem;
display: flex;
flex-direction: column;
gap: 2rem;
padding: 2rem 1.2rem;
color: #fff;
border-radius: 0.4rem;
& > i {
cursor: pointer;
}
& > i.disabled {
color: #5db2ff;
cursor: not-allowed;
}
}
.main-show {
display: inherit;
}
.main-hidden {
display: none;
}
.main-border {
padding: 1rem;
border: 0.1rem dashed $cr-main;
background: #b9d8f5;
}
}
.plug-in-right {
background: $cr-main;
position: absolute;
right: -5rem;
display: flex;
flex-direction: column;
gap: 2rem;
padding: 2rem 1.2rem;
color: #fff;
border-radius: 0.4rem;
& > i {
cursor: pointer;
}
& > i.disabled {
color: #5db2ff;
cursor: not-allowed;
}
& .icon-arrow-top,
& .icon-arrow-bottom {
height: 0.9rem;
}
}
.main-show {
display: inherit;
}
.main-hidden {
display: none;
}
.main-border {
padding: 1rem;
border: 0.1rem dashed $cr-main;
background: #b9d8f5;
}
}
}
.seat {
background: transparent;
height: 0.2rem;
width: 39rem;
margin: 0 auto;
}
.drawer-container {
position: relative;
overflow: hidden;
margin-left: 0.1rem;
transition: 0.8s ease;
.drawer-content {
position: absolute;
top: 0;
width: 12.8rem;
height: 100%;
background: #fff;
transition: left 0.8s ease;
}
.drawer-title {
transition: 0.4s ease;
}
.drawer-drag-bg {
background: #F2F8FF;
}
.drawer-drag-area {
height: calc(100% - 6rem);
overflow-y: auto;
}
.drawer-drag {
cursor: move;
}
.drawer-drag:hover{
background: #F2F8FF;
.iconfont.icon-close-b {
display: block !important;
}
}
.iconfont.icon-close-b {
right: 1rem;
top: 1.4rem;
color: #8A8A8A;
cursor: pointer;
}
}