From 72b35d8e79e8d404b4dc0d47d9a9af82958be718 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Tue, 11 Aug 2015 23:02:00 +0200 Subject: [PATCH] Printing: use border width from Grantlee backend Find the border-width dynamically from the Grantlee backend. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Gehad elrobey --- printing_templates/Flowlayout.html | 2 +- printing_templates/One Dive.html | 2 +- printing_templates/Six Dives.html | 2 +- printing_templates/Table.html | 2 +- printing_templates/Two Dives.html | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/printing_templates/Flowlayout.html b/printing_templates/Flowlayout.html index 2686d8c66..cb136c3f2 100644 --- a/printing_templates/Flowlayout.html +++ b/printing_templates/Flowlayout.html @@ -23,7 +23,7 @@ table { -webkit-box-sizing: border-box; box-sizing: border-box; - border:max(1px, 0.1vw); + border-width: {{ template_options.borderwidth }}px; border-style:solid; border-color: {{ template_options.color6 }}; } diff --git a/printing_templates/One Dive.html b/printing_templates/One Dive.html index 176698616..0014c4680 100644 --- a/printing_templates/One Dive.html +++ b/printing_templates/One Dive.html @@ -23,7 +23,7 @@ table { -webkit-box-sizing: border-box; box-sizing: border-box; - border:max(1px, 0.1vw); + border-width: {{ template_options.borderwidth }}px; border-style:solid; border-color: {{ template_options.color6 }}; } diff --git a/printing_templates/Six Dives.html b/printing_templates/Six Dives.html index 2bf23a145..5b2652f05 100644 --- a/printing_templates/Six Dives.html +++ b/printing_templates/Six Dives.html @@ -65,7 +65,7 @@ float: left; -webkit-box-sizing: border-box; box-sizing: border-box; - border:max(0.1vw, 1px); + border-width: {{ template_options.borderwidth }}px; border-style:solid; border-color: {{ template_options.color6 }}; font-size: {{ template_options.font_size }}vw; diff --git a/printing_templates/Table.html b/printing_templates/Table.html index 0a65b2a92..173904faf 100644 --- a/printing_templates/Table.html +++ b/printing_templates/Table.html @@ -23,7 +23,7 @@ padding-bottom: 1vh; -webkit-box-sizing: border-box; box-sizing: border-box; - border:max(1px, 0.1vw); + border-width: {{ template_options.borderwidth }}px; border-style:solid; border-color: {{ template_options.color6 }}; } diff --git a/printing_templates/Two Dives.html b/printing_templates/Two Dives.html index eb68cd18d..13cb5cff6 100644 --- a/printing_templates/Two Dives.html +++ b/printing_templates/Two Dives.html @@ -49,7 +49,7 @@ float: left; -webkit-box-sizing: border-box; box-sizing: border-box; - border:max(0.1vw, 1px); + border-width: {{ template_options.borderwidth }}px; border-style:solid; border-color: {{ template_options.color6 }}; } @@ -61,7 +61,7 @@ float: left; -webkit-box-sizing: border-box; box-sizing: border-box; - border:max(0.1vw, 1px); + border-width: {{ template_options.borderwidth }}px; border-style:solid; border-color: {{ template_options.color6 }}; }