display button like other create buttons on mobile sites

This commit is contained in:
Florian Scholdei
2019-02-21 09:39:05 +01:00
parent 095ae81f80
commit 4b43456b27
2 changed files with 16 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ type Props = {
const styles = { const styles = {
spacing: { spacing: {
marginTop: "1.25rem" marginTop: "1.25rem",
textAlign: "right"
} }
}; };
@@ -62,7 +63,7 @@ class Page extends React.Component<Props> {
<Subtitle subtitle={subtitle} /> <Subtitle subtitle={subtitle} />
</div> </div>
<div className="column is-two-fifths"> <div className="column is-two-fifths">
<div className={classNames(classes.spacing, "is-pulled-right")}>{content}</div> <div className={classNames(classes.spacing, "is-mobile-create-button-spacing")}>{content}</div>
</div> </div>
</div> </div>
{underline} {underline}

View File

@@ -47,6 +47,19 @@ hr.header-with-actions {
height: 1px; height: 1px;
margin-top: -10px; margin-top: -10px;
background-color: $primary; background-color: $primary;
@media screen and (max-width: 768px) {
display: none;
}
}
.is-mobile-create-button-spacing {
@media screen and (max-width: 768px) {
border: 2px solid #e9f7fd;
padding: 1em 1em;
margin-top: 0 !important;
width: 100%;
text-align: center !important;
}
} }
.footer { .footer {