hummingbird-me/hummingbird

View on GitHub
app/assets/stylesheets/partials/onboarding.css.scss

Summary

Maintainability
Test Coverage
// Global Onboarding
.onboarding-nav {
  display: block !important;
  .navbar-header {
    @media (max-width: 800px) {
      float: left;
    }
  }
  .container {
    width: 800px;
    padding: 0;
    @media (max-width: 800px) {
      width: 100%;
      padding: 0 10px;
    }
  }
  .nav-steps {
    float: right;
    @media (max-width: 800px) {
      padding-right: 15px;
    }
    h5 {
      color: #fff;
      margin: 0;
      font-weight: 300;
      line-height: 50px;
    }
  }
}

.onboarding-card {
  @extend .animated;
  @extend .fadeInUp;
  animation-delay: .5s;
  width: 800px;
  margin: 100px auto 30px auto;
  @media (max-width: 800px) {
    width: 100%;
    padding: 0 10px;
  }
  .panel {
    overflow: hidden;
    margin-bottom: 0;
  }
}

.onboarding-footer {
  @extend .animated;
  @extend .fadeInDown;
  animation-delay: 3s;
  width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  color: #5A5656;
  z-index: -1;
  @media (max-width: 800px) {
    width: 100%;
  }
  .facebook-button {
    display: inline-block;
    margin-left: 10px;
  }
  .tweet-button {
    display: inline-block;
    position: relative;
    top: 5px;
    margin-left: 5px;
  }
}

.onboarding-panel {
  padding: 10px;
}

.step-instructions {
  p {
    font-size: 20px;
  }
}

.panel-header {
  @extend .clearfix;
  margin-bottom: 30px;
}

.continue-button {
  float: right;
  padding: 15px 30px;
  min-width: 240px;
  background: #16A086;
  border: none;
  margin-top: 20px;
  border-radius: 2px;
  &.no-continue {
    background: #888A89;
    opacity: 1;
    &:hover {
      cursor: not-allowed;
      background: #888A89;
    }
  }
  &.small-continue {
    float: left;
    padding: 10px 30px;
    min-width: 100px;
    margin-top: 10px;
    margin-bottom: 15px;
  }
}

.import-panel {
  width: 100%;
  background: #eee;
  border-radius: 3px;
  padding: 10px;
  @media (max-width: 768px) {
    display: none;
  }
  .import-help {
    float: right;
    color: #8E8E8E;
  }
}


// Step 1 - Start
.start-wrapper {
  padding-left: 35px;
  padding-right: 0;
  margin-top: 20px;
  @media (max-width: 800px) {
    padding: 0 20px;
  }
}
.moe-wrapper {
  position: relative;
  bottom: -15px;
  @media (max-width: 800px) {
    display: none;
  }
  .onboarding-moe {
    @extend .animated;
    @extend .fadeInRight;
    animation-delay: 1s;
    width: 100%;
    position: relative;
    z-index: 1;
  }
  .onboarding-moe-bg {
    @extend .animated;
    @extend .fadeIn;
    animation-delay: 2s;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
  }
}

// Step 2 - Rating

.rating-wrapper {
  @extend .clearfix;
  text-align: center;
  margin-bottom: 20px;
  .saving {
    opacity: 0.5;
  }
  .simple-rating, .advanced-rating {
    background: none;
    border: 2px dashed #ddd;
    border-radius: 3px;
    padding: 10px;
    min-width: 45%;
    min-height: 95px;
    font-size: 45px;
    color: #A0A0A0;
    transition: .2s ease-in;
    @media (max-width: 800px) {
      width: 100%;
    }
    &:hover {
      color: #514C4C;
    }
    &.active {
      color: #e67e22;
      border: 2px solid #e67e22;
      cursor: default;
    }
    &:focus {
      outline: 0;
    }

  }
  .simple-rating {
    @extend .animated;
    @extend .fadeInLeft;
    float: left;
    @media (max-width: 800px) {
      margin-bottom: 20px;
    }
  }

  .rating-divider {
    @extend .animated;
    @extend .bounceInDown;
    animation-delay: .2s;
    font-size: 25px;
    color: #ADA9A9;
    position: relative;
    top: 25px;
    @media (max-width: 800px) {
      display: none;
    }
  }

  .advanced-rating {
    @extend .animated;
    @extend .fadeInRight;
    animation-delay: .5s;
    float: right;
    min-height: 95px;
    font-size: 45px;
  }
}
// Step 3 - Categories
.genre-panel-wrapper {
  @extend .clearfix;
  padding: 0 10px;
}
.genre-panel {
  @extend .col-sm-4;
  @extend .col-xs-3;
  padding: 5px;
  float: left !important;
  @media (max-width: 515px) {
    width: 33.3%;
  }
  @media (max-width: 400px) {
    width: 50%;
  }
  @media (max-width: 360px) {
    width: 100%;
  }
}

.genre {
  padding: 8px;
  background-color: #fafafa;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  border: 1px dashed #ddd;
  color: #A3A3A3;
  transition: .2s ease-in;
  &:hover {
    border: 1px dashed darken(#ddd, 15);
    color: darken(#818181, 10);
    background: #F7F7F7;
  }
  &.active {
    background-color: RGBA(243, 156, 18, .1);
    border: 1px solid #e67e22;
    color: #e67e22;
  }
}

// Step 4 - Library
.library-thumbs {
  @include block-grid(4);
  @extend .clearfix;
  .block-grid-item {
    padding: 10px 15px;
    text-align: center;
    @media(max-width: 660px) {
      width: 33.3%;
    }
    @media (max-width: 460px) {
      width: 50%;
    }
  }
  .thumbnail {
    padding: 0;
    border: none;
    margin-bottom: 5px;
    img {
      border-radius: 3px;
    }
  }
  .library-title {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0 5px;
    margin-bottom: 0;
    display: block;
  }
  .awesome-rating-widget {
    font-size: 24px;
    color: #A3A4A9;
    i.simple {
      padding: 0 5px;
      &.active {
        color: $darkOrange;
      }
      &:hover {
        color: black;
      }
    }
  }
}

.library-tab-wrapper {
  padding-left: 10px;
  z-index: 1;
}

.library-tabs {
  @extend .clearfix;
  
  li {
    padding-right: 10px;
  }
  .anime-tab, .manga-tab {
    display: inline-block;
    padding: 6px 18px;
    margin: 0 5px 7px 0;
    outline: 0;
    vertical-align: middle;
    &.active {
      -webkit-border-radius: 24px;
      border-radius: 24px;
      background: #f2f2f2;
      color: #333;
      text-decoration: none;
    }

  }
}
.search-wrapper {
  .fa-search {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 13px;
    color: #B5B4B4;
  }
}
.search-section {
  padding-right: 10px;
  z-index: 1;
}
.library-search-widget {
  border-radius: 3px;
  box-shadow: none;
  border: 1px solid #ddd;
  padding: 5px;
  width: 100%;
  text-indent: 25px;
  &:focus {
    border: 1px solid #ddd;
  }
}

// Step 5 - Finish
.featured-user-wrapper {
  @extend .clearfix;
  padding: 0 5px;
  .follow-panel-wrapper {
    width: 33.3333%;
    float: left;
    @media (max-width: 620px) {
      width: 50%;
    }
    @media (max-width: 415px) {
      width: 100%;
    }
    .follow-panel {
      box-shadow: none;
      border: 1px solid #EFEFEF;
    }
  }
}