Move non-theme-specific inline editor styles into core.

Fix for #8571 (targeting release branch).

@larz0 can you take a look?

@mackenza does this do the trick for you?