feat(base-share): add upper tooltip

This commit is contained in:
Julien
2018-09-09 23:41:06 +02:00
parent e02a9bbc85
commit b418701ea3
5 changed files with 321 additions and 17 deletions

View File

@@ -61,7 +61,7 @@ export default {
data() {
return {
// --> COMPONENTS <--
networks: ["slack", "messenger", "telegram", "twitter", "linkedin"]
networks: ["Slack", "Messenger", "Telegram", "Twitter", "LinkedIn"]
};
}
};

View File

@@ -3,11 +3,17 @@
************************************************************************* -->
<template lang="pug">
img(
@click="onClick"
:src="'/images/components/BaseShare/' + network + '.svg'"
div(
:data-balloon="'Share on ' + network"
class="c-base-share"
data-balloon-pos="up"
data-balloon-type="mini"
)
img(
@click="onClick"
:src="'/images/components/BaseShare/' + network.toLowerCase() + '.svg'"
class="c-base-share__image"
)
</template>
<!-- *************************************************************************
@@ -39,9 +45,12 @@ export default {
$c: ".c-base-share";
#{$c} {
display: block;
width: 32px;
height: 32px;
cursor: pointer;
display: inline-block;
#{$c}__image {
width: 32px;
height: 32px;
cursor: pointer;
}
}
</style>