pleroma-fe/src/components/mention_link/mention_link.scss

117 lines
2.1 KiB
SCSS
Raw Normal View History

@import '../../_variables.scss';
2021-06-07 15:16:10 +02:00
.MentionLink {
position: relative;
white-space: normal;
2022-02-04 13:20:56 +01:00
display: inline;
2021-06-07 22:42:04 +02:00
color: var(--link);
2022-02-09 22:34:06 +01:00
word-break: normal;
2021-06-07 15:16:10 +02:00
& .new,
2021-06-07 22:42:04 +02:00
& .original {
2022-02-04 13:20:56 +01:00
display: inline;
2021-06-07 15:16:10 +02:00
border-radius: 2px;
}
.mention-avatar {
border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
width: 1.5em;
height: 1.5em;
vertical-align: middle;
2022-01-10 08:10:42 +01:00
user-select: none;
margin-right: 0.2em;
}
2021-06-07 15:16:10 +02:00
.full {
position: absolute;
2021-06-07 22:42:04 +02:00
display: inline-block;
pointer-events: none;
2021-06-07 15:16:10 +02:00
opacity: 0;
2021-06-07 22:42:04 +02:00
top: 100%;
2021-06-07 15:16:10 +02:00
left: 0;
2021-06-07 22:42:04 +02:00
height: 100%;
2021-06-07 15:16:10 +02:00
word-wrap: normal;
white-space: nowrap;
transition: opacity 0.2s ease;
z-index: 1;
2021-06-07 22:42:04 +02:00
margin-top: 0.25em;
padding: 0.5em;
user-select: all;
}
2022-02-04 13:20:56 +01:00
& .short.-with-tooltip,
& .you {
user-select: none;
2021-06-07 15:16:10 +02:00
}
2021-06-07 22:42:04 +02:00
& .short,
& .full {
white-space: nowrap;
2021-06-07 22:42:04 +02:00
}
2022-02-04 13:20:56 +01:00
.shortName {
white-space: normal;
}
.new {
2021-06-08 11:58:28 +02:00
&.-you {
.shortName {
2021-06-08 11:58:28 +02:00
font-weight: 600;
}
2021-06-08 10:38:44 +02:00
}
&.-has-selection {
color: var(--alertNeutralText, $fallback--text);
background-color: var(--alertNeutral, $fallback--fg);
}
2021-06-08 10:38:44 +02:00
2021-06-10 17:52:23 +02:00
.at {
color: var(--link);
opacity: 0.8;
display: inline-block;
line-height: 1;
padding: 0 0.1em;
vertical-align: -25%;
margin: 0;
}
2021-06-07 22:42:04 +02:00
&.-striped {
& .shortName {
2021-06-07 22:42:04 +02:00
background-image:
repeating-linear-gradient(
135deg,
var(--____highlight-tintColor),
var(--____highlight-tintColor) 5px,
var(--____highlight-tintColor2) 5px,
var(--____highlight-tintColor2) 10px
);
}
}
2021-06-07 15:16:10 +02:00
2021-06-07 22:42:04 +02:00
&.-solid {
.shortName {
2021-06-07 22:42:04 +02:00
background-image: linear-gradient(var(--____highlight-tintColor2), var(--____highlight-tintColor2));
}
}
&.-side {
.shortName {
2021-06-07 22:42:04 +02:00
box-shadow: 0 -5px 3px -4px inset var(--____highlight-solidColor);
}
}
}
.full {
pointer-events: none;
2021-06-07 15:16:10 +02:00
}
.serverName.-faded {
color: var(--faintLink, $fallback--link);
}
2021-06-07 15:16:10 +02:00
}
.mention-link-popover {
max-width: 70ch;
max-height: 20rem;
overflow: hidden;
}