centered publish-disabled message
This commit is contained in:
parent
5db0d3f6b8
commit
35f16031d5
4 changed files with 23 additions and 5 deletions
|
@ -40,11 +40,15 @@ function (_React$Component) {
|
||||||
key: "render",
|
key: "render",
|
||||||
value: function render() {
|
value: function render() {
|
||||||
var message = this.props.message;
|
var message = this.props.message;
|
||||||
return _react.default.createElement("div", null, _react.default.createElement("p", {
|
return _react.default.createElement("div", {
|
||||||
|
className: 'publish-disabled-message'
|
||||||
|
}, _react.default.createElement("div", {
|
||||||
|
className: 'message'
|
||||||
|
}, _react.default.createElement("p", {
|
||||||
className: 'text--secondary'
|
className: 'text--secondary'
|
||||||
}, "Publishing is currently disabled."), _react.default.createElement("p", {
|
}, "Publishing is currently disabled."), _react.default.createElement("p", {
|
||||||
className: 'text--secondary'
|
className: 'text--secondary'
|
||||||
}, message));
|
}, message)));
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
@import 'containers/_dropzone';
|
@import 'containers/_dropzone';
|
||||||
@import 'containers/_publish-url-input';
|
@import 'containers/_publish-url-input';
|
||||||
@import 'containers/_publish-status';
|
@import 'containers/_publish-status';
|
||||||
|
@import 'containers/_publish-disabled-message';
|
||||||
|
|
||||||
@import '_media-queries';
|
@import '_media-queries';
|
||||||
|
|
||||||
|
|
11
client/scss/containers/_publish-disabled-message.scss
Normal file
11
client/scss/containers/_publish-disabled-message.scss
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.publish-disabled-message {
|
||||||
|
// fill the parent flex container
|
||||||
|
flex: 1 0 auto;
|
||||||
|
// be a flex container for children
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
.message {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,10 +4,12 @@ class PublishDisabledMessage extends React.Component {
|
||||||
render () {
|
render () {
|
||||||
const message = this.props.message;
|
const message = this.props.message;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className={'publish-disabled-message'}>
|
||||||
|
<div className={'message'}>
|
||||||
<p className={'text--secondary'}>Publishing is currently disabled.</p>
|
<p className={'text--secondary'}>Publishing is currently disabled.</p>
|
||||||
<p className={'text--secondary'}>{message}</p>
|
<p className={'text--secondary'}>{message}</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue