MDL-83148 assignfeedback_editpdf: style icons in comment editing menu.

This commit is contained in:
Paul Holden 2024-09-15 11:05:04 +01:00
parent 09e56f2d1a
commit 71a55aa368
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
6 changed files with 15 additions and 22 deletions

View File

@ -298,10 +298,6 @@ ul.assignfeedback_editpdf_menu {
border-radius: 4px;
}
.assignfeedback_editpdf_menu li img {
height: auto;
}
.assignfeedback_editpdf_menu li button {
margin: 0;
background: none;
@ -319,7 +315,7 @@ ul.assignfeedback_editpdf_menu {
}
.assignfeedback_editpdf_widget .commentdrawable img {
padding: 1px;
margin: 0 5px;
}
.assignfeedback_editpdf_widget .commentdrawable a {
@ -327,11 +323,8 @@ ul.assignfeedback_editpdf_menu {
position: relative;
left: -17px;
top: 2px;
height: 14px;
background-color: white;
border-left: 1px solid #ccc;
border-bottom: 1px solid #ccc;
line-height: 14px;
height: 16px;
width: 16px;
}
.assignfeedback_editpdf_widget .commentdrawable textarea {

View File

@ -2161,7 +2161,7 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
var listitem = Y.Node.create('<li class="quicklist_comment"></li>'),
linkitem = Y.Node.create('<a href="#" tabindex="-1">' + quickcomment.rawtext + '</a>'),
deletelinkitem = Y.Node.create('<a href="#" tabindex="-1" class="delete_quicklist_comment">' +
'<img src="' + M.util.image_url('t/delete', 'core') + '" ' +
'<img class="icon" src="' + M.util.image_url('t/delete', 'core') + '" ' +
'alt="' + M.util.get_string('deletecomment', 'assignfeedback_editpdf') + '"/>' +
'</a>');
linkitem.setAttribute('title', quickcomment.rawtext);
@ -2552,7 +2552,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
'preserveAspectRatio="xMinYMin meet">' +
'<path d="M11 0H1C.4 0 0 .4 0 1v6c0 .6.4 1 1 1h1v4l4-4h5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z" ' +
'fill="currentColor" opacity="0.9" stroke="rgb(153, 153, 153)" stroke-width="0.5"/></svg>');
menu = Y.Node.create('<a href="#"><img src="' + M.util.image_url('t/contextmenu', 'core') + '"/></a>');
menu = Y.Node.create('<a href="#"><img class="icon" src="' + M.util.image_url('t/contextmenu', 'core') + '"/></a>');
this.menulink = menu;
container.append(label);

View File

@ -2161,7 +2161,7 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
var listitem = Y.Node.create('<li class="quicklist_comment"></li>'),
linkitem = Y.Node.create('<a href="#" tabindex="-1">' + quickcomment.rawtext + '</a>'),
deletelinkitem = Y.Node.create('<a href="#" tabindex="-1" class="delete_quicklist_comment">' +
'<img src="' + M.util.image_url('t/delete', 'core') + '" ' +
'<img class="icon" src="' + M.util.image_url('t/delete', 'core') + '" ' +
'alt="' + M.util.get_string('deletecomment', 'assignfeedback_editpdf') + '"/>' +
'</a>');
linkitem.setAttribute('title', quickcomment.rawtext);
@ -2552,7 +2552,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
'preserveAspectRatio="xMinYMin meet">' +
'<path d="M11 0H1C.4 0 0 .4 0 1v6c0 .6.4 1 1 1h1v4l4-4h5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z" ' +
'fill="currentColor" opacity="0.9" stroke="rgb(153, 153, 153)" stroke-width="0.5"/></svg>');
menu = Y.Node.create('<a href="#"><img src="' + M.util.image_url('t/contextmenu', 'core') + '"/></a>');
menu = Y.Node.create('<a href="#"><img class="icon" src="' + M.util.image_url('t/contextmenu', 'core') + '"/></a>');
this.menulink = menu;
container.append(label);

View File

@ -175,7 +175,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
'preserveAspectRatio="xMinYMin meet">' +
'<path d="M11 0H1C.4 0 0 .4 0 1v6c0 .6.4 1 1 1h1v4l4-4h5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z" ' +
'fill="currentColor" opacity="0.9" stroke="rgb(153, 153, 153)" stroke-width="0.5"/></svg>');
menu = Y.Node.create('<a href="#"><img src="' + M.util.image_url('t/contextmenu', 'core') + '"/></a>');
menu = Y.Node.create('<a href="#"><img class="icon" src="' + M.util.image_url('t/contextmenu', 'core') + '"/></a>');
this.menulink = menu;
container.append(label);

View File

@ -95,7 +95,7 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
var listitem = Y.Node.create('<li class="quicklist_comment"></li>'),
linkitem = Y.Node.create('<a href="#" tabindex="-1">' + quickcomment.rawtext + '</a>'),
deletelinkitem = Y.Node.create('<a href="#" tabindex="-1" class="delete_quicklist_comment">' +
'<img src="' + M.util.image_url('t/delete', 'core') + '" ' +
'<img class="icon" src="' + M.util.image_url('t/delete', 'core') + '" ' +
'alt="' + M.util.get_string('deletecomment', 'assignfeedback_editpdf') + '"/>' +
'</a>');
linkitem.setAttribute('title', quickcomment.rawtext);