_header.scss 6.61 KB

  @media screen and (max-width: 460px){
    .logo{
      width: 80%;
    display: block;
      img{
        max-width: 100%;
      }

  }
}
.main-pg-header {
  padding-top: 40px;
  position: relative;
  @media screen and (max-width: 980px){
    padding-top: 20px;
  }
  a:hover {
    text-decoration: none;
  }
  .ubout-us {
    display: inline-block;
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    padding-top: 25px;
    position: relative;
    background: transparent;
    border: none;
    color: #2572a6;
    @media screen and (max-width: 980px){
      margin: 20px 0;
    }
    &:before {
      width: 100%;
      height: 25px;
      top: 0;
      left: 0;
      content: "";
      position: absolute;
      background: url("../img/about.png") top center no-repeat;
    }
  }

  .language {
    display: inline-block;
    vertical-align: top;
    height: 30px;
    width: 65px;
    line-height: 27px;
    border-radius: 15px;
    margin-left: 10px;
    position: relative;
    border: 2px solid $brand-primary;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffd304;
    background-repeat: no-repeat;
    &.ua {
      padding-left: 25px;
      background-position: 7% center;
      text-align: left;
    }
    &.en {
      padding-right: 25px;
      background-position: 93% center;
      text-align: right;
    }
  }
  .authorization-btn {
    text-transform: uppercase;
    margin-top: 23px;
    display: inline-block;
    color: $link-color;
    background: transparent;
    border: none;
  }
}

.navbar-brand {
  padding: 10px 30px 10px 15px;
  margin-right: 2%;
  img {
    max-height: 100%;
  }
}
.top-nav{
  min-height: 46px;
  padding: 8px 0 5px;
  background: #2572a6;
  .language {
    display: inline-block;
    vertical-align: top;
    height: 30px;
    width: 65px;
    line-height: 27px;
    border-radius: 15px;
    margin-left: 10px;
    position: relative;
    border: 2px solid #358ccb;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: #95d7e0;
    background-repeat: no-repeat;
    &.ua {
      padding-left: 25px;
      background-position: 7% center;
      text-align: left;
    }
    &.en {
      padding-right: 25px;
      background-position: 93% center;
      text-align: right;
    }
  }
  .social-btn-container{
    transform: translateY(12%);
    display: inline-block;
    margin-left: 5%;
  }

}
header{
  .header-mail-link{
    color: #ffdc48;
    text-decoration: none;
    position: relative;
    line-height: 29px;
    padding-left: 30px;
    &:before{
      content: "";
      width: 25px;
      height: 25px;
      left: 0;
      top: -5px;
      position: absolute;
      background: url("../img/message.png") center no-repeat;
    }
  }
  .social-btn {
    display: inline-block;
    margin: 0 10px;
    width: 35px;
    height: 30px;
    &.facebook {
      background: url("../img/fa-facebook.png") top center no-repeat;
    }
    &.twitter {
      background: url("../img/fa-twitter.png") top center no-repeat;
    }
  }
  .social-btn-sm {
    display: inline-block;
    margin: 0 10px;
    width: 25px;
    height: 20px;
    &.facebook {
      background: url("../img/fa-facebook-sm.png") bottom center no-repeat;
    }
    &.twitter {
      background: url("../img/fa-twitter-sm.png") bottom center no-repeat;
    }
    &.youtube {
      background: url("../img/youtube.png") bottom center no-repeat;
    }
  }
}
.caret-down{
  display: inline-block;
  margin: 0 10px;
  width: 15px;
  height: 10px;
  background: url("../img/down-arrow.png")center no-repeat;
  transition: transform .5s;
  &.arrow-up{
    transform: rotate(180deg);
    transition: transform .5s;
  }
}
.dropdown-map{
  position: relative;
  .dropdown-trigger{
    display: inline-block;
    min-height: 30px;
    line-height: 30px;
    color: #ffd304;
    cursor: pointer;
    @media screen and (max-width: 980px){
      width: 100%;
      border-radius: 25px;
      border: 1px solid #9edbe3;
      padding: 0 15px 0 25px;
    }
  }
  .caret-down{
    @media screen and (max-width: 980px) {
      position: absolute;
      right: 5px;
      top: 12px;
    }
  }
  .dropdown-list{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    z-index: 100;
    box-shadow: 0 0 0 3px #fff, 0 0 20px 1px rgba(15,71,117,.59);
  }
  ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
  }
  a {
    text-align: left;
    display: block;
    color: $link-color;
    background: #fff;
    padding: 10px 10px;
  }
}
.second-dropdown-list{
  list-style-type: none;
}
.arrow-right{
  transform: rotate(-90deg);
  transition: transform .3s;
}
@media (max-width: 980px) {
  .nav .active {
    color: #ffb521;
  }
  .second-dropdown-list{
    padding: 0 20px 20px 40px;
    display: none;
  }
}
@media (min-width: 980px){
  .navbar-nav{
    padding-top: 15px;
    padding-bottom: 15px;
    &>li>a {
      padding-top: 5px;
      padding-bottom: 5px;
    }
    .active a{
      border-radius: 15px;
    }
    &>li .second-dropdown-list{
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 250px;
      padding: 20px 30px;
      background: #fff;
      z-index: 100;
      box-shadow: 0 0 0 3px #fff, 0 0 20px 1px rgba(15,71,117,.59);
        margin: 0 0 20px 0;

      a {
        text-align: left;
        display: block;
        color: #787a7a;
        background: #fff;
        padding: 10px 10px;
      }
      .active a{
        color: #2572a6;

      }
    }
    &>li:hover .second-dropdown-list{
      display: block;
    }
  }
}
.nav a.add-project-btn{
  padding: 3px 15px;
  text-transform: uppercase;
  border-radius: 15px;
  border: solid 2px #ffef82;
  text-align: center;
  color: #2572a6;
}

.logged-user-header, .un-logged-user-header{
  .language{
    margin-left: 0;
  }
}
.registration-link{
  color: #ffdc48;
  line-height: 29px;
  border: none;
  background: transparent;
  position: relative;
  padding-left: 30px;
  &:before{
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 25px;
    height: 20px;
    background: url("../img/id-card.png");
  }

}
@media screen and (min-width: 981px){
  .hide-on-lg{
    display: none;
  }
}

@media screen and (max-width: 980px){
  .hide-on-med-and-down{
    display: none;
  }

}
.burger{
  width: 40px;
  height: 40px;
  margin-left: 5px;
  display: block;
  padding: 8px;
  position: absolute;
  right: 20px;
  top: 10%;
  background: transparent;
  border: none;
  .icon-bar{
    width: 22px;
    height: 3px;
    background-color: #2572a6;
    border-radius: 1px;
    display: block;
    margin: 4px auto;
  }
  @media screen and (min-width: 981px){
    display: none;
  }
}