code,
kbd,
pre,
samp,
.text-code {
  font-family: @code-font-family;
}

code {
  padding: 2px 4px;
  border-radius: @code-border-radius;
  background-color: @code-background;
  color: @code-color;
  font-size: @code-font-size;
}

kbd {
  padding: 2px 4px;
  border-radius: @kbd-border-radius;
  background-color: @kbd-background;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: @kbd-color;
  font-size: @code-font-size;
  kbd {
    padding: 0;
    box-shadow: none;
    font-weight: bold;
    font-size: 100%;
  }
}

pre {
  display: block;
  margin: 0 0 calc(@line-height-computed / 2);
  padding: calc((@line-height-computed - 1) / 2);
  border: 1px solid @pre-border-color;
  border-radius: @pre-border-radius;
  background-color: @pre-background!important;
  color: @pre-color;
  word-break: break-all;
  font-size: @code-font-size;
  line-height: @line-height-base;

  overflow-wrap: break-word;
  code {
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    color: inherit;
    word-break: break-word;
    font-size: inherit;

    overflow-wrap: break-word;
    // .pre-wrapped();
  }
}

.pre-scrollable {
  overflow-y: scroll;
  max-height: @pre-scrollable-max-height;
}

.pre-wrapped,
.text-code {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
}
