You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
248 lines
7.5 KiB
248 lines
7.5 KiB
// 页面容器
|
|
.lighting-box {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-y: scroll;
|
|
background: #8eabec;
|
|
// 照明设备功能总容器
|
|
.lighting-img-box {
|
|
position: relative;
|
|
// 1536 * 864
|
|
width: 1536px;
|
|
height: 864px;
|
|
user-select: none;
|
|
background-image: url(../image/floor-1-1.png);
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
background-color: linear-gradient(top to bottom,#c0deff, #8eadf0);
|
|
// 由于背景是俯视图,会产生有交点的透视效果,故使用透视属性
|
|
perspective: 900px;
|
|
perspective-origin: 900px -120px;
|
|
// 左上角区域切换功能
|
|
.btn-box {
|
|
width: 100px;
|
|
position: sticky;
|
|
top: 15px;
|
|
margin-left: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
.btn-item {
|
|
cursor: pointer;
|
|
width: 100%;
|
|
height: 35px;
|
|
border-radius: 4px;
|
|
// background: rgba(39, 120, 255, 1);
|
|
background: rgb(7, 72, 116);
|
|
border: 1px solid rgba(51, 199, 255, 1);
|
|
box-shadow: 0px 10px 15px rgba(0, 54, 136, 0.3);
|
|
font-size: 16px;
|
|
color: white;
|
|
}
|
|
.btnActive {
|
|
background: rgba(39, 120, 255, 1);
|
|
}
|
|
.btn-item:hover {
|
|
color: white;
|
|
}
|
|
}
|
|
// 大区分区
|
|
.area{
|
|
position: absolute;
|
|
top: 290px;
|
|
left: 310px;
|
|
width: 1000px;
|
|
height: 265px;
|
|
transform: rotateX(73deg) rotateZ(341deg) skew(31deg);
|
|
display: flex;
|
|
gap: 5px;
|
|
.area1 {
|
|
width: 80px;
|
|
background: rgba(0, 251, 91, 0.3);
|
|
border: 2px solid rgb(0, 251, 91);
|
|
display: flex;
|
|
}
|
|
.area2 {
|
|
width: 150px;
|
|
background: rgba(255, 165, 0, 0.3);
|
|
border: 2px solid rgb(255, 165, 0);
|
|
display: flex;
|
|
}
|
|
.area3 {
|
|
width: 260px;
|
|
background: rgba(255, 0, 0, 0.3);
|
|
border: 2px solid rgb(255, 0, 0);
|
|
display: flex;
|
|
}
|
|
.area4 {
|
|
width: 90px;
|
|
background: rgba(80, 236, 244, 0.3);
|
|
border: 2px solid rgb(80, 236, 244);
|
|
display: flex;
|
|
}
|
|
.area5 {
|
|
width: 100px;
|
|
background: rgba(0, 251, 91, 0.3);
|
|
border: 2px solid rgb(0, 251, 91);
|
|
display: flex;
|
|
}
|
|
.area6 {
|
|
flex: 1;
|
|
background: rgba(255, 165, 0, 0.3);
|
|
border: 2px solid rgb(255, 165, 0);
|
|
display: flex;
|
|
}
|
|
.area-item:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
.area-item {
|
|
cursor: pointer;
|
|
transition: transform ease 0.2s;
|
|
>.light-group {
|
|
height: 100%;
|
|
flex: 1;
|
|
display:flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
.shadow-box {
|
|
width: 35px;
|
|
height: 240px;
|
|
border-radius: 20px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.lightingImgBox1 {
|
|
position: relative;
|
|
width: 1536px;
|
|
height: 864px;
|
|
user-select: none;
|
|
background-image: url(../image/floor-2-1.png);
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
background-color: linear-gradient(top to bottom,#c0deff, #8eadf0);
|
|
z-index: 9;
|
|
// 由于背景是俯视图,会产生有交点的透视效果,故使用透视属性
|
|
perspective: 900px;
|
|
perspective-origin: 900px -120px;
|
|
// 左上角区域切换功能
|
|
.btn-box {
|
|
width: 100px;
|
|
position: sticky;
|
|
top: 15px;
|
|
margin-left: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
.btn-item {
|
|
cursor: pointer;
|
|
width: 100%;
|
|
height: 35px;
|
|
border-radius: 4px;
|
|
// background: rgba(39, 120, 255, 1);
|
|
background: rgb(7, 72, 116);
|
|
border: 1px solid rgba(51, 199, 255, 1);
|
|
box-shadow: 0px 10px 15px rgba(0, 54, 136, 0.3);
|
|
font-size: 16px;
|
|
color: white;
|
|
}
|
|
.btnActive {
|
|
background: rgba(39, 120, 255, 1);
|
|
}
|
|
.btn-item:hover {
|
|
color: white;
|
|
}
|
|
}
|
|
// 大区分区
|
|
.area{
|
|
position: absolute;
|
|
top: 180px;
|
|
left: 290px;
|
|
width: 1150px;
|
|
height: 280px;
|
|
transform: rotateX(78deg) rotateZ(340deg) skew(32deg);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 5px;
|
|
.area1 {
|
|
width: 190px;
|
|
background: rgba(0, 251, 91, 0.3);
|
|
border: 2px solid rgb(0, 251, 91);
|
|
display: flex;
|
|
}
|
|
.area2 {
|
|
width: 150px;
|
|
background: rgba(255, 165, 0, 0.3);
|
|
border: 2px solid rgb(255, 165, 0);
|
|
display: flex;
|
|
}
|
|
.area-item:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
.area-item {
|
|
cursor: pointer;
|
|
transition: transform ease 0.2s;
|
|
>.light-group {
|
|
height: 100%;
|
|
flex: 1;
|
|
display:flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
// border: 2px solid red;
|
|
.shadow-box {
|
|
width: 30px;
|
|
height: 230px;
|
|
border-radius: 20px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 总容器与抽屉按钮
|
|
.ns-content-main {
|
|
position: relative;
|
|
// 抽屉打开按钮
|
|
.drawer-box-in {
|
|
width: 30px;
|
|
height: 40px;
|
|
border-radius: 2px;
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
margin: auto;
|
|
background: rgba(0, 0 ,0 ,0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.drawer-item {
|
|
position: relative;
|
|
// 抽屉关闭按钮
|
|
.drawer-box-out {
|
|
width: 30px;
|
|
height: 40px;
|
|
border-radius: 2px;
|
|
position: fixed;
|
|
right: 496px;
|
|
top: 0;
|
|
bottom: 0;
|
|
margin: auto;
|
|
background: rgba(0, 0 ,0 ,0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|