Small changes to css to clean up code
Этот коммит содержится в:
@@ -152,32 +152,26 @@ module.exports = React.createClass({
|
|||||||
if (this.props.postType === 'post') {
|
if (this.props.postType === 'post') {
|
||||||
$('.row.main').dragster({
|
$('.row.main').dragster({
|
||||||
enter: function() {
|
enter: function() {
|
||||||
$('.center-file-overlay').removeClass('invisible');
|
$('.center-file-overlay').removeClass('hidden');
|
||||||
$('.center-file-overlay').addClass('visible');
|
|
||||||
},
|
},
|
||||||
leave: function() {
|
leave: function() {
|
||||||
$('.center-file-overlay').removeClass('visible');
|
$('.center-file-overlay').addClass('hidden');
|
||||||
$('.center-file-overlay').addClass('invisible');
|
|
||||||
},
|
},
|
||||||
drop: function(dragsterEvent, e) {
|
drop: function(dragsterEvent, e) {
|
||||||
$('.center-file-overlay').removeClass('visible');
|
$('.center-file-overlay').addClass('hidden');
|
||||||
$('.center-file-overlay').addClass('invisible');
|
|
||||||
self.handleDrop(e);
|
self.handleDrop(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.props.postType === 'comment') {
|
} else if (this.props.postType === 'comment') {
|
||||||
$('.post-right__container').dragster({
|
$('.post-right__container').dragster({
|
||||||
enter: function() {
|
enter: function() {
|
||||||
$('.right-file-overlay').removeClass('invisible');
|
$('.right-file-overlay').removeClass('hidden');
|
||||||
$('.right-file-overlay').addClass('visible');
|
|
||||||
},
|
},
|
||||||
leave: function() {
|
leave: function() {
|
||||||
$('.right-file-overlay').removeClass('visible');
|
$('.right-file-overlay').addClass('hidden');
|
||||||
$('.right-file-overlay').addClass('invisible');
|
|
||||||
},
|
},
|
||||||
drop: function(dragsterEvent, e) {
|
drop: function(dragsterEvent, e) {
|
||||||
$('.right-file-overlay').removeClass('visible');
|
$('.right-file-overlay').addClass('hidden');
|
||||||
$('.right-file-overlay').addClass('invisible');
|
|
||||||
self.handleDrop(e);
|
self.handleDrop(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ module.exports = React.createClass({
|
|||||||
overlayType: React.PropTypes.string
|
overlayType: React.PropTypes.string
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
var overlayClass = 'file-overlay invisible';
|
var overlayClass = 'file-overlay hidden';
|
||||||
if (this.props.overlayType === 'right') {
|
if (this.props.overlayType === 'right') {
|
||||||
overlayClass += ' right-file-overlay';
|
overlayClass += ' right-file-overlay';
|
||||||
} else if (this.props.overlayType === 'center') {
|
} else if (this.props.overlayType === 'center') {
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ global.window.setup_channel_page = function(team_name, team_type, team_id, chann
|
|||||||
);
|
);
|
||||||
|
|
||||||
React.render(
|
React.render(
|
||||||
<FileUploadOverlay
|
<FileUploadOverlay
|
||||||
overlayType='center' />,
|
overlayType='center' />,
|
||||||
document.getElementById('file_upload_overlay')
|
document.getElementById('file_upload_overlay')
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -130,13 +130,6 @@ body.ios {
|
|||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin: 0 0 0.3em;
|
margin: 0 0 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.invisible {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
.visible {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-list {
|
#post-list {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
border-right: $border-gray;
|
border-right: $border-gray;
|
||||||
padding: 0 0 2em 0;
|
padding: 0 0 2em 0;
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
|
z-index: 5;
|
||||||
&.sidebar--padded {
|
&.sidebar--padded {
|
||||||
padding-top: 44px;
|
padding-top: 44px;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user