Skip to content

Commit b1b01b8

Browse files
committed
Include an alternate mobile footer that is position:relative so that it doesn't interfer with the toggle off canvas nav at mobile resolutions.
1 parent b2c19eb commit b1b01b8

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

_stylesheets/docs.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,25 @@ License: https://creativecommons.org/licenses/by/2.0/
101101
}
102102
}
103103
@media screen and (max-width: 768px) {
104-
body {
105-
margin-bottom: 300px;
104+
body, html {
105+
overflow-x: hidden;
106+
height: 100%;
107+
margin-bottom: 0;
108+
}
109+
.sidebar {
110+
border-right: 1px solid #e7e7e7;
111+
background: #fff;
112+
}
113+
.footer-origin-docs,
114+
.footer-openshift {
115+
display: none; /* hide absolute positioned footer at mobile */
116+
}
117+
.visible-xs-block .footer-origin-docs,
118+
.visible-xs-block .footer-openshift {
119+
/* show alternate footer positioned relative at mobile */
120+
display: block;
121+
position: relative;
122+
margin-top: 50px;
106123
}
107124
footer {
108125
text-align: center;
@@ -120,6 +137,7 @@ License: https://creativecommons.org/licenses/by/2.0/
120137

121138
/* End footer edits */
122139

140+
123141
.fa-inverse:hover {
124142
color: #ccc;
125143
}

_templates/page.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
<%= content %>
6767
</div>
6868
</div>
69+
<div class="visible-xs-block row row-offcanvas row-offcanvas-left">
70+
<%= render((distro_key == 'openshift-origin' ? "_templates/_footer_origin.html.erb" : "_templates/_footer_other.html.erb"), :images_path => images_path) %>
71+
</div>
6972
</div>
7073
<script type="text/javascript">
7174
/*<![CDATA[*/

0 commit comments

Comments
 (0)