CartoDB/cartodb20

View on GitHub
assets/stylesheets/sessions/navbar.scss

Summary

Maintainability
Test Coverage
// Navbar
// --------------------------------------------------

@import "_variables";
@import "_mixins";
@import "_helpers";
$text-color: rgba(white, 0.5);

.Navbar {
  @extend %clearfix;
  padding: 20px 0;
  text-align: center;
}

.Navbar--left {
  text-align: left;
}

.Navbar-brand {
  display: flex;
  justify-content: center;
  max-width: 92px;
  height: 48px;
  margin: 0 auto;
  margin-bottom: 40px;

  img {
    height: 100%;
  }
}

.Navbar-menu {
  float: right;
}

.Navbar-menuItem {
  position: relative;
  margin: -20px 0 -20px 20px;
  padding: 20px 0;
  float: left;
  color: #999;

  &:first-child {
    margin-left: 0;
  }

  &.is-selected {
    color: #333;

    &::after {
      content: "";
      display: block;
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 3px;
      background: $cPrincipal;
    }
  }
}

.Navbar-text {
  margin-top: 18px;
  color: $text-color;
  font-size: 16px;
}

.Navbar-textLink {
  color: $text-color;
  text-decoration: underline;

  &:hover {
    color: WHITE;
  }
}

.Navbar-link {
  color: #FFF;
}