Skip to content

Commit

Permalink
Dev: fixed issue #11855: Bad alignment of icon and text for question-…
Browse files Browse the repository at this point in the history
…help
  • Loading branch information
Shnoulle committed Nov 2, 2016
1 parent 701dd7a commit 19e2d23
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Expand Up @@ -6,6 +6,5 @@
?>
<!-- views/survey/system/questionhelp -->
<div class="ls-questionhelp">
<span class="fa fa-question-circle pull-left" aria-hidden="true"></span>
<?php echo $questionHelp; ?>
</div>
29 changes: 29 additions & 0 deletions templates/default/css/template.css
Expand Up @@ -58,6 +58,35 @@ padding-top:1em;padding-bottom:1em;
}
.top-container .form-change-lang {text-align:center}

/**
* Question part
*/
.ls-questionhelp{position: relative;}
.dir-ltr .ls-questionhelp{margin-left:1.2em;}
.dir-rtl .ls-questionhelp{margin-right:1.2em;}

.ls-questionhelp:before{content:"\f059"}
.ls-questionhelp:before {
display: block;
position:absolute;
font-family: FontAwesome;
font-size: inherit;
line-height: inherit;
height:100%;
}
/* If you want to center the icon */
/*
.ls-questionhelp:before {
top:50%;
margin-top:-0.7em;
}
*/
.dir-ltr .ls-questionhelp:before {
left:-1.1em;
}
.dir-rtl .ls-questionhelp:before {
right:0;
}
/**
* Navigator
*/
Expand Down

0 comments on commit 19e2d23

Please sign in to comment.