aboutsummaryrefslogtreecommitdiffstats
path: root/printing_templates
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-10 14:02:13 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-20 15:27:31 +0300
commit85bce0fa0da575040b6e4ef04750475b9a9ae223 (patch)
treed5221ed2257cd64ed836de69498bd63c6bd596f2 /printing_templates
parentc90d5b891df873a6a69f5da618d42af998b4620f (diff)
downloadsubsurface-85bce0fa0da575040b6e4ef04750475b9a9ae223.tar.gz
Printing: enhance the one_dive per page template
- fix the layout - prevent the notes from expanding - don't overflow the text Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'printing_templates')
-rw-r--r--printing_templates/one_dive.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/printing_templates/one_dive.html b/printing_templates/one_dive.html
index d7ae8d477..52b8097c9 100644
--- a/printing_templates/one_dive.html
+++ b/printing_templates/one_dive.html
@@ -16,13 +16,17 @@
}
table {
- -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
- -moz-box-sizing: border-box; /* Firefox, other Gecko */
+ -webkit-box-sizing: border-box;
box-sizing: border-box;
border:max(1px, 0.1vw);
border-style:solid;
}
+ td {
+ padding-left: 0.5vw;
+ padding-right: 0.5vw;
+ }
+
.mainContainer {
width: 96%;
height: 100%;
@@ -45,8 +49,7 @@
.diveDetails {
width: 98%;
height: 98%;
- -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
- -moz-box-sizing: border-box; /* Firefox, other Gecko */
+ -webkit-box-sizing: border-box;
box-sizing: border-box;
border:max(1px, 0.1vw);
border-style:solid;
@@ -54,20 +57,15 @@
}
.diveProfile {
- width: 97%;
+ width: 96%;
height: 40%;
- margin: 1.5%;
- -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
- -moz-box-sizing: border-box; /* Firefox, other Gecko */
- box-sizing: border-box;
- border:max(1px, 0.1vw);
- border-style:solid;
+ margin: 2%;
}
.dataSection {
- width: 97%;
+ width: 98%;
height: 40%;
- margin: 1.5%;
+ margin: 1%;
}
.fieldTitle {
@@ -77,18 +75,20 @@
.table_class {
float: left;
- margin: 1.5%;
+ margin: 1%;
+ width: 48%;
}
.notes_table_class {
overflow: hidden;
- width: 97%;
- margin: 1.5%;
- float: left;
+ width: 98%;
+ margin: 1%;
}
.textArea {
line-height: {{ template_options.line_spacing }};
+ max-height: 19vh;
+ overflow: hidden;
}
</style>
</head>