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

130 lines
2.1 KiB
SCSS
Raw Normal View History

2016-01-07 20:15:09 +01:00
.menu {
position: relative;
z-index: 10;
.grid__col {
text-align: center;
@media ($screen-md) {
text-align: left;
&:last-child { text-align: right; }
}
}
2016-01-07 20:15:09 +01:00
}
.menu__link {
2016-01-14 16:01:45 +01:00
@extend .small;
2016-01-07 20:15:09 +01:00
display: inline-block;
2016-01-21 12:08:23 +01:00
padding: $spacer;
2016-01-14 16:01:45 +01:00
text-transform: uppercase;
2016-01-21 12:08:23 +01:00
@media ($screen-md) {
padding: ($spacer * 1.5) $spacer;
}
// 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 {
// show link line
&:after { transform: scale(1); }
}
2016-01-07 20:15:09 +01:00
}
.menu__logo {
display: block;
margin-top: $spacer;
@media ($screen-md) {
display: inline-block;
margin-top: 0;
}
2016-01-10 02:11:27 +01:00
svg {
@extend .transition;
fill: #fff;
opacity: .8;
}
&:hover svg,
&:focus svg {
opacity: 1;
}
}
2016-01-07 20:15:09 +01:00
//
// Main menu overlaying a dark background image
// in front page hero or page headers
//
2016-01-07 20:15:09 +01:00
.menu--main {
.menu__logo {
@media ($screen-md) {
padding: ($spacer/1.2) 0 ($spacer * 1.5) 0;
}
}
.menu__link {
color: #fff;
opacity: .8;
2016-01-07 20:15:09 +01:00
&:hover,
2016-01-14 12:28:02 +01:00
&:focus,
&.active {
opacity: 1;
}
}
2016-01-07 20:15:09 +01:00
}
//
// Footer Menu
//
2016-01-07 20:15:09 +01:00
.menu--footer {
2016-01-21 12:08:23 +01:00
.menu__logo {
margin-bottom: $spacer;
@media ($screen-md) { margin-bottom: 0 }
}
.logo {
fill: $gray;
opacity: 1;
height: 9px;
}
2016-01-14 16:01:45 +01:00
.menu__link {
@extend .mini;
2016-01-21 12:08:23 +01:00
padding: ($spacer/2);
color: $gray;
// link line
&:after {
background: $link-color;
}
&:first-child { padding-left: 0; }
&:last-child { padding-right: 0; }
&:hover,
&:focus,
&.active { color: $link-color; }
2016-01-14 16:01:45 +01:00
}
2016-01-07 20:15:09 +01:00
}