-
-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made tippy.js internal provider for Tooltip component (#2112)
* Made tipsy.js internal provider for Tooltip component * More Tooltip examples in the demo * Tippy.js note in the documentation * Add ShowArrow parameter
- Loading branch information
Showing
21 changed files
with
214 additions
and
306 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@namespace Blazorise | ||
@inherits BaseComponent | ||
<CascadingValue Value="@this" IsFixed="true"> | ||
<div @ref="@ElementRef" id="@ElementId" class="@ClassNames" style="@StyleNames" role="tooltip" data-tooltip="@Text" @attributes="@Attributes"> | ||
<div @ref="@ElementRef" id="@ElementId" class="@ClassNames" style="@StyleNames" role="tooltip" @attributes="@Attributes"> | ||
@ChildContent | ||
</div> | ||
</CascadingValue> |
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
File renamed without changes.
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,49 @@ | ||
.tippy-box[data-animation=scale][data-placement^=top] { | ||
transform-origin: bottom | ||
} | ||
|
||
.tippy-box[data-animation=scale][data-placement^=bottom] { | ||
transform-origin: top | ||
} | ||
|
||
.tippy-box[data-animation=scale][data-placement^=left] { | ||
transform-origin: right | ||
} | ||
|
||
.tippy-box[data-animation=scale][data-placement^=right] { | ||
transform-origin: left | ||
} | ||
|
||
.tippy-box[data-animation=scale][data-state=hidden] { | ||
transform: scale(.5); | ||
opacity: 0 | ||
} | ||
|
||
.tippy-box[data-theme~='blazorise'] { | ||
background-color: #{"RGBA("}$tooltip-background-color-r, $tooltip-background-color-g, $tooltip-background-color-b, $tooltip-background-opacity#{")"}; | ||
color: $tooltip-color; | ||
} | ||
|
||
.tippy-box[data-theme~='blazorise'][data-placement^='top'] > .tippy-arrow::before { | ||
border-top-color: #{"RGBA("}$tooltip-background-color-r, $tooltip-background-color-g, $tooltip-background-color-b, $tooltip-background-opacity#{")"}; | ||
} | ||
|
||
.tippy-box[data-theme~='blazorise'][data-placement^='bottom'] > .tippy-arrow::before { | ||
border-bottom-color: #{"RGBA("}$tooltip-background-color-r, $tooltip-background-color-g, $tooltip-background-color-b, $tooltip-background-opacity#{")"}; | ||
} | ||
|
||
.tippy-box[data-theme~='blazorise'][data-placement^='left'] > .tippy-arrow::before { | ||
border-left-color: #{"RGBA("}$tooltip-background-color-r, $tooltip-background-color-g, $tooltip-background-color-b, $tooltip-background-opacity#{")"}; | ||
} | ||
|
||
.tippy-box[data-theme~='blazorise'][data-placement^='right'] > .tippy-arrow::before { | ||
border-right-color: #{"RGBA("}$tooltip-background-color-r, $tooltip-background-color-g, $tooltip-background-color-b, $tooltip-background-opacity#{")"}; | ||
} | ||
|
||
.tippy-box[data-theme~='blazorise'] > .tippy-svg-arrow { | ||
fill: #{"RGBA("}$tooltip-background-color-r, $tooltip-background-color-g, $tooltip-background-color-b, $tooltip-background-opacity#{")"}; | ||
} | ||
|
||
.b-tooltip-inline { | ||
display: inline-block; | ||
} |
Oops, something went wrong.