tabs.less 2.62 KB
Newer Older
Felipe Escala Torres committed
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
// CORE
@import "../../../global/less/core/variable.less";
@import "../../../global/less/core/mixins.less";
@import "../../../global/less/core/functions.less";

/* ========================================================================
 * TABS
 * ======================================================================== */
.nav-tabs{
  .nav-border{
    position: relative;
    &:first-child{
      &.active{
        &:after{
          left: 0;
        }
      }
    }
    &.active{
      &:after{
        content: "";
        display: block;
        position: absolute;
      }
    }
  }
  .nav-border-top(danger, @color-danger);
  .nav-border-top(primary, @color-primary);
  .nav-border-top(success, @color-success);
  .nav-border-top(info, @color-info);
  .nav-border-top(warning, @color-warning);
  .nav-border-top(lilac, @color-lilac);
  .nav-border-top(inverse, @color-inverse);
  .nav-border-top-teal{
    &.active{
      &:after{
        border: 2px solid @color-teal;
        top: 0;
        left: -1px;
        right: 0;
      }
    }
  }

  .nav-border-left(danger, @color-danger);
  .nav-border-left(primary, @color-primary);
  .nav-border-left(success, @color-success);
  .nav-border-left(info, @color-info);
  .nav-border-left(warning, @color-warning);
  .nav-border-left(lilac, @color-lilac);
  .nav-border-left(inverse, @color-inverse);
  .nav-border-left-teal{
    &.active{
      &:after{
        border: 2px solid @color-teal;
        top: 0;
        bottom: 0;
        left: 0;
      }
    }
  }


  &.nav-justified{
    width: 100%;
    border-bottom: 0;
    > li{
      > a{
        padding: 15px;
        background-color: @gray;
        color: darken(@gray,25%);;
        border: 0;
        .border-radius(0px);
      }
      &:last-child{
        > a{
          border-top-right-radius: 3px;
        }
      }
    }
    > .active{
      > a{
        color: #333;
        background-color: #FBFBFB;
        border: 0;
        border-color: #FFF;
        border-bottom-color: #FCFCFC;
        .border-radius-top(3px);
        &:hover, &:focus{
          border: 0;
          border-color: #FFF;
          border-bottom-color: #FCFCFC;
          background-color: #FBFBFB;
        }
      }
    }
  }
}

.tab-content{
  background-color: #FBFBFB;
  padding: 15px;
  -moz-box-shadow: 0 3px 0 rgba(12,12,12,0.03);
  -webkit-box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
  box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
  -moz-border-radius: 0 0 3px 3px;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
}

@media (max-width: 800px) {
  .panel{
    .nav-tabs{
      li{
        a{
          border-right: none !important;
        }
      }
    }
  }
}