-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2629 from AlchemyCMS/shoelace-tooltip
Use Shoelace tooltip for all tooltips and hint bubbles
- Loading branch information
Showing
63 changed files
with
617 additions
and
812 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ yarn-debug.log* | |
.yarn-integrity | ||
yarn.lock | ||
/spec/dummy/public/pictures | ||
.byebug_history |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,5 @@ | ||
.hint-with-icon { | ||
@extend .with-hint; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
.toolbar_buttons & { | ||
margin: 0 2 * $default-margin; | ||
align-self: center; | ||
} | ||
|
||
> .icon { | ||
text-indent: 0; | ||
} | ||
} | ||
|
||
.with-hint { | ||
position: relative; | ||
|
||
&:hover { | ||
cursor: help; | ||
|
||
> .hint-bubble { | ||
@include hint-hover-style; | ||
} | ||
} | ||
|
||
> .hint-bubble { | ||
visibility: hidden; | ||
background-color: $hint-background-color; | ||
color: $hint-text-color; | ||
border-radius: $default-border-radius; | ||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); | ||
position: absolute; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
top: 20px; | ||
z-index: 100; | ||
padding: 8px; | ||
line-height: 1.5em; | ||
min-width: 180px; | ||
max-width: 300px; | ||
white-space: normal; | ||
text-align: left; | ||
font-size: $default-font-size; | ||
opacity: 0; | ||
transition: 0.3s; | ||
pointer-events: none; | ||
|
||
&:before { | ||
content: ""; | ||
position: absolute; | ||
top: -8px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 0px; | ||
height: 0px; | ||
border-style: solid; | ||
border-width: 0 8px 8px 8px; | ||
border-color: transparent transparent $light_yellow transparent; | ||
} | ||
} | ||
.like-hint-tooltip { | ||
cursor: help; | ||
--sl-tooltip-background-color: #{$hint-background-color}; | ||
--sl-tooltip-color: #{$hint-text-color}; | ||
} |
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 |
---|---|---|
|
@@ -69,7 +69,6 @@ | |
$margin: 0, | ||
$color: $white | ||
); | ||
display: block; | ||
width: 100%; | ||
text-decoration: none !important; | ||
|
||
|
Oops, something went wrong.