<commit_before>@import "./menu.vars";

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

:host {
  @include position(0, 0, 0, 0);

  display: none;
  position: absolute;

  contain: strict;
}

:host(.show-menu) {
  display: block;
}


.menu-inner {
  @include position(0, auto, 0, 0);
  @include transform(translate3d(-9999px, 0, 0));

  display: flex;
  position: absolute;

  flex-direction: column;
  justify-content: space-between;

  width: $menu-width;
  height: 100%;

  contain: strict;
}

:host(.menu-side-start) .menu-inner {
  @include multi-dir() {
    /* stylelint-disable property-blacklist */
    right: auto;
    left: 0;
  }
}

:host(.menu-side-end) .menu-inner {
  @include multi-dir() {
    right: 0;
    left: auto;
    /* stylelint-enable property-blacklist */
  }
}

ion-backdrop {
  display: none;

  opacity: .01;
  z-index: -1;
}

.menu-content {
  @include transform(translate3d(0, 0, 0));
}

.menu-content-open {
  cursor: pointer;
  touch-action: manipulation;
}

.menu-content-open ion-pane,
.menu-content-open .ion-pane,
.menu-content-open ion-content,
.menu-content-open .toolbar {
  // the containing element itself should be clickable but
  // everything inside of it should not clickable when menu is open
  pointer-events: none;
}


@media (max-width: 340px) {

  .menu-inner {
    width: $menu-small-width;
  }

}


// Menu Reveal
// --------------------------------------------------
// The content slides over to reveal the menu underneath.
// The menu itself, which is under the content, does not move.

:host(.menu-type-reveal) {
  z-index: 0;
}

:host(.menu-type-reveal.show-menu) .menu-inner {
  @include transform(translate3d(0, 0, 0));
}<commit_msg>fix(menu): add width and small-width css variables (#14997)<commit_after>@import "./menu.vars";

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

:host {
  --width: #{$menu-width};
  --width-small: #{$menu-small-width};

  @include position(0, 0, 0, 0);

  display: none;
  position: absolute;

  contain: strict;
}

:host(.show-menu) {
  display: block;
}


.menu-inner {
  @include position(0, auto, 0, 0);
  @include transform(translate3d(-9999px, 0, 0));

  display: flex;
  position: absolute;

  flex-direction: column;
  justify-content: space-between;

  width: var(--width);
  height: 100%;

  contain: strict;
}

:host(.menu-side-start) .menu-inner {
  @include multi-dir() {
    /* stylelint-disable property-blacklist */
    right: auto;
    left: 0;
  }
}

:host(.menu-side-end) .menu-inner {
  @include multi-dir() {
    right: 0;
    left: auto;
    /* stylelint-enable property-blacklist */
  }
}

ion-backdrop {
  display: none;

  opacity: .01;
  z-index: -1;
}

.menu-content {
  @include transform(translate3d(0, 0, 0));
}

.menu-content-open {
  cursor: pointer;
  touch-action: manipulation;
}

.menu-content-open ion-pane,
.menu-content-open .ion-pane,
.menu-content-open ion-content,
.menu-content-open .toolbar {
  // the containing element itself should be clickable but
  // everything inside of it should not clickable when menu is open
  pointer-events: none;
}


@media (max-width: 340px) {

  .menu-inner {
    width: var(--width-small);
  }

}


// Menu Reveal
// --------------------------------------------------
// The content slides over to reveal the menu underneath.
// The menu itself, which is under the content, does not move.

:host(.menu-type-reveal) {
  z-index: 0;
}

:host(.menu-type-reveal.show-menu) .menu-inner {
  @include transform(translate3d(0, 0, 0));
}
{'fraction_non_alphanumeric': 0.20895945562801246, 'fraction_numerical': 0.02069747660901616, 'mean_word_length': 2.4453125, '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': '1864178', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1203, 'n_words': 301}