DannyBen/madness

View on GitHub
app/styles/_code.scss

Summary

Maintainability
Test Coverage
code {
  padding: 0;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  margin: 0;
  // font-size: 85%;
  background-color: #eee;
  border-radius: 3px;
  
  &:before, &:after {
    letter-spacing: -0.2em;
    content: "\00a0";
  }
}

pre {
  margin-left: 20px;
  // margin-top: 0;
  // margin-bottom: 0;

  // padding: 16px;
  overflow: auto;
  // font-size: 85%;
  line-height: 1.45;
  // background-color: #f7f7f7;
  // border-radius: 3px;
  word-wrap: normal;

  &>code {
    padding: 0;
    margin: 0;
    font-size: 100%;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0;
  }

  code {
    display: inline-block;
    max-width: initial;
    // padding: 10px;
    overflow: initial;
    line-height: inherit;
    word-wrap: normal;
    border: 0;
    // background: #eee;
  }

  code:before,
  code:after {
    content: normal;
  }
}