MaxMilton/ekscss

View on GitHub
packages/framework/addon/code.xcss

Summary

Maintainability
Test Coverage
.code-inline {
  padding: ${x.codeInline.paddingY} ${x.codeInline.paddingX};
  color: ${x.codeInline.textColor};
  word-wrap: break-word;
  background-color: ${x.codeInline.backgroundColor};
  user-select: all; // for easy copy
}

.code-block {
  display: block; // makes it easy to add to a <code> element
  overflow: auto;
  max-width: 100%;
  padding: ${x.codeBlock.paddingY} ${x.codeBlock.paddingX};
  border-radius: ${x.codeBlock.radius};
  color: ${x.codeBlock.textColor};
  white-space: pre;
  background-color: ${x.codeBlock.backgroundColor};
}