Skip to content

Commit 33fc85f

Browse files
author
connors
committed
wrapping the home ad and footer in a parent and positioning the parent.
1 parent d5e1854 commit 33fc85f

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

docs/assets/css/docs.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ body {
3434
min-height: 750px;
3535
}
3636
.docs-header .carbonad {
37-
position: absolute !important;
38-
bottom: 255px !important;
37+
position: relative !important;
3938
margin-top: 0 !important;
4039
-webkit-animation-name: fadeintext;
4140
-moz-animation-name: fadeintext;
@@ -50,14 +49,21 @@ body {
5049
text-align: center;
5150
}
5251

52+
.docs-header-bottom {
53+
position: absolute;
54+
left: 0;
55+
right: 0;
56+
bottom: 0;
57+
}
58+
5359
@media screen and (min-width: 768px) {
5460
.docs-header {
5561
min-height: 870px;
5662
}
5763
.docs-header .carbonad {
58-
bottom: 259px !important;
5964
left: 50% !important;
6065
margin-left: -165px !important;
66+
margin-bottom: 60px !important;
6167
}
6268

6369
.docs-sub-header .carbonad {
@@ -537,10 +543,6 @@ body {
537543
}
538544

539545
.docs-header .docs-footer {
540-
position: absolute;
541-
bottom: 0;
542-
left: 0;
543-
right: 0;
544546
margin-top: 0;
545547
border-top: 1px solid rgba(255, 255, 255, 0.1);
546548
}

docs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<p class="version">Currently v2.0.0</p>
1212
</div>
1313

14-
{% include ad.html %}
15-
{% include footer.html %}
14+
<div class="docs-header-bottom">
15+
{% include ad.html %}
16+
{% include footer.html %}
17+
</div>
1618
</div>

sass/docs.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ body {
3535

3636
// Ad on the homepage
3737
.carbonad {
38-
position: absolute !important;
39-
bottom: 255px !important;
38+
position: relative !important;
4039
margin-top: 0 !important;
4140
@include animation-name(fadeintext);
4241
@include animation-duration(2s);
@@ -47,16 +46,22 @@ body {
4746
text-align: center;
4847
}
4948
}
49+
.docs-header-bottom {
50+
position: absolute;
51+
left: 0;
52+
right: 0;
53+
bottom: 0;
54+
}
5055
// Desktop jumbotron
5156
@media screen and (min-width: 768px) {
5257
.docs-header {
5358
min-height: 870px;
5459

5560
// Ads on the homepage
5661
.carbonad {
57-
bottom: 259px !important;
5862
left: 50% !important;
5963
margin-left: -165px !important;
64+
margin-bottom: 60px !important;
6065
}
6166
}
6267

@@ -549,10 +554,6 @@ body {
549554

550555
// Overrides for the homepage's footer
551556
.docs-header .docs-footer {
552-
position: absolute;
553-
bottom: 0;
554-
left: 0;
555-
right: 0;
556557
margin-top: 0;
557558
border-top: 1px solid rgba(255,255,255,.1);
558559

0 commit comments

Comments
 (0)