MaxMilton/ekscss-repl

View on GitHub
src/components/Editor.xcss

Summary

Maintainability
Test Coverage
.editor {
  #apply: .textarea;
  overflow-x: auto;
  height: 100%;
  padding-left: 0;
  font-size: 17px;
  text-indent: 1em;
  white-space: pre;
  contain: layout paint style;
  list-style-position: inside;
  list-style-type: decimal-leading-zero;

  & > li {
    // highlight current line selection
    // FIXME: focus doesn't work
    &:focus-within,
    &:hover {
      background-color: ${x.color.light4};
    }

    &::marker {
      color: ${x.color.gray2};
    }
  }
}

.editor-wrap {
  white-space: normal;
  word-break: break-all;
}