2021-09-21 06:38:36 +00:00
|
|
|
<!DOCTYPE html>
|
2017-03-23 03:41:50 +00:00
|
|
|
<html id="stylus">
|
2017-07-12 18:52:44 +00:00
|
|
|
<head>
|
2017-11-25 13:24:07 +00:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2017-07-12 18:52:44 +00:00
|
|
|
|
2017-12-18 06:55:32 +00:00
|
|
|
<link href="global.css" rel="stylesheet">
|
2022-02-17 00:10:59 +00:00
|
|
|
<link href="global-dark.css" rel="stylesheet">
|
2022-03-24 14:08:04 +00:00
|
|
|
<style id="cm-theme"></style>
|
2020-10-13 18:19:12 +00:00
|
|
|
|
|
|
|
<script src="js/polyfill.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="js/toolbox.js"></script>
|
2020-10-15 10:55:27 +00:00
|
|
|
<script src="js/msg.js"></script>
|
2020-10-13 18:19:12 +00:00
|
|
|
<script src="js/prefs.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="js/dom.js"></script>
|
2020-10-13 18:19:12 +00:00
|
|
|
<script src="js/localization.js"></script>
|
|
|
|
<script src="content/style-injector.js"></script>
|
|
|
|
<script src="content/apply.js"></script>
|
|
|
|
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="js/sections-util.js"></script>
|
2022-02-20 15:34:51 +00:00
|
|
|
<script src="js/storage-util.js"></script>
|
2021-04-06 04:10:03 +00:00
|
|
|
<script src="edit/codemirror-themes.js"></script> <!-- must precede base.js -->
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="edit/base.js"></script>
|
2020-10-13 18:19:12 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="vendor/codemirror/lib/codemirror.js"></script>
|
|
|
|
<script src="vendor/codemirror/mode/css/css.js"></script>
|
2020-11-08 08:12:42 +00:00
|
|
|
<script src="vendor/codemirror/mode/stylus/stylus.js"></script>
|
2017-12-18 06:55:32 +00:00
|
|
|
<script src="vendor/codemirror/addon/dialog/dialog.js"></script>
|
2018-11-07 06:09:29 +00:00
|
|
|
<script src="vendor/codemirror/addon/edit/closebrackets.js"></script>
|
2017-12-18 06:55:32 +00:00
|
|
|
<script src="vendor/codemirror/addon/scroll/annotatescrollbar.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="vendor/codemirror/addon/search/searchcursor.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="vendor/codemirror/addon/search/matchesonscrollbar.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="vendor/codemirror/addon/comment/comment.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/selection/active-line.js"></script>
|
2017-12-18 06:55:32 +00:00
|
|
|
<script src="vendor/codemirror/addon/edit/matchbrackets.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<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>
|
2018-05-06 10:17:39 +00:00
|
|
|
<script src="vendor/codemirror/addon/fold/indent-fold.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="vendor/codemirror/addon/fold/comment-fold.js"></script>
|
2018-10-01 14:03:17 +00:00
|
|
|
<script src="vendor/codemirror/addon/lint/lint.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="vendor/codemirror/addon/hint/show-hint.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/hint/css-hint.js"></script>
|
2022-03-24 14:08:04 +00:00
|
|
|
<script src="vendor/codemirror/keymap/emacs.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="vendor/codemirror/keymap/sublime.js"></script>
|
2022-03-24 14:08:04 +00:00
|
|
|
<script src="vendor/codemirror/keymap/vim.js"></script>
|
2018-11-25 13:28:37 +00:00
|
|
|
<script src="vendor-overwrites/codemirror-addon/match-highlighter.js"></script>
|
|
|
|
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="js/color/color-converter.js"></script>
|
|
|
|
<script src="js/color/color-mimicry.js"></script>
|
|
|
|
<script src="js/color/color-picker.js"></script>
|
|
|
|
<script src="js/color/color-view.js"></script>
|
|
|
|
<script src="js/worker-util.js"></script>
|
2017-12-08 02:45:27 +00:00
|
|
|
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="edit/util.js"></script>
|
2017-12-02 20:41:15 +00:00
|
|
|
<script src="edit/codemirror-default.js"></script>
|
2020-10-13 18:19:12 +00:00
|
|
|
<script src="edit/codemirror-factory.js"></script>
|
2020-11-08 08:12:42 +00:00
|
|
|
<script src="edit/moz-section-finder.js"></script>
|
|
|
|
<script src="edit/moz-section-widget.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="edit/linter-manager.js"></script>
|
2018-11-07 06:09:29 +00:00
|
|
|
<script src="edit/beautify.js"></script>
|
|
|
|
<script src="edit/source-editor.js"></script>
|
|
|
|
<script src="edit/sections-editor-section.js"></script>
|
|
|
|
<script src="edit/sections-editor.js"></script>
|
2021-06-29 09:36:59 +00:00
|
|
|
<script src="edit/usw-integration.js"></script>
|
2018-10-01 14:03:17 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<template data-id="appliesTo">
|
2017-12-05 17:41:08 +00:00
|
|
|
<li class="applies-to-item">
|
2017-12-03 23:40:22 +00:00
|
|
|
<div class="select-resizer">
|
|
|
|
<select name="applies-type" class="applies-type style-contributor">
|
2022-02-17 21:19:03 +00:00
|
|
|
<option value="url" i18n="appliesUrlOption"></option>
|
|
|
|
<option value="url-prefix" i18n="appliesUrlPrefixOption"></option>
|
|
|
|
<option value="domain" i18n="appliesDomainOption"></option>
|
|
|
|
<option value="regexp" i18n="appliesRegexpOption"></option>
|
2017-12-03 23:40:22 +00:00
|
|
|
</select>
|
|
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
|
|
</div>
|
2018-07-16 16:37:01 +00:00
|
|
|
<div class="applies-value-wrapper">
|
|
|
|
<input name="applies-value" class="applies-value style-contributor" spellcheck="false">
|
2022-02-17 21:19:03 +00:00
|
|
|
<a class="remove-applies-to" i18n="appliesRemove, title:appliesRemove" tabindex="0">
|
2018-07-16 16:37:01 +00:00
|
|
|
<svg class="svg-icon remove"><use xlink:href="#svg-icon-minus"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2022-02-17 21:19:03 +00:00
|
|
|
<a class="add-applies-to" i18n="appliesAdd, title:appliesAdd" tabindex="0">
|
2018-07-16 16:37:01 +00:00
|
|
|
<svg class="svg-icon add"><use xlink:href="#svg-icon-plus"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2018-07-16 16:37:01 +00:00
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</li>
|
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<template data-id="appliesToEverything">
|
2022-02-17 21:19:03 +00:00
|
|
|
<li class="applies-to-everything" i18n="appliesToEverything">
|
|
|
|
<a class="add-applies-to" i18n="appliesAdd, title:appliesAdd" tabindex="0">
|
2018-07-16 16:37:01 +00:00
|
|
|
<svg class="svg-icon add"><use xlink:href="#svg-icon-plus"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2017-07-12 18:52:44 +00:00
|
|
|
</li>
|
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<template data-id="section">
|
2018-07-22 08:59:56 +00:00
|
|
|
<div class="section">
|
2018-11-07 06:09:29 +00:00
|
|
|
<!-- not using DIV to make our CSS work for #sections > div:only-of-type .remove-section -->
|
|
|
|
<p class="deleted-section">
|
2022-02-17 21:19:03 +00:00
|
|
|
<button class="restore-section" i18n="sectionRestore"></button>
|
2018-11-07 06:09:29 +00:00
|
|
|
</p>
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="sectionCode" class="code-label"></label>
|
2017-07-12 18:52:44 +00:00
|
|
|
<div class="applies-to">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="appliesLabel, title:appliesHelp" data-cmd="note">
|
2021-03-19 19:53:52 +00:00
|
|
|
<a class="svg-inline-wrapper applies-to-help" tabindex="0">
|
2017-12-13 01:00:05 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2017-07-12 18:52:44 +00:00
|
|
|
</label>
|
|
|
|
<ul class="applies-to-list"></ul>
|
|
|
|
</div>
|
2018-07-16 16:37:01 +00:00
|
|
|
<div class="edit-actions">
|
2022-02-17 21:19:03 +00:00
|
|
|
<button class="remove-section" i18n="sectionRemove"></button>
|
|
|
|
<button class="add-section" i18n="long-text:sectionAdd, short-text:genericAdd"></button>
|
|
|
|
<button class="clone-section" i18n="genericClone"></button>
|
2018-07-22 08:59:56 +00:00
|
|
|
<button class="move-section-up"></button>
|
|
|
|
<button class="move-section-down"></button>
|
2022-02-17 21:19:03 +00:00
|
|
|
<button class="beautify-section" i18n="styleBeautify"></button>
|
|
|
|
<button class="test-regexp" i18n="genericTest"></button>
|
2018-07-16 16:37:01 +00:00
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-12-18 06:55:32 +00:00
|
|
|
<template data-id="searchReplaceDialog">
|
|
|
|
<div id="search-replace-dialog">
|
|
|
|
<div data-type="main">
|
|
|
|
<div data-type="content"></div>
|
|
|
|
<div data-type="actions">
|
2022-02-17 21:19:03 +00:00
|
|
|
<a data-action="case" i18n="title:searchCaseSensitive" tabindex="0">Aa</a>
|
|
|
|
<a data-action="prev" i18n="title:genericPrevious" data-hotkey-tooltip="findPrev" tabindex="0">
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg class="svg-icon" style="transform: rotate(180deg)"><use xlink:href="#svg-icon-v"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2022-02-17 21:19:03 +00:00
|
|
|
<a data-action="next" i18n="title:genericNext" data-hotkey-tooltip="findNext" tabindex="0">
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg class="svg-icon"><use xlink:href="#svg-icon-v"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2022-02-17 21:19:03 +00:00
|
|
|
<a data-action="close" i18n="title:confirmClose" data-hotkey-tooltip="=Esc" tabindex="0">
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2017-12-18 06:55:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div data-type="status">
|
|
|
|
<div class="CodeMirror-search-hint" i18n-text="searchRegexp"></div>
|
2022-02-17 21:19:03 +00:00
|
|
|
<div data-type="tally" i18n="title:searchNumberOfResults"></div>
|
2017-12-18 06:55:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-12-18 06:55:32 +00:00
|
|
|
<template data-id="clearSearch">
|
2022-02-17 21:19:03 +00:00
|
|
|
<div data-type="hover" i18n="title:confirmDelete">
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg data-action="clear" class="svg-icon"><use xlink:href="#svg-icon-close"></use></svg>
|
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-12-18 06:55:32 +00:00
|
|
|
<template data-id="find">
|
|
|
|
<div data-type="content">
|
|
|
|
<div data-type="input-wrapper">
|
|
|
|
<textarea class="CodeMirror-search-field" rows="1" spellcheck="false" required
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="placeholder:search"></textarea>
|
2017-12-18 06:55:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-12-18 06:55:32 +00:00
|
|
|
<template data-id="replace">
|
|
|
|
<div data-type="content">
|
|
|
|
<div data-type="input-wrapper">
|
|
|
|
<textarea data-type="replace-from"
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="placeholder:replace"
|
2017-12-18 06:55:32 +00:00
|
|
|
class="CodeMirror-search-field" rows="1" required
|
|
|
|
spellcheck="false"></textarea>
|
|
|
|
</div>
|
|
|
|
<div data-type="input-wrapper">
|
|
|
|
<textarea data-type="replace-to"
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="placeholder:replaceWith"
|
2017-12-18 06:55:32 +00:00
|
|
|
class="CodeMirror-search-field" rows="1" required
|
|
|
|
spellcheck="false"></textarea>
|
|
|
|
</div>
|
2022-02-17 21:19:03 +00:00
|
|
|
<button data-action="replace" i18n="replace" disabled></button>
|
|
|
|
<button data-action="replaceAll" i18n="replaceAll" disabled></button>
|
|
|
|
<button data-action="undo" i18n="undo" disabled></button>
|
2017-12-18 23:48:47 +00:00
|
|
|
<!--
|
|
|
|
Using a separate set of buttons because
|
|
|
|
1. FF can display tooltips only when specified on the <button>, ignores the nested <title> in <svg>
|
|
|
|
2. the icon doesn't fill the entire button area so tooltips aren't shown when the edges are hovered
|
|
|
|
-->
|
2022-02-17 21:19:03 +00:00
|
|
|
<button class="hidden" data-action="replace" i18n="title:replace" disabled>
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
|
|
|
<polygon points="15.83 4.75 8.76 11.82 5.2 8.26 3.51 9.95 8.76 15.19 17.52 6.43 15.83 4.75"/>
|
|
|
|
</svg>
|
|
|
|
</button>
|
2022-02-17 21:19:03 +00:00
|
|
|
<button class="hidden" data-action="replaceAll" i18n="title:replaceAll" disabled>
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
2017-12-18 23:48:47 +00:00
|
|
|
<polygon points="15.8,1.8 8.8,8.8 5.2,5.3 3.5,6.9 8.8,12.2 17.5,3.4 "/>
|
|
|
|
<polygon points="15.8,7.8 8.8,14.8 5.2,11.3 3.5,12.9 8.8,18.2 17.5,9.4 "/>
|
2017-12-18 06:55:32 +00:00
|
|
|
</svg>
|
|
|
|
</button>
|
2022-02-17 21:19:03 +00:00
|
|
|
<button class="hidden" data-action="undo" i18n="title:undo" disabled>
|
2017-12-18 06:55:32 +00:00
|
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
|
|
|
<path d="M11.3,5.5H8.7V1.4L1.9,6.5l6.8,5.1V7.5h2.6c1.8,0,3.2,1.4,3.2,3.2s-1.4,3.2-3.2,3.2H7.8v2h3.5c2.9,0,5.2-2.3,5.2-5.2S14.2,5.5,11.3,5.5z"/>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<template data-id="jumpToLine">
|
2022-02-17 21:19:03 +00:00
|
|
|
<span i18n="editGotoLine">: <input class="CodeMirror-jump-field" type="text"></span>
|
2017-07-12 18:52:44 +00:00
|
|
|
</template>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<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>
|
2017-12-02 21:20:42 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
<template data-id="resizeGrip">
|
2022-02-17 21:19:03 +00:00
|
|
|
<div class="resize-grip" i18n="title:cm_resizeGripHint"></div>
|
2017-12-02 21:20:42 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template data-id="keymapHelp">
|
2022-02-21 20:45:42 +00:00
|
|
|
<table class="keymap-list">
|
2017-12-02 21:20:42 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-02-17 21:19:03 +00:00
|
|
|
<th><input i18n="placeholder:helpKeyMapHotkey" type="search"></th>
|
|
|
|
<th><input i18n="placeholder:helpKeyMapCommand" type="search"></th>
|
2017-12-02 21:20:42 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-07-12 18:52:44 +00:00
|
|
|
</template>
|
2021-01-01 14:27:58 +00:00
|
|
|
|
|
|
|
<link href="vendor/codemirror/lib/codemirror.css" rel="stylesheet">
|
|
|
|
<link href="vendor/codemirror/addon/dialog/dialog.css" rel="stylesheet">
|
|
|
|
<link href="vendor/codemirror/addon/fold/foldgutter.css" rel="stylesheet">
|
|
|
|
<link href="vendor/codemirror/addon/hint/show-hint.css" rel="stylesheet">
|
|
|
|
<link href="vendor/codemirror/addon/lint/lint.css" rel="stylesheet">
|
|
|
|
<link href="vendor/codemirror/addon/search/matchesonscrollbar.css" rel="stylesheet">
|
|
|
|
<link href="js/color/color-picker.css" rel="stylesheet">
|
|
|
|
<link href="edit/codemirror-default.css" rel="stylesheet">
|
2017-07-12 18:52:44 +00:00
|
|
|
|
2022-02-19 14:12:15 +00:00
|
|
|
<template data-id="body"> <!-- https://crbug.com/1288447 -->
|
2017-07-12 18:52:44 +00:00
|
|
|
<div id="header">
|
2022-02-19 14:12:15 +00:00
|
|
|
<h1 id="heading" i18n="data-edit:editStyleHeading, data-add:addStyleTitle">
|
|
|
|
<a class="usercss-only"
|
|
|
|
href="https://github.com/openstyles/stylus/wiki/Usercss"
|
|
|
|
i18n="title:externalUsercssDocument" target="_blank">
|
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
|
|
</a>
|
|
|
|
</h1>
|
2017-07-12 18:52:44 +00:00
|
|
|
<section id="basic-info">
|
|
|
|
<div id="basic-info-name">
|
2020-10-11 15:12:06 +00:00
|
|
|
<input id="name" class="style-contributor" spellcheck="false">
|
2022-02-17 21:19:03 +00:00
|
|
|
<a id="reset-name" i18n="title:customNameResetHint" tabindex="0" hidden>
|
2020-10-11 15:12:06 +00:00
|
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
|
|
|
<polygon points="16.2,5.5 14.5,3.8 10,8.3 5.5,3.8 3.8,5.5 8.3,10 3.8,14.5
|
|
|
|
5.5,16.2 10,11.7 14.5,16.2 16.2,14.5 11.7,10 "/>
|
|
|
|
</svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2017-07-12 18:52:44 +00:00
|
|
|
<a id="url" target="_blank"><svg class="svg-icon"><use xlink:href="#svg-icon-external-link"/></svg></a>
|
|
|
|
</div>
|
|
|
|
<div id="basic-info-enabled">
|
2018-01-12 11:32:15 +00:00
|
|
|
<label id="enabled-label"
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="styleEnabledLabel, title:toggleStyle"
|
2018-01-12 11:32:15 +00:00
|
|
|
data-hotkey-tooltip="toggleStyle">
|
2017-12-03 23:40:22 +00:00
|
|
|
<input type="checkbox" id="enabled" class="style-contributor">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
2017-12-09 15:25:44 +00:00
|
|
|
</label>
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="preview-label" i18n="previewLabel, title:previewTooltip">
|
2018-01-10 18:56:14 +00:00
|
|
|
<input type="checkbox" id="editor.livePreview">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
2022-03-31 09:25:37 +00:00
|
|
|
<label id="disableAll-label" i18n="data-on:disableAllStyles, data-off:disableAllStylesOff">
|
|
|
|
<input id="disableAll" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
2022-03-27 15:47:28 +00:00
|
|
|
<span id="preview-errors" hidden>!</span>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section id="actions">
|
2022-01-19 11:45:45 +00:00
|
|
|
<div class="buttons">
|
|
|
|
<div class="split-btn">
|
2022-02-17 21:19:03 +00:00
|
|
|
<button id="save-button" i18n="styleSaveLabel" data-hotkey-tooltip="save" disabled></button
|
|
|
|
><button class="split-btn-pedal usercss-only" i18n="menu-tpl:saveAsTemplate"></button>
|
2022-01-19 11:45:45 +00:00
|
|
|
</div>
|
2022-02-17 21:19:03 +00:00
|
|
|
<button id="beautify" i18n="styleBeautify"></button>
|
|
|
|
<button id="style-settings-btn" i18n="settings"></button>
|
|
|
|
<button id="cancel-button" i18n="title:styleCancelEditLabel">↩</button>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
2022-01-19 11:45:45 +00:00
|
|
|
<div id="mozilla-format-buttons" class="buttons sectioned-only">
|
2022-02-17 21:19:03 +00:00
|
|
|
<button id="from-mozilla" i18n="importLabel"></button>
|
|
|
|
<button id="to-mozilla" i18n="exportLabel"></button>
|
2021-03-19 19:53:52 +00:00
|
|
|
<a id="to-mozilla-help" class="svg-inline-wrapper" tabindex="0"
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="title:styleMozillaFormatHeading">
|
2020-11-08 08:12:42 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div id="details-wrapper">
|
|
|
|
<details id="options" data-pref="editor.options.expanded" class="ignore-pref-if-compact">
|
2022-02-17 21:19:03 +00:00
|
|
|
<summary><h2 id="options-heading" i18n="editorSettings"></h2></summary>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div id="options-wrapper">
|
|
|
|
<div class="options-column">
|
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="lineWrapping-label" i18n="cm_lineWrapping">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.lineWrapping" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
2018-07-16 16:37:01 +00:00
|
|
|
</div>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="smartIndent-label" i18n="cm_smartIndent">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.smartIndent" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
2018-07-16 16:37:01 +00:00
|
|
|
</div>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="indentWithTabs-label" i18n="cm_indentWithTabs">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.indentWithTabs" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="cm_autoCloseBrackets, title:cm_autoCloseBracketsTooltip">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.autoCloseBrackets" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="cm_autocompleteOnTyping">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.autocompleteOnTyping" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="cm_selectByTokens, title:cm_selectByTokensTooltip">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.selectByTokens" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
|
|
|
</div>
|
2022-10-02 22:13:29 +00:00
|
|
|
<div class="option sectioned-only">
|
|
|
|
<label i18n="cm_arrowKeysTraverse">
|
|
|
|
<input id="editor.arrowKeysTraverse" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="option">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="cm_colorpicker">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.colorpicker" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
2022-02-17 21:19:03 +00:00
|
|
|
<a id="colorpicker-settings" class="svg-inline-wrapper" i18n="title:shortcutsNote" tabindex="0">
|
2021-02-10 09:11:52 +00:00
|
|
|
<svg class="svg-icon settings"><use xlink:href="#svg-icon-config"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-11-08 08:12:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="option usercss-only">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label i18n="appliesLineWidgetLabel, title:appliesLineWidgetWarning">
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.appliesToLineWidget" type="checkbox">
|
|
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
|
|
</label>
|
2018-07-16 16:37:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="options-column">
|
|
|
|
<div class="option aligned">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="tabSize-label" for="editor.tabSize" i18n="cm_tabSize"></label>
|
2020-11-08 08:12:42 +00:00
|
|
|
<input id="editor.tabSize" type="number" min="0">
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="keyMap-label" for="editor.keyMap" i18n="cm_keyMap"></label>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="select-resizer">
|
|
|
|
<select id="editor.keyMap"></select>
|
|
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
|
|
</div>
|
2021-03-19 19:53:52 +00:00
|
|
|
<a id="keyMap-help" class="svg-inline-wrapper" tabindex="0">
|
2020-11-08 08:12:42 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-11-08 08:12:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="theme-label" for="editor.theme" i18n="cm_theme"></label>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="select-resizer">
|
|
|
|
<select id="editor.theme"></select>
|
|
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="highlight-label" for="editor.matchHighlight" i18n="cm_matchHighlight"></label>
|
2018-07-16 16:37:01 +00:00
|
|
|
<div class="select-resizer">
|
2020-11-08 08:12:42 +00:00
|
|
|
<select id="editor.matchHighlight">
|
2022-02-17 21:19:03 +00:00
|
|
|
<option i18n="cm_matchHighlightToken" value="token">
|
|
|
|
<option i18n="cm_matchHighlightSelection" value="selection">
|
|
|
|
<option i18n="genericDisabledLabel" value="">
|
2018-07-16 16:37:01 +00:00
|
|
|
</select>
|
|
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
|
|
</div>
|
2020-11-08 08:12:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
2022-02-17 21:19:03 +00:00
|
|
|
<label id="linter-label" for="editor.linter" i18n="cm_linter"></label>
|
2020-11-08 08:12:42 +00:00
|
|
|
<div class="select-resizer">
|
|
|
|
<select id="editor.linter">
|
|
|
|
<option value="csslint" selected>CSSLint</option>
|
|
|
|
<option value="stylelint">Stylelint</option>
|
2022-02-17 21:19:03 +00:00
|
|
|
<option value="" i18n="genericDisabledLabel"></option>
|
2020-11-08 08:12:42 +00:00
|
|
|
</select>
|
|
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
|
|
</div>
|
2022-02-17 21:19:03 +00:00
|
|
|
<a id="linter-settings" class="svg-inline-wrapper" i18n="title:linterConfigTooltip" tabindex="0">
|
2021-02-10 09:11:52 +00:00
|
|
|
<svg class="svg-icon settings"><use xlink:href="#svg-icon-config"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-11-08 08:12:42 +00:00
|
|
|
</div>
|
2018-07-16 16:37:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 08:12:42 +00:00
|
|
|
</details>
|
2021-07-30 12:44:06 +00:00
|
|
|
<details id="publish" data-pref="editor.publish.expanded" class="ignore-pref-if-compact">
|
2022-02-17 21:19:03 +00:00
|
|
|
<summary><h2 i18n="publish"></h2></summary>
|
2021-06-29 09:36:59 +00:00
|
|
|
<div>
|
2021-07-30 12:44:06 +00:00
|
|
|
<a id="usw-url" href="https://userstyles.world" target="_blank"> </a>
|
|
|
|
<div id="usw-link-info">
|
2022-02-17 21:19:03 +00:00
|
|
|
<dl><dt i18n="styleName"></dt><dd data-usw="name"></dd></dl>
|
|
|
|
<dl><dt i18n="genericDescription"></dt><dd data-usw="description"></dd></dl>
|
2021-07-30 12:44:06 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button id="usw-publish-style"
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="data-publish:publishStyle, data-push:publishPush"></button>
|
|
|
|
<button id="usw-disconnect" i18n="optionsSyncDisconnect"></button>
|
2021-07-30 12:44:06 +00:00
|
|
|
<span id="usw-progress"></span>
|
|
|
|
</div>
|
2021-06-29 09:36:59 +00:00
|
|
|
</div>
|
|
|
|
</details>
|
2020-11-08 08:12:42 +00:00
|
|
|
<details id="sections-list" data-pref="editor.toc.expanded" class="ignore-pref-if-compact">
|
2022-02-17 21:19:03 +00:00
|
|
|
<summary><h2 i18n="sections"></h2></summary>
|
2020-11-08 08:12:42 +00:00
|
|
|
<ol id="toc"></ol>
|
|
|
|
</details>
|
2022-02-14 19:19:20 +00:00
|
|
|
<details id="lint" data-pref="editor.lint.expanded" class="ignore-pref-if-compact" hidden>
|
2020-11-08 08:12:42 +00:00
|
|
|
<summary>
|
2022-02-17 21:19:03 +00:00
|
|
|
<h2><span i18n="linterIssues"></span><span id="issue-count"></span>
|
2021-03-19 19:53:52 +00:00
|
|
|
<a id="lint-help" class="svg-inline-wrapper intercepts-click" tabindex="0">
|
2020-11-08 08:12:42 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-11-08 08:12:42 +00:00
|
|
|
</h2>
|
|
|
|
</summary>
|
2022-02-14 19:19:20 +00:00
|
|
|
<div class="lint-report-container"></div>
|
2020-11-08 08:12:42 +00:00
|
|
|
</details>
|
|
|
|
</div>
|
2022-02-17 21:19:03 +00:00
|
|
|
<div id="header-resizer" i18n="title:headerResizerHint"></div>
|
2017-12-07 02:31:42 +00:00
|
|
|
<div id="footer" class="hidden">
|
2017-11-26 13:04:03 +00:00
|
|
|
<a href="https://github.com/openstyles/stylus/wiki/Usercss"
|
2022-02-17 21:19:03 +00:00
|
|
|
i18n="externalUsercssDocument"
|
2017-11-26 13:04:03 +00:00
|
|
|
target="_blank"></a>
|
|
|
|
</div>
|
2017-07-12 18:52:44 +00:00
|
|
|
</div>
|
2021-12-29 19:57:22 +00:00
|
|
|
<section id="sections"></section>
|
2017-07-12 18:52:44 +00:00
|
|
|
<div id="help-popup">
|
2017-12-06 00:34:53 +00:00
|
|
|
<div class="title"></div><svg id="sections-help" class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg>
|
2017-07-12 18:52:44 +00:00
|
|
|
<div class="contents"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
|
2017-12-03 23:40:22 +00:00
|
|
|
|
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-12-03 23:40:22 +00:00
|
|
|
|
2022-02-17 21:19:03 +00:00
|
|
|
<symbol id="svg-icon-help" viewBox="0 0 14 16" i18n="alt:helpAlt">
|
2022-01-17 22:08:28 +00:00
|
|
|
<circle cx="7" cy="5" r="1"/>
|
|
|
|
<path d="M8,8c0-0.5-0.5-1-1-1H6C5.5,7,5,7.4,5,8h1v3c0,0.5,0.5,1,1,1h1c0.5,0,1-0.4,1-1H8V8z"/>
|
|
|
|
<path d="M7,1c3.9,0,7,3.1,7,7s-3.1,7-7,7s-7-3.1-7-7S3.1,1,7,1z M7,2.3C3.9,2.3,1.3,4.9,1.3,8s2.6,5.7,5.7,5.7s5.7-2.6,5.7-5.7S10.1,2.3,7,2.3C7,2.3,7,2.3,7,2.3z"/>
|
2017-07-12 18:52:44 +00:00
|
|
|
</symbol>
|
2017-12-03 23:40:22 +00:00
|
|
|
|
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-12-03 23:40:22 +00:00
|
|
|
|
2017-12-18 06:55:32 +00:00
|
|
|
<symbol id="svg-icon-v" viewBox="0 0 16 16">
|
|
|
|
<path d="M8,11.5L2.8,6.3l1.5-1.5L8,8.6l3.7-3.7l1.5,1.5L8,11.5z"/>
|
|
|
|
</symbol>
|
|
|
|
|
2021-02-10 09:11:52 +00:00
|
|
|
<symbol id="svg-icon-config" viewBox="0 0 16 16">
|
|
|
|
<path d="M13.3,12.8l1.5-2.6l-2.2-1.5c0-0.2,0.1-0.5,0.1-0.7c0-0.2,0-0.5-0.1-0.7l2.2-1.5l-1.5-2.6l-2.4,1.2 c-0.4-0.3-0.8-0.5-1.2-0.7L9.5,1h-3L6.3,3.7C5.9,3.8,5.5,4.1,5.1,4.4L2.7,3.2L1.2,5.8l2.2,1.5c0,0.2-0.1,0.5-0.1,0.7 c0,0.2,0,0.5,0.1,0.7l-2.2,1.5l1.5,2.6l2.4-1.2c0.4,0.3,0.8,0.5,1.2,0.7L6.5,15h3l0.2-2.7c0.4-0.2,0.8-0.4,1.2-0.7L13.3,12.8z M8,10.3c-1.3,0-2.3-1-2.3-2.3c0-1.3,1-2.3,2.3-2.3c1.3,0,2.3,1,2.3,2.3C10.3,9.3,9.3,10.3,8,10.3z"/>
|
2017-08-17 19:08:48 +00:00
|
|
|
</symbol>
|
2017-12-03 23:40:22 +00:00
|
|
|
|
|
|
|
<symbol id="svg-icon-select-arrow" viewBox="0 0 1792 1792">
|
|
|
|
<path fill-rule="evenodd" d="M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z"/>
|
|
|
|
</symbol>
|
|
|
|
|
|
|
|
<symbol id="svg-icon-checked" viewBox="0 0 1000 1000">
|
|
|
|
<path fill-rule="evenodd" d="M983.2,184.3L853,69.8c-4-3.5-9.3-5.3-14.5-5c-5.3,0.4-10.3,2.8-13.8,6.8L352.3,609.2L184.4,386.9c-3.2-4.2-8-7-13.2-7.8c-5.3-0.8-10.6,0.6-14.9,3.9L18,487.5c-8.8,6.7-10.6,19.3-3.9,28.1L325,927.2c3.6,4.8,9.3,7.7,15.3,8c0.2,0,0.5,0,0.7,0c5.8,0,11.3-2.5,15.1-6.8L985,212.6C992.3,204.3,991.5,191.6,983.2,184.3z"/>
|
|
|
|
</symbol>
|
2018-07-17 08:24:13 +00:00
|
|
|
|
2018-07-16 16:37:01 +00:00
|
|
|
<symbol id="svg-icon-plus" viewBox="0 0 8 8">
|
2022-02-19 14:12:15 +00:00
|
|
|
<path d="M3 0v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2z"/>
|
2018-07-16 16:37:01 +00:00
|
|
|
</symbol>
|
2018-07-17 08:24:13 +00:00
|
|
|
|
2018-07-16 16:37:01 +00:00
|
|
|
<symbol id="svg-icon-minus" viewBox="0 0 8 8">
|
2022-02-19 14:12:15 +00:00
|
|
|
<path d="M0 3v2h8v-2h-8z"/>
|
2018-07-16 16:37:01 +00:00
|
|
|
</symbol>
|
2017-12-03 23:40:22 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
</svg>
|
2022-02-19 14:12:15 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<link href="edit/edit.css" rel="stylesheet">
|
|
|
|
<script src="js/dark-themer.js"></script> <!-- must be last in HEAD to avoid FOUC -->
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="stylus-edit">
|
|
|
|
<script src="edit/edit.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
</body>
|
2015-02-09 03:32:06 +00:00
|
|
|
</html>
|