From 605131f123f41f21b74148542b92d160e436896f Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 16 Nov 2017 21:12:42 +0100 Subject: [PATCH] Clean up vsplit in svg list --- resources/cards/svg.css | 15 +++++++-------- resources/cards/svg.vm | 35 ++++++++++++++--------------------- 2 files changed, 21 insertions(+), 29 deletions(-) diff --git a/resources/cards/svg.css b/resources/cards/svg.css index 489a9da..d041781 100644 --- a/resources/cards/svg.css +++ b/resources/cards/svg.css @@ -46,15 +46,14 @@ h4 { margin:0; } -.splitcontainer { +.vsplit { width: 100%; overflow: hidden; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-around; } -.splitl { - width: 45%; - float:left; -} -.splitr { - width: 45%; - float:right; +.vsplit >* { + flex-grow: 1; } diff --git a/resources/cards/svg.vm b/resources/cards/svg.vm index 0258f30..70bfeba 100644 --- a/resources/cards/svg.vm +++ b/resources/cards/svg.vm @@ -24,14 +24,15 @@ #end + +
+

Collections:

+ No collection + #foreach($collection in $collections) + - $escape_html($collection) + #end +
-
-

Collections:

- No collection - #foreach($collection in $collections) - - $escape_html($collection) - #end -
#end #macro(pagination) #if($has_next || $page>1) @@ -53,13 +54,9 @@ #end Return to cardlist -
-
- #upload_svgs_form() -
-
- #filter_and_collection_forms() -
+
+ #upload_svgs_form() + #filter_and_collection_forms()

Available SVGs:

@@ -77,13 +74,9 @@ #pagination() -
-
- #upload_svgs_form() -
-
- #filter_and_collection_forms() -
+
+ #upload_svgs_form() + #filter_and_collection_forms()
Return to cardlist