50 lines
813 B
SCSS
50 lines
813 B
SCSS
|
.MentionLink {
|
||
|
position: relative;
|
||
|
white-space: normal;
|
||
|
display: inline-block;
|
||
|
|
||
|
& .new,
|
||
|
& .original,
|
||
|
& .full {
|
||
|
padding: 0 2px;
|
||
|
margin: 0 -2px;
|
||
|
display: inline-block;
|
||
|
border-radius: 2px;
|
||
|
}
|
||
|
|
||
|
.original {
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
|
||
|
.full {
|
||
|
pointer-events: none;
|
||
|
position: absolute;
|
||
|
opacity: 0;
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
word-wrap: normal;
|
||
|
white-space: nowrap;
|
||
|
transition: opacity 0.2s ease;
|
||
|
background-color: var(--mention-bg, var(--popover));
|
||
|
color: var(--mention-text, var(--link));
|
||
|
z-index: 1;
|
||
|
}
|
||
|
|
||
|
.new {
|
||
|
background-color: var(--mention-bg);
|
||
|
color: var(--mention-text, var(--link));
|
||
|
|
||
|
&.-you {
|
||
|
& .shortName,
|
||
|
& .full {
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&:hover .new .full {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|