Is there a way to dynamically add a rule to existing CSS using code, particularly in overrides? For example:
var sheets = document.styleSheets;
// Some code omitted for simplicity
var sheet = sheets[sheets.length - 1];
sheet.insertRule('.overlay {float: left; opacity: 0.8;}', -1);
I'm looking for a solution that allows me to change the CSS after it's loaded but before the components are displayed. If this isn't possible, when is the earliest point I can modify the CSS?