<commit_before>/*
Migrated from https://github.com/victoriauniversity/sass-bridge using the following script:

$ purgecss --css src/style.css --content widgets.html --output tmp && prettier --write src/style.css
$ gawk 'BEGIN { print ".old-sass-widget {" } { print "  " $0 } END { print "}" }' tmp/style.css | grep -Ev "@font-face|sourceMappingURL" > dist/style.scss

widgets.html contains all the markup for each widget.
src/style.css contains the build CSS from the sass-bridge repository.

The packages required to run the above commands can be installed with:

$ brew install gawk
$ npm install purgecss -g
*/


.old-sass-widget {

  .result_flag {
    background: #eee;
    padding: 0.4em 0.5em 0.3em;
    font-style: normal;
    font-weight: normal;
    float: left;
    font-size: 0.92857em;

    overflow: hidden;
    position: relative;
    top: -.1em;
    display: inline-block;
    margin-right: .5rem;
    vertical-align: middle;
    line-height: 1;
    border-radius: .125rem;
    font-size: 80%;
    text-transform: uppercase;
    background: #eee;
    color: #424242;
    white-space: nowrap;
  }
  .secondary .result_flag {
    padding: 0em 0.4em 0em 0.4em;
    top: 0;
    min-width: 2em;
    text-align: center;
  }
  .result_flag.flag_pdf {
    background: #ECCDCD;
    color: #831212;
  }
  .result_flag.flag_doc {
    background: #d4e8f2;
    color: #255C79;
  }


}

/*
Manually added CSS to fix conflicting CSS rules between vic-ui-kit and sass-bridge.
*/

.old-sass-widget {

  .result_flag {
    display: inline-block;
    /* float: left; */
    float: initial;
    /* top: 0.75em; */
    // top: initial;
  }
  .toggle,
  h2 {
    /* Add some spacing above the widget headers */
    margin-top: 1rem !important;
  }
  @media all and (max-width: 759px) {
    .toggle_block {
      /* Prevent content from being hidden on mobile */
      display: block;
    }
  }
}

aside > .formatting .old-sass-widget h2::before {
  display: none;
}

aside .old-sass-widget {
  .media {
    img {
      margin-bottom: 0;
    }
    h3 {
      margin-top: 0;
      padding: 0 1rem 1rem;
    }
  }

  .quote.full {
    margin-top: .5rem;

    q:before {
      margin-left: 0;
    }
  }

  .primary.promo {
    a,
    h3 {
      color: #ffffff;
    }
  }

<commit_msg>learning and teaching tweal<commit_after>/*
Migrated from https://github.com/victoriauniversity/sass-bridge using the following script:

$ purgecss --css src/style.css --content widgets.html --output tmp && prettier --write src/style.css
$ gawk 'BEGIN { print ".old-sass-widget {" } { print "  " $0 } END { print "}" }' tmp/style.css | grep -Ev "@font-face|sourceMappingURL" > dist/style.scss

widgets.html contains all the markup for each widget.
src/style.css contains the build CSS from the sass-bridge repository.

The packages required to run the above commands can be installed with:

$ brew install gawk
$ npm install purgecss -g
*/


.old-sass-widget {

  .result_flag {
    background: #eee;
    padding: 0.4em 0.5em 0.3em;
    font-style: normal;
    font-weight: normal;
    float: left;
    font-size: 0.92857em;

    overflow: hidden;
    position: relative;
    top: -.1em;
    display: inline-block;
    margin-right: .5rem;
    vertical-align: middle;
    line-height: 1;
    border-radius: .125rem;
    font-size: 80%;
    text-transform: uppercase;
    background: #eee;
    color: #424242;
    white-space: nowrap;
  }
  .secondary .result_flag {
    padding: 0em 0.4em 0em 0.4em;
    top: 0;
    min-width: 2em;
    text-align: center;
  }
  .result_flag.flag_pdf {
    background: #ECCDCD;
    color: #831212;
  }
  .result_flag.flag_doc {
    background: #d4e8f2;
    color: #255C79;
  }


}

/*
Manually added CSS to fix conflicting CSS rules between vic-ui-kit and sass-bridge.
*/

.old-sass-widget {

  .result_flag {
    display: inline-block;
    /* float: left; */
    float: initial;
    /* top: 0.75em; */
    // top: initial;
  }
  .toggle,
  h2 {
    /* Add some spacing above the widget headers */
    margin-top: 1rem !important;
  }
  @media all and (max-width: 759px) {
    .toggle_block {
      /* Prevent content from being hidden on mobile */
      display: block;
    }
  }
}

aside > .formatting .old-sass-widget h2::before {
  display: none;
}

aside .old-sass-widget {
  .media {
    img {
      margin-bottom: 0;
    }
    h3 {
      margin-top: 0;
      padding: 0 1rem 1rem;
    }
  }

  img {
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
  }

  .quote.full {
    margin-top: .5rem;

    q:before {
      margin-left: 0;
    }
  }

  .primary.promo {
    a,
    h3 {
      color: #ffffff;
    }
  }


{'fraction_non_alphanumeric': 0.13127829273550334, 'fraction_numerical': 0.0297477904720845, 'mean_word_length': 2.319027181688126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3018748', 'n_tokens_mistral': 1804, 'n_tokens_neox': 1677, 'n_words': 436}