.bs-example {
  position: relative;
  padding: 45px 15px 15px;
  margin: 15px -15px;
  border-color: #e5e5e5 #eee #eee;
  border-style: solid;
  border-width: 1px 0;
  box-shadow: inset 0 3px 6px rgb(0 0 0 / 5%);

  &.bs-example-modal {
    overflow: hidden;
    min-height: 300px;

    .modal {
      position: absolute;
      z-index: $zindex-modal - 100;
    }

    .modal-backdrop {
      position: absolute;
      z-index: $zindex-modal-background - 100;
    }
  }
}

/* Echo out a label for the example */
.bs-example::after {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 12px;
  font-weight: bold;
  color: #959595;
  text-transform: uppercase;
  letter-spacing: 1px;
  content: "Example";
}

.bs-example-padded-bottom {
  padding-bottom: 24px;
}

/* Tweak display of the code snippets when following an example */
.bs-example + .highlight,
.bs-example + .zero-clipboard + .highlight {
  margin: -15px -15px 15px;
  border-width: 0 0 1px;
  border-radius: 0;
}

/* Make the examples and snippets not full-width */
@media (width >= 768px) {
  .bs-example {
    margin-right: 0;
    margin-left: 0;
    background-color: #fff;
    border-color: #ddd;
    border-width: 1px;
    border-radius: 4px 4px 0 0;
    box-shadow: none;
  }

  .bs-example + .highlight,
  .bs-example + .zero-clipboard + .highlight {
    margin-top: -16px;
    margin-right: 0;
    margin-left: 0;
    border-width: 1px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  .bs-example-standalone {
    border-radius: 4px;
  }
}
