lg_frontend/components/SecondaryTitle.vue

69 lines
1.3 KiB
Vue
Raw Normal View History

2024-02-19 13:16:43 +00:00
<!--二级标题-->
<template>
<div class="secondary-title" :class="{longBg}">
<div class="_title">{{ title }}</div>
<div class="_right">
<slot></slot>
</div>
</div>
</template>
<script>
export default {
name: "SecondaryTitle",
props: {
longBg: {
type: Boolean,
default: false
},
title: {
type: String,
default: ''
}
}
}
</script>
<style scoped lang="less">
@import "assets/styles/mixin";
.secondary-title {
width: 100%;
height: 84px;
background: url("assets/peakCoalImages/coommon/small-seconfary-title-bg.png") no-repeat;
background-size: 100% 100%;
.clear-fix;
2024-02-19 14:00:33 +00:00
&.longBg {
2024-02-19 13:16:43 +00:00
width: 100%;
height: 84px;
background: url("assets/peakCoalImages/coommon/long-seconfary-title-bg.png") no-repeat;
background-size: 100% 100%;
}
2024-02-19 14:00:33 +00:00
._title {
2024-02-19 13:16:43 +00:00
padding-left: 100px;
float: left;
font-family: AlimamaShuHeiTi-Bold;
font-size: 46.24px;
2024-02-19 14:00:33 +00:00
color: #D8F0FF;
2024-02-19 13:16:43 +00:00
letter-spacing: 3.04px;
2024-02-19 14:00:33 +00:00
text-shadow: 0 0 25px rgba(0, 145, 255, 0.50);
2024-02-19 13:16:43 +00:00
font-weight: 700;
}
2024-02-19 14:00:33 +00:00
._right {
2024-02-19 13:16:43 +00:00
float: right;
2024-02-19 14:00:33 +00:00
height: 100%;
2024-02-19 13:16:43 +00:00
}
}
/*
.longBg {
width: 100%;
height: 84px;
background: url("assets/peakCoalImages/coommon/long-seconfary-title-bg.png") no-repeat;
background-size: 100% 100%;
}*/
</style>