mirror of
https://github.com/primer/css.git
synced 2024-12-03 03:33:40 +03:00
Updating how we draw carets
This commit is contained in:
parent
afb21fccc3
commit
4e6064773a
@ -5,25 +5,24 @@
|
||||
position: absolute;
|
||||
top: 11px;
|
||||
right: 100%;
|
||||
left: -16px;
|
||||
left: -8px;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
width: 8px;
|
||||
height: 16px;
|
||||
pointer-events: none;
|
||||
content: " ";
|
||||
border-color: transparent;
|
||||
border-style: solid solid outset;
|
||||
clip-path: polygon(0 50%, 100% 0, 100% 100%);
|
||||
}
|
||||
|
||||
&::after {
|
||||
height: 14px;
|
||||
margin-top: 1px;
|
||||
margin-left: 2px;
|
||||
border-width: 7px;
|
||||
border-right-color: $background;
|
||||
margin-left: 1px;
|
||||
background-color: var(--color-bg-primary);
|
||||
background-image: linear-gradient($background, $background);
|
||||
}
|
||||
|
||||
&::before {
|
||||
border-width: 8px;
|
||||
border-right-color: $border;
|
||||
background-color: $border;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user