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

92 lines
1.6 KiB
SCSS
Raw Normal View History

2021-06-07 13:16:10 +00:00
.MentionLink {
position: relative;
white-space: normal;
display: inline-block;
2021-06-07 20:42:04 +00:00
color: var(--link);
2021-06-07 13:16:10 +00:00
& .new,
2021-06-07 20:42:04 +00:00
& .original {
2021-06-07 13:16:10 +00:00
display: inline-block;
border-radius: 2px;
}
.full {
position: absolute;
2021-06-07 20:42:04 +00:00
display: inline-block;
pointer-events: none;
2021-06-07 13:16:10 +00:00
opacity: 0;
2021-06-07 20:42:04 +00:00
top: 100%;
2021-06-07 13:16:10 +00:00
left: 0;
2021-06-07 20:42:04 +00:00
height: 100%;
2021-06-07 13:16:10 +00:00
word-wrap: normal;
white-space: nowrap;
transition: opacity 0.2s ease;
z-index: 1;
2021-06-07 20:42:04 +00:00
margin-top: 0.25em;
padding: 0.5em;
user-select: all;
}
.short.-with-tooltip {
user-select: none;
2021-06-07 13:16:10 +00:00
}
2021-06-07 20:42:04 +00:00
& .short,
& .full {
white-space: nowrap;
2021-06-07 20:42:04 +00:00
}
.new {
2021-06-08 09:58:28 +00:00
&.-you {
& .shortName,
& .full {
font-weight: 600;
}
2021-06-08 08:38:44 +00:00
}
2021-06-10 15:52:23 +00:00
.at {
color: var(--link);
opacity: 0.8;
display: inline-block;
height: 50%;
line-height: 1;
padding: 0 0.1em;
vertical-align: -25%;
margin: 0;
}
2021-06-07 20:42:04 +00:00
&.-striped {
& .shortName,
2021-06-07 20:42:04 +00:00
& .full {
background-image:
repeating-linear-gradient(
135deg,
var(--____highlight-tintColor),
var(--____highlight-tintColor) 5px,
var(--____highlight-tintColor2) 5px,
var(--____highlight-tintColor2) 10px
);
}
}
2021-06-07 13:16:10 +00:00
2021-06-07 20:42:04 +00:00
&.-solid {
& .shortName,
2021-06-07 20:42:04 +00:00
& .full {
background-image: linear-gradient(var(--____highlight-tintColor2), var(--____highlight-tintColor2));
}
}
&.-side {
& .shortName,
2021-06-07 20:42:04 +00:00
& .userNameFull {
box-shadow: 0 -5px 3px -4px inset var(--____highlight-solidColor);
}
}
}
2021-06-07 13:16:10 +00:00
&:hover .new .full {
opacity: 1;
2021-06-07 20:42:04 +00:00
pointer-events: initial;
2021-06-07 13:16:10 +00:00
}
}