diff sat/tools/common/template.py @ 2683:38af118a7d74

template: better css files order
author Goffi <goffi@goffi.org>
date Wed, 03 Oct 2018 20:38:10 +0200
parents ae5340b57ff8
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/tools/common/template.py	Wed Oct 03 20:37:12 2018 +0200
+++ b/sat/tools/common/template.py	Wed Oct 03 20:38:10 2018 +0200
@@ -585,13 +585,13 @@
         path_elems = template_data.path.split(u'/')
         path_elems[-1] = os.path.splitext(path_elems[-1])[0]
 
-        for name_root in (u'styles_extra', u'styles'):
-            self._appendCSSPaths(template_data, css_files, css_files_noscript, name_root)
-
         css_path = self.getStaticPath(template_data, u'fonts.css')
         if css_path is not None:
             css_files.append(self.getFrontURL(css_path))
 
+        for name_root in (u'styles', u'styles_extra'):
+            self._appendCSSPaths(template_data, css_files, css_files_noscript, name_root)
+
         for idx in xrange(len(path_elems)):
             name_root = u"_".join(path_elems[:idx+1])
             self._appendCSSPaths(template_data, css_files, css_files_noscript, name_root)