MDL-40975 ActionMenu: Convert text-based icon to the caret style

This commit is contained in:
Andrew Nicols 2013-11-02 08:59:57 +08:00
parent 6272fce649
commit 21231f4d76
3 changed files with 22 additions and 7 deletions

View File

@ -3241,13 +3241,7 @@ class action_menu implements renderable {
$title = '';
if (!empty($this->menutrigger)) {
// Change the pixicon.
$pixicon = new pix_icon(
't/dropdown',
'',
'moodle',
array('class' => 'iconsmall', 'title' => '')
);
$pixicon = '<b class="caret"></b>';
$linkclasses[] = 'textmenu';
} else {
$title = new lang_string('actions', 'moodle');

View File

@ -1488,6 +1488,11 @@ img#persona_signin { cursor: pointer; }
margin: 8px 4px 0px 2px;
}
.jsenabled .moodle-actionmenu[data-enhance] .toggle-display.textmenu .caret {
margin-top: 4px;
margin-left: 2px;
}
.jsenabled .moodle-actionmenu[data-enhanced] .toggle-display {opacity: 1;filter: alpha(opacity=100);}
.jsenabled .moodle-actionmenu[data-enhanced] .menu-action-text {
display: inline;
@ -1581,3 +1586,14 @@ a.disabled {
font-style: italic;
color: #808080;
}
.caret {
display: inline-block;
width: 0;
height: 0;
vertical-align: top;
border-top: 4px solid #000;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: "";
}

View File

@ -2041,6 +2041,11 @@ img#persona_signin {
padding: 8px 4px 0px 2px;
vertical-align: text-bottom;
}
.caret {
margin-top: 8px;
margin-left: 2px;
}
}
}
.moodle-actionmenu[data-enhanced] {