main.scss 1.96 KB
@import './shared.scss';

.main-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;

  @media screen and (max-width: $medium_tablet_width) {
    display: block;
  }

  .main-card {
    width: 47%;
    height: 48%;

    border-radius: $border_radius;

    @media screen and (max-width: $medium_tablet_width) {
      width: 100%;
      height: 300px;
      margin-bottom: 12px;
    }

    @media screen and (max-width: $large_smart_phone_width) {
      height: 240px;
    }

    @media screen and (max-width: $medium_smart_phone_width) {
      height: 220px;
    }

    .ant-card-body {
      height: calc(100% - 58px);

      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: stretch;

      padding: 18px;

      .card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: $border_radius;
        padding: 5px 18px;
        height: 45px;

        @media screen and (max-width: $medium_tablet_width) {
          &:nth-child(4),
          &:nth-child(5) {
            display: none;
          }
        }

        &.has-content {
          transition: background-color 0.3s;
          padding: 2px 12px;

          &:hover {
            background-color: rgba(26, 144, 255, 0.2);
            transition: background-color 0.3s;
          }
        }

        .card-row-title {
          margin: 0;
          font-size: 17px;
          font-weight: 400;

          @media screen and (max-width: $large_smart_phone_width) {
            font-size: 14px;
          }
        }

        .card-row-recomment {
          color: $red;
          font-weight: 600;
          margin-left: 16px;

          @media screen and (max-width: $large_smart_phone_width) {
            font-size: 13px;
          }

          @media screen and (max-width: $medium_smart_phone_width) {
            display: none;
          }
        }
      }
    }
  }
}