Projet

Général

Profil

0001-general-change-template-to-directly-point-to-custom-.patch

Frédéric Péters, 04 octobre 2015 16:48

Télécharger (3,83 ko)

Voir les différences:

Subject: [PATCH] general: change template to directly point to custom css file
 (#8502)

 static/custom-alfortville/style.css        | 2 ++
 static/custom-fontenay-sous-bois/style.css | 4 +++-
 static/custom-imio/style.css               | 1 +
 static/custom-meaux/style.css              | 2 ++
 static/custom-pratic/style.css             | 2 ++
 static/custom-prefecture/style.css         | 2 ++
 static/custom-publik/style.css             | 2 ++
 templates/theme.html                       | 9 +++++----
 8 files changed, 19 insertions(+), 5 deletions(-)
static/custom-alfortville/style.css
1
@import url(../style.css);
2

  
1 3
body {
2 4
    background: #E7E6E1;
3 5
}
static/custom-fontenay-sous-bois/style.css
1
@import url(../style.css);
2

  
1 3
html, body {
2 4
	margin: 0;
3 5
	padding: 0;
......
279 281
/* item view style */
280 282
#item .issued, #item .paid {
281 283
    display: none;
282
}
284
}
static/custom-imio/style.css
1
@import url(../style.css);
1 2
@import url(https://lalouviere-citoyen.lescommunes.be/guichet.css);
2 3
div#main-content { width: 100%; }
3 4
#main-content-wrapper #nav ul a { float: none; }
static/custom-meaux/style.css
1
@import url(../style.css);
2

  
1 3
div#header {
2 4
	max-width: 1205px;
3 5
	margin: auto;
static/custom-pratic/style.css
1
@import url(../style.css);
2

  
1 3
html, body {
2 4
	background: #E6E7EB;
3 5
}
static/custom-prefecture/style.css
1
@import url(../style.css);
2

  
1 3
html {
2 4
	background: #EDEDED url(bg-container.png) repeat-y scroll center top;
3 5
}
static/custom-publik/style.css
1
@import url(../style.css);
2

  
1 3
div#header,
2 4
body {
3 5
	background: #fcfcfc;
templates/theme.html
11 11
    {% block extra_top_head %}
12 12
    {% endblock %}
13 13
    {{ media }}
14
    <link rel="stylesheet" type="text/css" href="{{site_base}}{% static "style.css" %}" >
14
    {% if css_variant %}
15
      <link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}custom-{{css_variant}}/style.css">
16
    {% else %}
17
      <link rel="stylesheet" type="text/css" href="{{site_base}}{% static "style.css" %} ">
18
    {% endif %}
15 19
    {% block extra_css %}
16 20
    {% endblock %}
17 21
    {% block extra_scripts %}
18 22
    {% endblock %}
19
    {% if css_variant %}
20
    <link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}custom-{{css_variant}}/style.css" >
21
    {% endif %}
22 23
  </head>
23 24
  <body {% block bodyargs %}{% endblock %}>
24 25

  
25
-