<commit_before>@calendar-plan-top-margin: 0.5rem;
// CALENDAR_EVENT_LABEL_ACTIVE_STATIC_HEIGHT
@calendar-plan-active-height: 3.5rem;
@calendar-plan-height: 2rem;
@calendar-plan-top-offset: (@calendar-plan-active-height - @calendar-plan-height)/2;
@calendar-plan-active-top-offset: @calendar-plan-top-offset - @calendar-plan-top-margin;

@calendar-plan-left-offset: 2px;
@calendar-plan-left-label-offset: 2 * @calendar-plan-left-offset + 2;

@calendar-inactive-background: @tutor-neutral;

.x-plan(@plan-color) {
  color: @tutor-neutral-darker;
  border-left: 3px solid @plan-color;

  label{
    background: fade(@plan-color, 20%);
  }

  &:hover,
  &.active,
  &.open {
    text-decoration: none;
    label{
      background: fade(@plan-color, 50%);
    }
  }
}

.list-courses {
  .plan {
    display: block;
    position: absolute;
    border: 1px solid @gray-light;
    font-size: 1.25rem;
    max-height: @calendar-plan-height;
    height: @calendar-plan-active-height;
    line-height: @calendar-plan-active-height;
    margin-top: @calendar-plan-top-margin;
    margin-left: @calendar-plan-left-offset;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: max-height .1s ease-in, margin-top .1s ease-in;
    overflow: hidden;
    // takes on CALENDAR_EVENT_DYNAMIC_WIDTH and CALENDAR_EVENT_DYNAMIC_POSITION
    // Based on event duration and event offset from start of week
    // see CoursePlan component

    &.reading:not(.inactive)      { .x-plan(@reading-color); }
    &.homework:not(.inactive)     { .x-plan(@homework-color); }
    &.inactive     { .x-plan(@calendar-inactive-background); }
    &.draft {
      label::before {
        content: @fa-var-pencil;
        .fa-icon();
        margin-right: @calendar-plan-left-label-offset;
      }
    }

    &.trouble {
      label::before {
        content: @fa-var-bookmark;
        .fa-icon();
        .rotate(90deg);
        margin-right: @calendar-plan-left-label-offset;
        color: @tutor-danger;
      }
    }


    // CALENDAR_EVENT_LABEL_DYNAMIC_WIDTH
    // Takes width based on visible width of plan to center label.
    // see CoursePlan component
    label {
      margin-left: -@calendar-plan-left-label-offset;
      padding-left: 2 * @calendar-plan-left-label-offset;
      text-align: left;
      display: block;
      margin-top: -@calendar-plan-top-offset;
      margin-bottom: 0;
      cursor: pointer;
      transition: background .1s ease-in, margin-top .1s ease-in;
    }

    &.plan-label-long {
      label {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }


    &:hover,
    &.active,
    &.open {
      z-index: 2;
    }

    &.plan-label-long {
      &:hover,
      &.active,
      &.open {
        max-height: @calendar-plan-active-height;
        margin-top: -@calendar-plan-active-top-offset;
        line-height: @calendar-plan-active-height/2;

        label {
          overflow: visible;
          white-space: normal;
          margin-top: 0;
        }
      }
    }<commit_msg>plan label stays in place on hover for long labels, label also can accomodate multiline pass 2 lines labels now<commit_after>@calendar-plan-top-margin: 0.5rem;
// CALENDAR_EVENT_LABEL_ACTIVE_STATIC_HEIGHT
@calendar-plan-active-height: 3.5rem;
@calendar-plan-height: 2rem;
@calendar-plan-top-offset: (@calendar-plan-active-height - @calendar-plan-height)/2;
@calendar-plan-active-top-offset: @calendar-plan-top-offset - @calendar-plan-top-margin;

@calendar-plan-left-offset: 2px;
@calendar-plan-left-label-offset: 2 * @calendar-plan-left-offset + 2;

@calendar-inactive-background: @tutor-neutral;

.x-plan(@plan-color) {
  color: @tutor-neutral-darker;
  border-left: 3px solid @plan-color;

  label{
    background: fade(@plan-color, 20%);
  }

  &:hover,
  &.active,
  &.open {
    text-decoration: none;
    label{
      background: fade(@plan-color, 50%);
    }
  }
}

.list-courses {
  .plan {
    display: block;
    position: absolute;
    border: 1px solid @gray-light;
    font-size: 1.25rem;
    max-height: @calendar-plan-height;
    height: auto;
    line-height: @calendar-plan-height;
    margin-top: @calendar-plan-top-margin;
    margin-left: @calendar-plan-left-offset;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: max-height .1s ease-in, margin-top .1s ease-in;
    overflow: hidden;
    // takes on CALENDAR_EVENT_DYNAMIC_WIDTH and CALENDAR_EVENT_DYNAMIC_POSITION
    // Based on event duration and event offset from start of week
    // see CoursePlan component

    &.reading:not(.inactive)      { .x-plan(@reading-color); }
    &.homework:not(.inactive)     { .x-plan(@homework-color); }
    &.inactive     { .x-plan(@calendar-inactive-background); }
    &.draft {
      label::before {
        content: @fa-var-pencil;
        .fa-icon();
        margin-right: @calendar-plan-left-label-offset;
      }
    }

    &.trouble {
      label::before {
        content: @fa-var-bookmark;
        .fa-icon();
        .rotate(90deg);
        margin-right: @calendar-plan-left-label-offset;
        color: @tutor-danger;
      }
    }


    // CALENDAR_EVENT_LABEL_DYNAMIC_WIDTH
    // Takes width based on visible width of plan to center label.
    // see CoursePlan component
    label {
      margin-left: -@calendar-plan-left-label-offset;
      padding-left: 2 * @calendar-plan-left-label-offset;
      text-align: left;
      display: block;
      margin-bottom: 0;
      cursor: pointer;
      transition: background .1s ease-in, margin-top .1s ease-in;
    }

    &.plan-label-long {
      label {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }


    &:hover,
    &.active,
    &.open {
      z-index: 2;
    }

    &.plan-label-long {
      &:hover,
      &.active,
      &.open {
        max-height: none;

        label {
          overflow: visible;
          white-space: normal;
          margin-top: 0;
        }
      }
    }
{'fraction_non_alphanumeric': 0.14180969838360274, 'fraction_numerical': 0.009665055824029328, 'mean_word_length': 2.3362979433018345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4819033', 'n_tokens_mistral': 2131, 'n_tokens_neox': 2033, 'n_words': 389}