_bookmarks-v1.scss 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
$bookmark-icon: "\f097"; // .fa-bookmark-o
$bookmarked-icon: "\f02e"; // .fa-bookmark

// Rules for placing bookmarks and search button side by side
.wrapper-course-modes {
  border-bottom: 1px solid $gray-l3;
  padding: ($baseline/4);

  > div {
    @include box-sizing(border-box);
    display: inline-block;
  }
}

// Rules for Bookmarks Button
.courseware-bookmarks-button {
  width: flex-grid(5);
  vertical-align: top;

  .bookmarks-list-button {
    @extend %ui-clear-button;

    // set styles
    @extend %btn-pl-default-base;
    @include font-size(13);
    width: 100%;
    padding: ($baseline/4) ($baseline/2);

    &:before {
      content: $bookmarked-icon;
      font-family: FontAwesome;
    }
  }
}

// Rules for bookmark icon shown on each sequence nav item
.course-content {

  .bookmark-icon.bookmarked {
    @include right($baseline / 4);
    top: -3px;
    position: absolute;
  }

  // Rules for bookmark button's different styles
  .bookmark-button-wrapper {
    margin-bottom: ($baseline * 1.5);
  }

  .bookmark-button {

    &:before {
      content: $bookmark-icon;
      font-family: FontAwesome;
    }

    &.bookmarked {
      &:before {
        content: $bookmarked-icon;
      }
    }

  }
}