<commit_before>ic-modal,
.ic-modal-form {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(0, 0%, 100%, .75);
  display: none;
  align-items: center;
}

ic-modal[is-open],
.ic-modal-form[is-open] {
  display: flex;
}

ic-modal-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  max-height: 90%;
  width: 66%;
  margin: auto;
  background: #fff;
  border: 1px solid hsl(0, 0%, 70%);
  border-radius: 4px;
}

ic-modal-title {
  flex: none;
  padding: 20px;
  border-bottom: 1px solid hsl(0, 0%, 85%);
}

ic-modal-footer {
  flex: none;
  padding: 20px;
  border-top: 1px solid hsl(0, 0%, 85%);
}

ic-modal-content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 20px;
}

.ic-modal-trigger.default {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  padding: 6px;
  font-size: 18px;
  color: inherit;
}

.ic-modal-trigger.default:focus {
  text-shadow: 0 0 6px hsl(208, 47%, 60%),
    0 0 2px hsl(208, 47%, 60%),
    0 0 2px hsl(208, 47%, 60%),
    0 0 1px hsl(208, 47%, 60%);
  outline: none;
}

@media only screen and (max-width : 480px) {
  ic-modal-main {
    width: 95%;
    max-height: 95%;
  }
  ic-modal-title,
  ic-modal-footer,
  ic-modal-content {
    padding: 10px;
  }

  .ic-modal-trigger.default {
    top: 0px;
    right: 2px;
  }
}

<commit_msg>[fixed] cross-browser flex styles<commit_after>ic-modal,
.ic-modal-form {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(0, 0%, 100%, .75);
  display: none;
}

ic-modal-main {
  position: relative;
  max-height: 90%;
  width: 66%;
  margin: auto;
  background: #fff;
  border: 1px solid hsl(0, 0%, 70%);
  border-radius: 4px;
}

ic-modal-title {
  padding: 20px;
  border-bottom: 1px solid hsl(0, 0%, 85%);
}

ic-modal-footer {
  padding: 20px;
  border-top: 1px solid hsl(0, 0%, 85%);
}

ic-modal-content {
  overflow: auto;
  padding: 20px;
}

.ic-modal-trigger.default {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  padding: 6px;
  font-size: 18px;
  color: inherit;
}

.ic-modal-trigger.default:focus {
  text-shadow: 0 0 6px hsl(208, 47%, 60%),
    0 0 2px hsl(208, 47%, 60%),
    0 0 2px hsl(208, 47%, 60%),
    0 0 1px hsl(208, 47%, 60%);
  outline: none;
}

@media only screen and (max-width : 480px) {
  ic-modal-main {
    width: 95%;
    max-height: 95%;
  }
  ic-modal-title,
  ic-modal-footer,
  ic-modal-content {
    padding: 10px;
  }

  .ic-modal-trigger.default {
    top: 0px;
    right: 2px;
  }
}

/* yes, this is a lot of css, but the result is FANTASTIC */

ic-modal[is-open],
.ic-modal-form[is-open] {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -moz-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

ic-modal-main {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-pack: start;
  -moz-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-align-content: flex-start;
  -ms-flex-line-pack: start;
  align-content: flex-start;
  -webkit-box-align: stretch;
  -moz-box-align: stretch;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

ic-modal-title,
ic-modal-footer {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;
}

ic-modal-content {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;
}

{'fraction_non_alphanumeric': 0.16993776926759216, 'fraction_numerical': 0.04978458592628052, 'mean_word_length': 2.883828996282528, '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': '2332025', 'n_tokens_mistral': 1945, 'n_tokens_neox': 1724, 'n_words': 415}