[WIP] Style header and footer elements

pull/326/head
Ryan Arthur 7 years ago committed by katibest
parent d4d4acf432
commit 735c5fff81
  1. 44
      apps/explorer_web/assets/css/components/_footer.scss
  2. 12
      apps/explorer_web/assets/css/components/navbar.scss
  3. 42
      apps/explorer_web/lib/explorer_web/templates/layout/_footer.html.eex

@ -1,16 +1,50 @@
$footer-height: 50px;
$footer-padding: 1rem;
$social-link-size: 2rem;
$social-link-padding: $footer-padding / 2;
$footer-text-color: rgba($white, 0.7);
.footer {
position: relative;
font-size: 12px;
display: block;
bottom: 0;
background: $gray-100;
color:$gray-600;
background: $primary;
color: $footer-text-color;
text-align: center;
margin-top: 15px;
padding: 14px;
height: 50px;
margin-top: $footer-padding;
padding: $footer-padding;
height: $footer-height;
@media (max-width: 768px) {
width: 100%;
}
}
.footer .social-links {
position :absolute;
top: 0;
right: $footer-padding;
height: $footer-height;
display: flex;
flex-direction: row;
align-items: center;
& > a {
width: $social-link-size;
height: $social-link-size;
margin: 0 $social-link-padding;
padding: $social-link-padding;
text-align: center;
color: $footer-text-color;
background-color: rgba($white, 0.25);
border-radius: 50%;
transition: all 0.1s ease;
&:hover {
background-color: $white;
color: $primary;
}
}
}

@ -4,20 +4,22 @@
@media (min-width: 992px) {
.navbar-expand-lg .navbar-nav .nav-link {
padding-left: 1.75rem;
padding-right: 1.75rem;
padding-left: 1.25rem;
padding-right: 1.25rem;
}
}
.navbar .form-control {
background: transparent;
width: 40%;
font-size: 11px;
width: calc(43ch + #{$input-padding-x * 2});
font-size: 12px;
border-left: none;
color: $white;
}
.navbar .input-group-text {
background: none;
border-right: none;
}
.fa-search {

@ -1,24 +1,26 @@
<footer class="footer">
<%= gettext "Copyright %{year} POA", year: 2018 %>
<a href="https://www.facebook.com/PoaNetwork/" target="_blank">
<div class="theme__ribbon--social-icons">
<i class="fab fa-facebook-f"></i>
</div>
</a>
<a href="https://www.instagram.com/PoaNetwork/" target="_blank">
<div class="theme__ribbon--social-icons">
<i class="fab fa-instagram"></i>
</div>
</a>
<a href="https://www.twitter.com/PoaNetwork/" target="_blank">
<div class="theme__ribbon--social-icons">
<i class="fab fa-twitter"></i>
</div>
</a>
<a href="https://www.twitter.com/PoaNetwork/" target="_blank">
<div class="theme__ribbon--social-icons">
<i class="fab fa-telegram-plane"></i>
</div>
</a>
<div class="social-links">
<a href="https://www.facebook.com/PoaNetwork/" target="_blank">
<div class="">
<i class="fab fa-facebook-f"></i>
</div>
</a>
<a href="https://www.instagram.com/PoaNetwork/" target="_blank">
<div class="">
<i class="fab fa-instagram"></i>
</div>
</a>
<a href="https://www.twitter.com/PoaNetwork/" target="_blank">
<div class="">
<i class="fab fa-twitter"></i>
</div>
</a>
<a href="https://www.twitter.com/PoaNetwork/" target="_blank">
<div class="">
<i class="fab fa-telegram-plane"></i>
</div>
</a>
</div>
</footer>

Loading…
Cancel
Save