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.
182 lines
4.6 KiB
182 lines
4.6 KiB
<template>
|
|
<div class="info-box" :class="theme">
|
|
<div v-if="title_en" class="title-en En Bold"> {{ title_en }}</div>
|
|
<div v-if="icon" :class="'icon'"> <v-icon> WMi-{{icon}} </v-icon></div>
|
|
<div :class="'texts'">
|
|
<div :class="`title Fa Bold`" v-if="title != ''"> {{ title }} </div>
|
|
<div :class="`desc Fa Thin`">
|
|
<slot name="text"></slot>
|
|
</div>
|
|
</div>
|
|
<div class="help-link">
|
|
<v-tooltip
|
|
v-if="hintID"
|
|
top
|
|
color="black"
|
|
transition="fade-transition"
|
|
>
|
|
<template v-slot:activator="{ on }">
|
|
<v-btn
|
|
class="XS"
|
|
@click.native="$_helper(hintID)"
|
|
slot="activator"
|
|
fab
|
|
:color="$_color('help')"
|
|
dark
|
|
v-on="on"
|
|
x-small
|
|
>
|
|
<v-icon>WMi-{{ hintIcon }}</v-icon>
|
|
</v-btn>
|
|
</template>
|
|
<span> بیشتر بدانید (راهنما) </span>
|
|
</v-tooltip>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "we-hint-text",
|
|
props: {
|
|
icon: { default: String},
|
|
title: { default: "" },
|
|
title_en: { default: String },
|
|
text: { default: " پسر خوب " },
|
|
theme: { default: "grey lighten-3 inline XS" },
|
|
textColor: { default: "black" },
|
|
hintID: { type: String },
|
|
hintIcon: { default: "info" },
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
|
|
/* --------------------------------------------------------
|
|
Info Box :: Begin
|
|
-------------------------------------------------------- */
|
|
.info-box {
|
|
display:flex;
|
|
color:#fff;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.info-box .icon, .info-box .title-en {
|
|
display:flex;
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
padding:10px 20px;
|
|
border-radius: 10px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-transform: uppercase;
|
|
color: #000;
|
|
}
|
|
|
|
.info-box .icon .v-icon {
|
|
line-height: 50px;
|
|
font-size: 30px;
|
|
}
|
|
|
|
.info-box .texts {
|
|
display:inline-block;
|
|
padding:20px 20px;
|
|
text-align: right;
|
|
width: 100%
|
|
}
|
|
|
|
.info-box .texts .title {
|
|
text-align: right;
|
|
font-size: 16px;
|
|
}
|
|
.info-box.XS .texts .title {
|
|
font-size: 14px;
|
|
}
|
|
.info-box .texts .desc {
|
|
text-align: right;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
}
|
|
.info-box.XS .texts .desc {
|
|
font-size: 14px;
|
|
}
|
|
.info-box.inline .texts {
|
|
display: flex;
|
|
justify-content: right;
|
|
align-items: center;
|
|
margin-right: 10px;
|
|
line-height: 34px;
|
|
}
|
|
.info-box.inline .texts .desc {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/*---------------------------------XS Size-------------------*/
|
|
.info-box.XS .icon .v-icon {
|
|
line-height: 40px;
|
|
font-size: 20px;
|
|
}
|
|
.info-box.XS .texts {
|
|
padding:10px 10px;
|
|
}
|
|
.info-box.XS .icon {
|
|
padding:5px 10px;
|
|
}
|
|
|
|
|
|
/* ---------------------------------Modifications--------------------------------- */
|
|
.info-box.light .texts, .info-box.light .icon i, .info-box.light .text {
|
|
color: #fff;
|
|
}
|
|
|
|
.info-box.grey.lighten-3 .texts, .info-box.grey.lighten-3 .icon i, .info-box.grey.lighten-3 .text {
|
|
color: #000;
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------
|
|
Info Box :: End
|
|
-------------------------------------------------------- */
|
|
|
|
.help-link {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
|
|
/*----------------------------------------------------*/
|
|
/* Colors */
|
|
/*----------------------------------------------------*/
|
|
@import "resources/js/Global/scss/_vars.scss";
|
|
@each $color,
|
|
$value in $colors {
|
|
.we-price.theme-#{$color} .discount .percent {
|
|
background-color: $value;
|
|
}
|
|
.we-price.theme-#{$color} .number-original {
|
|
color: $value;
|
|
}
|
|
.we-price.theme-#{$color}-full .number, .we-price.theme-#{$color}-full .label, .we-price.theme-#{$color}-full .prepend-icon, .we-price.theme-#{$color}-full .append-icon {
|
|
color: $value;
|
|
}
|
|
.we-price.border-#{$color} {
|
|
border: 1px solid $value;
|
|
}
|
|
.we-price.border-left-#{$color} {
|
|
border-left: 3px solid $value;
|
|
border-radius: 0px 5px 5px 0px;
|
|
}
|
|
}
|
|
@each $backgroundColor,
|
|
$value in $backgrounds {
|
|
.we-price.bg-#{$backgroundColor} {
|
|
background-color: $value;
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|
|
|