From 18dd7f58b087ac44bb4047fe09a60000e6cd34e3 Mon Sep 17 00:00:00 2001 From: Antonin Date: Mon, 8 Aug 2016 18:07:36 +0200 Subject: [PATCH] Collapse by default optionnal parameters --- css/app/create_poll.css | 28 ++++ tpl/create_poll.tpl | 307 +++++++++++++++++++++------------------- 2 files changed, 193 insertions(+), 142 deletions(-) diff --git a/css/app/create_poll.css b/css/app/create_poll.css index 3b91efb..58b79eb 100644 --- a/css/app/create_poll.css +++ b/css/app/create_poll.css @@ -1,3 +1,31 @@ .form-horizontal .radio label { width: 100%; +} + +.optionnal-parameters:hover, .optionnal-parameters:focus { + text-decoration: none; +} + +.optionnal-parameters:active, .optionnal-parameters:focus { + outline: none; +} + +.optionnal-parameters .caret, .optionnal-parameters.collapsed .caret.caret-up { + display: none; +} + +.optionnal-parameters .caret.caret-up, .optionnal-parameters.collapsed .caret { + display: inline-block; +} + +.caret.caret-up { + border-bottom: 4px dashed; + border-top: 0 none; + content: ""; +} + +@media (max-width: 767px) { + #optionnal { + margin-top: 15px; + } } \ No newline at end of file diff --git a/tpl/create_poll.tpl b/tpl/create_poll.tpl index f144661..a7780a9 100644 --- a/tpl/create_poll.tpl +++ b/tpl/create_poll.tpl @@ -101,168 +101,191 @@ {/if} - {* Poll identifier *} - -
- - -
-
- -
-
+ {* Optionnal parameters *} + -
+ +
+ + +
+ + {* Poll identifier *} +
-