From 2a6b8acfe1176cc9bca766cc402a1b2b21ad2fd8 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ <olivier@olivierperez.fr> Date: Sat, 19 Sep 2015 16:51:57 +0200 Subject: [PATCH] Some responsive --- tpl/header.tpl | 8 ++++++-- tpl/index.tpl | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tpl/header.tpl b/tpl/header.tpl index a4eb83c3..d8276454 100644 --- a/tpl/header.tpl +++ b/tpl/header.tpl @@ -1,7 +1,7 @@ <header role="banner"> {if count($langs)>1} <form method="post" action="" class="hidden-print"> - <div class="input-group input-group-sm pull-right col-md-2 col-xs-4"> + <div class="input-group input-group-sm pull-right col-xs-12 col-sm-2"> <select name="lang" class="form-control" title="{__('Language selector', 'Select the language')}" > {foreach $langs as $lang_key=>$lang_value} <option lang="{substr($lang_key, 0, 2)}" {if substr($lang_key, 0, 2)==$locale}selected{/if} value="{$lang_key|html}">{$lang_value|html}</option> @@ -14,7 +14,11 @@ </form> {/if} - <h1><a href="{$SERVER_URL|html}" title="{__('Generic', 'Home')} - {$APPLICATION_NAME|html}"><img src="{$TITLE_IMAGE|resource}" alt="{$APPLICATION_NAME|html}"/></a></h1> + <h1> + <a href="{$SERVER_URL|html}" title="{__('Generic', 'Home')} - {$APPLICATION_NAME|html}" class="col-xs-12 col-sm-10"> + <img src="{$TITLE_IMAGE|resource}" alt="{$APPLICATION_NAME|html}" class="img-responsive"/> + </a> + </h1> {if !empty($title)}<h2 class="lead"><i>{$title|html}</i></h2>{/if} <hr class="trait" role="presentation" /> </header> diff --git a/tpl/index.tpl b/tpl/index.tpl index 1d396870..e1f6e194 100644 --- a/tpl/index.tpl +++ b/tpl/index.tpl @@ -2,7 +2,7 @@ {block name=main} <div class="row"> - <div class="col-md-6 text-center"> + <div class="col-xs-12 col-md-6 text-center"> <p class="home-choice"> <a href="{$SERVER_URL}create_poll.php?type=date" class="opacity" role="button"> <img class="img-responsive center-block" src="{'images/date.png'|resource}" alt=""/> @@ -14,7 +14,7 @@ </a> </p> </div> - <div class="col-md-6 text-center"> + <div class="col-xs-12 col-md-6 text-center"> <p class="home-choice"> <a href="{$SERVER_URL}create_poll.php?type=autre" class="opacity" role="button"> <img alt="" class="img-responsive center-block" src="{'images/classic.png'|resource}"/> @@ -26,7 +26,7 @@ </a> </p> </div> - <div class="col-md-6 col-md-offset-3 text-center"> + <div class="col-xs-12 col-md-6 col-md-offset-3 text-center"> <p class="home-choice"> <a href="{$SERVER_URL}find_polls.php" class="opacity" role="button"> <span class="btn btn-warning btn-lg"> -- GitLab