Skip to content
Snippets Groups Projects
challengeCardOnGoing.scss 3.13 KiB
Newer Older
  • Learn to ignore specific revisions
  • @import '../../styles/base/typo-variables';
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    @import '../../styles/base/color';
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    .cardContent {
    
      background: transparent;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      &.onGoing {
        border: 1px solid #e0e0e0;
    
        background: inherit !important;
    
        .challengeTitle {
          margin-top: 0;
        }
    
      display: flex;
      flex-direction: column;
      justify-content: center;
    
      gap: 1rem;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    }
    .titleBlock {
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
    
      top: -1.5rem;
    
      width: fit-content;
      padding: 0 1rem;
      max-width: 235px;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    }
    .smallCard {
    
      display: flex;
      align-items: center;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      border: none;
      width: 100%;
    
      background: $grey-linear-gradient-background;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      height: 24%;
    
      max-height: 90px;
    
      padding: 1rem;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.55);
      border-radius: 4px;
      color: $grey-bright;
      box-sizing: border-box;
      font-family: $text-font;
    
      transition: all 300ms ease;
    
    
      @media all and(max-height: 800px) {
        max-height: 85px;
    
      }
      @media all and(max-height: 730px) {
    
        max-height: 70px;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      &.finished {
        border: 1px solid #7b7b7b;
    
        background: $dark-2;
        & > * {
          color: $grey-dark;
        }
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      &:hover {
        cursor: pointer;
      }
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      .content {
        display: flex;
        flex-direction: column;
        align-self: center;
        justify-content: space-between;
    
        align-items: flex-start;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        span {
          margin-bottom: 0.3em;
        }
      }
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      .spinner-container {
        height: 3.75rem;
        width: 3.75rem;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        margin: auto;
      }
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      .cardIcon {
    
        margin-right: 1rem;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      }
      span {
    
        font-size: 1.1rem;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        font-weight: 700;
        display: block;
    
        margin-bottom: 0.6rem;
    
        @media all and(max-height: 700px) {
    
          margin-bottom: 0.1rem;
          font-size: 1rem;
    
      .challengeminIcon {
    
        filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.55));
      }
    
      .duelLocked {
        margin-left: auto;
    
      }
      .starCount {
        display: flex;
        align-items: center;
    
        margin: 0;
    
        .blueNumber {
    
          font-weight: 900;
    
          color: $blue-light;
          margin: 0 0.3rem 0 0.7rem;
    
      .finalDuel {
        display: flex;
        flex-direction: column;
        .starCount {
          span {
            font-size: 1rem;
            font-weight: 500;
          }
          .blueNumber {
            margin-left: 0;
          }
        }
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        &.result {
          span {
            margin-bottom: 0.2rem;
            font-weight: 600;
            font-size: 1rem;
          }
        }
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    .duelCard {
    
      background: $dark-3;
      border: solid 1px rgba(97, 240, 242, 0.5);
      align-items: center;
      justify-content: space-between;
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      position: relative;
    
      &.active {
        background: $grey-linear-gradient-background;
      }
    
    .explorationCard,
    .actionCard {
    
      position: relative;
    }
    
    .goDuel {
      align-items: center;
      justify-content: space-between;
      height: auto;
      background: $blue-gradient;
      color: $dark-light-2;
      font-weight: 700;
      font-family: $text-font;
    }
    
    .notifChallenge {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      right: 4px;
      top: 4px;
      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;
    }