PLT-946 Add status icon to the left of the username in DM channel (#3258)

Add a StatusIcon component to be able to display a status icon from anywhere
Этот коммит содержится в:
Kevyn Bruyere
2016-06-15 14:30:32 +02:00
коммит произвёл Christopher Speller
родитель dbcf8572e5
Коммит d6fdd93679
9 изменённых файлов: 126 добавлений и 56 удалений

33
webapp/sass/components/_status-icon.scss Обычный файл
Просмотреть файл

@@ -0,0 +1,33 @@
@charset 'UTF-8';
.status {
display: inline-block;
margin-right: 6px;
position: relative;
top: 1px;
width: 12px;
svg {
max-height: 14px;
}
i,
path,
ellipse {
@include opacity(.5);
&.online--icon,
&.away--icon {
@include opacity(1);
}
}
.fa-lock {
margin-left: 1px;
}
.fa-globe {
position: relative;
top: -1px;
}
}

Просмотреть файл

@@ -144,6 +144,8 @@
white-space: normal;
}
}
@import "../components/status-icon";
}
.channel-intro {

Просмотреть файл

@@ -60,38 +60,6 @@
top: 5px;
}
.status {
display: inline-block;
margin-right: 6px;
position: relative;
top: 1px;
width: 12px;
svg {
max-height: 14px;
}
i,
path,
ellipse {
@include opacity(.5);
&.online--icon,
&.away--icon {
@include opacity(1);
}
}
.fa-lock {
margin-left: 1px;
}
.fa-globe {
position: relative;
top: -1px;
}
}
.nav-pills__container {
-webkit-overflow-scrolling: touch;
height: calc(100% - 80px);
@@ -234,6 +202,8 @@
color: #666666;
}
}
@import "../components/status-icon";
}
.channel-loading-gif {

Просмотреть файл

@@ -590,6 +590,8 @@
.navbar-brand {
white-space: nowrap;
@import "../components/status-icon";
}
}
}