<commit_before>@import "./mixins/flexbox";

.no-select() {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.fixed-bar() {
  left: 0;
  position: fixed;
  width: 100%;
  z-index: 2;
}

.tutor-background-image(@img) { background-image:url("@{img}"); }

.tutor-shadow(1) {
  box-shadow:
    0 1px 6px 0 rgba(0, 0, 0, 0.12),
    0 1px  6px 0 rgba(0, 0, 0, 0.12);
}

.tutor-shadow(2) {
  box-shadow:
    0 8px 17px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.tutor-framed-video(@iframe-width:  @tutor-video-iframe-width,
                    @iframe-height: @tutor-video-iframe-height,
                    @iframe-shadow-size: 0px){
  position: relative;
  width:  @iframe-width  + @iframe-shadow-size * 2;
  height: @iframe-height + @iframe-shadow-size * 2;
  margin: auto;
  padding: 0;
  box-shadow: 0 @iframe-shadow-size @iframe-shadow-size 0 @tutor-neutral-dark inset;
  iframe {
    position: absolute;
    top:    @iframe-shadow-size;
    left:   @iframe-shadow-size;
    width:  @iframe-width;
    height: @iframe-height;
  }
}

.tutor-completed-message() {
  text-align: center;
  min-height: 300px;
  .flex-display();
  .flex-direction(column);
  .align-items(center);
  .justify-content(center);
  h1 {
    #fonts > .sans(4.5rem);
    font-weight: 700;
  }
  h3 {
    #fonts > .sans(4rem);
    font-weight: 700;
  }
}

.tutor-nav-tabs() {
  background: none;
  li {
    text-align: center;
    background: @tutor-neutral-lighter;

    .transition(background 0.2s);

    a {
      font-weight: 400;
      color: @tutor-neutral !important;
    }

    &:hover {
      background: @tutor-neutral-lightest;
    }

    &.active {
      background: @tutor-white;
      a {
        font-weight: 900;
        color: @tutor-neutral-darker !important;
      }
    }
  }
}

.tutor-exercise-question-uid() {
  color: @exercise-question-uid-color;
  #fonts > .sans(1.2rem, 1.2rem);
}

.tutor-icon-active(@scale: 1.4) {
  .scale(@scale);
  .box-shadow(0 1px 6px rgba(0, 0, 0, 0.12));
  border-radius: 50%;
}

.tutor-late-icon() {
  &::after {
    .fa-icon();
    content: @fa-var-clock-o;
    color: @tutor-warning;
  }
}

.tutor-physics-cover-background() {
  color: #7BB049;
  // TODO can we switch this out with @tutor-tertiary
  background-color: #243064;
  .tutor-background-image("physics-title-background.svg");
}

.tutor-biology-cover-background() {
  color: #5E5F61;
  // TODO can we switch this out with @tutor-secondary
  background-color: #7BB04A;
  .tutor-background-image("biology-title-background.svg");
}


.tutor-subtle-load(will-load; @loading-text: 'Loading...'; @trans-time: 0.25s; @bg-fade: 90%; @bg-base: @tutor-white;) {
  &::after {
    position: absolute;
    width: 100%;
    height: 100%;
    content: @loading-text;
    background: fade(@bg-base, @bg-fade);
    top: 0;
    text-align: center;
    font-size: 3rem;
    line-height: 10em;
    opacity: 0;

    .transition(opacity @trans-time ease-in-out);
  }
}

.tutor-subtle-load(loading) {
  &::after {
    opacity: 1;
  }
}

// If you want to use these please uncomment.
//
// .tutor-shadow(3) {
//   box-shadow:
//     0 12px 15px 0 rgba(0, 0, 0, 0.24),
//     0 17px 50px 0 rgba(0, 0, 0, 0.19);
// }
//
// .tutor-shadow(4) {
//   box-shadow:
//     0 16px 28px 0 rgba(0, 0, 0, 0.22),
//     0 25px 55px 0 rgba(0, 0, 0, 0.21);
// }
//<commit_msg>loading :after psuedo element was covering actual element<commit_after>@import "./mixins/flexbox";

.no-select() {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.fixed-bar() {
  left: 0;
  position: fixed;
  width: 100%;
  z-index: 2;
}

.tutor-background-image(@img) { background-image:url("@{img}"); }

.tutor-shadow(1) {
  box-shadow:
    0 1px 6px 0 rgba(0, 0, 0, 0.12),
    0 1px  6px 0 rgba(0, 0, 0, 0.12);
}

.tutor-shadow(2) {
  box-shadow:
    0 8px 17px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.tutor-framed-video(@iframe-width:  @tutor-video-iframe-width,
                    @iframe-height: @tutor-video-iframe-height,
                    @iframe-shadow-size: 0px){
  position: relative;
  width:  @iframe-width  + @iframe-shadow-size * 2;
  height: @iframe-height + @iframe-shadow-size * 2;
  margin: auto;
  padding: 0;
  box-shadow: 0 @iframe-shadow-size @iframe-shadow-size 0 @tutor-neutral-dark inset;
  iframe {
    position: absolute;
    top:    @iframe-shadow-size;
    left:   @iframe-shadow-size;
    width:  @iframe-width;
    height: @iframe-height;
  }
}

.tutor-completed-message() {
  text-align: center;
  min-height: 300px;
  .flex-display();
  .flex-direction(column);
  .align-items(center);
  .justify-content(center);
  h1 {
    #fonts > .sans(4.5rem);
    font-weight: 700;
  }
  h3 {
    #fonts > .sans(4rem);
    font-weight: 700;
  }
}

.tutor-nav-tabs() {
  background: none;
  li {
    text-align: center;
    background: @tutor-neutral-lighter;

    .transition(background 0.2s);

    a {
      font-weight: 400;
      color: @tutor-neutral !important;
    }

    &:hover {
      background: @tutor-neutral-lightest;
    }

    &.active {
      background: @tutor-white;
      a {
        font-weight: 900;
        color: @tutor-neutral-darker !important;
      }
    }
  }
}

.tutor-exercise-question-uid() {
  color: @exercise-question-uid-color;
  #fonts > .sans(1.2rem, 1.2rem);
}

.tutor-icon-active(@scale: 1.4) {
  .scale(@scale);
  .box-shadow(0 1px 6px rgba(0, 0, 0, 0.12));
  border-radius: 50%;
}

.tutor-late-icon() {
  &::after {
    .fa-icon();
    content: @fa-var-clock-o;
    color: @tutor-warning;
  }
}

.tutor-physics-cover-background() {
  color: #7BB049;
  // TODO can we switch this out with @tutor-tertiary
  background-color: #243064;
  .tutor-background-image("physics-title-background.svg");
}

.tutor-biology-cover-background() {
  color: #5E5F61;
  // TODO can we switch this out with @tutor-secondary
  background-color: #7BB04A;
  .tutor-background-image("biology-title-background.svg");
}


.tutor-subtle-load(will-load; @loading-text: 'Loading...'; @trans-time: 0.25s; @bg-fade: 90%; @bg-base: @tutor-white;) {
  &::after {
    position: absolute;
    width: 100%;
    height: 100%;
    content: @loading-text;
    background: fade(@bg-base, @bg-fade);
    top: 0;
    text-align: center;
    font-size: 3rem;
    line-height: 10em;
    opacity: 0;
    display: none;

    .transition(opacity @trans-time ease-in-out);
  }
}

.tutor-subtle-load(loading) {
  &::after {
    opacity: 1;
    display: block;
  }
}

// If you want to use these please uncomment.
//
// .tutor-shadow(3) {
//   box-shadow:
//     0 12px 15px 0 rgba(0, 0, 0, 0.24),
//     0 17px 50px 0 rgba(0, 0, 0, 0.19);
// }
//
// .tutor-shadow(4) {
//   box-shadow:
//     0 16px 28px 0 rgba(0, 0, 0, 0.22),
//     0 25px 55px 0 rgba(0, 0, 0, 0.21);
// }
//
{'fraction_non_alphanumeric': 0.181857204177994, 'fraction_numerical': 0.05065102303619974, 'mean_word_length': 2.5267406659939455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1526956', 'n_tokens_mistral': 3219, 'n_tokens_neox': 2792, 'n_words': 575}