Merge pull request #135 from asaadmahmoodspin/master

MM-1461 - Updating Mattermost UI
Этот коммит содержится в:
Corey Hulen
2015-07-06 13:58:38 -08:00
родитель 8f48d63959 f51cc73aaf
Коммит b418f4cd62
7 изменённых файлов: 92 добавлений и 43 удалений

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

@@ -123,7 +123,7 @@ module.exports = React.createClass({
$('.post-list__content div .post').removeClass('post--last'); $('.post-list__content div .post').removeClass('post--last');
$('.post-list__content div:last-child .post').addClass('post--last'); $('.post-list__content div:last-child .post').addClass('post--last');
$('body').on('mouseenter mouseleave', '.post', function(ev){ $('body').on('mouseenter mouseleave', '.post:not(.post--comment.same--root)', function(ev){
if(ev.type === 'mouseenter'){ if(ev.type === 'mouseenter'){
$(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--after'); $(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--after');
$(this).parent('div').next('.date-separator, .new-separator').addClass('hovered--before'); $(this).parent('div').next('.date-separator, .new-separator').addClass('hovered--before');

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

@@ -161,7 +161,7 @@ module.exports = React.createClass({
<div className="image-links"> <div className="image-links">
{ config.AllowPublicLink ? { config.AllowPublicLink ?
<div> <div>
<a href="#" className="text" data-title="Public Image" onClick={this.getPublicLink}>Get Public Link</a> <a href="#" className="public-link text" data-title="Public Image" onClick={this.getPublicLink}>Get Public Link</a>
<span className="text"> | </span> <span className="text"> | </span>
</div> </div>
: "" } : "" }

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

@@ -2,6 +2,7 @@
padding: 20px 15px; padding: 20px 15px;
} }
.modal { .modal {
width: 100%;
&.image_modal { &.image_modal {
.modal-backdrop.in { .modal-backdrop.in {
@include opacity(0.7); @include opacity(0.7);
@@ -148,7 +149,7 @@
.image-wrapper { .image-wrapper {
background: #FFF; background: #FFF;
position: relative; position: relative;
max-width: 80%; max-width: 90%;
min-width: 280px; min-width: 280px;
@include border-radius(3px); @include border-radius(3px);
display: table; display: table;
@@ -261,6 +262,9 @@
color:white; color:white;
margin-left:5px; margin-left:5px;
} }
.public-link {
margin-right: 5px;
}
} }
} }
} }

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

@@ -166,7 +166,7 @@ body.ios {
color: #999; color: #999;
@include single-transition(all, 0.15s); @include single-transition(all, 0.15s);
font-size: 16px; font-size: 16px;
padding: 9px; padding: 7px 9px 6px;
&:hover, &:active { &:hover, &:active {
color: #444; color: #444;
box-shadow: none; box-shadow: none;
@@ -192,7 +192,7 @@ body.ios {
.post { .post {
word-wrap: break-word; word-wrap: break-word;
padding: 0.4em 1em; padding: 8px 1em;
position: relative; position: relative;
max-width: 100%; max-width: 100%;
@include legacy-pie-clearfix; @include legacy-pie-clearfix;
@@ -204,19 +204,37 @@ body.ios {
} }
background: #f6f6f6; background: #f6f6f6;
} }
&.current--user {
.post-body {
@include border-radius(4px);
background: #f5f5f5;
}
&:hover {
.post-body {
background: #fff;
}
}
}
&.post--comment { &.post--comment {
&.other--root { &.other--root {
.post-comment { .post-comment {
border-left: 4px solid #EEE; border-left: 4px solid #EEE;
margin-left: 30px; padding: 4px 0 6px 10px;
padding: 2px 0 2px 10px; background: #F5F5F5;
margin: 0 0 0 30px;
@include border-radius(0 4px 4px 0);
}
.post-body {
background: transparent;
margin: 0;
padding: 1px 0px;
}
&:hover {
background: #f5f5f5;
.post-comment {
background: #fff;
}
} }
}
}
&.current--user {
.post-body {
@include border-radius(0 4px 4px 0);
background: #f5f5f5;
} }
} }
&.same--root { &.same--root {
@@ -224,6 +242,7 @@ body.ios {
@include opacity(0); @include opacity(0);
} }
div.post-profile-img__container { div.post-profile-img__container {
height: 1px;
.post-profile-img { .post-profile-img {
visibility: hidden; visibility: hidden;
} }
@@ -260,6 +279,7 @@ body.ios {
white-space: pre-wrap; white-space: pre-wrap;
} }
.comment-icon__container { .comment-icon__container {
margin-left: 7px;
fill: $primary-color; fill: $primary-color;
.comment-icon { .comment-icon {
display: inline-block; display: inline-block;
@@ -346,7 +366,6 @@ body.ios {
} }
.dropdown { .dropdown {
min-width: 18px; min-width: 18px;
margin-right: 7px;
display: inline-block; display: inline-block;
@include opacity(0); @include opacity(0);
} }

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

@@ -11,7 +11,8 @@
.post { .post {
&.post--root { &.post--root {
padding: 1em; padding: 1em 1em 0;
margin: 1em 0;
hr { hr {
border-color: #DDD; border-color: #DDD;
margin: 1em 0 0 0; margin: 1em 0 0 0;
@@ -20,6 +21,7 @@
} }
.post-create__container { .post-create__container {
margin-top: 1em;
.custom-textarea { .custom-textarea {
min-height: 100px; min-height: 100px;
} }

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

@@ -2,13 +2,6 @@
.inner__wrap { .inner__wrap {
&.move--left { &.move--left {
.post { .post {
&.post--comment {
&.other--root {
.post-comment {
margin-left: -7px;
}
}
}
&.same--root { &.same--root {
margin-left: 60px; margin-left: 60px;
padding-left: 10px; padding-left: 10px;
@@ -24,13 +17,24 @@
.post-body { .post-body {
width: 736px; width: 736px;
border: none; border: none;
margin: 0; margin: 3px 0 0;
}
}
&.post--comment {
&.other--root {
.post-comment {
margin-left: 0;
}
}
&.same--root {
margin-top: 10px;
margin-bottom: 10px;
} }
} }
.post-body { .post-body {
float: none; float: none;
width: 750px; width: 750px;
margin: 0; margin: 3px 0 0;
} }
.post__content { .post__content {
width: 920px; width: 920px;
@@ -79,18 +83,10 @@
} }
} }
.post { .post {
&.post--comment {
&.other--root {
.post-comment {
margin-left: -7px;
}
}
}
&.same--root { &.same--root {
margin-left: 60px; margin-left: 60px;
padding-left: 10px; padding-left: 10px;
border-left: 4px solid #EEE; border-left: 4px solid #EEE;
margin-bottom: 10px;
div.post-profile-img__container { div.post-profile-img__container {
.post-profile-img { .post-profile-img {
display: none; display: none;
@@ -102,7 +98,18 @@
.post-body { .post-body {
width: 736px; width: 736px;
border: none; border: none;
margin: 0; margin: 3px 0 0;
}
}
&.post--comment {
&.other--root {
.post-comment {
margin-left: 0;
}
}
&.same--root {
margin-top: 5px;
margin-bottom: 5px;
} }
} }
.post__content { .post__content {
@@ -137,7 +144,7 @@
} }
} }
.post-body { .post-body {
margin: 0; margin: 3px 0 0;
float: none; float: none;
width: 750px; width: 750px;
} }
@@ -166,16 +173,9 @@
@media screen and (max-width: 960px) { @media screen and (max-width: 960px) {
.post { .post {
&:hover {
.post-header .post-header-col.post-header__reply {
.comment-icon__container__hide {
@include opacity(0);
}
}
}
.post-header .post-header-col.post-header__reply { .post-header .post-header-col.post-header__reply {
.comment-icon__container__hide { .comment-icon__container__hide {
@include opacity(0); display: none;
} }
.dropdown { .dropdown {
@include opacity(1); @include opacity(1);
@@ -208,7 +208,7 @@
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#post-list { #post-list {
.date-seperator { .date-seperator, .new-separator {
&.hovered--after { &.hovered--after {
background: none; background: none;
} }
@@ -224,6 +224,26 @@
&:hover { &:hover {
background: none; background: none;
} }
&.current--user {
&:hover {
.post-body {
background: #f5f5f5;
}
}
}
&.post--comment {
&.other--root {
&:hover {
background: none;
.post-body {
background: none;
.post-comment {
background: #f5f5f5;
}
}
}
}
}
} }
.signup-team__container { .signup-team__container {
padding: 30px 0; padding: 30px 0;

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

@@ -23,8 +23,12 @@
} }
} }
} }
.post-body {
margin: 3px 0 0;
}
} }
.post-create__container { .post-create__container {
margin-top: 10px;
.post-create-footer { .post-create-footer {
padding-top: 10px; padding-top: 10px;
} }