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

136 lines
2.2 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-02-01 16:37:58 +01:00
padding: $spacer ($spacer / 2);
2016-01-14 16:01:45 +01:00
text-transform: uppercase;
2016-01-30 13:34:11 +01:00
box-shadow: none;
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 {
2016-01-30 13:34:11 +01:00
background: transparent;
// show link line
&:after { transform: scale(1); }
}
2016-01-07 20:15:09 +01:00
}
.menu__logo {
display: block;
margin-top: $spacer;
2016-01-30 13:34:11 +01:00
box-shadow: none;
@media ($screen-md) {
margin-top: 0;
}
2016-01-10 02:11:27 +01:00
svg {
@extend .transition;
opacity: .8;
}
2016-01-30 13:34:11 +01:00
&:hover,
&:focus {
background: transparent;
svg { opacity: 1; }
2016-01-10 02:11:27 +01:00
}
}
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;
2016-01-30 14:28:19 +01:00
&:hover,
&:focus {
.logo { fill: $brand-primary }
}
2016-01-21 12:08:23 +01:00
}
.logo {
2016-01-30 14:28:19 +01:00
fill: $gray-light;
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);
2016-01-30 14:28:19 +01:00
color: $gray-light;
// link line
&:after {
2016-01-30 14:28:19 +01:00
background: $brand-primary;
}
&:first-child { padding-left: 0; }
&:last-child { padding-right: 0; }
&:hover,
&:focus,
2016-01-30 14:28:19 +01:00
&.active { color: $brand-primary; }
2016-01-14 16:01:45 +01:00
}
2016-01-07 20:15:09 +01:00
}