From d72ba4f15a2616888a777bf2b70c7df639979f31 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sat, 8 Aug 2015 01:39:46 +0200 Subject: [PATCH] Printing: remove templates additional margins Remove extra margins and paddings in templates. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Gehad elrobey --- printing_templates/Flowlayout.html | 14 +++++++------- printing_templates/One Dive.html | 22 +++++++++++----------- printing_templates/Six Dives.html | 4 ++-- printing_templates/Table.html | 10 +++++----- printing_templates/Two Dives.html | 15 ++++++--------- 5 files changed, 31 insertions(+), 34 deletions(-) diff --git a/printing_templates/Flowlayout.html b/printing_templates/Flowlayout.html index a322738ba..2686d8c66 100644 --- a/printing_templates/Flowlayout.html +++ b/printing_templates/Flowlayout.html @@ -38,9 +38,9 @@ } .mainContainer { - width: 96%; - margin-left: 2%; - margin-right: 2%; + width: 100%; + margin-left: 0%; + margin-right: 0%; margin-top: 0%; margin-bottom: 2%; overflow: hidden; @@ -49,13 +49,13 @@ } .innerContainer { - width: 98%; - padding: 1%; + width: 100%; + padding: 0%; overflow: hidden; } .diveDetails { - width: 98%; + width: 100%; float: left; } @@ -76,8 +76,8 @@ .table_class { float: left; + width: 49.25%; margin: 0.5%; - width: 49%; } .notes_table_class { diff --git a/printing_templates/One Dive.html b/printing_templates/One Dive.html index 92ab3cf84..546fc2f07 100644 --- a/printing_templates/One Dive.html +++ b/printing_templates/One Dive.html @@ -38,10 +38,10 @@ } .mainContainer { - width: 96%; + width: 98%; height: 100%; - margin-left: 2%; - margin-right: 2%; + margin-left: 1%; + margin-right: 1%; margin-top: 0%; margin-bottom: 0%; overflow: hidden; @@ -50,28 +50,28 @@ } .innerContainer { - width: 98%; - height: 98%; - padding: 1%; + width: 100%; + height: 100%; + padding: 0%; overflow: hidden; } .diveDetails { - width: 98%; + width: 100%; height: 98%; float: left; } .diveProfile { - width: 96%; + width: 99%; height: 40%; - margin: 2%; + margin: 0.5%; } .dataSection { - width: 98%; + width: 100%; height: 40%; - margin: 1%; + margin: 0%; } .fieldTitle { diff --git a/printing_templates/Six Dives.html b/printing_templates/Six Dives.html index 65d81f1cb..1d3966d3b 100644 --- a/printing_templates/Six Dives.html +++ b/printing_templates/Six Dives.html @@ -47,7 +47,7 @@ .innerContainer { height: 98%; width: 98%; - padding: 0%; + padding: 1%; margin-top: 1%; margin-bottom: 1%; overflow: hidden; @@ -86,7 +86,7 @@ } .diveDetails { - width: 98.5%; + width: 100%; float: left; } diff --git a/printing_templates/Table.html b/printing_templates/Table.html index c21fc3f33..4d692ef21 100644 --- a/printing_templates/Table.html +++ b/printing_templates/Table.html @@ -28,10 +28,10 @@ } .mainContainer { - width: 96%; + width: 99%; height: 100%; - margin-left: 2%; - margin-right: 2%; + margin-left: 0.5%; + margin-right: 0.5%; margin-top: 0%; margin-bottom: 0%; overflow: hidden; @@ -41,8 +41,8 @@ .table_class { overflow: hidden; - width: 97%; - margin: 1.5%; + width: 100%; + margin: 0%; -webkit-box-sizing: border-box; box-sizing: border-box; border:max(0.1vw, 1px); diff --git a/printing_templates/Two Dives.html b/printing_templates/Two Dives.html index 66b5bf46d..eb68cd18d 100644 --- a/printing_templates/Two Dives.html +++ b/printing_templates/Two Dives.html @@ -25,10 +25,10 @@ } .mainContainer { - width: 96%; + width: 99%; height: 50%; - margin-left: 2%; - margin-right: 2%; + margin-left: 0.5%; + margin-right: 0.5%; margin-top: 0; margin-bottom: 0; overflow: hidden; @@ -37,7 +37,6 @@ .innerContainer { height: 85%; - padding: 0.5%; margin-top: 1%; margin-bottom: 1%; overflow: hidden; @@ -45,8 +44,7 @@ .table_class { overflow: hidden; - max-width: 25%; - min-width: 25%; + width: 25%; margin: 0.5%; float: left; -webkit-box-sizing: border-box; @@ -58,8 +56,7 @@ .notes_table_class { overflow: hidden; - max-width: 100%; - min-width: 100%; + width: 99%; margin: 0.5%; float: left; -webkit-box-sizing: border-box; @@ -92,7 +89,7 @@ } .diveDetails { - width: 98.5%; + width: 100%; float: left; }