media query to hide description in nav bar

This commit is contained in:
bill bittner 2018-06-10 14:37:19 -07:00
parent 2101248333
commit 5b0e463cf6
3 changed files with 11 additions and 6 deletions

View file

@ -39,9 +39,11 @@ function (_React$Component) {
_createClass(SiteDescription, [{
key: "render",
value: function render() {
return _react.default.createElement("p", {
return _react.default.createElement("div", {
className: 'site-description'
}, _react.default.createElement("p", {
className: 'text--extra-small'
}, this.props.siteDescription);
}, this.props.siteDescription));
}
}]);

View file

@ -1,9 +1,10 @@
@media (max-width: 1120px) {
.nav-bar--center {
@media (max-width: 1100px) {
// hide site description in nav bar
.site-description {
display: none;
}
// stack horizontal-splits
.column--med-10 {
width: 100%;
}

View file

@ -3,7 +3,9 @@ import React from 'react';
class SiteDescription extends React.Component {
render () {
return (
<p className={'text--extra-small'}>{this.props.siteDescription}</p>
<div className={'site-description'}>
<p className={'text--extra-small'}>{this.props.siteDescription}</p>
</div>
);
}
}