<commit_before>@mixin page-break($pos: 'before') {
  @media print {
    page-break-#{$pos}: always;
  }
}

%page-break-before {
  @include page-break;
}

%transition-all {
  transition: all .3s;
}

%state--hide {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
}

%state--show {
  max-height: 200rem; // magic number: a long height
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}
<commit_msg>將 show / hide helper 改為 mixin & include 模式<commit_after>@mixin page-break($pos: 'before') {
  @media print {
    page-break-#{$pos}: always;
  }
}

@mixin state--show() {
  max-height: 200rem; // magic number: a long height
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

@mixin state--hide() {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
}

%page-break-before {
  @include page-break;
}

%transition-all {
  transition: all .3s;
}

%state--hide {
  @include state--hide;
}

%state--show {
  @include state--show;
}

{'fraction_non_alphanumeric': 0.16852791878172588, 'fraction_numerical': 0.016243654822335026, 'mean_word_length': 3.195744680851064, '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': '941086', 'n_tokens_mistral': 391, 'n_tokens_neox': 378, 'n_words': 89}