MM-1469 - Loading message in more channel modal

Этот коммит содержится в:
Asaad Mahmood
2015-07-08 23:08:06 +05:00
родитель 235beeb829
Коммит de742baac0
4 изменённых файлов: 12 добавлений и 63 удалений

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

@@ -100,14 +100,15 @@ module.exports = React.createClass({
<p className="primary-message">No more channels to join</p> <p className="primary-message">No more channels to join</p>
<p className="secondary-message">Click 'Create New Channel' to make a new one</p> <p className="secondary-message">Click 'Create New Channel' to make a new one</p>
</div>) </div>)
: <div ref="loadingscreen" className="channel-loading-message"> : <div ref="loadingscreen" className="loading-screen loading-screen--channel">
<div className="loading__content"> <div className="loading__content">
<h3>Loading</h3> <h3>Loading</h3>
<div id="round_1" className="round"></div> <div id="round_1" className="round"></div>
<div id="round_2" className="round"></div> <div id="round_2" className="round"></div>
<div id="round_3" className="round"></div> <div id="round_3" className="round"></div>
</div> </div>
</div>} </div>
}
{ server_error } { server_error }
</div> </div>
<div className="modal-footer"> <div className="modal-footer">

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

@@ -119,7 +119,7 @@
width: 120px; width: 120px;
height: 100px; height: 100px;
float: left; float: left;
margin: 0 1em 1em 0; margin: 5px 10px 5px 0;
&.custom-file { &.custom-file {
width: 85px; width: 85px;
height: 100px; height: 100px;

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

@@ -5,10 +5,15 @@
position: absolute; position: absolute;
@include box-sizing(border-box); @include box-sizing(border-box);
text-align: center; text-align: center;
&.loading-screen--channel {
position: relative;
padding: 4em 0 3.5em;
}
.loading__content { .loading__content {
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
h3 { h3 {
font-size: 16px;
font-weight: 400; font-weight: 400;
margin: 0 0.2em 0; margin: 0 0.2em 0;
display: inline-block; display: inline-block;
@@ -23,64 +28,7 @@
width: 4px; width: 4px;
height: 4px; height: 4px;
display: inline-block; display: inline-block;
margin: 0 1px; margin: 0;
opacity: 0.1;
@include border-radius(10px);
-moz-animation: move 0.75s infinite linear;
-webkit-animation: move 0.75s infinite linear;
}
#round_1 {
-moz-animation-delay: .2s;
-webkit-animation-delay: .2s;
}
#round_2 {
-moz-animation-delay: .4s;
-webkit-animation-delay: .4s;
}
#round_3 {
-moz-animation-delay: .6s;
-webkit-animation-delay: .6s;
}
@-moz-keyframes move {
0% {
opacity: 1;
}
100% {
opacity: 0.1;
};
}
@-webkit-keyframes move {
0% {
opacity: 1;
}
100% {
opacity: 0.1;
};
}
}
}
.channel-loading-screen {
position: absolute;
text-align: center;
padding: 2em 1em;
}
.channel-loading-message {
.loading__content {
.round {
background-color: #444;
width: 4px;
height: 4px;
display: inline-block;
margin: 0 1px;
opacity: 0.1; opacity: 0.1;
@include border-radius(10px); @include border-radius(10px);
-moz-animation: move 0.75s infinite linear; -moz-animation: move 0.75s infinite linear;

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

@@ -306,7 +306,7 @@ body.ios {
} }
.post-image__columns { .post-image__columns {
@include legacy-pie-clearfix; @include legacy-pie-clearfix;
margin-top: 1em; padding-bottom: 5px;
} }
.post-info--hidden { .post-info--hidden {
display: none; display: none;