/* * * * * * * * * * * * * * * * * * * * *
 *
 *  ██████╗ ███╗   ███╗ ██████╗ ███████╗
 * ██╔═══██╗████╗ ████║██╔════╝ ██╔════╝
 * ██║   ██║██╔████╔██║██║  ███╗█████╗
 * ██║   ██║██║╚██╔╝██║██║   ██║██╔══╝
 * ╚██████╔╝██║ ╚═╝ ██║╚██████╔╝██║
 *  ╚═════╝ ╚═╝     ╚═╝ ╚═════╝ ╚═╝
 *
 * @package  : OMGF
 * @author   : Daan van den Bergh
 * @copyright: (c) 2020 Daan van den Bergh
 * @url      : https://daan.dev
 * * * * * * * * * * * * * * * * * * * */

/**
 * Navigation
 */
.omgf-nav {
  padding: 1em 0 1.5em;

  span {
    color: #23282d;
    font-size: 1.3em;
    margin-right: 1.5em;
    font-weight: 600;

    &:hover {
      cursor: pointer;
    }

    &:not(.selected) {
      opacity: 0.85;
    }
  }

  .selected,
  span:hover {
    border-bottom: 1px dashed #23282d;
    padding: 3px 0;
  }

  .dashicons-before:before {
    margin-right: .25em;
  }
}

/**
 * Sections
 */
.settings-column {
  display: inline-block;

  &.left {
    float: left;
    width: 66%;
  }

  &.right {
    float: right;
    width: 21.75%;
  }
}

/**
 * Welcome block
 */
#omgf-welcome-panel {
  padding: 20px 10px 5px;

  h3 > .dashicons {
    line-height: 1.4;
  }
}

/**
 * Generate Stylesheet-form
 */
.omgf-generate-stylesheet {
  table {
    margin-top: .66em;
  }

  .omgf-search-section {
    max-width: 640px;
    margin-top: 1em;

    a {
      &.omgf-apply {
        span:before {
          line-height: 1.4;
          width: 16px;
        }
      }
    }

    caption {
      text-align: left;
      font-size: 1.2em;
      font-weight: 600;
      margin: 0.66em 0 0.33em;
    }

    span {
      &.omgf-apply {
        &.font-styles-search {
          width: 75%;
        }
      }
    }

    #omgf-search {
      line-height: 38px;
      width: 360px;
      padding: 3px 10px;
    }

    #omgf-font-styles {
      .omgf-font-remove {
        cursor: pointer;
        padding: 0 0 0 20px;
        position: relative;
        display: inline-block;

        &:before {
          position: absolute;
          left: 0;
        }
      }

      #font-styles-nav {
        &.sticky {
          background: #f1f1f1;
          box-shadow: 0 1px 1px rgba(0,0,0,0.04);
          width: 565px;
        }
      }
    }
  }

  #omgf-control-panel {
    margin-top: 1em;

    .button-cancel {
      color: #a00;
      text-decoration: none;
      border-color: transparent;
      box-shadow: none;
      background: 0 0;
      border-radius: 3px;
      white-space: nowrap;
      padding: 1px 10px !important;

      &:hover {
        cursor: pointer;
        background: #d54e21;
        color: #fff;
        border-color: #d54e21;
      }
    }
  }
}

/**
 * Loader
 */
.omgf-loading {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;

  .spinner {
    top: 50%;
    left: 50%;
    position: absolute;
    -ms-transform: translate(0, -70%);
    transform: translate(0, -70%);
  }
}

/**
 * Sticky elements.
 */
.sticky {
  position: -webkit-sticky;
  position: sticky;
  overflow: visible;

  &.top {
    top: 25px;
  }

  &.bottom {
    bottom: 0;
  }
}

/**
 * Responsiveness
 */
@media only screen and (max-width: 1024px) {
  .settings-column {
    display: block;
    float: none;

    &.left,
    &.right {
      width: 100%;
    }
  }
}