mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
rotate arrow based on placement so borders show correctly when applied
This commit is contained in:
@@ -48,7 +48,19 @@
|
||||
height: calc(var(--arrow-size-diagonal) * 2);
|
||||
rotate: 45deg;
|
||||
background: var(--arrow-color);
|
||||
z-index: -1;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
:host([placement~='left']) .arrow {
|
||||
rotate: -45deg;
|
||||
}
|
||||
|
||||
:host([placement~='right']) .arrow {
|
||||
rotate: 135deg;
|
||||
}
|
||||
|
||||
:host([placement~='bottom']) .arrow {
|
||||
rotate: 225deg;
|
||||
}
|
||||
|
||||
/* Hover bridge */
|
||||
|
||||
Reference in New Issue
Block a user