UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).

38 lines (31 loc) 816 B
.sc-isolated-node { position: relative; } /* Hide selection fragments when in selected-state */ .sc-isolated-node.sm-selected ::selection { background: transparent; } .sc-isolated-node-blocker { position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; } .sc-isolated-node.sm-no-blocker .sc-isolated-node-blocker { display: none; } .sc-isolated-node > .se-bracket { height: 1px; width: 1px; opacity: 0; } .sc-isolated-node.sm-no-blocker > .se-bracket { visibility: hidden; } /* ATTENTION: we must not have brackets hidden when rendering a node selection, otherwise Chrome's DOM selection 'leaks' into the previous/next line */ .sc-isolated-node.sm-no-blocker.sm-selected > .se-bracket, .sc-isolated-node.sm-no-blocker.sm-co-selected > .se-bracket { visibility: visible; }