Skip to content

Commit

Permalink
Make footer transparent and stuck at the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasseu committed Sep 12, 2020
1 parent 9ed1aca commit 7f164a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/assets/sass/_design.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
box-shadow: 0 0 5px 3px rgba(30, 30, 30, .8);
}
.transparent {
background-color: rgba(0,0,0,0.35) !important;
/*box-shadow: none !important;*/
background-color: transparent !important;
// background-color: rgba(0,0,0,0.35) !important;
// box-shadow: none !important;
}
.contour {
border: 1px solid $color-lightgrey;
Expand Down
5 changes: 4 additions & 1 deletion resources/assets/sass/_structures.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

.footer {
z-index: 99;
position: fixed;
position: absolute;
bottom: 0;
width: 100%;
height: 40px;
Expand All @@ -56,6 +56,9 @@
/* =============== BODY =============== */

body {
position: relative;
min-height: 100vh;
width: 100vw;
padding-top: 110px; /* Espace header */
padding-bottom: 60px; /* Espace footer */
color: $color-light;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/template.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
@yield('content')

{{-- Footer --}}
<footer class="footer container text-center text-muted {{ Route::currentRouteName()=='home' ? 'transparent' : 'grey vshadow' }}">
<footer class="footer container text-center text-muted {{ Route::currentRouteName()=='home' ? 'transparent' : 'grey' }}">
<a href="{{ route('mentions-legales') }}" title="Mentions Légales" class="mx-2 link-footer {{ Route::currentRouteName()=='home' ? ' text-white' : 'text-muted' }}">Mentions légales</a>
<span class="mx-2 {{ Route::currentRouteName()=='home' ? ' text-white' : 'text-muted' }}">All rights reserved &copy; Tonino De Marco</span>
{{-- <span class="mx-2 {{ Route::currentRouteName()=='home' ? ' text-white' : 'text-muted' }}">Tous droits réservés Tonino De Marco</span> --}}
Expand Down

0 comments on commit 7f164a9

Please sign in to comment.