forked from epicmaxco/vuestic-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(VaTooltip): restyle (epicmaxco#517)
* feat(va-input): first version of component * feat(va-input): add icons support * feat(va-input): add input wrapper demo * feat(va-input): add focus functionality * feat(va-input): use color plugin for input * feat(va-input): add inputs in presentation * feat(va-input): minor changes * fix: serve:book * minor * chore: add design to demo * fix(VaTooltip): restyle * feat(Tooltips) * fix(Tooltips): add inputs and selects * fix(VaTooltip): style + refatcoring * fix(Tooltips): styles * fix(VaTooltip): add box-shadow * fix(VaTooltip): bug with box-shadow * fix(VaTooltip): bug with box-shadow * fix(VaTooltip): presentation + styles * wip: tooltip component * fix: rename tooltip to popover * feat: add popover demo * fix: tooltip width * minor * fix: remove popovers from notifications demo * feat: add popover doc * minor
- Loading branch information
1 parent
f047442
commit 757eb77
Showing
14 changed files
with
471 additions
and
194 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<template> | ||
<div class="tooltips"> | ||
<div class="va-row"> | ||
<div class="flex xs12 md6"> | ||
<va-card :title="$t('popovers.popoverStyle')"> | ||
<va-simple-select | ||
class="mt-4" | ||
label="color scheme" | ||
v-model="popover.color" | ||
:options="colors" | ||
/> | ||
<va-simple-select | ||
class="mt-4" | ||
label="icon (font-awesome)" | ||
v-model="popover.icon" | ||
:options="icons" | ||
/> | ||
<va-input | ||
v-model="popover.title" | ||
label="Title" | ||
/> | ||
<va-input | ||
class="pt-4" | ||
v-model="popover.message" | ||
label="Message" | ||
/> | ||
<div class="va-row popover-example mt-5"> | ||
<va-popover | ||
:icon="popover.icon" | ||
:color="popover.color" | ||
:title="popover.title" | ||
:message="popover.message" | ||
placement="right" | ||
open | ||
> | ||
<va-button> | ||
{{ $t('notificationsPage.popovers.showPopover') }} | ||
</va-button> | ||
</va-popover> | ||
</div> | ||
</va-card> | ||
</div> | ||
|
||
<div class="flex xs12 md6"> | ||
<va-card :title="$t('popovers.popoverPlacement')"> | ||
<p> | ||
Any text can be used for | ||
<va-popover | ||
placement="top" | ||
message="Top tooltip text" | ||
> | ||
<a href="#"> | ||
{{ $t('notificationsPage.popovers.topTooltip') }} | ||
</a> | ||
</va-popover> | ||
showcase. Just anything you can possibly imagine to test | ||
<va-popover | ||
placement="right" | ||
message="Right tooltip text" | ||
> | ||
<a href="#"> | ||
{{ $t('notificationsPage.popovers.rightTooltip') }} | ||
</a> | ||
</va-popover> | ||
. | ||
But it can appear on the | ||
<va-popover | ||
placement="left" | ||
message="Left tooltip text" | ||
> | ||
<a href="#"> | ||
{{$t('notificationsPage.popovers.leftTooltip')}} | ||
</a> | ||
</va-popover> | ||
. | ||
Or just | ||
<va-popover | ||
placement="bottom" | ||
message="Bottom tooltip text" | ||
> | ||
<a href="#"> | ||
{{ $t('notificationsPage.popovers.bottomTooltip') }} | ||
</a> | ||
</va-popover> | ||
the item. | ||
</p> | ||
</va-card> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import VaInput from '../../../vuestic-theme/vuestic-components/va-input/VaInput' | ||
export default { | ||
components: { VaInput }, | ||
data () { | ||
return { | ||
icons: [ | ||
'fa fa-print', 'fa fa-star', | ||
], | ||
colors: [ | ||
'success', 'info', 'danger', 'warning', 'gray', 'dark', | ||
], | ||
popover: { | ||
title: 'Hey folks!', | ||
message: 'This tooltip is amazing:D', | ||
icon: 'fa fa-print', | ||
color: 'warning', | ||
}, | ||
} | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.tooltips { | ||
&__content { | ||
@include va-flex-center(); | ||
} | ||
} | ||
.popover-example { | ||
min-height: 100px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
src/vuestic-theme/vuestic-components/va-color-presentation/VaColorPresentation.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.