mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 05:27:15 -04:00
30 lines
574 B
SCSS
30 lines
574 B
SCSS
|
// Generate a two-color caret for any element.
|
||
|
@mixin double-caret($foreground: #fff, $background: #ddd) {
|
||
|
&::after,
|
||
|
&::before {
|
||
|
position: absolute;
|
||
|
top: 11px;
|
||
|
right: 100%;
|
||
|
left: -16px;
|
||
|
display: block;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
pointer-events: none;
|
||
|
content: " ";
|
||
|
border-color: transparent;
|
||
|
border-style: solid solid outset;
|
||
|
}
|
||
|
|
||
|
&::after {
|
||
|
margin-top: 1px;
|
||
|
margin-left: 2px;
|
||
|
border-width: 7px;
|
||
|
border-right-color: $foreground;
|
||
|
}
|
||
|
|
||
|
&::before {
|
||
|
border-width: 8px;
|
||
|
border-right-color: $background;
|
||
|
}
|
||
|
}
|