aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/hart/footer.html76
-rw-r--r--web/cobrands/hart/base.scss6
-rw-r--r--web/cobrands/hart/hart.scss227
-rw-r--r--web/cobrands/hart/layout.scss19
4 files changed, 205 insertions, 123 deletions
diff --git a/templates/web/hart/footer.html b/templates/web/hart/footer.html
index 223aa6c4c..2eae42070 100644
--- a/templates/web/hart/footer.html
+++ b/templates/web/hart/footer.html
@@ -6,7 +6,7 @@
<div class="nav-wrapper clearfix">
<div class="nav-wrapper-2 clearfix">
- <div id="main-nav" role="navigation">
+ <div id="main-nav" class="clearfix" role="navigation">
<ul>
<li>
<a href="http://www.hart.gov.uk/home">Home</a>
@@ -37,9 +37,9 @@
[% END %]
</div>
</div>
- <div class="main-menu-wrapper desk-only">
+ <div class="main-menu-wrapper">
<div class="main-menu">
- <ul>
+ <ul class="clearfix">
<li class="home"><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% "Report" %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) %]span[% ELSE %]a href="/my"[% END
@@ -57,46 +57,46 @@
<div class="hart-footer-wrapper">
<div id="footer_outside_wrapper">
- <div id="footer_inside_wrapper">
- <div class="footer_wrapper">
- <div id="footer-right">
- <div class="region-footer-right">
- <div id="block-menu-menu-footer-right" role="navigation">
- <ul class="footer-nav">
- <li> <a href="/sitemap">Site map</a> </li>
- <li> <a href="/Accessibility">Accessibility</a> </li>
- </ul>
- </div>
- <div id="footer-images"><p>
- <a href="https://twitter.com/HartCouncil">
- <img alt="" src="/cobrands/hart/twitter-logo.png" style="height:43px; width:43px" />
- </a>
- <a href="http://www.facebook.com/HartDistrictCouncil">
- <img alt="" src="/cobrands/hart/facebook-logo.png" style="height:43px; width:43px" />
- </a>
- <a href="http://www.gov.uk">
- <img alt="" src="/cobrands/hart/gov-logo.png" style="height:43px; margin-left:10px; width:172px" />
- </a>
- </p></div>
- </div>
- </div>
+ <div id="footer_inside_wrapper" class="clearfix">
+ <div id="footer-right" class="clearfix">
+ <ul class="footer-nav">
+ <li> <a href="/sitemap">Site map</a> </li>
+ <li> <a href="/Accessibility">Accessibility</a> </li>
+ </ul>
</div>
- <footer id="hart-footer">
- <div id="copyright-block">
+ <footer id="hart-footer" class="clearfix">
+ <div id="copyright-block" class="desk-only">
<strong>©</strong> &nbsp;
<a href="/disclaimer" title="More information on the Disclaimer">Hart District Council</a>
</div>
- <div>
- <ul class="footer-nav">
- <li> <a href="/disclaimer">Disclaimer</a></li>
- <li> <a href="/freedom-information">Freedom of Information</a></li>
- <li> <a href="/privacy">Privacy</a></li>
- </ul>
- </div>
+ <ul class="footer-nav clearfix">
+ <li> <a href="/disclaimer">Disclaimer</a></li>
+ <li> <a href="/freedom-information">Freedom of Information</a></li>
+ <li> <a href="/privacy">Privacy</a></li>
+ </ul>
</footer>
- <p id="hart-powered-by" class="desk-only">
- <a href="http://www.mysociety.org/for-councils/fixmystreet/">Powered by <img src="/cobrands/hart/fms-logo.png" alt="FixMyStreet" style="height:20px;"></a>
- </p>
+ <div class="clearfix" id="footer-row-2">
+ <div id="hart-powered-by">
+ <a href="http://www.mysociety.org/for-councils/fixmystreet/">Powered by <img src="/cobrands/hart/fms-logo.png" alt="FixMyStreet" style="height:20px;"></a>
+ </div>
+ <div id="footer-images">
+ <a href="https://twitter.com/HartCouncil">
+ <img alt="" src="/cobrands/hart/twitter-logo.png" style="height:43px; width:43px" />
+ </a>
+ <a href="http://www.facebook.com/HartDistrictCouncil">
+ <img alt="" src="/cobrands/hart/facebook-logo.png" style="height:43px; margin-right: 10px; width:43px" />
+ </a>
+ <a href="http://www.gov.uk">
+ <img alt="" src="/cobrands/hart/gov-logo.png" style="height:43px; width:172px" />
+ </a>
+ </div>
+ </div>
+ <div id="footer-row-3">
+ <div id="copyright-block-mobile" class="mob-only">
+ <strong>©</strong> &nbsp;
+ <a href="/disclaimer" title="More information on the Disclaimer">Hart District Council</a>
+ </div>
+ </div>
</div>
</div>
</div>
diff --git a/web/cobrands/hart/base.scss b/web/cobrands/hart/base.scss
index 28c44dd95..edc692130 100644
--- a/web/cobrands/hart/base.scss
+++ b/web/cobrands/hart/base.scss
@@ -34,11 +34,13 @@ h1.main {
#site-header {
background: $primary;
height: 57px;
+
.mobile-header-nav {
height: 56px;
float: right;
li {
+ a, a:hover {text-decoration:none;}
list-style-type: none;
float: left;
div {
@@ -99,7 +101,3 @@ h1.main {
}
}
}
-
-.hart-footer-wrapper {
- display: none;
-}
diff --git a/web/cobrands/hart/hart.scss b/web/cobrands/hart/hart.scss
index 84db3070c..9345a5141 100644
--- a/web/cobrands/hart/hart.scss
+++ b/web/cobrands/hart/hart.scss
@@ -21,14 +21,14 @@ input[type=password],
input[type=email],
input[type=file],
textarea,
-select { background: #fff; border: 1px solid #768b9a; border-color: #768b9a #d1dee8 #d1dee8 #768b9a; color: #333; font-family: "Gill Sans MT", Arial, 'Helvetica Neue', Helvetica, sans-serif; padding: 8px;
+select { background: #fff; border: 1px solid #768b9a; border-color: #768b9a #d1dee8 #d1dee8 #768b9a; color: #333; font-family: "Gill Sans MT", "Gill Sans", Arial, 'Helvetica Neue', Helvetica, sans-serif; padding: 8px;
@include border-radius(0); }
.green-btn, button.green-btn, input.green-btn {
background: #5b7189;
border: 1px solid #8e9eb0;
color: #fff;
- font-family: 'Gill Sans MT', 'Trebuchet MS', Calibri, sans-serif;
+ font-family: 'Gill Sans MT', 'Gill Sans', 'Trebuchet MS', Calibri, sans-serif;
font-weight: normal;
margin: 0; min-height: 23px;
/* outline: 1px solid #405062; */
@@ -43,8 +43,8 @@ select { background: #fff; border: 1px solid #768b9a; border-color: #768b9a #d1d
}
-h1, h2, h3, h4, h5, h6, legend { font-family: 'Gill Sans MT', 'Trebuchet MS', Calibri, sans-serif; }
-body { color: #333; font-family: "Gill Sans MT", Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 1.4; background-color: $base_bg;}
+h1, h2, h3, h4, h5, h6, legend { font-family: 'Gill Sans MT', 'Gill Sans', 'Trebuchet MS', Calibri, sans-serif; }
+body { color: #333; font-family: "Gill Sans MT", "Gill Sans", Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 1.4; background-color: $base_bg;}
.nav-wrapper-2,
body.mappage .nav-wrapper .nav-wrapper-2,
@@ -52,7 +52,10 @@ body.frontpage .nav-wrapper-2 {
border: 0;
min-height: auto;
background-color: $hart_primary;
- height: 173px;
+
+ @media only screen and (min-width:48em) {
+ height: 173px;
+ }
}
@media only screen and (min-width:48em) {
@@ -62,9 +65,9 @@ body.frontpage .nav-wrapper-2 {
#main-nav {
margin-top: 106px;
- margin-left: 148px;
ul {
+ margin-left: 132px;
float: none;
}
}
@@ -131,23 +134,25 @@ body.frontpage #site-logo,
}
.sign-in {
- float:right;
- margin: 1em 1em 0.5em 0em;
+ display: none;
}
@media only screen and (min-width:48em) {
- .sign-in {
- float:right;
- margin-top:-87px;
- height: 2em;
- }
+ .sign-in {
+ display: block;
+ float:right;
+ margin-top:-87px;
+ height: 2em;
+ }
}
.sign-in a:link, .sign-in a:visited {color:#333; font-weight:bold; text-decoration:none;}
.sign-in a:hover, .sign-in a:active {text-decoration:underline;}
.main-menu-wrapper {
- position: absolute;
/* z-index:2; */
width:100%;
+ @media only screen and (min-width:48em) {
+ position: absolute;
+ }
}
body.mappage .main-menu-wrapper {
@@ -155,28 +160,67 @@ body.mappage .main-menu-wrapper {
}
.main-menu {
- margin-top: 173px;
background-color: #FFF;
- height: 2em;
-}
-.main-menu li {
- float: left;
- margin-left: 1em;
- text-align: center;
- font-family: 'Gill Sans MT', 'Trebuchet MS', Calibri, sans-serif;
-}
-
-.main-menu li a:link, .main-menu li a:visited {
- color: $hart_primary;
- display: block;
- text-decoration: none;
-}
-
-.main-menu li a:hover, .main-menu li a:active {
-}
+ li {
+ font-family: 'Gill Sans MT', 'Gill Sans', 'Trebuchet MS', Calibri, sans-serif;
+ margin: 0;
-.main-menu li.home a:hover, .main-menu li.home a:active {
+ span { display: none }
+
+ a {
+ padding: 0.5em 1em;
+ background: #f6f6f6;
+ color: #333;
+ font-size: 1.25em;
+ border-bottom: 0.25em solid #333;
+ display: block;
+
+ &:link, &:visited {
+ color: $hart_primary;
+ text-decoration: none;
+ }
+ &:hover {
+ background-color: $hart_primary;
+ color: #FFF;
+ }
+ }
+ }
+ @media only screen and (min-width:48em) {
+ margin-top: 173px;
+ height: 2em;
+ max-width: 60em;
+ margin: 173px auto 0 auto;
+
+ li {
+ float: left;
+ margin-left: 1em;
+ text-align: center;
+
+ span {
+ display: inline;
+ }
+
+ a {
+ padding: 0;
+ background: #fff;
+ color: #333;
+ font-size: 1em;
+ border-bottom: 0;
+ display: inline;
+
+ &:link, &:visited {
+ color: $hart_primary;
+ text-decoration: none;
+ }
+ &:hover {
+ background-color: #fff;
+ color: $hart_primary;
+ text-decoration: underline;
+ }
+ }
+ }
+ }
}
#front-main {
@@ -199,40 +243,51 @@ body.frontpage .table-cell .content {
}
.hart-footer-wrapper {
+
+ background-color: #4F5757;
+ clear: both;
+ height: auto;
+ overflow: hidden;
+ padding: 15px 15px 50px 15px;
+ color:#fff;
+
+ @media only screen and (min-width:48em) {
+ margin-left:-15px;
+ }
+
#footer_outside_wrapper {
- display: block;
+ max-width: 60em;
+ margin: 0 auto;
#footer_inside_wrapper {
display: block;
- .footer_wrapper {
- display: block;
- }
+
#footer-right {
- float: right;
- max-width: 329px;
+ @media only screen and (min-width:48em) {
+ float: right;
+ width: 30%;
+ }
+
.region-footer-right {
float: left;
max-width: 319px;
}
}
#footer-images {
- display: block;
- max-width: 300px;
+ width: 50%;
+ text-align: right;
+ padding-bottom: 10px;
+ margin-bottom: 0px;
+ float: right!important;
+ text-decoration: none!important;
+ img {
+ margin-bottom: 5px;
+ }
}
}
}
.footer_border {
display: block;
}
- background-color: #4F5757;
- clear: both;
- height: auto;
- overflow: hidden;
- bottom: 0;
- padding-bottom: 60px;
- padding:30px 15px 50px;
- margin-left:-15px;
- color:#fff;
- font-size:92%;
p {
margin: 0;
}
@@ -243,30 +298,63 @@ body.frontpage .table-cell .content {
text-decoration: underline;
}
- #hart-footer {
- width: 709px;
+ footer#hart-footer {
+ margin-top: 0;
+
+ @media only screen and (min-width:48em) {
+ width: 70%;
+ float: left;
+ }
}
#copyright-block {
float: left;
- margin-left: 2em;
- display: block;
- line-height: 1.5em;
+ margin-left: 1em;
+ }
+ #copyright-block-mobile {
+ margin-left: 10px;
}
+
+ #footer-row-2 {
+ margin-top: 2em;
+ }
+
.footer-nav, {
- float: right;
+ @media only screen and (min-width:48em) {
+ float: right;
+ }
height:35px;
- margin-top: -15px;
+
+ margin-left: 0;
+ margin-bottom: 0;
li {
list-style-type: none;
- border-right:1px solid #fff;
float: left;
- line-height: 1;
- padding: 0 20px;
- }
- li:last-child {
- border: none;
+ width: 50%;
+ margin-bottom: 0;
+
+ a {
+ display: block;
+ border-bottom:1px solid #797f7f;
+ padding: 10px 0;
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ @media only screen and (min-width:48em) {
+ border-right:1px solid #fff;
+ width: auto;
+ a {
+ border-bottom: none;
+ padding: 0 10px;
+ margin-left: 0;
+ margin-right: 0;
+ }
+ &:last-child {
+ border: none;
+ padding-right: 0;
+ }
+ }
}
}
}
@@ -331,8 +419,15 @@ body.mappage .hart-footer-wrapper {
}
#hart-powered-by {
float: left;
- margin-left: 2em;
- margin-right: 4em;
+ width: 50%;
+ a {
+ margin-left: 10px;
+ }
+ @media only screen and (min-width:48em) {
+ a {
+ margin-left: 1em;
+ }
+ }
img {
float: none;
margin-top: 0;
diff --git a/web/cobrands/hart/layout.scss b/web/cobrands/hart/layout.scss
index 994d23673..f28c07963 100644
--- a/web/cobrands/hart/layout.scss
+++ b/web/cobrands/hart/layout.scss
@@ -5,13 +5,12 @@
.content {
margin-top: 8em;
}
- .hart-footer-wrapper {
- display: block;
- }
-
- }
#front-main-container {
background-color: $hart_primary;
+ }
+ .hart-footer-wrapper {
+ display: block;
+ }
}
#report-a-problem-sidebar {
@@ -33,13 +32,3 @@ body.twothirdswidthpage .content {
}
}
}
-
-#footer-images {
- padding-bottom: 10px;
- margin-bottom: 0px;
- float: right!important;
- clear: both;
- text-decoration: none!important;
- width: 300px;
- padding-left: 30px;
-}