Make stylesheet compatible with shadow-dom-enabled editors

Fixes #456