mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 17:11:43 +00:00
added desktop class and removed notify animation.
This commit is contained in:
parent
ddf60b66d5
commit
fa3aed1e3d
7 changed files with 18 additions and 137 deletions
|
|
@ -6,12 +6,12 @@
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<div
|
<div
|
||||||
class="tab"
|
class="tab"
|
||||||
:class="{notifyAnimation: friendRequestExists, selected: currentTab === 0}"
|
:class="{notify: friendRequestExists, selected: currentTab === 0}"
|
||||||
@click="currentTab = 0"
|
@click="currentTab = 0"
|
||||||
><div class="material-icons">group</div>Friends</div>
|
><div class="material-icons">group</div>Friends</div>
|
||||||
<div
|
<div
|
||||||
class="tab"
|
class="tab"
|
||||||
:class="{notifyAnimation: DMNotification, selected: currentTab === 1 }"
|
:class="{notify: DMNotification, selected: currentTab === 1 }"
|
||||||
@click="currentTab = 1"
|
@click="currentTab = 1"
|
||||||
><div class="material-icons">access_time</div>Recents</div>
|
><div class="material-icons">access_time</div>Recents</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -198,27 +198,11 @@ export default {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notifyAnimation {
|
.notify {
|
||||||
animation: notifyAnime;
|
background: rgba(255, 0, 0, 0.568);
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
}
|
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
background: rgba(121, 3, 3, 0.541);
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
background: rgba(255, 0, 0, 0.568);
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
background: rgba(255, 0, 0, 0.568);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background: rgba(121, 3, 3, 0.541);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.content{
|
.content{
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|
|
||||||
|
|
@ -344,28 +344,11 @@ export default {
|
||||||
right: 5px;
|
right: 5px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
animation: notifyAnime;
|
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: rgba(255, 23, 23, 0.753);
|
background: rgba(255, 23, 23, 0.753);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tool-tip {
|
.tool-tip {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
|
||||||
|
|
@ -366,28 +366,11 @@ export default {
|
||||||
right: 5px;
|
right: 5px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
animation: notifyAnime;
|
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: rgba(255, 23, 23, 0.753);
|
background: rgba(255, 23, 23, 0.753);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tool-tip {
|
.tool-tip {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="channel"
|
class="channel"
|
||||||
:class="{notifyAnimation: hasNotifications, selected: selectedChannelID === channelData.channelID}"
|
:class="{notify: hasNotifications, selected: selectedChannelID === channelData.channelID}"
|
||||||
>
|
>
|
||||||
<i class="material-icons">storage</i>
|
<i class="material-icons">storage</i>
|
||||||
<div class="channel-name">{{ channelData.name }}</div>
|
<div class="channel-name">{{ channelData.name }}</div>
|
||||||
|
|
@ -36,25 +36,8 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.notifyAnimation {
|
.notify {
|
||||||
animation: notifyAnime;
|
background: rgba(255, 0, 0, 0.411);
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
}
|
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
background: rgba(255, 0, 0, 0.198);
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
background: rgba(255, 0, 0, 0.411);
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
background: rgba(255, 0, 0, 0.411);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background: rgba(255, 0, 0, 0.198);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.channel {
|
.channel {
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ export default {
|
||||||
background: #ffffffc5;
|
background: #ffffffc5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.notifyAnimation:before {
|
.notifyAnimation:after {
|
||||||
content: "!";
|
content: "!";
|
||||||
color: white;
|
color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -131,25 +131,8 @@ export default {
|
||||||
right: 5px;
|
right: 5px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
animation: notifyAnime;
|
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: rgba(255, 23, 23, 0.753);
|
background: rgba(255, 23, 23, 0.753);
|
||||||
}
|
}
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="friend"
|
class="friend"
|
||||||
:class="{selected: uniqueIDSelected, notifyAnimation: (notifications && notifications > 0), tree }"
|
:class="{selected: uniqueIDSelected, notify: (notifications && notifications > 0), tree }"
|
||||||
@click="openChat"
|
@click="openChat"
|
||||||
@mouseover="hover = true"
|
@mouseover="hover = true"
|
||||||
@mouseleave="hover = false"
|
@mouseleave="hover = false"
|
||||||
|
|
@ -136,27 +136,11 @@ export default {
|
||||||
.tree {
|
.tree {
|
||||||
padding-left: 22px;
|
padding-left: 22px;
|
||||||
}
|
}
|
||||||
.notifyAnimation {
|
.notify {
|
||||||
animation: notifyAnime;
|
background: rgba(255, 0, 0, 0.411);
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
}
|
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
background: rgba(255, 0, 0, 0.198);
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
background: rgba(255, 0, 0, 0.411);
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
background: rgba(255, 0, 0, 0.411);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background: rgba(255, 0, 0, 0.198);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.friend:hover {
|
.friend:hover {
|
||||||
background: #053c4c;
|
background: #053c4c;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app" ref="app">
|
<div id="app" ref="app" :class="{desktop: isElectron}">
|
||||||
<vue-headful :title="title" description="Nertivia Chat Client" />
|
<vue-headful :title="title" description="Nertivia Chat Client" />
|
||||||
<div class="background-image"></div>
|
<div class="background-image"></div>
|
||||||
<transition name="fade-between-two" appear>
|
<transition name="fade-between-two" appear>
|
||||||
|
|
@ -238,32 +238,13 @@ export default {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notifyAnimation {
|
|
||||||
animation: notifyAnime;
|
|
||||||
animation-duration: 1s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
}
|
|
||||||
.box {
|
.box {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@keyframes notifyAnime {
|
|
||||||
0% {
|
|
||||||
background: rgba(121, 3, 3, 0.541);
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
background: rgba(255, 0, 0, 0.568);
|
|
||||||
}
|
|
||||||
60% {
|
|
||||||
background: rgba(255, 0, 0, 0.568);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background: rgba(121, 3, 3, 0.541);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.coming-soon {
|
.coming-soon {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue