mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
47 lines
971 B
Vue
47 lines
971 B
Vue
<template>
|
|
<div :class="classes">
|
|
<div class="confidential-content" :class="{ 'blur': isBlurred }">
|
|
<slot name="confidential-content"></slot>
|
|
</div>
|
|
<div>
|
|
<i class="fa fa-eye toggle" aria-hidden="true" @click="toggleBlur"></i>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Confidential",
|
|
data() {
|
|
return {
|
|
isBlurred: true,
|
|
};
|
|
},
|
|
methods : {
|
|
toggleBlur() {
|
|
console.log('toggle blur');
|
|
this.isBlurred = !this.isBlurred;
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang='scss'>
|
|
.confidential{
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
.toggle{
|
|
margin-top: 28px;
|
|
cursor: pointer;
|
|
display: block;
|
|
float: right;
|
|
margin-right: 20px;
|
|
}
|
|
.blur {
|
|
-webkit-filter: blur(5px);
|
|
-moz-filter: blur(5px);
|
|
filter: blur(5px);
|
|
}
|
|
</style>
|