Updating Ui for posts
Этот коммит содержится в:
@@ -123,7 +123,7 @@ module.exports = React.createClass({
|
||||
$('.post-list__content div .post').removeClass('post--last');
|
||||
$('.post-list__content div:last-child .post').addClass('post--last');
|
||||
|
||||
$('body').on('mouseenter mouseleave', '.post:not(.post--comment.same--root)', function(ev){
|
||||
$('body').on('mouseenter mouseleave', '.post', function(ev){
|
||||
if(ev.type === 'mouseenter'){
|
||||
$(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--after');
|
||||
$(this).parent('div').next('.date-separator, .new-separator').addClass('hovered--before');
|
||||
@@ -134,6 +134,17 @@ module.exports = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('mouseenter mouseleave', '.post.post--comment.same--root', function(ev){
|
||||
if(ev.type === 'mouseenter'){
|
||||
$(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--comment');
|
||||
$(this).parent('div').next('.date-separator, .new-separator').addClass('hovered--comment');
|
||||
}
|
||||
else {
|
||||
$(this).parent('div').prev('.date-separator, .new-separator').removeClass('hovered--comment');
|
||||
$(this).parent('div').next('.date-separator, .new-separator').removeClass('hovered--comment');
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
componentDidUpdate: function() {
|
||||
this.resize();
|
||||
|
||||
@@ -41,7 +41,6 @@ body.ios {
|
||||
min-height:37px;
|
||||
}
|
||||
|
||||
#post-list {
|
||||
.date-separator, .new-separator {
|
||||
text-align: center;
|
||||
height: 2em;
|
||||
@@ -102,6 +101,8 @@ body.ios {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
#post-list {
|
||||
.post-list-holder-by-time {
|
||||
background: #fff;
|
||||
overflow-y: scroll;
|
||||
@@ -135,6 +136,7 @@ body.ios {
|
||||
color: grey;
|
||||
}
|
||||
}
|
||||
|
||||
.post-create__container {
|
||||
form {
|
||||
width: 100%;
|
||||
@@ -347,7 +349,7 @@ body.ios {
|
||||
}
|
||||
&.post-info {
|
||||
.post-profile-time {
|
||||
width: 100px;
|
||||
width: 150px;
|
||||
display: inline-block;
|
||||
margin-left: 50px;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
@media screen and (max-width: 1800px) {
|
||||
.inner__wrap {
|
||||
&.move--left {
|
||||
.date-separator, .new-separator {
|
||||
&.hovered--comment {
|
||||
&:before, &:after {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.post {
|
||||
&.same--root {
|
||||
margin-left: 60px;
|
||||
@@ -82,6 +89,13 @@
|
||||
max-width: 810px;
|
||||
}
|
||||
}
|
||||
.date-separator, .new-separator {
|
||||
&.hovered--comment {
|
||||
&:before, &:after {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.post {
|
||||
&.same--root {
|
||||
margin-left: 60px;
|
||||
@@ -207,8 +221,7 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
#post-list {
|
||||
.date-seperator, .new-separator {
|
||||
.date-separator, .new-separator {
|
||||
&.hovered--after {
|
||||
&:before {
|
||||
background: none;
|
||||
@@ -220,7 +233,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.post {
|
||||
&.same--root {
|
||||
margin-left: 25px;
|
||||
|
||||
Ссылка в новой задаче
Block a user