Nathan Sobo
c4bbd2bbf2
Build StyleManager in Atom environment constructor
2015-10-07 15:24:51 -05:00
Nathan Sobo
7dd67caf57
Remove ‘group’ parameter to addStyleSheet in favor of ‘priority’
2015-01-07 09:51:42 -07:00
Nathan Sobo
2c1f8ce733
Set the style element priority based on the group
...
This ensures that elements are always in the desired order regardless
of the order the groups are added.
2015-01-06 19:41:57 -07:00
Nathan Sobo
94e12ee886
Handle priority in when inserting style elements in style manager
2015-01-06 19:33:14 -07:00
Nathan Sobo
65e077abd1
Use StyleManager and StylesElement to manage all stylesheet elements
...
For now, loading remains in the theme manager, but all application of
stylesheets is routed through atom.styles.
2014-10-15 15:14:13 -06:00
Nathan Sobo
62a43c6fb9
Revise StyleManager API
2014-10-15 15:14:12 -06:00
Nathan Sobo
1fe1147901
Add group parameter to StyleManager::addStyleSheet
...
This can be used to sequence style elements at the correct location in
the cascade even if they are loaded later than elements in a subsequent
group.
2014-10-15 15:14:12 -06:00
Nathan Sobo
1c97dcd195
Add sourcePath parameter to StyleManager::addStyleSheet
2014-10-15 15:14:12 -06:00
Nathan Sobo
d3371dbcd2
Start on StyleManager
...
This will take over raw stylesheet management from the theme manager
now that it’s becoming more complex with the need to target specific
host elements. Instead of actually adding nodes to the head of the
document, it will instead simply manage a set of stylesheets we want to
apply and leave actual DOM manipulation to <atom-styles> custom elements
that can render the set of active stylesheets in the appropriate
locations.
2014-10-15 15:14:12 -06:00