From 2f456df8a62d221ecc713692ec60a88b935b4c68 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 17 Oct 2017 18:55:13 +0200 Subject: [PATCH] Switch from html size tag to css width on card creator page --- dev.sh | 2 +- resources/cards/creator.css | 33 ++++++++++++++++++++++++--------- resources/cards/creator.vm | 25 +++++++++++++------------ 3 files changed, 38 insertions(+), 22 deletions(-) diff --git a/dev.sh b/dev.sh index 73a3f80..35e3947 100755 --- a/dev.sh +++ b/dev.sh @@ -4,4 +4,4 @@ if ! which entr > /dev/null; then exit 1 fi -find . -name "*.py" | entr -r ./server.py \ No newline at end of file +find . -name "*.py" | entr -r ./server.py diff --git a/resources/cards/creator.css b/resources/cards/creator.css index 04ee4f5..0e61cdd 100644 --- a/resources/cards/creator.css +++ b/resources/cards/creator.css @@ -1,28 +1,43 @@ iframe { - width: 7cm; height: 11cm; + width: 6.1cm; display: block; position: absolute; - top: 0; - right: 0; + top: 0.35cm; + right: 0.35cm; border: none; } -* { +ul { margin: 0; padding: 0; } form { - width: calc(100% - 9cm); + width: calc(100% - 6.5cm); + width: 19cm; } - ul { list-style-type: none; - margin: 0.5em; + margin: 2mm; } ul li { float: left; - margin: 0.6em; - margin-bottom: 0.1em; + margin: 3mm; + margin-bottom: 1mm; + width: 8.5cm; +} + +ul li input[type=text], +ul li textarea { + width: 100%; +} + +ul li input[type=text][name=gp], +ul li input[type=text][name=cp] { + width: 4.09cm; +} +ul li input[type=text][name=tag], +ul li input[type=text][name=filename] { + width: 3.8cm; } diff --git a/resources/cards/creator.vm b/resources/cards/creator.vm index d4713e2..7059034 100644 --- a/resources/cards/creator.vm +++ b/resources/cards/creator.vm @@ -5,19 +5,20 @@ Card Creator +Return to cardlist +
- Return to cardlist