mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-40975 ActionMenu: Convert text-based icon to the caret style
This commit is contained in:
parent
6272fce649
commit
21231f4d76
@ -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] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user