<commit_before>//
// Modals
// --------------------------------------------------

// .modal--open      - body class for killing the scroll
// .modal           - container to scroll within
// .modal__dialog    - positioning shell for the actual modal
// .modal__content   - actual modal w/ bg and corners

// Kill the scroll on the body
.modal--open {
  overflow: hidden;
}

// Container that the modal scrolls within
.modal {
  display: none;
  overflow: auto;
  overflow-y: scroll;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: $zindex-modal;

  form {
    p,
    ul,
    ol {
      margin-left: 0;
    }
  }

}

// Shell div to position the modal with bottom padding
.modal__dialog {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  padding: 85px ($gutter-width / 2) 30px;
  width: auto;
  z-index: ($zindex-modal + 10);

  @include respond-min($screen-tablet) {
    padding-top: 100px;
    width: 100%;
  }
}

.modal--large .modal__dialog {
  max-width: 800px;
}

// Actual modal
.modal__content {
  position: relative;
  background-color: $modal-content-bg;
  border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
  border: 1px solid $modal-content-border-color;
  border-radius: $border-radius;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  background-clip: padding-box;
  // Remove focus outline from opened modal
  outline: none;

  // prevent forms within modal from breaking the layout
  > .form--horizontal {
    padding-top: 0;
  }

  > .form {
    padding-top: 0;
  }
}

// Modal background
.modal__backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: ($zindex-modal - 10);
  background-color: $modal-backdrop-bg;

  @include ie-lte(7) {
    background-color: none;
  }

  // Fade for backdrop
  &.fade { @include opacity(0); }

  &.in { @include opacity(.5); }
}

// Modal header
// Top section of the modal w/ title and dismiss
.modal__header {
  padding: $modal-title-padding;
  border-bottom: 1px solid $modal-header-border-color;
}
// Close icon
.modal__header .close {
  margin-top: -2px;
}

// Title text within header
.modal__title {
  margin: 0;
  line-height: $modal-title-line-height;
}

// Modal body
// Where all modal content resides (sibling of .modal-header and .modal-footer)
.modal__body {
  position: relative;
  padding: $modal-inner-padding;
}

// Footer (for actions)
.modal__footer {
  @include clear-fix; // clear it in case folks use .pull-* classes on buttons
  padding: ($modal-inner-padding - 1) $modal-inner-padding ($modal-inner-padding - 5);
  // text-align: right; // right align buttons
  border-top: 1px solid $modal-footer-border-color;

/*   // Properly space out buttons
  .btn + .btn {
    margin-left: 5px;
    margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
  } */
  // but override that for button groups
  .btn-group .btn + .btn {
    margin-left: -1px;
  }
  // and override it for block buttons as well
  .btn-block + .btn-block {
    margin-left: 0;
  }
}

.modal--danger {
  .modal__header {
    background-color: color(danger);
    color: color(white);
  }

  .close {
    @include opacity(.7);
    color: color(white);
  }
}

// Forms in modals

.modal {
  .control__label {
    margin-left: 0;
  }
}

.modal {
    .form-v2 {
        padding-top: 0;
    }

    .form-v2 > fieldset {
        margin-left: 0;
        margin-right: 0;
    }

    .form-v2 legend {
        font-size: 20px;
        margin-left: 0;

        &::before {<commit_msg>Improve spacing of panels in modal footers<commit_after>//
// Modals
// --------------------------------------------------

// .modal--open      - body class for killing the scroll
// .modal           - container to scroll within
// .modal__dialog    - positioning shell for the actual modal
// .modal__content   - actual modal w/ bg and corners

// Kill the scroll on the body
.modal--open {
  overflow: hidden;
}

// Container that the modal scrolls within
.modal {
  display: none;
  overflow: auto;
  overflow-y: scroll;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: $zindex-modal;

  form {
    p,
    ul,
    ol {
      margin-left: 0;
    }
  }

}

// Shell div to position the modal with bottom padding
.modal__dialog {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  padding: 85px ($gutter-width / 2) 30px;
  width: auto;
  z-index: ($zindex-modal + 10);

  @include respond-min($screen-tablet) {
    padding-top: 100px;
    width: 100%;
  }
}

.modal--large .modal__dialog {
  max-width: 800px;
}

// Actual modal
.modal__content {
  position: relative;
  background-color: $modal-content-bg;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  background-clip: padding-box;
  // Remove focus outline from opened modal
  outline: none;

  // prevent forms within modal from breaking the layout
  > .form--horizontal {
    padding-top: 0;
  }

  > .form {
    padding-top: 0;
  }
}

// Modal background
.modal__backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: ($zindex-modal - 10);
  background-color: $modal-backdrop-bg;

  @include ie-lte(7) {
    background-color: none;
  }

  // Fade for backdrop
  &.fade { @include opacity(0); }

  &.in { @include opacity(.5); }
}

// Modal header
// Top section of the modal w/ title and dismiss
.modal__header {
  padding: $modal-title-padding;
  border-bottom: 1px solid $modal-header-border-color;
}
// Close icon
.modal__header .close {
  margin-top: -2px;
}

// Title text within header
.modal__title {
  margin: 0;
  line-height: $modal-title-line-height;
}

// Modal body
// Where all modal content resides (sibling of .modal-header and .modal-footer)
.modal__body {
  position: relative;
  padding: $modal-inner-padding;
}

// Footer (for actions)
.modal__footer {
  @include clear-fix; // clear it in case folks use .pull-* classes on buttons
  padding: ($modal-inner-padding - 1) $modal-inner-padding ($modal-inner-padding - 5);
  // text-align: right; // right align buttons
  border-top: 1px solid $modal-footer-border-color;

/*   // Properly space out buttons
  .btn + .btn {
    margin-left: 5px;
    margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
  } */
  // but override that for button groups
  .btn-group .btn + .btn {
    margin-left: -1px;
  }
  // and override it for block buttons as well
  .btn-block + .btn-block {
    margin-left: 0;
  }
}

.modal--danger {
  .modal__header {
    background-color: color(danger);
    color: color(white);
  }

  .close {
    @include opacity(.7);
    color: color(white);
  }
}

// Forms in modals

.modal {
  .control__label {
    margin-left: 0;
  }
}

// Panels in modal footer
.modal__footer > .panel {
    margin-top: 0;
}

.modal {
    .form-v2 {
        padding-top: 0;
    }

    .form-v2 > fieldset {
        margin-left: 0;
        margin-right: 0;
    }

    .form-v2 legend {
        font-size: 20px;
        margin-left: 0;

        &::before {
{'fraction_non_alphanumeric': 0.14973866365305835, 'fraction_numerical': 0.018364175731035458, 'mean_word_length': 2.347517730496454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '1865145', 'n_tokens_mistral': 2573, 'n_tokens_neox': 2421, 'n_words': 699}