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/Texts/Hint.vue

99 lines
2.2 KiB

<template>
<div class="info-box" :class="theme">
<div :class="'icon '+textColor+'--text'"> <v-icon> WMi-{{icon}} </v-icon></div>
<div :class="'texts '+textColor+'--text'">
<div class="title Fa Bold" v-if="title != ''"> {{ title }} </div>
<div class="desc"> {{ text }} </div>
</div>
</div>
</template>
<script>
export default {
name: "we-hint-text",
props: {
icon: { default: 'info' },
title: { default: "" },
text: { default: " پسر خوب " },
theme: { default: "red" },
textColor: { default: "black" }
},
};
</script>
<style lang="scss" scoped>
/* --------------------------------------------------------
Info Box :: Begin
-------------------------------------------------------- */
.info-box {
display:flex;
color:#fff;
border-radius: 10px;
}
.info-box .icon {
display:flex;
background-color: rgba(0, 0, 0, 0.1);
padding:10px 20px;
border-radius: 10px;
justify-content: center;
align-items: center;
}
.info-box.XS .icon {
padding:5px 10px;
}
.info-box .icon .v-icon {
line-height: 50px;
font-size: 30px;
}
.info-box.XS .icon .v-icon {
line-height: 40px;
font-size: 20px;
}
.info-box .texts {
display:inline-block;
padding:10px 20px;
text-align: right;
width: 100%
}
.info-box.XS .texts {
padding:5px 10px;
}
.info-box .texts .title {
text-align: right;
font-size: 18px;
}
.info-box.XS .texts .title {
font-size: 16px;
}
.info-box .texts .desc {
text-align: right;
font-size: 14px;
}
.info-box.XS .texts .desc {
font-size: 14px;
}
.info-box.inline .texts {
display: flex;
margin-right: 10px;
line-height: 34px;
}
.info-box.inline .texts .desc {
margin-right: 10px;
}
/* ---------------------------------Modifications--------------------------------- */
.info-box.LightGray .texts, .info-box.LightGray .icon i {
color: #000;
}
/* --------------------------------------------------------
Info Box :: End
-------------------------------------------------------- */
</style>