aboutsummaryrefslogtreecommitdiff
path: root/src/components/mention_link/mention_link.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mention_link/mention_link.scss')
-rw-r--r--src/components/mention_link/mention_link.scss55
1 files changed, 40 insertions, 15 deletions
diff --git a/src/components/mention_link/mention_link.scss b/src/components/mention_link/mention_link.scss
index ec2689f8..8b2af926 100644
--- a/src/components/mention_link/mention_link.scss
+++ b/src/components/mention_link/mention_link.scss
@@ -1,15 +1,27 @@
+@import '../../_variables.scss';
+
.MentionLink {
position: relative;
white-space: normal;
- display: inline-block;
+ display: inline;
color: var(--link);
+ word-break: normal;
& .new,
& .original {
- display: inline-block;
+ display: inline;
border-radius: 2px;
}
+ .mention-avatar {
+ border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
+ width: 1.5em;
+ height: 1.5em;
+ vertical-align: middle;
+ user-select: none;
+ margin-right: 0.2em;
+ }
+
.full {
position: absolute;
display: inline-block;
@@ -27,7 +39,8 @@
user-select: all;
}
- .short {
+ & .short.-with-tooltip,
+ & .you {
user-select: none;
}
@@ -36,19 +49,25 @@
white-space: nowrap;
}
+ .shortName {
+ white-space: normal;
+ }
+
.new {
&.-you {
- & .shortName,
- & .full {
+ .shortName {
font-weight: 600;
}
}
+ &.-has-selection {
+ color: var(--alertNeutralText, $fallback--text);
+ background-color: var(--alertNeutral, $fallback--fg);
+ }
.at {
color: var(--link);
opacity: 0.8;
display: inline-block;
- height: 50%;
line-height: 1;
padding: 0 0.1em;
vertical-align: -25%;
@@ -56,8 +75,7 @@
}
&.-striped {
- & .userName,
- & .full {
+ & .shortName {
background-image:
repeating-linear-gradient(
135deg,
@@ -70,22 +88,29 @@
}
&.-solid {
- & .userName,
- & .full {
+ .shortName {
background-image: linear-gradient(var(--____highlight-tintColor2), var(--____highlight-tintColor2));
}
}
&.-side {
- & .userName,
- & .userNameFull {
+ .shortName {
box-shadow: 0 -5px 3px -4px inset var(--____highlight-solidColor);
}
}
}
- &:hover .new .full {
- opacity: 1;
- pointer-events: initial;
+ .full {
+ pointer-events: none;
}
+
+ .serverName.-faded {
+ color: var(--faintLink, $fallback--link);
+ }
+}
+
+.mention-link-popover {
+ max-width: 70ch;
+ max-height: 20rem;
+ overflow: hidden;
}