Browse Source

il template simple po essere bianco po essere nero in base al parametro

encrypt 10 months ago
parent
commit
fe013b5e28
2 changed files with 19 additions and 1 deletions
  1. 15 0
      static/flyers/simple/white.css
  2. 4 1
      templates/flyers/simple.html

+ 15 - 0
static/flyers/simple/white.css

@@ -0,0 +1,15 @@
+body {
+  background: #fff;
+}
+
+.intestazione {
+  color: #000;
+}
+
+footer {
+  color: #0d1117;
+}
+
+.contacts svg {
+  fill: #0d1117;
+}

+ 4 - 1
templates/flyers/simple.html

@@ -5,7 +5,10 @@
     <title>Balotta cartecea</title>
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <link rel="stylesheet" href="{{ url_for('static', filename='flyers/simple/style.css') }}">
-    <link rel="stylesheet" href="{{ url_for('static', filename='flyers/simple/paper.css') }} ">
+    {% if params.colorMode == 'white' %}
+       <link rel="stylesheet" href="{{ url_for('static', filename='flyers/simple/white.css') }} ">
+    {% endif %}
+    <link rel="stylesheet" href="{{ url_for('static', filename='flyers/simple/paper.css') }} ">    
   </head>
 
   <body class="A3 center">