1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-01 15:55:36 +01:00
site/_src/_assets/styles/bigchain/_menus.scss
2016-02-10 01:11:01 +01:00

76 lines
1.2 KiB
SCSS

.menu {
}
.menu__link {
@extend .small;
display: inline-block;
padding: $spacer;
text-transform: uppercase;
}
.menu__logo {
display: block;
svg {
@extend .transition;
fill: #fff;
opacity: .8;
}
&:hover svg,
&:focus svg {
opacity: 1;
}
}
//
// Main menu overlaying a dark background image
// in front page hero or page headers
//
.menu--main {
position: absolute;;
left: 0;
right: 0;
top: 0;
width: 100%;
z-index: 2;
height: 60px;
.menu__link {
color: #fff;
opacity: .8;
// link line
&:after {
content: "";
height: 2px;
width: 30px;
background: #fff;
display: block;
margin: ($spacer / 3) auto 0 auto;
// hidden by default
transform: scale(0);
transform-origin: center;
transition: transform .2s ease-out;
}
&:hover,
&:focus,
&.active {
opacity: 1;
// show link line
&:after { transform: scale(1); }
}
}
}
.menu--footer {
@extend .text-center;
.menu__link {
padding: $spacer ($spacer/1.5);
}
}