Skip to content

Commit

Permalink
Merge pull request #8817 from piwik/8748_icon_placements
Browse files Browse the repository at this point in the history
Fix some icon placement issues
  • Loading branch information
Matthieu Aubry committed Oct 4, 2015
2 parents 8281590 + b4c46b3 commit 0dc0e31
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions plugins/CoreHome/stylesheets/dataTable/_dataTable.less
Expand Up @@ -42,6 +42,10 @@ table.dataTable img {
margin-left: 0.5em;
}

table.subDataTable img.link {
transform: translateY(-50%);
}

table.dataTable tr.subDataTable {
cursor: pointer;

Expand Down
11 changes: 9 additions & 2 deletions plugins/Live/stylesheets/live.less
Expand Up @@ -251,10 +251,17 @@ a.visitor-log-visitor-profile-link {

.action-list-action-icon {
float:left;
margin-top:6px;

&.event {
margin-top: 1px;
margin-top: 0;
}
&.outlink {
margin-top: 4px;
margin-right: 4px;
margin-left: 4px;
}
&.search {
margin-right: 4px;
}
}

Expand Down
4 changes: 2 additions & 2 deletions plugins/Live/templates/_actionsList.twig
Expand Up @@ -83,7 +83,7 @@
{% endif %}
{% if action.siteSearchKeyword is defined %}
{% if action.type == 'search' %}
<img src='{{ action.icon }}' title='{{ 'Actions_SubmenuSitesearch'|translate }}' class="action-list-action-icon">
<img src='{{ action.icon }}' title='{{ 'Actions_SubmenuSitesearch'|translate }}' class="action-list-action-icon search">
{% endif %}
<span class="truncated-text-line">{{ action.siteSearchKeyword }}</span>
{% endif %}
Expand All @@ -94,7 +94,7 @@
{% if action.url is not empty %}
{% if action.type == 'action' and action.pageTitle|default(false) is not empty %}<p>{% endif %}
{% if action.type == 'download' or action.type == 'outlink' %}
<img src='{{ action.icon }}' class="action-list-action-icon">
<img src='{{ action.icon }}' class="action-list-action-icon {{ action.type }}">
{% endif %}

{% if action.eventCategory|default(false) is not empty
Expand Down

0 comments on commit 0dc0e31

Please sign in to comment.