getting rid of baseXX, some small fixes. Seems to be usable.

This commit is contained in:
Henry Jameson 2018-03-31 21:14:36 +03:00
parent 936ca1a38c
commit aa0564406a
32 changed files with 761 additions and 636 deletions

View file

@ -27,7 +27,7 @@ const Notifications = {
},
hiderStyle () {
return {
background: `linear-gradient(to bottom, rgba(0, 0, 0, 0), ${this.$store.state.config.colors['base00']} 80%)`
background: `linear-gradient(to bottom, rgba(0, 0, 0, 0), ${this.$store.state.config.colors.bg} 80%)`
}
}
},

View file

@ -4,21 +4,33 @@
// a bit of a hack to allow scrolling below notifications
padding-bottom: 15em;
.panel {
background: var(--bg)
}
.panel-body {
border-color: var(--border)
}
.panel-heading {
// force the text to stay centered, while keeping
// the button in the right side of the panel heading
position: relative;
background: var(--btn);
color: var(--faint);
.read-button {
position: absolute;
right: 0.7em;
height: 1.8em;
line-height: 100%;
background-color: var(--btn);
color: var(--faint);
}
}
.unseen-count {
display: inline-block;
background-color: rgba(255, 16, 8, 0.8);
background-color: var(--cRed);
text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
min-width: 1.3em;
border-radius: 1.3em;
@ -27,6 +39,7 @@
font-size: 0.9em;
text-align: center;
line-height: 1.3em;
padding: 1px;
}
.notification {
@ -48,19 +61,23 @@
overflow: hidden;
.icon-retweet.lit {
color: $green;
color: $green_;
color: var(--cGreen);
}
.icon-user-plus.lit {
color: $blue;
color: $blue_;
color: var(--cBlue);
}
.icon-reply.lit {
color: $blue;
color: $blue_;
color: var(--cBlue);
}
.icon-star.lit {
color: orange;
color: var(--cOrange);
}
.status-content {
@ -134,7 +151,7 @@
}
.unseen {
border-left: 4px solid rgba(255, 16, 8, 0.75);
border-left: 4px solid var(--cRed);
padding-left: 6px;
}
}

View file

@ -1,12 +1,12 @@
<template>
<div class="notifications">
<div class="panel panel-default base00-background">
<div class="panel-heading base02-background base04">
<div class="panel panel-default">
<div class="panel-heading">
<span class="unseen-count" v-if="unseenCount">{{unseenCount}}</span>
{{$t('notifications.notifications')}}
<button v-if="unseenCount" @click.prevent="markAsSeen" class="base04 base02-background read-button">{{$t('notifications.read')}}</button>
<button v-if="unseenCount" @click.prevent="markAsSeen" class="read-button">{{$t('notifications.read')}}</button>
</div>
<div class="panel-body base03-border">
<div class="panel-body">
<div v-for="notification in visibleNotifications" :key="notification" class="notification" :class='{"unseen": !notification.seen}'>
<div>
<a :href="notification.action.user.statusnet_profile_url" target="_blank">