Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #76 from ft-interactive/fix-71
Browse files Browse the repository at this point in the history
Adds media query to addition screens. Fixes #71.
  • Loading branch information
Ændrew Rininsland authored Oct 5, 2017
2 parents 03eb18b + 46e68fb commit 85fa5d2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
20 changes: 17 additions & 3 deletions client/components/Ending/panels/AdditionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ export default class AdditionPanel extends Component<Props, State> {
.addition {
text-align: left;
min-width: 260px;
margin-bottom: 40px;
margin-bottom: 10px;
}
.main-figure {
font: 600 84px MetricWeb, sans-serif !important;
margin: 20px 0;
margin: 20px 0 0;
letter-spacing: 0.05em;
}
Expand All @@ -125,7 +125,21 @@ export default class AdditionPanel extends Component<Props, State> {
height: 5px;
width: 60px;
background: ${highlightColour};
margin: 40px 0 30px;
margin: 20px 0 30px;
}
@media (min-width: 740px) {
.addition {
margin-bottom: 40px;
}
.main-figure {
margin: 20px 0;
}
.main-figure:after {
margin: 40px 0 30px;
}
}
.constituent-figure {
Expand Down
11 changes: 10 additions & 1 deletion client/components/Ending/panels/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,16 @@ export default class Panel extends Component<Props> {
.spacer {
flex: 1;
min-height: 20px;
height: 0;
min-height: 0;
}
@media (min-width: 740px) {
.spacer {
flex: 1;
min-height: 20px;
height: auto;
}
}
.inner {
Expand Down

0 comments on commit 85fa5d2

Please sign in to comment.