Skip to content

Commit

Permalink
Add negativ emargin to compensate the box padding
Browse files Browse the repository at this point in the history
  • Loading branch information
reyraa committed Apr 4, 2018
1 parent 829125e commit 3868c05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/components/confirmVotes/confirmVotes.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
}

@media (--medium-viewport) {
.wrapper {
margin: 0 calc(-1 * var(--box-padding-left-M));
}

.confirmButton {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/votesPreview/votesPreview.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
}

& .footerWrapper {
margin: 0;
margin: 0 calc(-1 * var(--box-padding-left-M));

& .button {
width: 100%;
Expand Down
8 changes: 6 additions & 2 deletions src/components/voting/voting.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
.wrapper {
margin: 0;

& > section {
& > section,
& > aside {
padding: 0;
width: 100%;
}

& > section {
height: calc(100vh - var(--submit-button-height) - var(--header-height-m) - var(--footer-height-m)); /* stylelint-disable-line */
position: relative;
}
Expand All @@ -24,7 +29,6 @@
z-index: 2;
left: 0;
bottom: var(--footer-height-m);
width: 100%;
max-height: 100%;
height: 95px;
}
Expand Down

0 comments on commit 3868c05

Please sign in to comment.