@import "ui-variables";
@import "variables";

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-user-select: none;
  cursor: default;
  overflow: auto;
  text-align: center;
  font-size: 1.25em;
  line-height: 1.4;
  padding: 4em;
  color: @text-color;
  background-color: @base-background-color;

  button {
    cursor: default;
  }

  a:focus {
    // Don't use Bootstrap default here
    color: inherit;
  }

  img, a {
    -webkit-user-drag: none;
  }

  // used to group different elements
  .group-start {
    margin-top: 4em;
  }
  .group-item {
    margin-top: 1.5em;
  }
}

.about-container {
  width: 100%;
  max-width: 500px;
}


// Header --------------------------------

.about-atom-io:hover {
  .about-logo {
    color: @atom-green;
  }
}

.about-logo {
  display: block;
  width: 100%;
  max-width: 100px;
  margin: 0 auto 1em auto;
  color: @text-color-highlight;
  transition: ease-in-out 1s;
}

.about-logo:hover {
  transform: rotate(30deg);
}

.about-logo-div {
  display: inline-block;
}

.about-logo-text {
  color: white;
  font-size: xx-large;
}

.about-version-container {
  &:hover {
    color: lighten(@text-color, 15%);
  }
  &:active {
    color: lighten(@text-color, 30%);
  }
}

.about-version {
  margin-right: .5em;
  font-size: 1.25em;
  vertical-align: middle;
}

.about-header-release-notes {
  vertical-align: middle;
  margin-left: 1em;
}


// Updates --------------------------------

.about-updates-box {
  display: flex;
  align-items: center;
  padding: @component-padding;
  border: 1px solid @base-border-color;
  border-radius: @component-border-radius * 2;
  background-color: @background-color-highlight;
}

.about-updates-status {
  flex: 1;
  margin-left: .5em;
  text-align: left;
}

.about-updates-item,
.about-default-update-message .about-updates-label {
  display: block;
}

.about-updates-label {
  color: @text-color-subtle;
  &.is-strong {
    color: @text-color;
  }
}

.about-updates-version {
  margin: 0 .4em;
}

.about-updates-release-notes {
  margin: 0 1em 0 1.5em;
}

.about-auto-updates {
  margin-top: 1em;
  input {
    margin-right: .5em;
  }
}


// Love --------------------------------

.about-love {
  .icon::before {
    // Make these octicons look good inlined with text
    position: relative;
    top: 1px;
    width: auto;
    margin-right: 0;
    font-size: 1.5em;
  }

  .icon-logo-github::before {
    // This Octicon has a lot of extra whitespace at the bottom, so it needs
    // to be moved down more to compensate.
    // See https://github.com/github/octicons/issues/59
    top: 3px;
  }
}

.about-credits {
  color: @text-color-subtle;
}


// the blue squirrel --------------------------------

.about-release-notes {
  color: @background-color-info;
  &:hover {
    color: lighten(@background-color-info, 15%);
  }
}
