Skip to content

Commit

Permalink
Fix the padding of box in Register
Browse files Browse the repository at this point in the history
  • Loading branch information
reyraa committed Apr 3, 2018
1 parent 62120a8 commit d4357fd
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/register/register.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,24 @@
& > div {
height: 100%;
overflow: hidden;
margin-right: -48px;
margin-left: -48px;
margin-right: calc(-1 * var(--box-padding-left-XL));
margin-left: calc(-1 * var(--box-padding-left-XL));
}
}

.hasPaddingTop {
padding-top: var(--padding-top);
}

@media (--large-viewport) {
.hasPaddingTop {
& > div {
margin-right: calc(-1 * var(--box-padding-left-L));
margin-left: calc(-1 * var(--box-padding-left-L));
}
}
}

@media (--medium-viewport) {
.hasPaddingTop {
height: 100vh; /* stylelint-disable-line */
Expand All @@ -28,8 +37,8 @@
padding-top: var(--box-padding);

& > div {
margin-right: 0px;
margin-left: 0px;
margin-right: calc(-1 * var(--box-padding-left-M));
margin-left: calc(-1 * var(--box-padding-left-M));
}
}
}

0 comments on commit d4357fd

Please sign in to comment.