@use '~@automattic/color-studio/dist/color-variables' as *;
@use '../../../scss/variables' as *;

.about {
  .dialog {
    position: relative;
    max-width: 472px;
    max-height: calc(100vh - 2rem);

    // For overriding theme settings.
    // TODO: Improve theme management so this isn't neccessary

    --accent-color: #3361cc; // $studio-simplenote-blue-50
    --background-color: #fff; // $studio-white

    background: var(--accent-color) !important;
    color: var(--background-color) !important;

    a {
      color: var(--background-color);
    }
  }

  .dialog-content {
    padding: 30px 20px 20px;
    max-height: calc(100vh - 2rem - 70px);
  }

  a {
    color: var(--background-color);
    text-decoration: none;
  }
}

.about-top {
  margin-bottom: 20px;
  text-align: center;

  svg {
    display: block;
    margin: 0 auto 10px;
  }

  h1 {
    margin: 0;
    line-height: 1.25em;
    font-weight: $light;
  }

  small {
    font-size: 90%;
  }
}

.about-links {
  width: 100%; // IE11
  max-width: 315px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  line-height: normal;

  li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #{rgba($studio-white, 0.2)};

    &:first-child {
      border-top: 1px solid #{rgba($studio-white, 0.25)};
    }
  }

  a {
    display: block;
    width: 100%;
    padding: 10px 2px;
    font-weight: 300;
  }
}

.about-links-title {
  font-size: 143%;
  font-weight: $light;
}

.about-bottom {
  margin-top: 50px;
  font-size: 90%;
  text-align: center;

  p {
    margin: 0.25em 0;
  }
}

.about .about-done {
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px;
  border: 0;

  & svg,
  &:active svg {
    fill: var(--background-color);
  }
}
