Treat codemirror.css like a rolled-in upstream dependency. Instead of changing it directly, consider changing front_end/text_editor/cmdevtools.css instead.
codemirror.css
front_end/text_editor/cmdevtools.css
Issue #1076825 tracks the effort to use the upstream file more directly.