1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-23 06:31:54 +00:00

Fixed Panel View placement

This commit is contained in:
Paweł Jastrzębski
2015-11-03 18:15:32 +01:00
parent 241801f9cb
commit 21174338ff

View File

@@ -182,15 +182,16 @@ def buildHTML(path, imgfile, imgfilepath):
boxes = [] boxes = []
for i in range(0, len(boxes)): for i in range(0, len(boxes)):
f.writelines(["<div id=\"" + boxes[i] + "\">\n", f.writelines(["<div id=\"" + boxes[i] + "\">\n",
"<a class=\"app-amzn-magnify\" data-app-amzn-magnify='{\"targetId\":\"" + boxes[i] + "<a style=\"display:inline-block;width:100%;height:100%;\" class=\"app-amzn-magnify\" "
"data-app-amzn-magnify='{\"targetId\":\"" + boxes[i] +
"-P\", \"ordinal\":" + str(order[i]) + "}'></a>\n", "-P\", \"ordinal\":" + str(order[i]) + "}'></a>\n",
"</div>\n"]) "</div>\n"])
f.write("</div>\n")
for box in boxes: for box in boxes:
f.writelines(["<div class=\"PV-P\" id=\"" + box + "-P\" style=\"" + additionalStyle + "\">\n", f.writelines(["<div class=\"PV-P\" id=\"" + box + "-P\" style=\"" + additionalStyle + "\">\n",
"<img style=\"" + boxStyles[box] + "\" src=\"", "../" * backref, "Images/", postfix, "<img style=\"" + boxStyles[box] + "\" src=\"", "../" * backref, "Images/", postfix,
imgfilepv, "\" width=\"" + str(size[0]) + "\" height=\"" + str(size[1]) + "\"/>\n", imgfilepv, "\" width=\"" + str(size[0]) + "\" height=\"" + str(size[1]) + "\"/>\n",
"</div>\n"]) "</div>\n"])
f.write("</div>\n")
f.writelines(["</body>\n", f.writelines(["</body>\n",
"</html>\n"]) "</html>\n"])
f.close() f.close()
@@ -393,6 +394,8 @@ def buildEPUB(path, chapterNames, tomeNumber):
"position: absolute;\n", "position: absolute;\n",
"width: 100%;\n", "width: 100%;\n",
"height: 100%;\n", "height: 100%;\n",
"top: 0;\n",
"left: 0;\n",
"}\n", "}\n",
"#PV-T {\n", "#PV-T {\n",
"top: 0;\n", "top: 0;\n",
@@ -406,41 +409,41 @@ def buildEPUB(path, chapterNames, tomeNumber):
"}\n", "}\n",
"#PV-L {\n", "#PV-L {\n",
"left: 0;\n", "left: 0;\n",
"width: 50%;\n", "width: 49.5%;\n",
"height: 100%;\n", "height: 100%;\n",
"float: left;\n", "float: left;\n",
"}\n", "}\n",
"#PV-R {\n", "#PV-R {\n",
"right: 0;\n", "right: 0;\n",
"width: 50%;\n", "width: 49.5%;\n",
"height: 100%;\n", "height: 100%;\n",
"float: right;\n", "float: right;\n",
"}\n", "}\n",
"#PV-TL {\n", "#PV-TL {\n",
"top: 0;\n", "top: 0;\n",
"left: 0;\n", "left: 0;\n",
"width: 50%;\n", "width: 49.5%;\n",
"height: 50%;\n", "height: 50%;\n",
"float: left;\n", "float: left;\n",
"}\n", "}\n",
"#PV-TR {\n", "#PV-TR {\n",
"top: 0;\n", "top: 0;\n",
"right: 0;\n", "right: 0;\n",
"width: 50%;\n", "width: 49.5%;\n",
"height: 50%;\n", "height: 50%;\n",
"float: right;\n", "float: right;\n",
"}\n", "}\n",
"#PV-BL {\n", "#PV-BL {\n",
"bottom: 0;\n", "bottom: 0;\n",
"left: 0;\n", "left: 0;\n",
"width: 50%;\n", "width: 49.5%;\n",
"height: 50%;\n", "height: 50%;\n",
"float: left;\n", "float: left;\n",
"}\n", "}\n",
"#PV-BR {\n", "#PV-BR {\n",
"bottom: 0;\n", "bottom: 0;\n",
"right: 0;\n", "right: 0;\n",
"width: 50%;\n", "width: 49.5%;\n",
"height: 50%;\n", "height: 50%;\n",
"float: right;\n", "float: right;\n",
"}\n", "}\n",