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.
willaengine/resources/js/Global/components/Dividers/PartTitle.vue

60 lines
1.4 KiB

6 years ago
<template>
<div class="SectionTitle WM-Width-100">
<h4 class="TitleFa WM-Align-R" :class="TextFaColor" v-text="TitleFa"></h4>
6 years ago
<div class="TitleEn WM-Flex">
<span :class="[Color,TextColor]" v-text="TitleEn"></span>
6 years ago
<div class="Line">
<div class="inner" :class="Color"></div>
</div>
</div>
</div>
</template>
<script>
export default {
props: {
TitleFa: { default: "عنوان بخش" },
TitleEn: { default: "Part Title" },
Color: { default: "black" },
TextColor: { default: "white--text" },
TextFaColor: { default: "black--text" }
6 years ago
},
data: function () {
return {}
6 years ago
},
};
</script>
<style lang="scss" scoped>
/* --------------------------------------------------------
SectionTitle :: Begin
-------------------------------------------------------- */
.SectionTitle .TitleFa {
font-size: 1.7rem;
}
.SectionTitle .TitleEn {
span {
color: #fff;
padding: 4px 25px 2px 25px;
border-radius: 0.2em;
letter-spacing: 0.5em;
line-height: 18px;
font-size: 14px;
}
.Line {
flex-grow: 1;
position: relative;
.inner {
position: absolute;
top: 50%;
width: calc(100% - 1em);
left: 0;
height: 1px;
}
}
}
</style>