2017-03-23 03:41:50 +00:00
|
|
|
<html id="stylus">
|
2017-07-12 18:52:44 +00:00
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
|
|
|
2017-09-03 20:52:06 +00:00
|
|
|
<style id="firefox-transitions-bug-suppressor">
|
|
|
|
/* restrict to FF */
|
|
|
|
@-moz-document url-prefix("") {
|
|
|
|
/* increased specificity to override sane selectors in user styles */
|
|
|
|
html#stylus.firefox #stylus-edit #header *,
|
|
|
|
html#stylus.firefox #stylus-edit #sections * {
|
|
|
|
transition: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="js/dom.js"></script>
|
2017-07-14 00:52:40 +00:00
|
|
|
<script src="js/messaging.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="js/prefs.js"></script>
|
|
|
|
<script src="js/localization.js"></script>
|
2017-08-05 16:49:25 +00:00
|
|
|
<script src="js/script-loader.js"></script>
|
|
|
|
<script src="js/moz-parser.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="content/apply.js"></script>
|
|
|
|
<link rel="stylesheet" href="edit/edit.css">
|
2017-08-16 21:01:45 +00:00
|
|
|
<script src="edit/lint.js"></script>
|
2017-09-11 16:09:25 +00:00
|
|
|
<script src="edit/util.js"></script>
|
2017-10-07 15:40:37 +00:00
|
|
|
<script src="edit/regexp-tester.js"></script>
|
2017-11-01 01:11:27 +00:00
|
|
|
<script src="edit/applies-to-line-widget.js"></script>
|
2017-09-11 16:09:25 +00:00
|
|
|
<script src="edit/source-editor.js"></script>
|
2017-11-22 00:12:05 +00:00
|
|
|
<script src="edit/colorpicker-helper.js"></script>
|
2017-08-29 14:12:39 +00:00
|
|
|
<script src="edit/edit.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
|
|
|
|
<script src="vendor/codemirror/lib/codemirror.js"></script>
|
|
|
|
<link rel="stylesheet" href="vendor/codemirror/lib/codemirror.css">
|
|
|
|
<script src="vendor/codemirror/mode/css/css.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="vendor/codemirror/addon/dialog/dialog.css">
|
|
|
|
<link rel="stylesheet" href="vendor/codemirror/addon/search/matchesonscrollbar.css">
|
|
|
|
<script src="vendor/codemirror/addon/scroll/annotatescrollbar.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/search/matchesonscrollbar.js"></script>
|
|
|
|
<script src="vendor-overwrites/codemirror/addon/search/match-highlighter.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/dialog/dialog.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/search/searchcursor.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/search/search.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/comment/comment.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/selection/active-line.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="vendor/codemirror/addon/fold/foldgutter.css" />
|
|
|
|
<script src="vendor/codemirror/addon/fold/foldcode.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/fold/foldgutter.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/fold/brace-fold.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/fold/comment-fold.js"></script>
|
|
|
|
|
|
|
|
<script src="vendor/codemirror/addon/edit/matchbrackets.js"></script>
|
|
|
|
|
2017-08-29 14:12:39 +00:00
|
|
|
<link rel="stylesheet" href="vendor/codemirror/addon/lint/lint.css" />
|
2017-07-12 18:52:44 +00:00
|
|
|
<link rel="stylesheet" href="vendor/codemirror/addon/hint/show-hint.css" />
|
|
|
|
<script src="vendor/codemirror/addon/hint/show-hint.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/hint/css-hint.js"></script>
|
2017-09-11 16:09:25 +00:00
|
|
|
|
|
|
|
<script src="vendor/codemirror/addon/mode/loadmode.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
|
|
|
|
<script src="vendor/codemirror/keymap/sublime.js"></script>
|
|
|
|
<script src="vendor/codemirror/keymap/emacs.js"></script>
|
|
|
|
<script src="vendor/codemirror/keymap/vim.js"></script>
|
2017-09-24 08:54:21 +00:00
|
|
|
|
2017-11-01 00:40:42 +00:00
|
|
|
<script src="/edit/codemirror-default.js"></script>
|
|
|
|
<link rel="stylesheet" href="/edit/codemirror-default.css">
|
2017-07-12 18:52:44 +00:00
|
|
|
<link id="cm-theme" rel="stylesheet">
|
|
|
|
|
|
|
|
<template data-id="appliesTo">
|
|
|
|
<li>
|
|
|
|
<select name="applies-type" class="applies-type style-contributor">
|
|
|
|
<option value="url" i18n-text="appliesUrlOption"></option>
|
|
|
|
<option value="url-prefix" i18n-text="appliesUrlPrefixOption"></option>
|
|
|
|
<option value="domain" i18n-text="appliesDomainOption"></option>
|
|
|
|
<option value="regexp" i18n-text="appliesRegexpOption"></option>
|
|
|
|
</select>
|
|
|
|
<input name="applies-value" class="applies-value style-contributor">
|
|
|
|
<button class="remove-applies-to" i18n-text="appliesRemove"></button>
|
|
|
|
<button class="add-applies-to" i18n-text="appliesAdd"></button>
|
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
<template data-id="appliesToEverything">
|
2017-07-19 12:13:24 +00:00
|
|
|
<li class="applies-to-everything" i18n-text="appliesToEverything">
|
2017-07-12 18:52:44 +00:00
|
|
|
<button class="add-applies-to" i18n-text="appliesSpecify"></button>
|
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
<template data-id="section">
|
|
|
|
<div>
|
|
|
|
<label i18n-text="sectionCode"></label>
|
|
|
|
<textarea class="code"></textarea>
|
|
|
|
<br>
|
|
|
|
<div class="applies-to">
|
|
|
|
<label i18n-text="appliesLabel">
|
|
|
|
<svg class="svg-icon info applies-to-help"><use xlink:href="#svg-icon-help"/></svg>
|
|
|
|
</label>
|
|
|
|
<ul class="applies-to-list"></ul>
|
|
|
|
</div>
|
|
|
|
<button class="remove-section" i18n-text="sectionRemove"></button>
|
|
|
|
<button class="add-section" i18n-text="sectionAdd"></button>
|
|
|
|
<button class="beautify-section" i18n-text="styleBeautify"></button>
|
|
|
|
<button class="test-regexp" i18n-text="styleRegexpTestButton"></button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<template data-id="find">
|
|
|
|
<span i18n-text="search">: <input type="text" class="CodeMirror-search-field" spellcheck="false">
|
|
|
|
<span class="CodeMirror-search-hint">(<span i18n-text="searchRegexp"></span>)</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template data-id="replace">
|
|
|
|
<span i18n-text="replace">: <input type="text" class="CodeMirror-search-field" spellcheck="false">
|
|
|
|
<span class="CodeMirror-search-hint">(<span i18n-text="searchRegexp"></span>)</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template data-id="replaceAll">
|
|
|
|
<span i18n-text="replaceAll">: <input type="text" class="CodeMirror-search-field" spellcheck="false">
|
|
|
|
<span class="CodeMirror-search-hint">(<span i18n-text="searchRegexp"></span>)</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template data-id="replaceWith">
|
|
|
|
<span i18n-text="replaceWith">: <input type="text" class="CodeMirror-search-field" spellcheck="false">
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template data-id="replaceConfirm">
|
|
|
|
<span i18n-text="replace">?
|
|
|
|
<button i18n-text="confirmYes"></button>
|
|
|
|
<button i18n-text="confirmNo"></button>
|
|
|
|
<button i18n-text="confirmStop"></button>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template data-id="jumpToLine">
|
|
|
|
<span i18n-text="editGotoLine">: <input class="CodeMirror-jump-field" type="text"></span>
|
|
|
|
</template>
|
|
|
|
<template data-id="regexpTestPartial">
|
|
|
|
<a target="_blank" href="https://github.com/stylish-userstyles/stylish/wiki/Applying-styles-to-specific-sites#advanced-matching-with-regular-expressions"><svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></a>
|
|
|
|
</template>
|
|
|
|
<template data-id="resizeGrip">
|
|
|
|
<div class="resize-grip" i18n-title="cm_resizeGripHint"></div>
|
|
|
|
</template>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="stylus-edit">
|
|
|
|
<div id="header">
|
|
|
|
<h1 id="heading"> </h1> <!-- nbsp allocates the actual height which prevents page shift -->
|
|
|
|
<section id="basic-info">
|
|
|
|
<div id="basic-info-name">
|
|
|
|
<input id="name" class="style-contributor" i18n-placeholder="styleMissingName" spellcheck="false">
|
|
|
|
<a id="url" target="_blank"><svg class="svg-icon"><use xlink:href="#svg-icon-external-link"/></svg></a>
|
|
|
|
</div>
|
|
|
|
<div id="basic-info-enabled">
|
|
|
|
<input type="checkbox" id="enabled" class="style-contributor">
|
|
|
|
<label for="enabled" id="enabled-label" i18n-text="styleEnabledLabel"></label><!--
|
|
|
|
--><svg id="toggle-style-help" class="svg-icon info">
|
|
|
|
<use xlink:href="#svg-icon-help"/>
|
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section id="actions">
|
|
|
|
<div>
|
|
|
|
<button id="save-button" title="Ctrl-S" i18n-text="styleSaveLabel"></button>
|
|
|
|
<button id="beautify" i18n-text="styleBeautify"></button>
|
|
|
|
<a href="manage.html"><button id="cancel-button" i18n-text="styleCancelEditLabel"></button></a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2 id="mozilla-format-heading" i18n-text="styleMozillaFormatHeading"><svg id="to-mozilla-help" class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></h2>
|
|
|
|
<button id="from-mozilla" i18n-text="importLabel"></button>
|
|
|
|
<button id="to-mozilla" i18n-text="exportLabel"></button>
|
|
|
|
</div>
|
|
|
|
</section>
|
2017-09-01 09:46:41 +00:00
|
|
|
<details id="options">
|
|
|
|
<summary><h2 id="options-heading" i18n-text="optionsHeading"></h2></summary>
|
2017-07-12 18:52:44 +00:00
|
|
|
<div class="option">
|
|
|
|
<input id="editor.lineWrapping" type="checkbox">
|
|
|
|
<label id="lineWrapping-label" for="editor.lineWrapping" i18n-text="cm_lineWrapping"></label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
|
|
|
<input id="editor.smartIndent" type="checkbox">
|
|
|
|
<label id="smartIndent-label" for="editor.smartIndent" i18n-text="cm_smartIndent"></label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
|
|
|
<input id="editor.indentWithTabs" type="checkbox">
|
|
|
|
<label id="indentWithTabs-label" for="editor.indentWithTabs" i18n-text="cm_indentWithTabs"></label>
|
|
|
|
</div>
|
2017-11-16 23:36:05 +00:00
|
|
|
<div class="option">
|
|
|
|
<input id="editor.autoCloseBrackets" type="checkbox">
|
|
|
|
<label for="editor.autoCloseBrackets"
|
|
|
|
i18n-text="cm_autoCloseBrackets"
|
|
|
|
i18n-title="cm_autoCloseBracketsTooltip"></label>
|
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
<div class="option">
|
|
|
|
<input id="editor.autocompleteOnTyping" type="checkbox">
|
|
|
|
<label for="editor.autocompleteOnTyping" i18n-text="cm_autocompleteOnTyping"></label>
|
|
|
|
</div>
|
2017-11-15 12:59:24 +00:00
|
|
|
<div class="option">
|
|
|
|
<input id="editor.colorpicker" type="checkbox">
|
|
|
|
<label for="editor.colorpicker" i18n-text="cm_colorpicker"></label>
|
2017-11-21 15:39:13 +00:00
|
|
|
<span class="svg-inline-wrapper" i18n-title="shortcutsNote">
|
|
|
|
<svg id="colorpicker-settings" class="svg-icon settings">
|
|
|
|
<use xlink:href="#svg-icon-settings"/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2017-11-15 12:59:24 +00:00
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
<div class="option aligned">
|
|
|
|
<label id="tabSize-label" for="editor.tabSize" i18n-text="cm_tabSize"></label>
|
|
|
|
<input id="editor.tabSize" type="number" min="0">
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
|
|
|
<label id="keyMap-label" for="editor.keyMap" i18n-text="cm_keyMap"></label>
|
|
|
|
<select id="editor.keyMap"></select>
|
2017-11-21 15:17:56 +00:00
|
|
|
<span class="svg-inline-wrapper">
|
|
|
|
<svg id="keyMap-help" class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
|
|
</span>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
|
|
|
<label id="theme-label" for="editor.theme" i18n-text="cm_theme"></label>
|
|
|
|
<select id="editor.theme"></select>
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
|
|
|
<label id="highlight-label" for="editor.matchHighlight" i18n-text="cm_matchHighlight"></label>
|
|
|
|
<select id="editor.matchHighlight">
|
|
|
|
<option i18n-text="cm_matchHighlightToken" value="token">
|
|
|
|
<option i18n-text="cm_matchHighlightSelection" value="selection">
|
|
|
|
<option i18n-text="genericDisabledLabel" value="">
|
|
|
|
</select>
|
|
|
|
</div>
|
2017-08-15 19:13:58 +00:00
|
|
|
<div class="option aligned">
|
|
|
|
<label id="linter-label" for="editor.linter" i18n-text="cm_linter"></label>
|
|
|
|
<select id="editor.linter">
|
|
|
|
<option value="csslint" selected>CSSLint</option>
|
2017-08-20 14:06:17 +00:00
|
|
|
<option value="stylelint">Stylelint</option>
|
2017-08-28 05:22:19 +00:00
|
|
|
<option value="" i18n-text="genericDisabledLabel"></option>
|
2017-08-15 19:13:58 +00:00
|
|
|
</select>
|
2017-11-21 15:17:56 +00:00
|
|
|
<span class="svg-inline-wrapper" i18n-title="linterConfigTooltip">
|
2017-08-23 22:13:55 +00:00
|
|
|
<svg id="linter-settings" class="svg-icon settings">
|
2017-08-18 15:23:25 +00:00
|
|
|
<use xlink:href="#svg-icon-settings"/>
|
2017-11-21 15:17:56 +00:00
|
|
|
</svg>
|
2017-08-18 15:23:25 +00:00
|
|
|
</span>
|
2017-09-01 09:46:41 +00:00
|
|
|
</div>
|
|
|
|
</details>
|
2017-08-26 16:48:32 +00:00
|
|
|
<section id="lint"><h2 i18n-text="linterIssues">: <span id="issue-count"></span><svg id="lint-help" class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></h2><div></div></section>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
|
|
|
<section id="sections">
|
|
|
|
<h2><span id="sections-heading" i18n-text="styleSectionsTitle"></span><svg id="sections-help" class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></h2>
|
|
|
|
</section>
|
|
|
|
<div id="help-popup">
|
|
|
|
<div class="title"></div><svg id="sections-help" class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg></svg>
|
|
|
|
<div class="contents"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
|
2017-11-21 11:12:25 +00:00
|
|
|
<symbol id="svg-icon-external-link" viewBox="0 0 8 8">
|
2017-07-12 18:52:44 +00:00
|
|
|
<path d="M0 0v8h8v-2h-1v1h-6v-6h1v-1h-2zm4 0l1.5 1.5-2.5 2.5 1 1 2.5-2.5 1.5 1.5v-4h-4z"></path>
|
|
|
|
</symbol>
|
2017-11-21 11:12:25 +00:00
|
|
|
<symbol id="svg-icon-help" viewBox="0 0 14 16" i18n-alt="helpAlt">
|
2017-07-12 18:52:44 +00:00
|
|
|
<path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path>
|
|
|
|
</symbol>
|
2017-11-21 11:12:25 +00:00
|
|
|
<symbol id="svg-icon-close" viewBox="0 0 12 16">
|
2017-07-12 18:52:44 +00:00
|
|
|
<path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path>
|
|
|
|
</symbol>
|
2017-11-21 11:12:25 +00:00
|
|
|
<symbol id="svg-icon-settings" viewBox="0 0 16 16">
|
2017-08-17 19:08:48 +00:00
|
|
|
<path d="M16 9.45V6.52l-1.8-.3c-.14-.5-.34-.95-.56-1.35L14.7 3.4l-2.07-2.1-1.5 1.03c-.43-.24-.9-.43-1.37-.56L9.46 0H6.54l-.3 1.8c-.5.13-.94.33-1.36.55L3.4 1.32 1.3 3.4l1.07 1.45c-.24.45-.44.92-.57 1.42L0 6.53v2.95l1.8.3c.14.52.33.95.57 1.37l-1.07 1.5 2.06 2.08 1.5-1.07c.44.24.9.45 1.4.57l.3 1.77H9.5l.32-1.8c.47-.13.95-.32 1.34-.56l1.5 1.06 2.07-2.05-1.03-1.5c.24-.45.44-.9.56-1.36L16 9.44v-.02zm-8 1.6C6.3 11.05 4.93 9.7 4.93 8S6.33 4.9 8 4.9s3.06 1.4 3.06 3.1S9.7 11.04 8 11.04z"/>
|
|
|
|
</symbol>
|
2017-07-12 18:52:44 +00:00
|
|
|
</svg>
|
|
|
|
|
|
|
|
</body>
|
2015-02-09 03:32:06 +00:00
|
|
|
</html>
|