<commit_before>// *************************************
//
//   Dropdown
//   -> Consecutive menu items
//
// -------------------------------------
//   Template (Haml)
// -------------------------------------
//
// .dropdown[.dropdown--e](.is-active)
//   .dropdown-menu
//     .dropdown-item
//     .dropdown-item
//       .dropdown-item-link
//
// *************************************

.dropdown
  position: relative

// -------------------------------------
//   Modifiers
// -------------------------------------

.dropdown--e
  .dropdown-menu
    left: auto
    right: 0

// -------------------------------------
//   Modifiers
// -------------------------------------

.dropdown.is-active
  .dropdown-menu
    display: block

// -------------------------------------
//   Scaffolding
// -------------------------------------

// ----- Item ----- //

.dropdown-item
  border-bottom: $b-border
  color: $c-subdue
  margin: 0
  &:last-child
    border-bottom: 0
  &:hover,
  &:focus
    background: $c-background
    color: $c-subdue

// Link

.dropdown-item-link
  color: inherit
  display: block
  padding: $b-space-s
  &:hover,
  &:focus
    color: inherit

// ----- Menu ----- //

.dropdown-menu
  @extend .lr
  background: $c-background-invert
  border: $b-border
  border-radius: $b-borderRadius
  box-shadow: $b-boxShadow-s
  display: none
  left: 0
  margin-top: $b-space-s
  min-width: em(140px)
  position: absolute
  top: 100%
  z-index: 1

<commit_msg>Add `dropdown-item-link--xs` modifier<commit_after>// *************************************
//
//   Dropdown
//   -> Consecutive menu items
//
// -------------------------------------
//   Template (Haml)
// -------------------------------------
//
// .dropdown[.dropdown--e](.is-active)
//   .dropdown-menu
//     .dropdown-item
//     .dropdown-item
//       .dropdown-item-link
//
// *************************************

.dropdown
  position: relative

// -------------------------------------
//   Modifiers
// -------------------------------------

.dropdown--e
  .dropdown-menu
    left: auto
    right: 0

// -------------------------------------
//   Modifiers
// -------------------------------------

.dropdown.is-active
  .dropdown-menu
    display: block

// -------------------------------------
//   Scaffolding
// -------------------------------------

// ----- Item ----- //

.dropdown-item
  border-bottom: $b-border
  color: $c-subdue
  margin: 0
  &:last-child
    border-bottom: 0
  &:hover,
  &:focus
    background: $c-background
    color: $c-subdue

// Link

.dropdown-item-link
  color: inherit
  display: block
  padding: $b-space-s
  &:hover,
  &:focus
    color: inherit

.dropdown-item-link--xs
  padding: $b-space-xs

// ----- Menu ----- //

.dropdown-menu
  @extend .lr
  background: $c-background-invert
  border: $b-border
  border-radius: $b-borderRadius
  box-shadow: $b-boxShadow-s
  display: none
  left: 0
  margin-top: $b-space-s
  min-width: em(140px)
  position: absolute
  top: 100%
  z-index: 1


{'fraction_non_alphanumeric': 0.3823920265780731, 'fraction_numerical': 0.007308970099667774, 'mean_word_length': 1.178726483357453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5898026', 'n_tokens_mistral': 914, 'n_tokens_neox': 883, 'n_words': 171}