Skip to content

Commit f6d1ec1

Browse files
committed
fixed footer
1 parent 326d4c3 commit f6d1ec1

2 files changed

Lines changed: 29 additions & 11 deletions

File tree

index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
-->
2323
</header>
2424

25-
<map class='contain clearfix'>
25+
<map class='clearfix'>
2626
<div class='overlay clearfix'>
2727

2828
<div class='limiter clearfix'>
@@ -38,6 +38,10 @@
3838
</map>
3939

4040

41+
42+
<footer class='clearfix'>
43+
44+
4145
<section class='pad2y limiter'>
4246

4347
<!-- headers -->
@@ -90,9 +94,13 @@
9094
</section>
9195

9296

93-
<footer class='center pad-top2'>
97+
<div class='footer'>
98+
<div class='clearfix center pad2y limiter'>
9499
© OSRM is free, open source, and available under the very permissive (simplified) 2-clause BSD license.
95-
</footer>
100+
</div>
101+
</div>
102+
103+
</footer>
96104

97105
<!-- Place this tag right after the last button or just before your close body tag. -->
98106
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>

site.css

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,32 +83,42 @@ map {
8383
background-image: url('images/route_map.png');
8484
display: block;
8585
background-position: center center;
86-
min-height: 420px;
86+
min-height: 800px;
87+
8788
}
8889

8990
section {
9091
min-height: 150px;
9192
}
9293

9394
footer {
94-
background-color: rgba(173, 182, 196, 1);
95-
color: rgba(255, 255, 255, 0.8);
96-
font-family: 'Open Sans Condensed Light';
97-
font-size: 12px;
98-
letter-spacing: .5px;
99-
min-height: 40px;
100-
}
95+
position: fixed;
96+
bottom: 0;
97+
width: 100%;
98+
min-height: 200px;
99+
max-height: 250px;
100+
background-color: white;
101+
}
101102

102103
.contain {
103104
position:relative;
104105
}
106+
105107
.overlay {
106108
background: rgba(20, 82, 207, 0.6);
107109
position: absolute;
108110
width: 100%;
109111
height: 100%;
110112
}
111113

114+
.footer {
115+
background-color: rgba(173, 182, 196, 1);
116+
color: rgba(255, 255, 255, 0.8);
117+
font-family: 'Open Sans Condensed Light';
118+
font-size: 12px;
119+
letter-spacing: .5px;
120+
}
121+
112122

113123
/* Markup free clearing
114124
Details: http://www.positioniseverything.net/easyclearing.html

0 commit comments

Comments
 (0)