diff options
Diffstat (limited to 'src/components/status')
| -rw-r--r-- | src/components/status/post.style.js | 35 | ||||
| -rw-r--r-- | src/components/status/status.scss | 10 | ||||
| -rw-r--r-- | src/components/status/status.vue | 4 |
3 files changed, 39 insertions, 10 deletions
diff --git a/src/components/status/post.style.js b/src/components/status/post.style.js new file mode 100644 index 00000000..673f72e0 --- /dev/null +++ b/src/components/status/post.style.js @@ -0,0 +1,35 @@ +export default { + name: 'Post', + selector: '.Status', + states: { + selected: '.-focused' + }, + validInnerComponents: [ + 'Text', + 'Link', + 'Icon', + 'Border', + 'Button', + 'ButtonUnstyled', + 'RichContent', + 'Input', + 'Avatar', + 'Attachment', + 'PollGraph' + ], + defaultRules: [ + { + directives: { + background: '--bg', + opacity: 0 + } + }, + { + state: ['selected'], + directives: { + background: '--inheritedBackground, 10', + opacity: 1 + } + } + ] +} diff --git a/src/components/status/status.scss b/src/components/status/status.scss index 760c6ac1..600c98f7 100644 --- a/src/components/status/status.scss +++ b/src/components/status/status.scss @@ -135,11 +135,6 @@ .button-unstyled { padding: 5px; margin: -5px; - - &:hover svg { - color: $fallback--lightText; - color: var(--lightText, $fallback--lightText); - } } .svg-inline--fa { @@ -252,7 +247,7 @@ } .repeater-avatar { - border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius); + border-radius: var(--roundness); margin-left: 28px; width: 20px; height: 20px; @@ -368,7 +363,6 @@ .avatar-row { flex: 1; - overflow: hidden; position: relative; display: flex; align-items: center; @@ -426,7 +420,7 @@ .quoted-status { margin-top: 0.5em; border: 1px solid var(--border, $fallback--border); - border-radius: var(--attachmentRadius, $fallback--attachmentRadius); + border-radius: var(--roundness); &.-unavailable-prompt { padding: 0.5em; diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 1c91c36c..4d9e1c3c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -180,7 +180,7 @@ <span class="heading-right"> <router-link - class="timeago faint-link" + class="timeago faint" :to="{ name: 'conversation', params: { id: status.id } }" > <Timeago @@ -450,7 +450,7 @@ > <button v-if="showOtherRepliesAsButton && replies.length > 1" - class="button-unstyled -link faint" + class="button-unstyled -link" :title="$tc('status.ancestor_follow', replies.length - 1, { numReplies: replies.length - 1 })" @click.prevent="dive" > |
