remove some duplicate code in toolbar.less

pull/6643/head
PhilW 6 years ago
parent cc20de329d
commit 9543e6af7e

@ -51,155 +51,6 @@
margin: 0; margin: 0;
line-height: 1.75; line-height: 1.75;
} }
&.reply:before {
content: @fa-var-reply;
}
&.reply-all:before {
content: @fa-var-reply-all;
}
&.forward:before {
content: @fa-var-share;
}
&.delete:before {
content: @fa-var-trash-alt;
}
&.markmessage:before {
content: @fa-var-tag;
}
&.more:before {
content: @fa-var-ellipsis-h;
}
&.dropdown:before {
content: @fa-var-caret-down;
}
&.settings:before {
content: @fa-var-sliders-h;
}
&.create:before {
content: @fa-var-plus-square;
}
&.move:before {
content: @fa-var-arrows-alt;
}
&.purge:before {
content: @fa-var-eraser;
}
&.print:before {
content: @fa-var-print;
}
&.search:before {
content: @fa-var-search;
}
&.upload:before,
&.import:before {
content: @fa-var-upload;
}
&.download:before,
&.export:before {
content: @fa-var-download;
}
&.compose:before {
content: @fa-var-edit;
}
&.archive:before {
content: @fa-var-archive;
}
&.junk:before {
content: @fa-var-fire-alt;
}
&.notjunk:before {
content: @fa-var-inbox;
}
&.enigma:before,
&.encrypt:before {
content: @fa-var-lock;
}
&.prev:before {
content: @fa-var-arrow-left;
}
&.next:before {
content: @fa-var-arrow-right;
}
&.firstpage:before {
content: @fa-var-angle-double-left;
}
&.prevpage:before {
content: @fa-var-angle-left;
}
&.nextpage:before {
content: @fa-var-angle-right;
}
&.lastpage:before {
content: @fa-var-angle-double-right;
}
&.send:before {
content: @fa-var-paper-plane;
}
&.back:before {
content: @fa-var-arrow-left;
}
&.closewin:before {
content: @fa-var-window-close;
}
&.save:before {
.font-icon-regular(@fa-var-save);
}
&.vcard:before,
&.attach:before {
content: @fa-var-paperclip;
}
&.spellcheck:before {
content: @fa-var-magic; // TODO
}
&.signature:before {
content: @fa-var-signature;
}
&.responses:before {
content: @fa-var-comment;
}
&.select:before {
.font-icon-regular(@fa-var-check-circle);
}
&.threads:before {
content: @fa-var-comments;
}
&.actions:before {
content: @fa-var-cog;
}
&.refresh:before {
content: @fa-var-sync;
}
&.addressbook:before {
content: @fa-var-user;
}
&.expand:before {
content: @fa-var-angle-right;
}
&.collapse:before {
content: @fa-var-angle-down;
}
&.submit:before {
content: @fa-var-check;
}
&.edit:before {
content: @fa-var-pencil-alt;
}
&.qrcode:before {
content: @fa-var-qrcode;
}
&.properties:before {
content: @fa-var-file;
}
&.zoomin:before {
content: @fa-var-search-plus;
}
&.zoomout:before {
content: @fa-var-search-minus;
}
&.rotate:before {
content: @fa-var-redo-alt;
}
} }
&:not(.popupmenu) span.inner { &:not(.popupmenu) span.inner {
@ -442,183 +293,269 @@
a:before { a:before {
&:extend(.font-icon-class); &:extend(.font-icon-class);
} }
}
.toolbarmenu.listing li {
&:hover {
a.active {
color: @color-toolbarmenu-hover;
background-color: @color-toolbarmenu-hover-background;
}
}
}
a.check:before { .toolbar li a,
.toolbarmenu li a {
&.actions:before {
content: @fa-var-cog;
}
&.addressbook:before {
content: @fa-var-user;
}
&.archive:before {
content: @fa-var-archive;
}
&.assigngroup:before {
content: @fa-var-user-plus;
}
&.attach:before,
&.vcard:before {
content: @fa-var-paperclip;
}
&.back:before {
content: @fa-var-arrow-left;
}
&.check:before {
content: ""; content: "";
} }
a.check.selected:before { &.check.selected:before {
content: @fa-var-check; content: @fa-var-check;
} }
a.print:before { &.closewin:before {
content: @fa-var-print; content: @fa-var-window-close;
} }
a.copy:before { &.collapse:before {
content: @fa-var-copy; content: @fa-var-angle-down;
} }
a.move:before { &.compose:before {
content: @fa-var-arrows-alt; content: @fa-var-edit;
} }
a.purge:before { &.copy:before {
content: @fa-var-eraser; content: @fa-var-copy;
} }
a.source:before { &.create:before {
content: @fa-var-file-code; content: @fa-var-plus-square;
} }
a.download:before { &.delete:before {
content: @fa-var-download; content: @fa-var-trash-alt;
} }
a.extwin:before { &.download:before,
content: @fa-var-external-link-square-alt; &.download.eml:before,
&.download.maildir:before,
&.download.mbox:before {
content: @fa-var-download;
} }
a.create:before { &.dropdown:before {
content: @fa-var-plus-square; content: @fa-var-caret-down;
} }
a.edit:before { &.edit:before {
content: @fa-var-edit; content: @fa-var-edit;
} }
a.edit.asnew:before { &.edit.asnew:before {
content: @fa-var-pencil-alt; content: @fa-var-pencil-alt;
} }
a.rename:before { &.encrypt:before,
content: @fa-var-pencil-alt; &.enigma:before {
content: @fa-var-lock;
} }
a.read:before { &.encrypt.sign:before {
.font-icon-regular(@fa-var-circle); content: @fa-var-lock; // TODO
}
&.expand:before {
content: @fa-var-angle-right;
} }
a.unread:before { &.expand.all:before,
content: @fa-var-circle; &.expand.none:before,
&.expand.unread:before {
content: @fa-var-comments;
} }
a.flag:before { &.export:before,
content: @fa-var-flag; &.export.all:before,
&.export.selection:before {
content: @fa-var-download;
} }
a.unflag:before { &.expunge:before {
.font-icon-regular(@fa-var-flag); content: @fa-var-compress-arrows-alt;
}
&.extwin:before {
content: @fa-var-external-link-square-alt;
} }
a.filterlink:before { &.filterlink:before {
content: @fa-var-filter; content: @fa-var-filter;
} }
a.reply.list:before, &.firstpage:before {
a.reply.all:before { content: @fa-var-angle-double-left;
content: @fa-var-reply-all; }
&.nextpage:before {
content: @fa-var-angle-right;
}
&.prevpage:before {
content: @fa-var-angle-left;
}
&.lastpage:before {
content: @fa-var-angle-double-right;
} }
a.forward:before, &.flag:before,
a.forward.bounce:before, &.select.flagged:before {
a.forward.attachment:before, .font-icon-solid(@fa-var-flag);
a.forward.inline:before { }
&.unflag:before {
.font-icon-regular(@fa-var-flag);
}
&.folders:before {
content: @fa-var-folder;
}
&.forward:before,
&.forward.attachment:before,
&.forward.bounce:before,
&.forward.inline:before {
content: @fa-var-share; content: @fa-var-share;
} }
a.download.mbox:before, &.import:before,
a.download.eml:before, &.upload:before {
a.download.maildir:before { content: @fa-var-upload;
content: @fa-var-download;
} }
a.export.selection:before, &.insertresponse:before {
a.export.all:before { content: @fa-var-comment;
content: @fa-var-download; }
&.junk:before {
content: @fa-var-fire-alt;
} }
a.select:before { &.notjunk:before {
content: @fa-var-check-circle; content: @fa-var-inbox;
} }
a.threads:before { &.markmessage:before {
content: @fa-var-comments; content: @fa-var-tag;
} }
a.selection:before { &.more:before {
content: @fa-var-mouse-pointer; content: @fa-var-ellipsis-h;
} }
a.select.all:before { &.move:before {
.font-icon-regular(@fa-var-check-square); content: @fa-var-arrows-alt;
} }
a.select.none:before { &.next:before {
content: @fa-var-times; content: @fa-var-angle-right;
}
&.prev:before {
content: @fa-var-angle-left;
}
&.print:before {
content: @fa-var-print;
} }
a.select.page:before { &.properties:before {
content: @fa-var-bars; content: @fa-var-file;
} }
a.select.flagged:before { &.purge:before {
content: @fa-var-flag; content: @fa-var-eraser;
} }
a.select.unread:before { &.qrcode:before {
content: @fa-var-circle; content: @fa-var-qrcode;
} }
a.select.invert:before { &.read:before {
.font-icon-regular(@fa-var-square); .font-icon-regular(@fa-var-circle);
} }
a.expand.all:before, &.unread:before,
a.expand.unread:before, &.select.unread:before {
a.expand.none:before { .font-icon-solid(@fa-var-circle);
content: @fa-var-comments;
} }
a.search:before { &.recipient:before {
content: @fa-var-search; .font-icon-regular(@fa-var-envelope);
} }
a.delete:before { &.refresh:before {
content: @fa-var-trash-alt; content: @fa-var-sync;
} }
a.expunge:before { &.remove:before {
content: @fa-var-compress-arrows-alt; content: @fa-var-eraser;
} }
a.import:before { &.removegroup:before {
content: @fa-var-upload; content: @fa-var-user-times;
} }
a.settings:before { &.rename:before {
content: @fa-var-sliders-h; content: @fa-var-pencil-alt;
} }
a.insertresponse:before { &.reply:before {
content: @fa-var-reply;
}
&.reply-all:before,
&.reply.all:before,
&.reply.list:before {
content: @fa-var-reply-all;
}
&.responses:before {
content: @fa-var-comment; content: @fa-var-comment;
} }
a.compose:before { &.rotate:before {
content: @fa-var-edit; content: @fa-var-redo-alt;
} }
a.addressbook:before { &.save:before {
content: @fa-var-user; .font-icon-regular(@fa-var-save);
} }
a.recipient:before { &.search:before {
.font-icon-regular(@fa-var-envelope); content: @fa-var-search;
} }
a.status:before { &.search.delete:before {
.font-icon-regular(@fa-var-lightbulb); content: @fa-var-trash-alt;
} }
a.folders:before { &.select:before {
content: @fa-var-folder; .font-icon-regular(@fa-var-check-circle);
} }
a.remove:before { &.select.all:before {
content: @fa-var-eraser; content: @fa-var-check-square;
} }
a.showurl:before { &.select.invert:before {
content: @fa-var-link; content: @fa-var-square;
} }
a.qrcode:before { &.select.none:before {
content: @fa-var-qrcode; .font-icon-solid(@fa-var-times);
} }
a.assigngroup:before { &.select.page:before {
content: @fa-var-user-plus; .font-icon-solid(@fa-var-bars);
} }
a.removegroup:before { &.selection:before {
content: @fa-var-user-times; content: @fa-var-mouse-pointer;
} }
a.vcard:before { &.send:before {
content: @fa-var-paperclip; content: @fa-var-paper-plane;
} }
a.encrypt:before { &.settings:before {
content: @fa-var-lock; content: @fa-var-sliders-h;
} }
a.encrypt.sign:before { &.showurl:before {
content: @fa-var-lock; // TODO content: @fa-var-link;
} }
a.junk:before { &.signature:before {
content: @fa-var-fire-alt; content: @fa-var-signature;
} }
a.notjunk:before { &.source:before {
content: @fa-var-inbox; content: @fa-var-file-code;
} }
} &.spellcheck:before {
content: @fa-var-magic; // TODO
.toolbarmenu.listing li { }
&:hover { &.status:before {
a.active { .font-icon-regular(@fa-var-lightbulb);
color: @color-toolbarmenu-hover; }
background-color: @color-toolbarmenu-hover-background; &.submit:before {
content: @fa-var-check;
}
&.threads:before {
content: @fa-var-comments;
} }
&.zoomin:before {
content: @fa-var-search-plus;
}
&.zoomout:before {
content: @fa-var-search-minus;
} }
} }

Loading…
Cancel
Save