Fix up negative margins

This commit is contained in:
Rico Sta. Cruz 2017-08-28 22:52:23 +08:00
parent 3585dd6533
commit 0a5a6d30cc
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
3 changed files with 18 additions and 4 deletions

View File

@ -5,7 +5,10 @@
.h3-section-list {
& {
margin: 0 auto;
@include gutter(margin-left, $multiplier: -1);
@include gutter(margin-right, $multiplier: -1);
margin-top: 0;
margin-bottom: 0;
}
// Clearfix

View File

@ -75,5 +75,18 @@
border-radius: 2px;
padding: 0 16px;
margin: 0 8px;
& > .text {
margin-left: 4px;
}
}
// Collapse
& > .link:first-child > a {
margin-left: 0;
}
& > .link:last-child > a {
margin-right: 0;
}
}

View File

@ -1,5 +1,5 @@
@mixin heading-style {
margin: $gut;
margin: 0;
padding: 0;
margin-bottom: 16px + 8px;
padding-bottom: 16px + 8px;
@ -7,14 +7,12 @@
border-bottom: solid 1px $dark-line-color;
@media (max-width: 768px) {
margin: $gut;
margin-bottom: 8px;
margin-top: 32px;
padding-bottom: 8px;
}
@media (max-width: 480px) {
margin: $gut-small;
margin-bottom: 8px;
margin-top: 32px;
padding-bottom: 8px;