mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 02:52:38 +00:00
Match changes in commit 143d390 to Legacy
Matching legacy to v3 (adds another menu to style editor, etc).
This commit is contained in:
@@ -11,7 +11,7 @@ const TableOfContentsGen = require('./tableOfContents.gen.js');
|
|||||||
module.exports = [
|
module.exports = [
|
||||||
|
|
||||||
{
|
{
|
||||||
groupName : 'Editor',
|
groupName : 'Text Editor',
|
||||||
icon : 'fas fa-pencil-alt',
|
icon : 'fas fa-pencil-alt',
|
||||||
view : 'text',
|
view : 'text',
|
||||||
snippets : [
|
snippets : [
|
||||||
@@ -78,33 +78,44 @@ module.exports = [
|
|||||||
icon : 'fas fa-book',
|
icon : 'fas fa-book',
|
||||||
gen : TableOfContentsGen
|
gen : TableOfContentsGen
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Add Comment',
|
||||||
|
icon : 'fas fa-code',
|
||||||
|
gen : `\n<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->\n\n`
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
groupName : 'Style Editor',
|
||||||
|
icon : 'fas fa-pencil-alt',
|
||||||
|
view : 'style',
|
||||||
|
snippets : [
|
||||||
{
|
{
|
||||||
name : 'Remove Drop Cap',
|
name : 'Remove Drop Cap',
|
||||||
icon : 'fas fa-remove-format',
|
icon : 'fas fa-remove-format',
|
||||||
gen : '<style>\n' +
|
gen : '/* Removes Drop Caps */\n' +
|
||||||
' .phb h1+p:first-letter {\n' +
|
'.phb h1+p:first-letter {\n' +
|
||||||
' all: unset;\n' +
|
' all: unset;\n' +
|
||||||
' }\n' +
|
'}\n'
|
||||||
'</style>'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Tweak Drop Cap',
|
name : 'Tweak Drop Cap',
|
||||||
icon : 'fas fa-sliders-h',
|
icon : 'fas fa-sliders-h',
|
||||||
gen : '<style>\n' +
|
gen : '/* Drop Cap Settings */\n' +
|
||||||
' /* Drop Cap settings */\n' +
|
'.phb h1 + p::first-letter {\n' +
|
||||||
' .phb h1 + p::first-letter {\n' +
|
' float: left;\n' +
|
||||||
' float: left;\n' +
|
' font-family: Solberry;\n' +
|
||||||
' font-family: Solberry;\n' +
|
' font-size: 10em;\n' +
|
||||||
' font-size: 10em;\n' +
|
' color: #222;\n' +
|
||||||
' color: #222;\n' +
|
' line-height: .8em;\n' +
|
||||||
' line-height: .8em;\n' +
|
'}\n'
|
||||||
' }\n' +
|
|
||||||
'</style>'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Add Comment',
|
name : 'Add Comment',
|
||||||
icon : 'fas fa-code',
|
icon : 'fas fa-code',
|
||||||
gen : `\n<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->\n\n`
|
gen : `\n/* This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). */\n\n`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user