Add: usercss documentation link in the editor

This commit is contained in:
eight 2017-10-11 22:23:39 +08:00
parent 7ca993821a
commit ce2a21451a
3 changed files with 13 additions and 0 deletions

View File

@ -329,6 +329,10 @@
"message": "Support", "message": "Support",
"description": "Label for the external link to style's support site" "description": "Label for the external link to style's support site"
}, },
"externalUsercssDocument": {
"message": "Documentation for Usercss",
"description": "Label for the external link to usercss documentation"
},
"filteredStyles": { "filteredStyles": {
"message": "$numShown$ shown of $numTotal$ total", "message": "$numShown$ shown of $numTotal$ total",
"description": "TL note - make this message short", "description": "TL note - make this message short",

View File

@ -134,6 +134,10 @@ h2 .svg-icon, label .svg-icon {
#options .option > * { #options .option > * {
padding-right: 0.25rem; padding-right: 0.25rem;
} }
/* footer */
#footer {
margin-top: 1em;
}
/************ content ***********/ /************ content ***********/
#sections > div { #sections > div {
margin: 0.7rem; margin: 0.7rem;

View File

@ -17,6 +17,11 @@ function createSourceEditor(style) {
]}) ]})
); );
$('#header').appendChild($element({
id: 'footer',
appendChild: makeLink('https://github.com/openstyles/stylus/wiki/Usercss', t('externalUsercssDocument'))
}));
setupOptionsExpand(); setupOptionsExpand();
// dirty reporter // dirty reporter