@charset "UTF-8";
@import '@craftcms/sass/mixins';

#content {
  #graphic {
    display: flex;
    margin-block: 200px 0;
    margin-inline: auto;
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center center;

    &.success {
      background-image: url('images/success.png');
    }

    &.error {
      background-image: url('images/error.png');
    }
  }

  #status {
    margin-block: 20px 250px;
    margin-inline: auto;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    color: var(--gray-500);
  }

  .update {
    & + .update {
      margin-block-start: 24px;
    }

    .update-header {
      display: flex;
      align-items: center;
      padding-block-end: 10px;
      border-block-end: 1px solid var(--border-hairline);
      margin-block-end: 16px;

      .readable {
        flex-grow: 1;
        margin: 0;
      }

      .buttons {
        margin: 0;
      }
    }

    blockquote.ineligible::before {
      content: 'ban';
    }

    .releases {
      position: relative;

      .release {
        padding: 0;

        .release-info {
          display: flex;
          margin: 0;
          padding-block: 20px;
          padding-inline: 24px;
          border-radius: var(--radius-lg);

          &.fieldtoggle {
            padding-inline-start: 44px;

            &::before {
              @include left(20px);
              inset-block-start: 29px;
              border-color: var(--fg-subtle);
            }
          }

          h2 {
            margin: 0;
            line-height: 24px;
          }
        }

        .release-notes {
          // Keep this LTR since the actual release notes are only LTR
          direction: ltr;
          padding-block: 0 20px;
          padding-inline: 24px;
        }
      }

      .release--critical {
        .release-info {
          color: var(--red-600);
        }

        .release-badge {
          display: inline-block;
          vertical-align: text-bottom;
          margin-inline-start: 7px;
          border-radius: 3px;
          padding-block: 0;
          padding-inline: 5px;
          font-size: 14px;
          line-height: 24px;
          color: var(--white);
          font-weight: normal;
          background: var(--red-500);
          text-transform: uppercase;
        }
      }
    }

    .release-heading,
    .release-date {
      font-size: 24px;
      line-height: 24px;
    }

    .release-heading {
      margin: 0;
    }

    .release-date {
      flex-grow: 1;
      margin-inline-start: 14px;
      color: var(--light-text-color);
    }
  }
}

@media only screen and (resolution >= 1.5dppx) {
  #content {
    #graphic {
      &.success {
        background-image: url('images/success_2x.png');
        background-size: 48px;
      }

      &.error {
        background-image: url('images/error_2x.png');
        background-size: 48px;
      }
    }
  }
}
