Cleanup CSS and fix SquireUI css

This commit is contained in:
djmaze 2020-09-13 14:13:16 +02:00
parent 39e9ecd4f2
commit 8b53b189f8
7 changed files with 33 additions and 38 deletions

View file

@ -12,7 +12,7 @@ const doc = document,
i18n = (str, def) => rl.i18n(str) || def,
ctrlKey = /Mac OS X/.test( navigator.userAgent ) ? 'meta + ' : 'Ctrl + ',
ctrlKey = /Mac OS X/.test( navigator.userAgent ) ? ' + ' : 'Ctrl + ',
getFragmentOfChildren = parent => {
let frag = doc.createDocumentFragment();
@ -200,13 +200,13 @@ class SquireUI
*/
inline: {
bold: {
html: '𝐁',
html: 'B',
cmd: () => this.doAction('bold','B'),
key: 'B',
hint: 'Bold'
},
italic: {
html: '𝐼',
html: 'I',
cmd: () => this.doAction('italic','I'),
key: 'I',
hint: 'Italic'
@ -224,13 +224,13 @@ class SquireUI
hint: 'Strikethrough'
},
sub: {
html: 'S<sub>x</sub>',
html: 'Xₙ',
cmd: () => this.doAction('subscript','SUB'),
key: 'Shift + 5',
hint: 'Subscript'
},
sup: {
html: 'S<sup>x</sup>',
html: 'Xⁿ',
cmd: () => this.doAction('superscript','SUP'),
key: 'Shift + 6',
hint: 'Superscript'