Commit 21231f4d authored by Andrew Nicols's avatar Andrew Nicols
Browse files

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

parent 6272fce6
......@@ -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');
......
......@@ -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: "";
}
......@@ -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] {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment