changeset 2683:38af118a7d74

template: better css files order
author Goffi <goffi@goffi.org>
date Wed, 03 Oct 2018 20:38:10 +0200
parents 466c9690c43a
children a7529543bbb1
files sat/tools/common/template.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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)