Skip to content

Commit

Permalink
Fix for page tooltips usability issue #496
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed May 3, 2016
1 parent 770bca0 commit d2fe04f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion themes/grav/css-compiled/template.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/grav/css-compiled/template.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions themes/grav/scss/template/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
@include breakpoint(mobile-only) {
padding-right: 1rem;
}
[data-hint]:after {
line-height: 1 !important;
width: auto !important;
white-space: nowrap !important;
}

p.page-route {
display: block;
Expand Down
5 changes: 3 additions & 2 deletions themes/grav/templates/pages.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@

<li class="page-item" data-nav-id="{{ p.route }}">
<div class="row">
<span {{ p.children(0).count > 0 ? 'data-toggle="children"' : ''}} data-hint="{{ description|trim(' &bull; ')|raw }}" class="hint--bottom">
<span {{ p.children(0).count > 0 ? 'data-toggle="children"' : ''}}>
<i class="page-icon fa fa-fw fa-circle-o {{ p.children(0).count > 0 ? 'children-closed' : ''}} {{ p.modular ? 'modular' : (not p.routable ? 'not-routable' : (not p.visible ? 'not-visible' : (not p.page ? 'folder' : ''))) }}"></i>
</span>
<span data-hint="{{ description|trim(' &bull; ')|raw }}" class="hint--right">
<a href="{{ page_url }}" class="page-edit">{{ p.title|e }}</a>

</span>
{% if p.language %}
<span class="badge lang {% if p.language == admin_lang %}info{% endif %}">{{p.language}}</span>
{% endif %}
Expand Down

0 comments on commit d2fe04f

Please sign in to comment.