Skip to content
Snippets Groups Projects
navBar.scss 2.52 KiB
Newer Older
  • Learn to ignore specific revisions
  • @import 'src/styles/base/color';
    @import 'src/styles/base/breakpoint';
    
    
    .o-sidebar {
    
      background-color: $bottom-bar-grey;
    
      box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2), 0px 3px 14px rgba(0, 0, 0, 0.12),
        0px 8px 10px rgba(0, 0, 0, 0.14);
      border-top: unset;
      border-right: unset;
      position: relative;
    
    }
    .logos-container {
      position: absolute;
      width: 100%;
      bottom: 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      @media #{$tablet} {
        display: none;
      }
    
    HAUTBOIS Aurelie's avatar
    HAUTBOIS Aurelie committed
      img {
        display: inline-block;
        max-width: 100%;
    
    }
    .parameters-logos {
    
    HAUTBOIS Aurelie's avatar
    HAUTBOIS Aurelie committed
      padding: 1.5rem;
    
      display: none;
    
    HAUTBOIS Aurelie's avatar
    HAUTBOIS Aurelie committed
      text-align: center;
    
      @media #{$tablet} {
        display: block;
      }
    
    HAUTBOIS Aurelie's avatar
    HAUTBOIS Aurelie committed
      img {
        display: inline-block;
        width: 90%;
    
    }
    .logo-tiga-parameters {
      display: block;
      width: 100%;
      max-width: 80px;
      margin: auto;
    }
    .logo-grand-lyon-parameters {
      display: block;
      width: 100%;
      max-width: 100px;
      margin: auto;
    }
    
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    .c-nav-item {
      &:hover {
        a,
        svg {
          color: $white !important;
          &.is-active {
            color: $gold;
          }
        }
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
      .c-nav-link {
        color: $white-light;
        padding: 0 1rem;
        font-size: 0.9rem;
        &:visited {
          color: $white-light;
        }
        .c-nav-icon {
          width: 60px;
          height: 36px;
          fill: none;
        }
        .on {
          display: none;
        }
        .off {
          display: block;
        }
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        &.is-active {
          color: $white;
          box-shadow: inset 0.25rem 0 0 0 $gold;
          text-decoration: none;
          svg.c-nav-icon {
            fill: $gold;
            color: $gold !important;
          }
          &:focus-visible {
            box-shadow: inset 0 0 0 1px $grey-bright, inset 0.25rem 0 0 0 $gold;
          }
          .on {
            display: block;
          }
          .off {
            display: none;
          }
        }
    
      }
    }
    
    @media #{$tablet} {
      .o-sidebar {
        height: 56px;
      }
    
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
      .c-nav-item {
        height: 54px;
        margin: -0.3rem 0 0 0;
        .c-nav-link {
          padding: 0;
          .c-nav-icon {
            padding: 0;
            margin: auto;
          }
          &.is-active {
            box-shadow: unset;
            &:focus {
              box-shadow: unset;
            }
          }
    
      }
    }
    
    .nb-notif {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      left: 42px;
      bottom: 22px;
      width: 1.25rem;
      height: 1.25rem;
      color: $dark-light;
      border-radius: 50%;
      border: 1px solid $dark-light;
      z-index: 1;
      background: $blue-radial-gradient;
      font-size: 12px;
      @media #{$tablet} {
        left: 25px;
        bottom: unset;
      }
    }