mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-01 15:55:36 +01:00
163 lines
2.7 KiB
SCSS
163 lines
2.7 KiB
SCSS
|
|
.menu {
|
|
position: relative;
|
|
z-index: 10;
|
|
flex: 1;
|
|
|
|
.grid__col {
|
|
text-align: center;
|
|
|
|
@media ($screen-md) {
|
|
text-align: left;
|
|
|
|
&:last-child { text-align: right; }
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu__link {
|
|
@extend .small;
|
|
display: inline-block;
|
|
padding: ($spacer / 2);
|
|
text-transform: uppercase;
|
|
box-shadow: none;
|
|
|
|
@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 {
|
|
background: transparent;
|
|
// show link line
|
|
&:after { transform: scale(1); }
|
|
}
|
|
}
|
|
|
|
.menu__logo {
|
|
display: block;
|
|
margin-top: ($spacer * 2);
|
|
margin-bottom: $spacer;
|
|
box-shadow: none;
|
|
|
|
@media ($screen-md) {
|
|
margin-top: 0;
|
|
}
|
|
|
|
svg {
|
|
@extend .transition;
|
|
opacity: .8;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background: transparent;
|
|
|
|
svg { opacity: 1; }
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Main menu overlaying a dark background image
|
|
// in front page hero or page headers
|
|
//
|
|
.menu--main {
|
|
.menu__logo {
|
|
@media ($screen-md) {
|
|
padding: ($spacer * 1.2) 0 ($spacer * 1.5) 0;
|
|
}
|
|
}
|
|
|
|
.menu__link {
|
|
color: #fff;
|
|
opacity: .8;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&.active {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Footer Menu
|
|
//
|
|
.menu--footer {
|
|
.grid__col {
|
|
&:nth-child(2) {
|
|
margin-top: $spacer;
|
|
|
|
@media ($screen-sm) {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu__logo {
|
|
margin-top: ($spacer / 3);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.menu__link {
|
|
padding: ($spacer/3);
|
|
color: $gray-light;
|
|
|
|
@media ($screen-sm) {
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
|
|
// hide link line
|
|
&:after { display: none; }
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&.active { color: $brand-primary; }
|
|
}
|
|
}
|
|
|
|
|
|
.footer__copyright {
|
|
border-top: 1px solid $gray-dark;
|
|
text-align: center;
|
|
display: block;
|
|
margin-top: ($spacer * 4);
|
|
|
|
@media ($screen-sm) {
|
|
text-align: left;
|
|
}
|
|
|
|
.menu__link {
|
|
display: inline-block;
|
|
text-transform: none;
|
|
padding: ($spacer * 2) ($spacer/2);
|
|
|
|
&:first-child { margin-left: ($spacer/2); }
|
|
&:last-child { padding-right: 0; }
|
|
}
|
|
|
|
&,
|
|
.menu__link {
|
|
@extend .mini;
|
|
color: $gray;
|
|
}
|
|
}
|