<commit_before>@import "global";

.icon-fixed-width {
  /* This borrowed is from a component of Font Awesome we're not using, maybe add it? */
  width: (18em / 14);
  text-align: center;
}

section
{
  margin-bottom: $spacing-vertical;
  &:last-child
  {
    margin-bottom: 0;
  }
  &:only-child {
    /* If it's an only child, assume it's part of a React layout that will handle the last child condition on its own */
    margin-bottom: $spacing-vertical;
  }
}

main h1 {
  font-size: 2.0em;
  margin-bottom: $spacing-vertical;
  margin-top: $spacing-vertical*2;
  font-family: 'Raleway', sans-serif;
}

h2 {
  font-size: 1.75em;
}

h3 { font-size: 1.4em; }

h4 {
  font-size: 1.2em;
}

h5 { font-size: 1.1em; }
sup, sub {
 vertical-align: baseline;
 position: relative;
}
sup { top: -0.4em; }
sub { top: 0.4em; }

label {
  cursor: default;
  display: block;
}

p
{
  margin-bottom: 0.8em;
  &:last-child
  {
    margin-bottom: 0;
  }
}

.hidden {
  display: none;
}

.disabled {
  pointer-events: none;
  opacity: 0.7;
}

input[type="text"], input[type="search"], textarea
{
  @include placeholder {
    color: lighten($color-text-dark, 60%);
  }
  border: 2px solid rgba(160,160,160,.5);
  padding-left: 5px;
  padding-right: 5px;
  box-sizing: border-box;
  -webkit-appearance: none;
}
input[type="text"], input[type="search"]
{
  line-height: $spacing-vertical - 4;
  height: $spacing-vertical * 1.5;
}

.busy-indicator
{
  background: url('../img/busy.gif') no-repeat center center;
  display: inline-block;
  margin: -1em 0;
  min-width: 16px;
  min-height: 8px;
  vertical-align: middle;
  padding: 0 30px;
  &:last-child
  {
    padding-right: 2px;
  }
  &:first-child
  {
    padding-left: 2px;
  }
}

.button-block
{
  cursor: pointer;
  display: inline-block;
  height: $spacing-vertical * 1.5;
  line-height: $spacing-vertical * 1.5;
  text-decoration: none;
  border: 0 none;
  text-align: center;
  border-radius: 2px;
  text-transform: uppercase;
  + .button-block
  {
    margin-left: 12px;
  }
  .icon
  {
    top: 0em;
  }
  .icon:first-child
  {
    padding-right: 5px;
  }
  .icon:last-child
  {
    padding-left: 5px;
  }
}

.button-primary
{
  color: white;
  background-color: $color-primary;
  box-shadow: $default-box-shadow;
  padding: 0 12px;
}
.button-alt
{
  background-color: rgba(0,0,0,.15);
  box-shadow: $default-box-shadow;
  padding: 0 12px;
}
.button-cancel
{
  padding: 0 12px;
}
.button-text
{
  color: $color-primary;
  .icon
  {
    &:first-child {
      padding-right: 5px;
    }
    &:last-child:not(:only-child) {
      padding-left: 5px;
    }
  }

  &:not(.no-underline) {
    text-decoration: underline;
    .icon {
      text-decoration: none;
    }
  }
  &:hover
  {
    opacity: 0.70;
    transition: opacity .225s ease;
    text-decoration: underline;
    .icon {
      text-decoration: none;
    }
  }
}

.icon:only-child {
  position: relative;
  top: 0.16em;
}

.help {
  font-size: .85em;
  color: $color-help;
}

.meta
{
  font-size: 0.9em;
  color: $color-meta-light;
}

.empty
{
  color: $color-meta-light;
  font-style: italic;
}

