This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed extraneous font-family mentions of Ubuntu Mono.
I used the following code to ensure that the rules I excised font-family declarations from still inherited Ubuntu Mono from parent nodes: (function(jQuery) { var $ = jQuery; function test(name, selectors, css) { console.log("CSS test: " + name); selectors.forEach(function(selector) { var passed = 0; var elements = $(selector); if (!elements.length) return console.error(" FAIL - nothing matches " + selector); elements.each(function() { var $el = $(this); for (var property in css) { var value = $el.css(property); if (!value.match(css[property])) return console.error(" FAIL - " + selector + " " + property + " is " + value + ", not " + css[property]); } passed++; }); if (elements.length == passed) console.log(" OK - " + selector + " (" + passed + ")"); }); } test("font is Ubuntu Mono", [ ".CodeMirror", ".CodeMirror-lines", ".CodeMirror textarea", ".CodeMirror-gutter-text", ".cm-s-jsbin span.cm-comment" ], { 'font-family': /Ubuntu Mono/ }); })(jQuery);
- Loading branch information
1da86b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied the test script for this refactoring to a separate gist.