/* Readable article code blocks with generated line numbers. */
.entry pre.ucexpert-code-block,
.post pre.ucexpert-code-block,
.comment-body pre.ucexpert-code-block {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 15px 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  color: #111;
  font: 14px/1.35 Menlo, Monaco, Consolas, "Courier New", monospace;
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.entry pre.ucexpert-code-block code,
.post pre.ucexpert-code-block code,
.comment-body pre.ucexpert-code-block code {
  display: block;
  min-width: max-content;
  padding: 0;
  color: inherit;
  font: inherit;
  white-space: pre;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.entry .ucexpert-code-lines,
.post .ucexpert-code-lines,
.comment-body .ucexpert-code-lines {
  counter-reset: ucexpert-code-line;
}

.entry .ucexpert-code-line,
.post .ucexpert-code-line,
.comment-body .ucexpert-code-line {
  display: block;
  position: relative;
  min-height: 1.35em;
  padding-left: 62px;
  counter-increment: ucexpert-code-line;
  white-space: pre;
}

.entry .ucexpert-code-line::before,
.post .ucexpert-code-line::before,
.comment-body .ucexpert-code-line::before {
  content: counter(ucexpert-code-line);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42px;
  padding-right: 10px;
  color: #b6b6b6;
  text-align: right;
  border-right: 4px solid #6bdc6b;
}

.entry p > code:only-child,
.post p > code:only-child,
.comment-body p > code:only-child {
  display: block;
  margin: 15px 0;
  padding: 10px 12px;
  overflow-x: auto;
  color: #333;
  font: 12px/1.55 Menlo, Monaco, Consolas, "Courier New", monospace;
  white-space: pre;
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  border-left: 4px solid #3b7fae;
  border-radius: 3px;
  box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
  .entry pre.ucexpert-code-block,
  .post pre.ucexpert-code-block,
  .comment-body pre.ucexpert-code-block {
    font-size: 12px;
    line-height: 1.45;
    -webkit-overflow-scrolling: touch;
  }

  .entry .ucexpert-code-line,
  .post .ucexpert-code-line,
  .comment-body .ucexpert-code-line {
    padding-left: 48px;
  }

  .entry .ucexpert-code-line::before,
  .post .ucexpert-code-line::before,
  .comment-body .ucexpert-code-line::before {
    width: 32px;
    padding-right: 8px;
  }

  .entry p > code:only-child,
  .post p > code:only-child,
  .comment-body p > code:only-child {
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .entry table,
  .post table,
  .comment-body table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry img,
  .post img,
  .comment-body img,
  .entry .wp-caption,
  .post .wp-caption {
    max-width: 100% !important;
    height: auto !important;
  }

  .entry iframe,
  .post iframe,
  .entry object,
  .post object,
  .entry embed,
  .post embed {
    max-width: 100%;
  }
}
