mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 22:11:35 +00:00
feat(base-share): add upper tooltip
This commit is contained in:
@@ -61,7 +61,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
// --> COMPONENTS <--
|
||||
networks: ["slack", "messenger", "telegram", "twitter", "linkedin"]
|
||||
networks: ["Slack", "Messenger", "Telegram", "Twitter", "LinkedIn"]
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user