navbar.scss 3.37 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
.nav-wrapper {
  .navbar-toggler {
    border: 2px solid #f15a26;
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    }
  }
   .navbar-collapse { 
     height: auto;
      .navbar-nav {
        padding-bottom: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
         li a.active {
              &::after{
                   border-width: 0px;
              }
         }
         a {
          &:hover:after { 
            border-width: 0px;
          }
         }
         
      }
   }
}

.nav-wrapper {
  position: relative;
  background-color: #fff;
  .navbar {
    margin-top: 10px;
    padding-top: 0;
 
    .navbar-brand {
      padding-top: 0;
      padding-bottom: 0;
    }
  }
  .navbar-collapse {
   min-height: 80px;
  .navbar-nav {
    padding-bottom: 0px;

    li {
      float: none;
      display: block;
      line-height: 24px;
      margin: 0;
      padding: 0;
    }
    li a.active {
      color: #fff;
      font-weight: bold;
      text-shadow: 0 1px 0 rgba(0,0,0,0.5);
      background: #f15a23;
     // box-shadow: inset 0 3px 5px rgba(0,0,0,0.4);
      &::after{
           // border-left: 10px solid transparent;
           // border-right: 10px solid transparent;
           // border-top: 7px solid #f15a23;
           // content: "";
           // display: block;
           // height: 0;
           // margin: 0px auto 0 auto;
           // width: 0;
      }
    }
    a {
        display: block;
        padding: 0px 21px;
        color: #000;
        text-decoration: none;
        font-weight: bold;
//        text-transform: uppercase;
        font-size: 12px;
        height: 46px;
        line-height: 46px;
          &:hover {
          background: #ddd;
         // box-shadow: inset 0 3px 5px rgba(0,0,0,0.4);
          }
          &:hover:after {
          //  border-left: 10px solid transparent;
          //  border-right: 10px solid transparent;
          //  border-top: 7px solid #ddd;
          //  content: "";
          //  display: block;
          //  height: 0;
          //  margin: 0px auto 0 auto;
           // width: 0;
          }
        }
       }
  }
 }



@include media-breakpoint-up(md) {
.nav-wrapper {
  .navbar {
    padding-bottom: 0;    
  }
   .navbar-collapse { 
     height: 46px;
      .navbar-nav {
        margin-top: 0px;
        margin-bottom: 0px;
         li a.active {
          box-shadow: inset 0 3px 5px rgba(0,0,0,0.4);
              &::after{
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 7px solid #f15a23;
            content: "";
            display: block;
            height: 0;
            margin: 0px auto 0 auto;
            width: 0;
              }
        }
        
        a {
          &:hover {
             box-shadow: inset 0 3px 5px rgba(0,0,0,0.4);
          }
          &:hover:after {
             border-left: 10px solid transparent;
             border-right: 10px solid transparent;
             border-top: 7px solid #ddd;
             content: "";
             display: block;
             height: 0;
             margin: 0px auto 0 auto;
             width: 0;
          }
        }
  
      }
   }
}
}