review alina add

This commit is contained in:
ogerly 2019-12-11 08:25:32 +01:00
parent 5ae6b3c954
commit e737a3cd82
3 changed files with 25 additions and 17 deletions

View File

@ -7,6 +7,15 @@
@submit="submit" @submit="submit"
> >
<template slot-scope="{ errors }"> <template slot-scope="{ errors }">
<ds-text v-show="blurImage" class="blur-box" align="right" >
<div
v-if="contribution && contribution.blurImage"
@click.stop.prevent="blurImage = !blurImage"
>
<img :src="contribution.image | proxyApiUrl" class="blur-img-preview"/>
<ds-button class="bluricon-post" icon="ban" primary></ds-button>
</div>
</ds-text>
<hc-teaser-image <hc-teaser-image
:contribution="contribution" :contribution="contribution"
@addTeaserImage="addTeaserImage" @addTeaserImage="addTeaserImage"
@ -19,15 +28,7 @@
:src="contribution.image | proxyApiUrl" :src="contribution.image | proxyApiUrl"
/> />
</hc-teaser-image> </hc-teaser-image>
<ds-text align="right" class="blur-box">
<div
v-if="contribution && contribution.blurImage"
@click.stop.prevent="blurImage = !blurImage"
>
<img :src="contribution.image | proxyApiUrl" class="blur-img-preview" />
<ds-button class="bluricon-post" icon="ban" primary></ds-button>
</div>
</ds-text>
<div style="clear: both" /> <div style="clear: both" />
<ds-card> <ds-card>
<ds-text align="right"> <ds-text align="right">
@ -40,7 +41,7 @@
v-model="blurImage" v-model="blurImage"
@change="form.checkbox = blurImage" @change="form.checkbox = blurImage"
/> />
<label for="blur-img"><span class=""></span></label>
<div> <div>
<a href="https://faq.human-connection.org/" target="_blank"> <a href="https://faq.human-connection.org/" target="_blank">
<small> <small>
@ -320,7 +321,8 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.images-set-blur img {
.images-set-blur.ds-card-image img{
-webkit-filter: blur(32px); -webkit-filter: blur(32px);
-moz-filter: blur(32px); -moz-filter: blur(32px);
-ms-filter: blur(32px); -ms-filter: blur(32px);
@ -332,11 +334,13 @@ export default {
-o-transition: all ease 0.2s; -o-transition: all ease 0.2s;
transition: all ease 0.2s; transition: all ease 0.2s;
} }
.blur-box { .blur-box {
text-align: right; position: absolute;
position: relative; /* top: -70px; */
top: -70px; /* float: right; */
float: right; z-index: 1000;
padding: 20px;
} }
.blur-img-preview { .blur-img-preview {
width: 100px; width: 100px;

View File

@ -159,7 +159,8 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.images-set-blur .ds-card-image img { /*
.images-set-blur ~.ds-card-image img {
-webkit-filter: blur(32px); -webkit-filter: blur(32px);
-moz-filter: blur(32px); -moz-filter: blur(32px);
-ms-filter: blur(32px); -ms-filter: blur(32px);
@ -171,6 +172,7 @@ export default {
-o-transition: all ease 0.2s; -o-transition: all ease 0.2s;
transition: all ease 0.2s; transition: all ease 0.2s;
} }
*/
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -235,7 +235,8 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.images-set-blur .ds-card-image img {
.images-set-blur .ds-card-image {
-webkit-filter: blur(22px); -webkit-filter: blur(22px);
-moz-filter: blur(22px); -moz-filter: blur(22px);
-ms-filter: blur(22px); -ms-filter: blur(22px);
@ -248,6 +249,7 @@ export default {
transition: all ease 0.2s; transition: all ease 0.2s;
} }
.blurBox { .blurBox {
text-align: right; text-align: right;
position: relative; position: relative;