.form-row
{
  + .form-row
  {
    margin-top: $spacing-vertical / 2;
  }
  .help<commit_msg>Convert text links to mixin<commit_after>@import "global";

@mixin text-link($color: $color-primary, $hover-opacity: 0.70) {
  color: $color;
  .icon
  {
    &:first-child {
      padding-right: 5px;
    }
    &:last-child:not(:only-child) {
      padding-left: 5px;
    }
  }

  &:not(.no-underline) {
    text-decoration: underline;
    .icon {
      text-decoration: none;
    }
  }
  &:hover
  {
    opacity: $hover-opacity;
    transition: opacity .225s ease;
    text-decoration: underline;
    .icon {
      text-decoration: none;
    }
  }
}

.icon-fixed-width {
  /* This borrowed is from a component of Font Awesome we're not using, maybe add it? */
  width: (18em / 14);
  text-align: center;
}

section
{
  margin-bottom: $spacing-vertical;
  &:last-child
  {
    margin-bottom: 0;
  }
  &:only-child {
    /* If it's an only child, assume it's part of a React layout that will handle the last child condition on its own */
    margin-bottom: $spacing-vertical;
  }
}

main h1 {
  font-size: 2.0em;
  margin-bottom: $spacing-vertical;
  margin-top: $spacing-vertical*2;
  font-family: 'Raleway', sans-serif;
}

h2 {
  font-size: 1.75em;
}

h3 { font-size: 1.4em; }

h4 {
  font-size: 1.2em;
}

h5 { font-size: 1.1em; }
sup, sub {
 vertical-align: baseline;
 position: relative;
}
sup { top: -0.4em; }
sub { top: 0.4em; }

label {
  cursor: default;
  display: block;
}

p
{
  margin-bottom: 0.8em;
  &:last-child
  {
    margin-bottom: 0;
  }
}

.hidden {
  display: none;
}

.disabled {
  pointer-events: none;
  opacity: 0.7;
}

input[type="text"], input[type="search"], textarea
{
  @include placeholder {
    color: lighten($color-text-dark, 60%);
  }
  border: 2px solid rgba(160,160,160,.5);
  padding-left: 5px;
  padding-right: 5px;
  box-sizing: border-box;
  -webkit-appearance: none;
}
input[type="text"], input[type="search"]
{
  line-height: $spacing-vertical - 4;
  height: $spacing-vertical * 1.5;
}

.busy-indicator
{
  background: url('../img/busy.gif') no-repeat center center;
  display: inline-block;
  margin: -1em 0;
  min-width: 16px;
  min-height: 8px;
  vertical-align: middle;
  padding: 0 30px;
  &:last-child
  {
    padding-right: 2px;
  }
  &:first-child
  {
    padding-left: 2px;
  }
}

.button-block
{
  cursor: pointer;
  display: inline-block;
  height: $spacing-vertical * 1.5;
  line-height: $spacing-vertical * 1.5;
  text-decoration: none;
  border: 0 none;
  text-align: center;
  border-radius: 2px;
  text-transform: uppercase;
  + .button-block
  {
    margin-left: 12px;
  }
  .icon
  {
    top: 0em;
  }
  .icon:first-child
  {
    padding-right: 5px;
  }
  .icon:last-child
  {
    padding-left: 5px;
  }
}

.button-primary
{
  color: white;
  background-color: $color-primary;
  box-shadow: $default-box-shadow;
  padding: 0 12px;
}
.button-alt
{
  background-color: rgba(0,0,0,.15);
  box-shadow: $default-box-shadow;
  padding: 0 12px;
}
.button-cancel
{
  padding: 0 12px;
}
.button-text
{
  @include text-link();
}

.icon:only-child {
  position: relative;
  top: 0.16em;
}

.help {
  font-size: .85em;
  color: $color-help;
}

.meta
{
  font-size: 0.9em;
  color: $color-meta-light;
}

.empty
{
  color: $color-meta-light;
  font-style: italic;
}

.form-row
{
  + .form-row
  {
    margin-top: $spacing-vertical / 2;
  }
  .help
{'fraction_non_alphanumeric': 0.16368128474366894, 'fraction_numerical': 0.030883261272390366, 'mean_word_length': 2.7074985689753865, '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': '567671', 'n_tokens_mistral': 2803, 'n_tokens_neox': 2618, 'n_words': 554}