This repository has been archived on 2026-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/templates/widgets/navbar.lucius

53 lines
1.2 KiB
Plaintext

@header_height: 60px;
@header_height_collapsed: 50px;
.navbar {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
height: #{header_height};
line-height: #{header_height};
padding: 0 10vw;
background: #663399; /* Old browsers */
background: -moz-linear-gradient(bottom, #663399 0%, #734e99 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(bottom, #663399 0%,#734e99 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to top, #663399 0%,#734e99 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
color: white;
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
li > a {
display: inline-block;
height: 100%;
padding: 0 13px;
color: white;
}
li > a:hover {
background-color: white;
color: rebeccapurple;
}
li.active {
background-color: #422063;
}
}
.sticky-navbar {
position: fixed;
top: 0;
left: 0;
height: #{header_height_collapsed};
line-height: #{header_height_collapsed};
z-index: 100;
transition: height 0.2s ease, line-height 0.2s ease;
}
.navbar-pushdown {
display: none;
height: #{header_height};
}
.sticky-navbar + .navbar-pushdown {
display: block;
}