Skip to content
Snippets Groups Projects
_ecogesture.scss 3.04 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    @import '../base/color';
    @import '../base/breakpoint';
    
    // EcogestureCardContainer
    .ecogesture-root {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    
    Romain CREY's avatar
    Romain CREY committed
      padding: 1rem 1.5rem 2.5rem 1.5rem;
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      .negawatt-button-content{
        width: calc(53rem - 2%);
        margin: 0 1%;
        @media #{$large-phone} {
          width: 97%;
        }
        @media #{$tablet} {
          width: 97%;
        }
      }
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      .ecogesture-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    
    Yoan VALLET's avatar
    Yoan VALLET committed
        width: 53rem;
        @media #{$large-phone} {
          width: 100%;
        }
        @media #{$tablet} {
          width: 100%;
        }
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
        .ecogesture-list-item {
          width: 48%;
    
          height: 8rem;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
          margin: 1% 1%;
        }
        .ecogesture-list-item > button {
          height: 100%;
          overflow: hidden;
        }
      }
    }
    
    // EcogestureCard
    .ec-link {
      color: black;
    }
    .ec {
      display: flex;
    
      justify-content: center;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      width: 100%;
      height: 100%;
      .ec-content {
        display: flex;
        flex-direction: column;
    
        align-items: center;
    
        &.ec-content-unlocked {
          padding: 0.4rem 0;
        }
        &.ec-content-challenge {
    
          padding: 0.5rem 0;
    
        .ec-content-icon{
          min-height: 50px;
        }
    
        .ec-content-short-name {
          display: flex;
          flex: 1;
    
          align-items: center;
    
          text-align: center;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
        }
    
        .ec-content-nwh {
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
          margin-top: 0.25rem;
          color: $text-dark;
        }
      }
    }
    .cp-eg-1 {
    
      height: 8rem;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      width: 100%;
      margin-right: 0.25rem;
      text-align: center;
    }
    .cp-eg-2 {
    
      height: 8rem;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      width: 100%;
      margin-left: 0.25rem;
      text-align: center;
    }
    
    // EcogestureModal
    .em-header {
      color: $text-bright;
      border-bottom: 1px solid rgba(163, 163, 163, 0.4);
      padding-bottom: 1em;
      width: 100%;
      display: flex;
      justify-content: center;
    }
    .em-icon {
      margin-bottom: 1rem;
    }
    .em-title {
      margin-bottom: 0;
    }
    .em-detail {
      display: flex;
      flex-direction: row;
      margin: 0.5em 0;
      .em-detail-nwh {
        display: flex;
        flex: 1;
        align-self: flex-start;
        margin-top: 0.65rem;
        color: var(--textDark);
        .em-detail-nwh-unit {
          margin-left: 0.2rem;
        }
      }
      .em-picto-flow {
        display: flex;
        align-self: flex-end;
        .em-pic-content {
          margin: 0.3em;
        }
      }
    }
    
    .em-content-box {
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      max-height: 25rem;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      overflow: auto;
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      width: 100%;
      display: flex;
      justify-content: center;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      /* width */
      &::-webkit-scrollbar {
        width: 10px;
      }
      /* Track */
      &::-webkit-scrollbar-track {
        background: #3e4045;
      }
      /* Handle */
      &::-webkit-scrollbar-thumb {
        background: #6f7074;
      }
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      .em-content-box-text {
        display: flex;
        flex-direction: column;
    
    Romain CREY's avatar
    Romain CREY committed
        padding: 1.5rem 1.5rem;
    
    Yoan VALLET's avatar
    Yoan VALLET committed
        width: 22.125rem;
        @media #{$large-phone} {
            width: 100%;
        }
    
        .em-content-box-text-header {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
        }
    
    Romain CREY's avatar
    Romain CREY committed
        .em-description {
          padding-bottom: 2.5rem;
        }
    
        .em-description-2 {
          padding-top: 2rem;
        }
        .em-description-3 {
          padding-bottom: 0.5rem;
        }
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
    }