refactor: 抽取调整样式到公共
This commit is contained in:
parent
2ad4e35f57
commit
cbfc42e23d
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
.common-bg {
|
.common-bg {
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
background: rgba(14, 95, 255, 0.2);
|
background: rgba(14, 95, 255, 0.20);
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
.smart-parking {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 65px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.smart-parking-common-card-container {
|
||||||
|
width: 380px;
|
||||||
|
height: 650px;
|
||||||
|
background: url('@/assets/images/smart-parking/bg/bg-side.png') no-repeat center;
|
||||||
|
background-size: cover;
|
||||||
|
transition: transform 0.8s;
|
||||||
|
transform-style: preserve-3d;
|
||||||
|
|
||||||
|
.smart-parking-common-title {
|
||||||
|
width: 218px;
|
||||||
|
height: 59px;
|
||||||
|
background: url('@/assets/images/smart-parking/bg/bg-road-condition.png') no-repeat center;
|
||||||
|
background-size: cover;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1,2 @@
|
||||||
@use "@/assets/styles/views/src/manage-forms";
|
@use "@/assets/styles/views/src/smart-parking";
|
||||||
|
@use "@/assets/styles/views/src/manage-forms";
|
||||||
|
|
|
@ -11,25 +11,3 @@ import TruckMonitor from '@/views/smart-parking/components/parking-content/truck
|
||||||
<traffic-overview />
|
<traffic-overview />
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.card-container {
|
|
||||||
width: 380px;
|
|
||||||
height: 650px;
|
|
||||||
background: url('@/assets/images/smart-parking/bg/bg-side.png') no-repeat center;
|
|
||||||
background-size: cover;
|
|
||||||
transition: transform 0.8s;
|
|
||||||
transform-style: preserve-3d;
|
|
||||||
|
|
||||||
::v-deep(.road-condition) {
|
|
||||||
width: 218px;
|
|
||||||
height: 59px;
|
|
||||||
background: url('@/assets/images/smart-parking/bg/bg-road-condition.png') no-repeat center;
|
|
||||||
background-size: cover;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<script lang="ts" setup></script>
|
<script lang="ts" setup></script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="card-container">
|
<div class="smart-parking-common-card-container">
|
||||||
<div class="pt-[55px] pl-[25px]" style="transform: rotateY(180deg)">
|
<div class="pt-[55px] pl-[25px]" style="transform: rotateY(180deg)">
|
||||||
<!-- 路况 -->
|
<!-- 路况 -->
|
||||||
<div class="road-condition">
|
<div class="smart-parking-common-title">
|
||||||
<h1 class="c-white">实时道路情况</h1>
|
<h1 class="c-white">实时道路情况</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.card-container {
|
.smart-parking-common-card-container {
|
||||||
margin: 0 20px 0 0;
|
margin: 0 20px 0 0;
|
||||||
transform: rotateY(180deg);
|
transform: rotateY(180deg);
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,10 @@ onMounted(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="card-container ml-[20px]">
|
<div class="smart-parking-common-card-container ml-[20px]">
|
||||||
<div class="pt-[55px] pl-[25px]">
|
<div class="pt-[55px] pl-[25px]">
|
||||||
<!-- 路况 -->
|
<!-- 路况 -->
|
||||||
<div class="road-condition">
|
<div class="smart-parking-common-title">
|
||||||
<h1 class="c-white">近7天车流量概览</h1>
|
<h1 class="c-white">近7天车流量概览</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import ParkingFooter from '@/views/smart-parking/components/parking-footer/index
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="layout">
|
<div class="smart-parking">
|
||||||
<div class="arrow left-[38px]">
|
<div class="arrow left-[38px]">
|
||||||
<img alt="左箭头" src="@/assets/images/smart-parking/arrow/arrow-left.png" />
|
<img alt="左箭头" src="@/assets/images/smart-parking/arrow/arrow-left.png" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,21 +15,3 @@ import ParkingFooter from '@/views/smart-parking/components/parking-footer/index
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.layout {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
.arrow {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
img {
|
|
||||||
width: 65px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue