-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
74da29e
commit 9583b9f
Showing
3 changed files
with
19 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
@use "../../../themes/overlay"; | ||
|
||
:host(.top) { | ||
div.triangle { | ||
bottom: unset; | ||
top: 0px; | ||
top: 0; | ||
transform: rotate(180deg) translate(50%, 100%); | ||
} | ||
} | ||
|
||
div.triangle { | ||
z-index: 1; | ||
|
||
/** | ||
* @prop --stylo-triangle-width: The width of the triangle | ||
* @default 22px | ||
*/ | ||
--triangle-width: var(--stylo-triangle-width, 22px); | ||
|
||
position: absolute; | ||
width: 0; | ||
height: 0; | ||
bottom: 0px; | ||
left: max(var(--stylo-toolbar-triangle-start), calc(var(--stylo-triangle-width, 40px) / 2)); | ||
bottom: 0; | ||
left: var(--stylo-toolbar-triangle-start); | ||
transform: translate(-50%, 100%); | ||
|
||
background: transparent; | ||
/** | ||
* @prop --stylo-triangle-width: The width of the triangle | ||
* @default 2 | ||
*/ | ||
/** | ||
* @prop --stylo-triangle-background: The background-color of the triangle | ||
* @default --white | ||
*/ | ||
border-left: calc(var(--stylo-triangle-width, 24px) / 2) solid transparent; | ||
border-right: calc(var(--stylo-triangle-width, 24px) / 2) solid transparent; | ||
border-top: calc(var(--stylo-triangle-width, 24px) / 2) solid | ||
var(--stylo-triangle-background, --white); | ||
transform: translate(-50%, 100%); | ||
|
||
border-left: calc(var(--triangle-width) / 2) solid transparent; | ||
border-right: calc(var(--triangle-width) / 2) solid transparent; | ||
border-top: calc(var(--triangle-width) / 2) solid var(--stylo-background, var(--white)); | ||
|
||
/** | ||
* @prop --stylo-triangle-drop-shadow: drop-shaddow of the triangle | ||
* @default 2 | ||
* @prop --stylo-triangle-drop-shadow: drop-shadow of the triangle | ||
*/ | ||
filter: drop-shadow(var(--stylo-triangle-drop-shadow)); | ||
} |
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