mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
FIX left and right alignment of header & footer to content area
This commit is contained in:
parent
e68e63cf4b
commit
bba8ebfac5
@ -219,11 +219,13 @@ body {
|
|||||||
/* NAVIGATION */
|
/* NAVIGATION */
|
||||||
|
|
||||||
/* Primary navigation */
|
/* Primary navigation */
|
||||||
|
.header .inner .unit {
|
||||||
|
position: relative; /* used to position the main navigation */
|
||||||
|
}
|
||||||
.header .primary ul {
|
.header .primary ul {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
bottom:0;
|
bottom:0;
|
||||||
right:17px; /* positions the main navigation */
|
right:0; /* positions the main navigation */
|
||||||
}
|
}
|
||||||
.header .primary li {
|
.header .primary li {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<footer class="footer" role="contentinfo">
|
<footer class="footer" role="contentinfo">
|
||||||
<div class="inner copy">
|
<div class="inner">
|
||||||
<div class="left">
|
<div class="unit size4of4 lastUnit">
|
||||||
<a href="$BaseHref" class="brand" rel="home">$SiteConfig.Title</a>
|
<div class="left">
|
||||||
<span class="arrow">→</span> <% include Navigation %></div>
|
<a href="$BaseHref" class="brand" rel="home">$SiteConfig.Title</a>
|
||||||
<small class="right"><a href="http://simple.innovatif.com/about/">Theme</a> by <a href="http://www.saratusar.com">Sara</a> (Innovatif) / Powered by <a href="http://silverstripe.org">Silverstripe</a></small>
|
<span class="arrow">→</span> <% include Navigation %></div>
|
||||||
|
<small class="right"><a href="http://simple.innovatif.com/about/">Theme</a> by <a href="http://www.saratusar.com">Sara</a> (Innovatif) / Powered by <a href="http://silverstripe.org">Silverstripe</a></small>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
@ -1,17 +1,19 @@
|
|||||||
<header class="header" role="banner">
|
<header class="header" role="banner">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<a href="$BaseHref" class="brand" rel="home">
|
<div class="unit size4of4 lastUnit">
|
||||||
<h1>$SiteConfig.Title</h1>
|
<a href="$BaseHref" class="brand" rel="home">
|
||||||
<% if $SiteConfig.Tagline %>
|
<h1>$SiteConfig.Title</h1>
|
||||||
<p>$SiteConfig.Tagline</p>
|
<% if $SiteConfig.Tagline %>
|
||||||
|
<p>$SiteConfig.Tagline</p>
|
||||||
|
<% end_if %>
|
||||||
|
</a>
|
||||||
|
<% if $SearchForm %>
|
||||||
|
<span class="search-dropdown-icon">L</span>
|
||||||
|
<div class="search-bar">
|
||||||
|
$SearchForm
|
||||||
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</a>
|
<% include Navigation %>
|
||||||
<% if $SearchForm %>
|
</div>
|
||||||
<span class="search-dropdown-icon">L</span>
|
|
||||||
<div class="search-bar">
|
|
||||||
$SearchForm
|
|
||||||
</div>
|
|
||||||
<% end_if %>
|
|
||||||
<% include Navigation %>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user