Make style setter create an often used base03-border class, use that class in notifications, navpanel and statuses.

This commit is contained in:
shpuld 2017-03-09 01:09:23 +02:00
parent 5997492795
commit 6c8fc99d5a
6 changed files with 18 additions and 6 deletions

View file

@ -32,7 +32,12 @@ const Status = {
return !!this.$store.state.users.currentUser
},
muted () { return !this.unmuted && this.status.user.muted },
isReply () { return !!this.status.in_reply_to_status_id }
isReply () { return !!this.status.in_reply_to_status_id },
borderColor () {
return {
borderBottomColor: this.$store.state.config.colors['base02'],
}
}
},
components: {
Attachment,

View file

@ -1,5 +1,5 @@
<template>
<div class="status-el base00-background" v-if="!status.deleted" v-bind:class="[{ 'expanded-status': !expandable }, { 'base01-background': focused }]">
<div class="status-el base00-background base03-border" v-if="!status.deleted" v-bind:class="[{ 'expanded-status': !expandable }, { 'base01-background': focused }]" >
<template v-if="muted">
<div class="media status container muted">
<small><router-link :to="{ name: 'user-profile', params: { id: status.user.id } }">{{status.user.screen_name}}</router-link></small>
@ -98,6 +98,7 @@
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
border-left-width: 0px;
.user-content {
min-height: 52px;
@ -129,7 +130,7 @@
}
.expanded-status {
border-left: 4px solid rgba(255, 48, 16, 0.65);
border-left-style: solid;
}
.status-actions {
@ -151,6 +152,9 @@
.status {
padding: 0.65em 0.7em 0.8em 0.8em;
border-bottom: 1px solid;
border-bottom-color: inherit;
border-left: 4px rgba(255, 48, 16, 0.65);
border-left-style: inherit;
}
.muted button {
margin-left: auto;