1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| .navbar, .navbar-default, .navbar-collapse { background-color: transparent; border: none; } /* Remove default parameters */
.navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { color: white; font-size: 16px; } /* Modification to .navbar-brand */
.navbar-default .navbar-nav li a, .navbar-default .navbar-nav li a:hover { color: white; text-align: center; text-transform: uppercase; font-size: 14px; } /* Modification to .navbar-nav */
.navbar-default .navbar-nav>li>a:focus {color: white;} /* Conserves the white color after click */
/* ACTIVE BACKGROUND ON SCROLL */
nav, .navActive
{
font-family: 'Merriweather', serif;
-webkit-transition: all 0.5s ease-in; -moz-transition: all 0.5s ease-in; -ms-transition: all 0.5s ease-in; -o-transition: all 0.5s ease-in; transition: all 0.5s ease-in;
background-color: rgba(0, 0, 0, 0.6);
}
.navActive { box-shadow: 0 0 15px black; }
/* SCROLLSPY */
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover
{
color: white; /* Color when the scrollspy is active */
border-bottom: 2px solid #e1e1d0;
background: -webkit-radial-gradient(rgba(204, 204, 179, 0.3) 0%, transparent 70%);
background: -moz-radial-gradient(rgba(204, 204, 179, 0.3) 0%, transparent 70%);
background: -ms-radial-gradient(rgba(204, 204, 179, 0.3) 0%, transparent 70%);
background: -o-radial-gradient(rgba(204, 204, 179, 0.3) 0%, transparent 70%);
background: radial-gradient(rgba(204, 204, 179, 0.3) 0%, transparent 70%);
}
/* Animation on hover */
.navbar a:before
{
content: "";
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
background-color: rgba(255, 255, 255, 0.3);
-webkit-transform: scaleY(0); -moz-transform: scaleY(0); -ms-transform: scaleY(0); -o-transform: scaleY(0); transform: scaleY(0);
-webkit-transform-origin: 50% 0; -moz-transform-origin: 50% 0; -ms-transform-origin: 50% 0; -o-transform-origin: 50% 0; transform-origin: 50% 0;
-webkit-transition: 0.3s ease-out; -moz-transition: 0.3s ease-out; -ms-transition: 0.3s ease-out; -o-transition: 0.3s ease-out; transition: 0.3s ease-out;
}
/* Height of the selection block (Hover) */
.navbar a:hover:before { -webkit-transform: scaleY(1.04); -moz-transform: scaleY(1.04); -ms-transform: scaleY(1.04); -o-transform: scaleY(1.04); transform: scaleY(1.04); } |
Partager