<commit_before>@import "common";
@import "mixins/button";
@import "mixins/sidenav";

//
// Sidenavs
// --------------------------------------------------

// Base class
// --------------------------------------------------
.@{ns}sidenav {
  transition: width @sidenav-collapse-transition-config;
  width: @sidenav-default-width;

  // Remove <li/> spacing
  .@{ns}sidenav-nav > ul {
    font-size: 0;
  }

  .@{ns}nav-item > .@{ns}nav-item-content,
  .@{ns}dropdown .@{ns}dropdown-toggle,
  .@{ns}dropdown-item > .@{ns}dropdown-item-content {
    padding: @sidenav-padding-vertical @sidenav-padding-horizonal;
    transition: @nav-item-transition;
  }

  .@{ns}dropdown .@{ns}dropdown-menu {
    transition: height @sidenav-collapse-transition-config;
  }

  .@{ns}dropdown .@{ns}dropdown-toggle {
    height: auto;
    padding-right: @sidenav-padding-horizonal + @sidenav-dropdown-toggle-caret-width;

    .@{ns}dropdown-toggle-caret {
      right: @sidenav-padding-horizonal;
      top: @sidenav-padding-vertical;
    }
  }

  .@{ns}nav.@{ns}nav-vertical ul > .@{ns}dropdown:not(:first-child),
  .@{ns}nav.@{ns}nav-vertical ul > .@{ns}nav-item:not(:first-child) {
    margin-top: 0;
  }

  // Level1
  // -----------------
  .@{ns}nav-item .@{ns}nav-item-content,
  .@{ns}dropdown .@{ns}dropdown-toggle {
    font-size: @sidenav-level1-item-font-size;
    line-height: @sidenav-level1-item-line-height;
    padding-left: @sidenav-padding-horizonal + @sidenav-icon-width + @sidenav-icon-spacing;
    .ellipsis;

    > .@{ns}icon {
      font-size: @sidenav-level1-item-font-size;
      margin-right: @sidenav-icon-spacing;
      position: absolute;
      left: @sidenav-padding-horizonal;
      top: @sidenav-padding-vertical;
    }
  }

  // Reset border-radius
  .@{ns}nav-item:not(.@{ns}nav-item-disabled) > .@{ns}nav-item-content,
  .@{ns}dropdown .@{ns}dropdown-toggle {
    border-radius: 0;
  }
}

//** Expanded styles
.@{ns}sidenav-collapse-in {
  width: @sidenav-collapse-in-width;

  //Nav item content
  .@{ns}nav-item > .@{ns}nav-item-content {
    border-radius: 0;
  }

  //Dropdown style rewrite
  .@{ns}dropdown {<commit_msg>Fix the problem that the icon is not centered vertically. (#315)<commit_after>@import "common";
@import "mixins/button";
@import "mixins/sidenav";

//
// Sidenavs
// --------------------------------------------------

// Base class
// --------------------------------------------------
.@{ns}sidenav {
  transition: width @sidenav-collapse-transition-config;
  width: @sidenav-default-width;

  // Remove <li/> spacing
  .@{ns}sidenav-nav > ul {
    font-size: 0;
  }

  .@{ns}nav-item > .@{ns}nav-item-content,
  .@{ns}dropdown .@{ns}dropdown-toggle,
  .@{ns}dropdown-item > .@{ns}dropdown-item-content {
    padding: @sidenav-padding-vertical @sidenav-padding-horizonal;
    transition: @nav-item-transition;
  }

  .@{ns}dropdown .@{ns}dropdown-menu {
    transition: height @sidenav-collapse-transition-config;
  }

  .@{ns}dropdown .@{ns}dropdown-toggle {
    height: auto;
    padding-right: @sidenav-padding-horizonal + @sidenav-dropdown-toggle-caret-width;

    .@{ns}dropdown-toggle-caret {
      right: @sidenav-padding-horizonal;
      top: @sidenav-padding-vertical;
    }
  }

  .@{ns}nav.@{ns}nav-vertical ul > .@{ns}dropdown:not(:first-child),
  .@{ns}nav.@{ns}nav-vertical ul > .@{ns}nav-item:not(:first-child) {
    margin-top: 0;
  }

  // Level1
  // -----------------
  .@{ns}nav-item .@{ns}nav-item-content,
  .@{ns}dropdown .@{ns}dropdown-toggle {
    font-size: @sidenav-level1-item-font-size;
    line-height: @sidenav-level1-item-line-height;
    padding-left: @sidenav-padding-horizonal + @sidenav-icon-width + @sidenav-icon-spacing;
    .ellipsis;

    > .@{ns}icon {
      font-size: @sidenav-level1-item-font-size;
      margin-right: @sidenav-icon-spacing;
      position: absolute;
      left: @sidenav-padding-horizonal;
      top: @sidenav-padding-vertical;
      line-height: @sidenav-level1-item-line-height;
    }
  }

  // Reset border-radius
  .@{ns}nav-item:not(.@{ns}nav-item-disabled) > .@{ns}nav-item-content,
  .@{ns}dropdown .@{ns}dropdown-toggle {
    border-radius: 0;
  }
}

//** Expanded styles
.@{ns}sidenav-collapse-in {
  width: @sidenav-collapse-in-width;

  //Nav item content
  .@{ns}nav-item > .@{ns}nav-item-content {
    border-radius: 0;
  }

  //Dropdown style rewrite
  .@{ns}dropdown {
{'fraction_non_alphanumeric': 0.2333637192342753, 'fraction_numerical': 0.004557885141294439, 'mean_word_length': 2.514011208967174, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '6095364', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1596, 'n_words': 226}