Responsive ads

This commit is contained in:
Rico Sta. Cruz 2017-08-25 14:36:56 +08:00
parent 0b5feb83a2
commit e2e8311776
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 33 additions and 7 deletions

View File

@ -73,7 +73,7 @@
.carbon-text:hover, .carbon-text:hover,
.carbon-poweredby:hover { .carbon-poweredby:hover {
color: $baseB3; color: $baseA;
} }
} }

View File

@ -26,6 +26,10 @@
.main-heading.-with-ads { .main-heading.-with-ads {
& { & {
display: flex; display: flex;
}
@media (min-width: 541px) {
& {
align-items: flex-end; // bottom alighn align-items: flex-end; // bottom alighn
} }
@ -38,3 +42,25 @@
flex: 0 1 auto; flex: 0 1 auto;
} }
} }
@media (max-width: 540px) {
& {
flex-direction: column;
flex-wrap: wrap;
}
& > h1,
& > .ad {
flex: 1 0 100%;
}
& > h1 {
order: 2;
}
& > .ad {
order: 1;
margin-left: auto;
}
}
}