forked from abner/for-legacy-web
fix: correct mention styling
parent
7e20d5029e
commit
c12d40d0da
|
|
@ -7,19 +7,28 @@ import { createComponent, CustomComponentProps } from "./remarkRegexComponent";
|
||||||
|
|
||||||
const Mention = styled.a`
|
const Mention = styled.a`
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
padding: 0 6px;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
padding-left: 2px;
|
||||||
|
padding-right: 6px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
text-decoration: none !important;
|
||||||
background: var(--secondary-background);
|
background: var(--secondary-background);
|
||||||
border-radius: calc(var(--border-radius) * 2);
|
border-radius: calc(var(--border-radius) * 2);
|
||||||
|
|
||||||
|
transition: 0.1s ease filter;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
filter: brightness(0.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
filter: brightness(0.65);
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue