diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-08 00:03:59 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-08 00:03:59 +0300 |
| commit | e6d5ddcbb69ff93e711227672caaf208cf872c21 (patch) | |
| tree | 7fd71bfa9bb1e51f8b880d9ce988ccd5b2298f06 /src/components/mention_link | |
| parent | c3e122ff6f011cb6750fb11030e601e37afcd586 (diff) | |
better modifier, no background for unhighlighted mentions
Diffstat (limited to 'src/components/mention_link')
| -rw-r--r-- | src/components/mention_link/mention_link.scss | 13 | ||||
| -rw-r--r-- | src/components/mention_link/mention_link.vue | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/components/mention_link/mention_link.scss b/src/components/mention_link/mention_link.scss index 37717424..4e061be9 100644 --- a/src/components/mention_link/mention_link.scss +++ b/src/components/mention_link/mention_link.scss @@ -37,13 +37,15 @@ } } - & .new { + .new:not(.-highlighted) { + .short { + background: none; + } + } + .new { &, - &.-striped, - &.-solid, - &.-side { + &.-highlighted { .short { - font-size: 90%; line-height: 1.5; vertical-align: middle; @@ -58,6 +60,7 @@ .you { padding-right: 0.25em; } + .short { padding-left: 0.25em; padding-right: 0; diff --git a/src/components/mention_link/mention_link.vue b/src/components/mention_link/mention_link.vue index 5a8506eb..a38faa7b 100644 --- a/src/components/mention_link/mention_link.vue +++ b/src/components/mention_link/mention_link.vue @@ -12,7 +12,7 @@ v-if="user" class="new" :style="style" - :class="[{ '-you': isYou }, highlightType]" + :class="[{ '-you': isYou, '-highlighted': highlight }, highlightType]" > <button class="short" |
