<commit_before>/**
 * Conversation window
 */

html, body {
  height: 100%; /* necessary to use display: table* on children */
  margin: 0;
  padding: 0;
}

body {
  display: table;
  width: 100%;      /* display: table seems to make this required */
  min-width: 260px; /* Social API chat window default width */
}

/**
 * Common utilities
 */
.media-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.video-icon {
  background: url(/img/video-icon.png) no-repeat;
}

.audio-icon {
  background: url(/img/btn-audio.png) no-repeat;
}

/**
 * Pending (i.e. offer & establish) views in the chat window
 */
.pending {
  height: 100%;
  padding: 40px 10px 0 10px;
  text-align: center;
}

.pending .avatar {
  text-align: center;
}

.pending .avatar img {
  width: 64px;
  height: 64px;
}

.pending .incoming-info {
  color: #555;
  font-size: 90%;
}

/**
 * Call controls
 */
#call-controls {
  display: table-row;
  background-color: #FAFAFA;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  z-index: 99;
}

#call-controls .controls {
  list-style-type: none;
  margin: 0;
}

#call-controls .controls li {
  border-right: 1px solid #d6d6d6;
  float: left;
}

#call-controls .controls li a {
  display: block;
  height: 16px;
  width: 16px;
  margin: 4px;
}

.btn-video a {
  background: url(../img/btn-video.png);
}

.btn-audio a {
  background: url(../img/btn-audio.png);
}

.btn-hangup a {
  background: url(../img/btn-hangup.png);
}

.btn-microphone-mute a {
  background: url(../img/microphone-mute.png);
}

.btn-microphone-mute.active a {
  background: url(../img/microphone.png);
}

.btn-speaker-mute a {
  background: url(../img/speaker-mute.png);
}

.btn-speaker-mute.active a {
  background: url(../img/speaker.png);
}

/**
 * Video call
 */
#call {
  display: table-row;
  height: 100%;
  /* as the .video-area element is displayed inline, treat it as text so we can
     ensure it's actually centered without knowing its exact width */
  text-align: center;
}

#call .video-area {
  display: inline-block;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

#call .remote-video {
  width: 100vw;
  min-width: 100vw;
  max-height: 350px;
  vertical-align: bottom;
}

/* XXX once we get the local-video stapled to the remote-video,
   much of this stuff may be irrelevant.  Audit this as part
   of that landing. */
#call .local-video {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20vw;
  min-width: 80px;
  max-width: 200px;
  height: 15vw;
  min-height: 60px;
  max-height: 150px;
  z-index: 1;
  border: 1px solid #333;
  background: #ccc;
}

.ignored {
  opacity:0.5;
  transition: opacity 1s;
}

/**
 * Text chat
 */

#textchat {
  display: table-row;
  height: 22px;
  font-size: 80%;
}

#textchat ul {
  position: absolute;
  top: 22px;
  width: 100%;
  height: calc(100vh - 24px - 22px); /* viewport height minus topbar height */
  overflow: scroll;
  margin: 0;
  padding: 0;
  background: #fff;
}

#textchat ul li {
  padding: 0 5px;
  line-height: 17px;
}

.has-video #textchat ul {
  position: fixed;
  top: inherit;
  bottom: 22px;
  height: 20vh;
  min-height: 50px;
}

#textchat form {
  position: fixed;
  width: 100%;
  margin: 0;
  bottom: 0;
  z-index: 99;
}

#textchat form input[type="text"] {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 22px;
  font-size: 11px;
  border-radius: 0;
  border-left: none;<commit_msg>new constraint of 2 lines of text chat text displayed only<commit_after>/**
 * Conversation window
 */

html, body {
  height: 100%; /* necessary to use display: table* on children */
  margin: 0;
  padding: 0;
}

body {
  display: table;
  width: 100%;      /* display: table seems to make this required */
  min-width: 260px; /* Social API chat window default width */
}

/**
 * Common utilities
 */
.media-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.video-icon {
  background: url(/img/video-icon.png) no-repeat;
}

.audio-icon {
  background: url(/img/btn-audio.png) no-repeat;
}

/**
 * Pending (i.e. offer & establish) views in the chat window
 */
.pending {
  height: 100%;
  padding: 40px 10px 0 10px;
  text-align: center;
}

.pending .avatar {
  text-align: center;
}

.pending .avatar img {
  width: 64px;
  height: 64px;
}

.pending .incoming-info {
  color: #555;
  font-size: 90%;
}

/**
 * Call controls
 */
#call-controls {
  display: table-row;
  background-color: #FAFAFA;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  z-index: 99;
}

#call-controls .controls {
  list-style-type: none;
  margin: 0;
}

#call-controls .controls li {
  border-right: 1px solid #d6d6d6;
  float: left;
}

#call-controls .controls li a {
  display: block;
  height: 16px;
  width: 16px;
  margin: 4px;
}

.btn-video a {
  background: url(../img/btn-video.png);
}

.btn-audio a {
  background: url(../img/btn-audio.png);
}

.btn-hangup a {
  background: url(../img/btn-hangup.png);
}

.btn-microphone-mute a {
  background: url(../img/microphone-mute.png);
}

.btn-microphone-mute.active a {
  background: url(../img/microphone.png);
}

.btn-speaker-mute a {
  background: url(../img/speaker-mute.png);
}

.btn-speaker-mute.active a {
  background: url(../img/speaker.png);
}

/**
 * Video call
 */
#call {
  display: table-row;
  height: 100%;
  /* as the .video-area element is displayed inline, treat it as text so we can
     ensure it's actually centered without knowing its exact width */
  text-align: center;
}

#call .video-area {
  display: inline-block;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

#call .remote-video {
  width: 100vw;
  min-width: 100vw;
  max-height: 350px;
  vertical-align: bottom;
}

/* XXX once we get the local-video stapled to the remote-video,
   much of this stuff may be irrelevant.  Audit this as part
   of that landing. */
#call .local-video {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20vw;
  min-width: 80px;
  max-width: 200px;
  height: 15vw;
  min-height: 60px;
  max-height: 150px;
  z-index: 1;
  border: 1px solid #333;
  background: #ccc;
}

.ignored {
  opacity:0.5;
  transition: opacity 1s;
}

/**
 * Text chat
 */

#textchat {
  display: table-row;
  height: 22px;
  font-size: 80%;
}

#textchat ul {
  position: absolute;
  top: 22px;
  width: 100%;
  height: calc(100vh - 24px - 22px); /* viewport height minus topbar height */
  overflow: scroll;
  margin: 0;
  padding: 0;
  background: #fff;
}

#textchat ul li {
  padding: 0 5px;
  line-height: 17px;
}

.has-video #textchat ul {
  position: fixed;
  top: inherit;
  bottom: 22px;
  height: 13vh;
  min-height: 35px;
}

#textchat form {
  position: fixed;
  width: 100%;
  margin: 0;
  bottom: 0;
  z-index: 99;
}

#textchat form input[type="text"] {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 22px;
  font-size: 11px;
  border-radius: 0;
  border-left: none;
{'fraction_non_alphanumeric': 0.1531441608441466, 'fraction_numerical': 0.03864252103236846, 'mean_word_length': 2.9338194054963544, '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': '71254', 'n_tokens_mistral': 2974, 'n_tokens_neox': 2695, 'n_words': 729}