Header icons

This commit is contained in:
Ghislain Loaec 2015-08-12 14:02:06 +02:00
parent b22ff56ce4
commit 07fbf37eb9
2 changed files with 40 additions and 10 deletions

View File

@ -237,6 +237,18 @@ img {
.navbar {
border: 0;
}
.navbar code {
color: #79a736;
background-color: #222;
vertical-align: bottom;
}
.navbar .navbar-btn.pull-left {
padding: 0 14px 0 7px;
}
.navbar .navbar-btn.pull-right {
padding: 0 7px 0 14px;
}
.navbar .col-xs-8 {
display: table;
}

View File

@ -153,16 +153,34 @@
<script type="text/x-tmpl" id="momo-list-item-tmpl">
<a href="#{%= o.id %}" class="{% if(!o.header){ %} list-group-item {% } %} clearfix">
<span class="pull-left">
{% if(o.icon){ %}
{%# tmpl('momo-icon-tmpl', { icon: o.icon, size: 20 }) %}
{% } %}
{%# o.title %}
</span>
{% if(o.external) { %}
<i class="fa fa-external-link pull-right"></i>
{% } else { %}
<i class="fa fa-angle-right pull-right"></i>
{% if(o.header){ %}
<span class="pull-left">
{% if(o.icon){ %}
{%# tmpl('momo-icon-tmpl', { icon: o.icon, size: 20 }) %}
<span class="hidden-sm hidden-md">
{%# o.title %}
</span>
{% } else { %}
{%# o.title %}
{% } %}
</span>
{% if(o.external) { %}
<i class="fa fa-external-link pull-right hidden-sm hidden-md"></i>
{% } else { %}
<i class="fa fa-angle-right pull-right visible-xs-inline"></i>
{% } %}
{% } else { %}
<span class="pull-left">
{% if(o.icon){ %}
{%# tmpl('momo-icon-tmpl', { icon: o.icon, size: 20 }) %}
{% } %}
{%# o.title %}
</span>
{% if(o.external) { %}
<i class="fa fa-external-link pull-right"></i>
{% } else { %}
<i class="fa fa-angle-right pull-right"></i>
{% } %}
{% } %}
</a>
</script>