nav.less 2.14 KB
.nav {
  width: 100%;
  height: 112px;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  .navbar-toggle {
    display: none;
  }
  .nav-bg {
    left: 0;
    top: 0;
    background: #373c43;
    position: fixed;
    opacity: 0;
    width: 100%;
    height: 112px;
  }
  .row {
    position: relative;
  }
  .logo {
    position: absolute;
    left: 128px;
    top: 29px;
    background: url(./img/logo.png) no-repeat;
    padding-left: 76px;
    height: 54px;
    font: 24px/54px 'LiHei Pro';
    color: #fff;
  }

  ul {
    top: 29px;
    right: 128px;
    position: absolute;
    li {
      float: left;
      margin-left: 60px;
      a {
        color: #fff;
        text-decoration: none;
      }
      font: 18px/54px 'LiHei Pro';
      .nav-home {
        color: #fff;
      }
    }
    .current {
      a {
        color: #f6a623;
      }
    }
  }
}

.bd-home-wp .nav-home,
.bd-about-wp .nav-about,
.bd-course-wp .nav-course,
.bd-news-wp .nav-news,
.bd-contact-wp .nav-contact,
.bd-case-wp .nav-case {
  color: #f6a623 !important;
}

@media only screen and (max-width: 767px) {
  .nav {
    height: 48px;
    z-index: 10;
    left: 0;
    top: 0;
    background: #373c43;
    .layout-row {
      position: relative;
    }
    .navbar-toggle {
      display: block;
      position: absolute;
      right: 0;
      top: 0;
    }
    .navbar-toggle .icon-bar {
      background: #fff;
    }
    .nav-bg {
      height: 48px;
      display: none;
    }
    .logo {
      display: none;
    }

    ul {
      position: static;
      text-align: center;
      transition: height .1s;
      -webkit-transition: height .1s;
      li {
        display: none;
        float: none;
        margin-left: 0;
        font: 18px/48px 'LiHei Pro';
        border-top: 1px solid #5d6069;
        background: #373c43;
      }
      .current {
        display: block;
        a {
          color: #fff;
        }
      }
    }

    ul.on-active {
      li {
        display: block;
      }
      .current {
        a {
          color: #f6a623;
        }
      }
    }
  }
}

@media only screen and (max-width: 900px) {
  .nav .logo {
    left: 30px;
  }

  .nav ul {
    right: 30px;
  }
}