Display a broken link icon and red text color when not joined on a channel

This commit is contained in:
Jérémie Astori 2019-02-25 00:21:40 -05:00
parent c8f229f708
commit f8a39a0ea8
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8
3 changed files with 18 additions and 6 deletions

View file

@ -9,6 +9,11 @@
:class="{ highlight: channel.highlight }"
class="badge">{{ channel.unread | roundBadgeNumber }}</span>
<template v-if="channel.type === 'channel'">
<span
class="parted-channel-tooltip tooltipped tooltipped-w"
aria-label="Not currently joined">
<span class="parted-channel-icon" />
</span>
<span
class="close-tooltip tooltipped tooltipped-w"
aria-label="Leave">

View file

@ -4,7 +4,7 @@
:class="[
channel.type,
{ active: activeChannel && channel === activeChannel.channel },
{ 'channel-is-parted': channel.type === 'channel' && channel.state === 0 }
{ 'parted-channel': channel.type === 'channel' && channel.state === 0 }
]"
:aria-label="getAriaLabel()"
:title="getAriaLabel()"

View file

@ -279,6 +279,7 @@ kbd {
#image-viewer .next-image-btn::before,
#sidebar .not-secure-icon::before,
#sidebar .not-connected-icon::before,
#sidebar .parted-channel-icon::before,
#sidebar .collapse-network-icon::before {
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit; /* Can't have font-size inherit on line above, so need to override */
@ -307,7 +308,8 @@ kbd {
content: "\f071"; /* https://fontawesome.com/icons/exclamation-triangle?style=solid */
}
#sidebar .not-connected-icon::before {
#sidebar .not-connected-icon::before,
#sidebar .parted-channel-icon::before {
content: "\f127"; /* https://fontawesome.com/icons/unlink?style=solid */
}
@ -659,13 +661,15 @@ background on hover (unless active) */
}
#sidebar .not-connected-tooltip,
#sidebar .not-secure-tooltip {
#sidebar .not-secure-tooltip,
#sidebar .parted-channel-tooltip {
display: none;
margin: 0 8px;
}
#sidebar .not-connected .not-connected-tooltip,
#sidebar .not-secure .not-secure-tooltip {
#sidebar .not-secure .not-secure-tooltip,
#sidebar .parted-channel .parted-channel-tooltip {
display: inline-block;
}
@ -683,12 +687,15 @@ background on hover (unless active) */
color: #f8c572;
}
#sidebar .not-connected .chan.lobby {
#sidebar .not-connected .chan.lobby,
#sidebar .parted-channel {
color: #e74c3c;
}
#sidebar .not-connected .chan.lobby .lobby-wrap:hover,
#sidebar .not-connected .chan.lobby.active {
#sidebar .not-connected .chan.lobby.active,
#sidebar .parted-channel:hover,
#sidebar .parted-channel.active {
color: #f1978e;
}