MDL-42564 ActionMenu: Replace actionmenu icon with new style

This commit is contained in:
Barbara Ramiro 2013-11-02 08:25:22 +08:00 committed by Andrew Nicols
parent 6982618e89
commit 13273e51a8
6 changed files with 28 additions and 2 deletions

View File

@ -3252,10 +3252,10 @@ class action_menu implements renderable {
} else {
$title = new lang_string('actions', 'moodle');
$this->actionicon = new pix_icon(
'i/dropdown',
't/edit_menu',
'',
'moodle',
array('class' => 'iconsmall', 'title' => '')
array('class' => 'iconsmall actionmenu', 'title' => '')
);
$pixicon = $this->actionicon;
}

BIN
pix/t/edit_menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

18
pix/t/edit_menu.svg Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
]>
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
x="0px" y="0px" width="22px" height="12px" viewBox="0 0 22 12" style="overflow:visible;enable-background:new 0 0 22 12;"
xml:space="preserve">
<defs>
</defs>
<path style="fill:#999999;" d="M11.9,7C12,6.7,12,6.3,12,6s0-0.7-0.1-1l-1.6-0.3c-0.1-0.3-0.2-0.6-0.4-0.9l0.9-1.3
C10.5,2,10,1.5,9.5,1.1L8.1,2C7.9,1.9,7.6,1.8,7.3,1.7L7,0.1C6.7,0,6.3,0,6,0C5.7,0,5.3,0,5,0.1L4.7,1.7C4.4,1.8,4.1,1.9,3.9,2
L2.5,1.1C2,1.5,1.5,2,1.1,2.5L2,3.9C1.9,4.1,1.8,4.4,1.7,4.7L0.1,5C0,5.3,0,5.7,0,6c0,0.3,0,0.7,0.1,1l1.6,0.3
C1.8,7.6,1.9,7.9,2,8.1L1.1,9.5c0.4,0.5,0.9,1,1.4,1.4L3.9,10c0.3,0.1,0.6,0.3,0.9,0.4L5,11.9C5.3,12,5.7,12,6,12c0.3,0,0.7,0,1-0.1
l0.3-1.6c0.3-0.1,0.6-0.2,0.9-0.4l1.3,0.9c0.5-0.4,1-0.9,1.4-1.4L10,8.1c0.2-0.3,0.3-0.6,0.4-0.9L11.9,7z M6,7.5
C5.2,7.5,4.5,6.8,4.5,6S5.2,4.5,6,4.5S7.5,5.2,7.5,6S6.8,7.5,6,7.5z M15,4H22l-3.5,3.5L15,4L15,4z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -169,6 +169,9 @@ img.iconsmall,
-moz-border-radius: 5px;
border-radius: 5px;
}
.block.block_with_controls div.header div.commands img.iconsmall.actionmenu {
width: auto;
}
.course-content ul.topics li.section .right img.spacer,
.course-content ul.topics li.section .left img.spacer {
height: 1px;

View File

@ -6,6 +6,7 @@
.block .header .commands { text-align: right; clear: both;}
.block .header .commands > a { margin:0 3px; }
.block .header .commands .icon img {width:12px;height:12px;}
.block .header .commands img.actionmenu {width:auto;}
.block .content {padding:4px;}
.block.hidden .content {display: none;}
.block .content .userpicture {width:16px;height:16px;margin-right:6px;}

View File

@ -35,6 +35,10 @@
height: 12px;
}
.block .header .commands img.actionmenu {
width:auto;
}
.block .content {
padding: 4px 14px;
}