2017-03-23 03:41:50 +00:00
|
|
|
<html id="stylus">
|
2015-02-09 03:32:06 +00:00
|
|
|
<head>
|
2016-03-08 05:22:28 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
2015-02-09 04:02:08 +00:00
|
|
|
<script src="codemirror/lib/codemirror.js"></script>
|
|
|
|
<link rel="stylesheet" href="codemirror/lib/codemirror.css">
|
|
|
|
<script src="codemirror/mode/css/css.js"></script>
|
2015-02-25 04:05:00 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="codemirror/addon/dialog/dialog.css">
|
|
|
|
<link rel="stylesheet" href="codemirror/addon/search/matchesonscrollbar.css">
|
|
|
|
<script src="codemirror/addon/scroll/annotatescrollbar.js"></script>
|
|
|
|
<script src="codemirror/addon/search/matchesonscrollbar.js"></script>
|
2017-03-28 22:55:14 +00:00
|
|
|
<script src="codemirror-overwrites/addon/search/match-highlighter.js"></script>
|
2015-02-25 04:05:00 +00:00
|
|
|
<script src="codemirror/addon/dialog/dialog.js"></script>
|
|
|
|
<script src="codemirror/addon/search/searchcursor.js"></script>
|
|
|
|
<script src="codemirror/addon/search/search.js"></script>
|
2015-05-27 18:02:23 +00:00
|
|
|
<script src="codemirror/addon/comment/comment.js"></script>
|
2015-05-27 18:01:05 +00:00
|
|
|
<script src="codemirror/addon/selection/active-line.js"></script>
|
2015-02-25 04:05:00 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="codemirror/addon/fold/foldgutter.css" />
|
|
|
|
<script src="codemirror/addon/fold/foldcode.js"></script>
|
|
|
|
<script src="codemirror/addon/fold/foldgutter.js"></script>
|
|
|
|
<script src="codemirror/addon/fold/brace-fold.js"></script>
|
|
|
|
<script src="codemirror/addon/fold/comment-fold.js"></script>
|
|
|
|
|
|
|
|
<script src="codemirror/addon/edit/matchbrackets.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="codemirror/addon/lint/lint.css" />
|
2017-02-08 13:47:52 +00:00
|
|
|
<script src="csslint/csslint-worker.js"></script>
|
2015-02-25 04:05:00 +00:00
|
|
|
<script src="codemirror/addon/lint/lint.js"></script>
|
2017-02-09 05:10:51 +00:00
|
|
|
<script src="codemirror-overwrites/addon/lint/css-lint.js"></script>
|
2015-02-25 04:05:00 +00:00
|
|
|
|
2015-03-02 23:59:36 +00:00
|
|
|
<link rel="stylesheet" href="codemirror/addon/hint/show-hint.css" />
|
|
|
|
<script src="codemirror/addon/hint/show-hint.js"></script>
|
|
|
|
<script src="codemirror/addon/hint/css-hint.js"></script>
|
|
|
|
|
2015-03-05 06:39:09 +00:00
|
|
|
<script src="codemirror/keymap/sublime.js"></script>
|
2015-04-23 01:53:30 +00:00
|
|
|
<script src="codemirror/keymap/emacs.js"></script>
|
|
|
|
<script src="codemirror/keymap/vim.js"></script>
|
2015-03-05 06:39:09 +00:00
|
|
|
|
2015-02-09 03:32:06 +00:00
|
|
|
<style type="text/css">
|
2015-02-25 04:05:00 +00:00
|
|
|
|
2015-02-09 03:32:06 +00:00
|
|
|
body {
|
2015-03-15 03:35:30 +00:00
|
|
|
margin: 0;
|
2017-03-20 04:59:51 +00:00
|
|
|
font: 12px arial,sans-serif;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
/************ header ************/
|
2015-02-09 03:32:06 +00:00
|
|
|
#header {
|
2017-03-21 01:32:38 +00:00
|
|
|
width: 280px;
|
|
|
|
height: 100vh;
|
2017-03-05 09:56:17 +00:00
|
|
|
overflow: auto;
|
2015-02-09 03:32:06 +00:00
|
|
|
position: fixed;
|
2015-03-15 03:35:30 +00:00
|
|
|
top: 0;
|
2017-03-20 04:59:51 +00:00
|
|
|
padding: 15px;
|
2015-02-09 03:32:06 +00:00
|
|
|
border-right: 1px dashed #AAA;
|
2015-03-24 02:55:16 +00:00
|
|
|
-webkit-box-shadow: 0 0 3rem -1.2rem black;
|
2017-03-21 01:32:38 +00:00
|
|
|
box-sizing: border-box;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-03-24 00:52:18 +00:00
|
|
|
#header h1 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2015-02-09 03:32:06 +00:00
|
|
|
#sections {
|
2017-03-20 04:59:51 +00:00
|
|
|
padding-left: 280px;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-02-09 04:02:08 +00:00
|
|
|
#sections h2 {
|
2017-03-20 04:59:51 +00:00
|
|
|
margin-top: 1rem;
|
|
|
|
margin-left: 1.7rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
.aligned {
|
|
|
|
display: table-row;
|
|
|
|
}
|
2017-03-30 23:49:03 +00:00
|
|
|
.aligned > *:not(svg) {
|
2015-03-24 02:55:16 +00:00
|
|
|
display: table-cell;
|
|
|
|
margin-top: 0.1rem;
|
|
|
|
min-height: 1.4rem;
|
|
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
|
|
margin-left: 0.1rem;
|
|
|
|
}
|
|
|
|
/* basic info */
|
2015-02-09 03:32:06 +00:00
|
|
|
#basic-info {
|
2015-03-24 02:55:16 +00:00
|
|
|
margin-bottom: 1rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
#name {
|
2015-03-24 02:55:16 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
2015-05-15 16:46:21 +00:00
|
|
|
#basic-info-name {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
#url {
|
|
|
|
margin-left: 0.25rem;
|
|
|
|
}
|
|
|
|
#url:not([href^="http"]) {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-03-30 23:49:03 +00:00
|
|
|
.svg-icon {
|
|
|
|
cursor: pointer;
|
2015-09-01 18:47:40 +00:00
|
|
|
vertical-align: middle;
|
2017-04-01 04:37:25 +00:00
|
|
|
transition: fill .5s;
|
2017-04-01 02:50:03 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2015-09-01 18:47:40 +00:00
|
|
|
}
|
2017-04-07 12:24:55 +00:00
|
|
|
.svg-icon:not(.dismiss) {
|
2017-03-30 23:49:03 +00:00
|
|
|
margin-left: 0.2rem;
|
|
|
|
}
|
|
|
|
h2 .svg-icon, label .svg-icon {
|
|
|
|
margin-top: -2px;
|
|
|
|
}
|
2017-04-01 04:37:25 +00:00
|
|
|
.svg-icon.info {
|
|
|
|
width: 14px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
2017-04-01 02:50:03 +00:00
|
|
|
.svg-icon:hover,
|
|
|
|
.svg-icon.info {
|
2017-04-01 04:37:25 +00:00
|
|
|
fill: #666;
|
2017-04-01 02:50:03 +00:00
|
|
|
}
|
|
|
|
.svg-icon,
|
2017-03-30 23:49:03 +00:00
|
|
|
.svg-icon.info:hover {
|
2017-04-01 04:37:25 +00:00
|
|
|
fill: #000;
|
2017-03-30 23:49:03 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#enabled {
|
|
|
|
margin-left: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
#enabled-label {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
/* actions */
|
|
|
|
#actions > * {
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
/* options */
|
|
|
|
#options [type="number"] {
|
|
|
|
max-width: 2.5rem;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
#options .option > * {
|
|
|
|
padding-right: 0.25rem;
|
|
|
|
}
|
|
|
|
/************ content ***********/
|
2015-02-09 03:32:06 +00:00
|
|
|
#sections > div {
|
2015-03-24 02:55:16 +00:00
|
|
|
margin: 0.7rem;
|
|
|
|
padding: 1rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-03-24 00:25:39 +00:00
|
|
|
#sections > div:not(:first-of-type) {
|
2015-02-09 03:32:06 +00:00
|
|
|
border-top: 2px solid black;
|
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#sections > div:only-of-type .remove-section {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-06-23 16:24:53 +00:00
|
|
|
#sections > div > button:not(:first-of-type) {
|
2015-07-19 15:27:19 +00:00
|
|
|
margin-left: 0.2rem;
|
2015-03-24 02:55:16 +00:00
|
|
|
}
|
2015-03-10 15:45:13 +00:00
|
|
|
.dirty > label::before {
|
|
|
|
content: "*";
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-05-22 12:28:05 +00:00
|
|
|
#sections {
|
|
|
|
counter-reset: codebox;
|
|
|
|
}
|
|
|
|
#sections > div > label::after {
|
|
|
|
counter-increment: codebox;
|
|
|
|
content: counter(codebox);
|
|
|
|
margin-left: 0.25rem;
|
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
/* code */
|
2015-02-09 03:32:06 +00:00
|
|
|
.code {
|
2015-03-24 02:55:16 +00:00
|
|
|
height: 10rem;
|
|
|
|
width: 40rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-02-09 04:02:08 +00:00
|
|
|
.CodeMirror {
|
|
|
|
border: solid #CCC 1px;
|
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
.CodeMirror-lint-mark-warning {
|
|
|
|
background: none;
|
|
|
|
}
|
2015-03-25 13:08:28 +00:00
|
|
|
.CodeMirror-vscrollbar {
|
|
|
|
margin-bottom: 8px; /* make space for resize-grip */
|
|
|
|
}
|
2015-07-11 16:57:22 +00:00
|
|
|
.CodeMirror-dialog {
|
2015-03-26 07:11:18 +00:00
|
|
|
-webkit-animation: highlight 3s ease-out;
|
|
|
|
}
|
2015-04-08 17:11:22 +00:00
|
|
|
.CodeMirror-focused {
|
|
|
|
outline: -webkit-focus-ring-color auto 5px;
|
|
|
|
outline-offset: -2px;
|
|
|
|
}
|
2015-07-11 14:35:04 +00:00
|
|
|
.CodeMirror-search-field {
|
|
|
|
width: 10em;
|
|
|
|
}
|
|
|
|
.CodeMirror-jump-field {
|
|
|
|
width: 5em;
|
|
|
|
}
|
|
|
|
.CodeMirror-search-hint {
|
|
|
|
color: #888;
|
|
|
|
}
|
2017-03-29 02:26:06 +00:00
|
|
|
body[data-highlight-selection-matches="token"] .cm-matchhighlight-approved .cm-matchhighlight,
|
|
|
|
body[data-highlight-selection-matches="token"] .CodeMirror-selection-highlight-scrollbar {
|
2017-03-28 22:55:14 +00:00
|
|
|
animation: fadein-match-highlighter 1s cubic-bezier(.97,.01,.42,.98);
|
|
|
|
animation-fill-mode: both;
|
2017-03-19 03:17:23 +00:00
|
|
|
}
|
2017-03-29 02:26:06 +00:00
|
|
|
body[data-highlight-selection-matches="selection"] .cm-matchhighlight-approved .cm-matchhighlight,
|
|
|
|
body[data-highlight-selection-matches="selection"] .CodeMirror-selection-highlight-scrollbar {
|
|
|
|
background-color: rgba(1, 151, 193, 0.1);
|
|
|
|
}
|
2015-03-26 07:11:18 +00:00
|
|
|
@-webkit-keyframes highlight {
|
|
|
|
from {
|
|
|
|
background-color: #ff9;
|
|
|
|
}
|
|
|
|
to {
|
2015-07-11 16:57:22 +00:00
|
|
|
background-color: none;
|
2015-03-26 07:11:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-03-26 21:37:45 +00:00
|
|
|
@keyframes fadein {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2017-03-28 22:55:14 +00:00
|
|
|
@keyframes fadein-match-highlighter {
|
|
|
|
from { background-color: transparent; }
|
|
|
|
to { background-color: rgba(1, 151, 193, 0.1); }
|
|
|
|
}
|
2015-03-25 13:08:28 +00:00
|
|
|
.resize-grip {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
content: " ";
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 99;
|
|
|
|
cursor: n-resize;
|
|
|
|
background: linear-gradient(-45deg, transparent 2px, rgba(0,0,0,0.5) 2px, transparent 3px, transparent 4.5px, rgba(0,0,0,0.5) 5px, transparent 5.5px);
|
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
/* applies-to */
|
2015-02-28 18:40:05 +00:00
|
|
|
.applies-to {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.applies-to label {
|
|
|
|
flex: auto;
|
2015-03-24 02:55:16 +00:00
|
|
|
margin-top: 0.2rem;
|
2015-02-28 18:40:05 +00:00
|
|
|
}
|
2015-02-09 03:32:06 +00:00
|
|
|
.applies-to ul {
|
2015-02-28 18:40:05 +00:00
|
|
|
flex: auto;
|
|
|
|
flex-grow: 99;
|
2015-02-09 03:32:06 +00:00
|
|
|
margin: 0;
|
2015-02-28 18:40:05 +00:00
|
|
|
padding: 0;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
.applies-to li {
|
2015-02-28 18:40:05 +00:00
|
|
|
display: flex;
|
2015-02-09 03:32:06 +00:00
|
|
|
list-style-type: none;
|
2015-02-28 18:40:05 +00:00
|
|
|
align-items: center;
|
2015-03-24 02:55:16 +00:00
|
|
|
margin-bottom: 0.35rem;
|
2015-02-28 18:40:05 +00:00
|
|
|
}
|
2015-03-23 19:38:03 +00:00
|
|
|
.applies-to li > *:not(button) {
|
2015-02-28 18:40:05 +00:00
|
|
|
flex: auto;
|
2015-03-24 02:55:16 +00:00
|
|
|
min-height: 1.4rem;
|
|
|
|
margin-left: 0.35rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
.applies-to li .add-applies-to {
|
2015-02-28 18:40:05 +00:00
|
|
|
visibility: hidden;
|
|
|
|
text-align: left;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
.applies-to li:last-child .add-applies-to {
|
2015-02-28 18:40:05 +00:00
|
|
|
visibility: visible
|
|
|
|
}
|
|
|
|
.applies-to li .add-applies-to:first-child {
|
2015-03-24 02:55:16 +00:00
|
|
|
margin-left: 1rem;
|
2015-02-28 18:40:05 +00:00
|
|
|
}
|
|
|
|
.applies-to li .applies-value {
|
|
|
|
flex-grow: 99;
|
2015-03-24 02:55:16 +00:00
|
|
|
padding-left: 0.2rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
.applies-to img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2017-03-26 21:37:45 +00:00
|
|
|
.test-regexp {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.has-regexp .test-regexp {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.regexp-report summary, .regexp-report div {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.regexp-report mark {
|
|
|
|
background-color: rgba(255, 255, 0, .5);
|
|
|
|
}
|
|
|
|
.regexp-report details {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
.regexp-report details:not(:last-child) {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
.regexp-report summary {
|
|
|
|
font-weight: bold;
|
|
|
|
margin-left: -1rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
outline: none;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
.regexp-report details[data-type="full"] {
|
|
|
|
color: darkgreen;
|
|
|
|
}
|
|
|
|
.regexp-report details[data-type="partial"] {
|
|
|
|
color: darkgray;
|
|
|
|
}
|
|
|
|
.regexp-report details[data-type="invalid"] {
|
|
|
|
color: maroon;
|
|
|
|
}
|
|
|
|
.regexp-report details details {
|
|
|
|
margin-left: 2rem;
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
|
|
|
.regexp-report .svg-icon {
|
|
|
|
position: absolute;
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
|
|
|
.regexp-report details div:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-skip: ink;
|
|
|
|
}
|
|
|
|
.regexp-report details div img {
|
|
|
|
width: 16px;
|
|
|
|
max-height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
margin-left: -20px;
|
|
|
|
margin-top: -1px;
|
|
|
|
animation: fadein 1s cubic-bezier(.03, .67, .08, .94);
|
|
|
|
animation-fill-mode: both;
|
|
|
|
}
|
2015-04-26 12:34:59 +00:00
|
|
|
/************ help popup ************/
|
|
|
|
#help-popup {
|
|
|
|
top: 3rem;
|
|
|
|
right: 3rem;
|
|
|
|
max-width: 50vw;
|
|
|
|
position: fixed;
|
|
|
|
display: none;
|
|
|
|
background-color: white;
|
|
|
|
box-shadow: 3px 3px 30px rgba(0, 0, 0, 0.5);
|
|
|
|
padding: 0.5rem;
|
2015-07-13 17:44:46 +00:00
|
|
|
z-index: 99;
|
2015-04-26 12:34:59 +00:00
|
|
|
}
|
2015-08-28 16:41:44 +00:00
|
|
|
#help-popup.big {
|
|
|
|
max-width: 100%;
|
|
|
|
left: 3rem;
|
|
|
|
}
|
|
|
|
#help-popup.big .CodeMirror {
|
|
|
|
min-height: 2rem;
|
|
|
|
height: 70vh;
|
|
|
|
}
|
2015-04-26 12:34:59 +00:00
|
|
|
#help-popup .title {
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: rgba(0,0,0,0.05);
|
|
|
|
margin: -0.5rem -0.5rem 0.5rem;
|
2017-03-26 21:37:45 +00:00
|
|
|
padding: .5rem 32px .5rem .5rem;
|
2015-04-26 12:34:59 +00:00
|
|
|
}
|
|
|
|
#help-popup .contents {
|
|
|
|
max-height: calc(100vh - 8rem);
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2017-04-01 02:50:03 +00:00
|
|
|
#help-popup .dismiss {
|
2015-04-26 12:34:59 +00:00
|
|
|
position: absolute;
|
2015-06-24 08:55:24 +00:00
|
|
|
right: 4px;
|
2017-04-01 02:50:03 +00:00
|
|
|
top: .5em;
|
2015-04-26 12:34:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.keymap-list {
|
|
|
|
font-size: 85%;
|
|
|
|
line-height: 1.0;
|
|
|
|
border-spacing: 0;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
.keymap-list input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.keymap-list tr:nth-child(odd) {
|
|
|
|
background-color: rgba(0, 0, 0, 0.07);
|
|
|
|
}
|
|
|
|
.keymap-list td:first-child {
|
|
|
|
white-space: nowrap;
|
|
|
|
font-family: monospace;
|
|
|
|
padding-right: 0.5rem;
|
|
|
|
}
|
2015-03-24 00:39:21 +00:00
|
|
|
|
2015-07-13 17:44:46 +00:00
|
|
|
#help-popup button[name^="import"] {
|
|
|
|
line-height: 1.5rem;
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
margin: 0.5rem 0 0 0.5rem;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0.5;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
#help-popup.ready button[name^="import"] {
|
|
|
|
pointer-events: all;
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
|
2015-05-22 12:28:05 +00:00
|
|
|
/************ lint ************/
|
|
|
|
#lint {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#lint > div {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
#lint table {
|
|
|
|
font-size: 100%;
|
|
|
|
border-spacing: 0;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
line-height: 1.0;
|
|
|
|
}
|
|
|
|
#lint table:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
#lint caption {
|
|
|
|
text-align: left;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
#lint tbody {
|
|
|
|
font-size: 85%;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
#lint tr:hover {
|
|
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
#lint td[role="severity"] {
|
|
|
|
font-size: 0;
|
|
|
|
width: 16px;
|
|
|
|
padding-right: 0.25rem;
|
|
|
|
}
|
|
|
|
#lint td[role="line"], #lint td[role="sep"] {
|
|
|
|
text-align: right;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
#lint td[role="col"] {
|
|
|
|
text-align: left;
|
|
|
|
padding-right: 0.25rem;
|
|
|
|
}
|
|
|
|
#lint td[role="message"] {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2015-06-23 16:24:53 +00:00
|
|
|
/************ CSS beautifier ************/
|
|
|
|
.beautify-options {
|
|
|
|
white-space: nowrap;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
.beautify-options div {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.beautify-options div[newline="true"] + div {
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
.beautify-options div[newline="true"] + div span[indent] {
|
|
|
|
padding-left: 2rem;
|
|
|
|
}
|
2015-06-22 19:03:28 +00:00
|
|
|
.beautify-options:after {
|
|
|
|
clear: both;
|
|
|
|
display: block;
|
|
|
|
content: " ";
|
|
|
|
height: 1rem;
|
|
|
|
}
|
2015-06-23 16:24:53 +00:00
|
|
|
.beautify-options span {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.beautify-options select {
|
|
|
|
border: none;
|
|
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
|
|
}
|
|
|
|
|
2015-03-24 02:55:16 +00:00
|
|
|
/************ reponsive layouts ************/
|
2015-02-19 17:29:57 +00:00
|
|
|
@media(max-width:737px) {
|
2015-02-18 15:57:33 +00:00
|
|
|
#header {
|
2015-03-24 02:55:16 +00:00
|
|
|
width: auto;
|
2015-02-18 15:57:33 +00:00
|
|
|
height: auto;
|
|
|
|
position: inherit;
|
2015-02-19 17:29:57 +00:00
|
|
|
border-right: none;
|
2015-03-24 02:55:16 +00:00
|
|
|
border-bottom: 1px dashed #AAA;
|
2015-03-20 09:28:00 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#header section:not(:last-child) {
|
|
|
|
margin-bottom: 0.4rem;
|
2015-03-20 09:28:00 +00:00
|
|
|
}
|
|
|
|
#header input[type="checkbox"] {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2015-03-24 00:52:18 +00:00
|
|
|
h2 {
|
2015-03-20 09:28:00 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2015-03-24 00:25:39 +00:00
|
|
|
#basic-info {
|
|
|
|
display: flex;
|
2015-03-24 02:55:16 +00:00
|
|
|
align-items: baseline;
|
2015-03-20 09:28:00 +00:00
|
|
|
}
|
2015-03-24 00:25:39 +00:00
|
|
|
#basic-info > * {
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
#basic-info > *:first-child {
|
|
|
|
flex-grow: 99;
|
|
|
|
display: flex;
|
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#basic-info > *:not(:last-child) {
|
|
|
|
margin-right: 0.8rem;
|
|
|
|
}
|
2015-03-24 00:25:39 +00:00
|
|
|
#basic-info #name {
|
|
|
|
width: auto;
|
|
|
|
flex-grow: 99;
|
|
|
|
}
|
|
|
|
#actions {
|
2015-03-24 02:55:16 +00:00
|
|
|
margin-top: 1rem;
|
2015-03-24 00:25:39 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#actions > * {
|
|
|
|
display: inline-block;
|
2015-03-20 09:28:00 +00:00
|
|
|
}
|
|
|
|
#options {
|
2015-03-24 00:39:21 +00:00
|
|
|
-webkit-column-count: 2;
|
2015-03-20 09:28:00 +00:00
|
|
|
}
|
2017-03-30 23:49:03 +00:00
|
|
|
#options .aligned > *:not(svg) {
|
2015-03-24 02:55:16 +00:00
|
|
|
margin: 1px 0 0 0; /* workaround the flowing-padding column bug in webkit */
|
|
|
|
padding-right: 0.4rem;
|
|
|
|
vertical-align: baseline;
|
|
|
|
min-height: 1.4rem;
|
|
|
|
}
|
2015-03-24 00:39:21 +00:00
|
|
|
.option {
|
|
|
|
-webkit-column-break-inside: avoid;
|
2015-03-20 09:28:00 +00:00
|
|
|
}
|
2015-03-24 00:39:21 +00:00
|
|
|
.option label {
|
2015-03-24 02:55:16 +00:00
|
|
|
line-height: 1.25rem;
|
2015-03-24 00:39:21 +00:00
|
|
|
margin: 0;
|
2015-02-18 15:57:33 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#options [type="number"] {
|
|
|
|
text-align: left; /* workaround the column flow bug in webkit */
|
|
|
|
padding-left: 0.2rem;
|
|
|
|
}
|
|
|
|
#options #tabSize-label {
|
|
|
|
position: relative;
|
|
|
|
top: 0.2rem;
|
|
|
|
}
|
2016-01-20 18:02:10 +00:00
|
|
|
#lint h2 {
|
|
|
|
display: block;
|
|
|
|
cursor: default;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
#lint > div {
|
|
|
|
max-height: 0;
|
|
|
|
}
|
2016-02-01 15:09:31 +00:00
|
|
|
#lint.collapsed > div {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-01-20 18:02:10 +00:00
|
|
|
#lint:hover > div {
|
|
|
|
margin-top: 1em;
|
|
|
|
max-height: 30vh;
|
|
|
|
}
|
2015-02-18 15:57:33 +00:00
|
|
|
#sections {
|
2015-03-15 03:35:30 +00:00
|
|
|
padding-left: 0;
|
2015-02-19 17:29:57 +00:00
|
|
|
}
|
2015-02-19 17:42:34 +00:00
|
|
|
#sections > div {
|
2015-03-15 03:35:30 +00:00
|
|
|
padding: 0;
|
2015-02-19 17:42:34 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#sections > *:not(h2) {
|
|
|
|
padding-left: 0.4rem;
|
2015-02-19 17:29:57 +00:00
|
|
|
}
|
2015-04-11 10:28:25 +00:00
|
|
|
.applies-type {
|
|
|
|
width: 30%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media(max-width:500px) {
|
|
|
|
#options {
|
|
|
|
-webkit-column-count: 1;
|
|
|
|
}
|
|
|
|
#options #tabSize-label {
|
|
|
|
position: static;
|
|
|
|
}
|
2015-03-08 06:21:43 +00:00
|
|
|
}
|
2015-02-09 03:32:06 +00:00
|
|
|
</style>
|
2015-04-11 10:28:25 +00:00
|
|
|
<link id="cm-theme" rel="stylesheet">
|
2015-07-19 15:27:19 +00:00
|
|
|
|
|
|
|
<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">
|
|
|
|
<li class="applies-to-everything" i18n-html="appliesToEverything">
|
|
|
|
<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">
|
2017-04-01 02:50:03 +00:00
|
|
|
<svg class="svg-icon info applies-to-help"><use xlink:href="#svg-icon-help"/></svg>
|
2015-07-19 15:27:19 +00:00
|
|
|
</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>
|
2017-03-26 21:37:45 +00:00
|
|
|
<button class="test-regexp" i18n-text="styleRegexpTestButton"></button>
|
2015-07-19 15:27:19 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<template data-id="find">
|
|
|
|
<span i18n-text="search">: <input type="text" class="CodeMirror-search-field">
|
|
|
|
<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">
|
|
|
|
<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">
|
|
|
|
<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">
|
|
|
|
</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>
|
2017-04-01 04:37:25 +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>
|
2015-07-19 15:27:19 +00:00
|
|
|
|
2017-04-08 10:19:44 +00:00
|
|
|
<script src="dom.js"></script>
|
2015-02-09 04:02:08 +00:00
|
|
|
<script src="messaging.js"></script>
|
2017-04-11 10:51:40 +00:00
|
|
|
<script src="prefs.js"></script>
|
2015-02-09 03:32:06 +00:00
|
|
|
<script src="localization.js"></script>
|
2015-02-09 04:25:35 +00:00
|
|
|
<script src="apply.js"></script>
|
2015-04-11 10:28:25 +00:00
|
|
|
<script src="edit.js"></script>
|
2015-02-09 03:32:06 +00:00
|
|
|
</head>
|
2017-03-05 09:29:10 +00:00
|
|
|
<body id="stylus-edit">
|
2015-02-09 03:32:06 +00:00
|
|
|
<div id="header">
|
2015-03-27 10:30:07 +00:00
|
|
|
<h1 id="heading"> </h1> <!-- nbsp allocates the actual height which prevents page shift -->
|
2015-02-09 03:32:06 +00:00
|
|
|
<section id="basic-info">
|
2015-03-24 02:55:16 +00:00
|
|
|
<div id="basic-info-name">
|
2015-03-27 10:30:07 +00:00
|
|
|
<input id="name" class="style-contributor" i18n-placeholder="styleMissingName">
|
2017-04-01 02:50:03 +00:00
|
|
|
<a id="url" target="_blank"><svg class="svg-icon"><use xlink:href="#svg-icon-external-link"/></svg></a>
|
2015-03-24 02:55:16 +00:00
|
|
|
</div>
|
|
|
|
<div id="basic-info-enabled">
|
|
|
|
<input type="checkbox" id="enabled" class="style-contributor">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label for="enabled" id="enabled-label" i18n-text="styleEnabledLabel"></label>
|
2015-03-24 02:55:16 +00:00
|
|
|
</div>
|
2015-02-09 03:32:06 +00:00
|
|
|
</section>
|
2015-03-20 09:28:00 +00:00
|
|
|
<section id="actions">
|
2015-07-13 17:44:46 +00:00
|
|
|
<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>
|
2017-04-01 02:50:03 +00:00
|
|
|
<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>
|
2015-07-13 17:44:46 +00:00
|
|
|
<button id="from-mozilla" i18n-text="importLabel"></button>
|
|
|
|
<button id="to-mozilla" i18n-text="exportLabel"></button>
|
|
|
|
</div>
|
2015-03-20 09:28:00 +00:00
|
|
|
</section>
|
|
|
|
<section id="options">
|
2015-03-27 10:30:07 +00:00
|
|
|
<h2 id="options-heading" i18n-text="optionsHeading"></h2>
|
2015-03-20 09:28:00 +00:00
|
|
|
<div class="option">
|
|
|
|
<input data-option="lineWrapping" id="editor.lineWrapping" type="checkbox">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label id="lineWrapping-label" for="editor.lineWrapping" i18n-text="cm_lineWrapping"></label>
|
2015-03-20 09:28:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="option">
|
|
|
|
<input data-option="smartIndent" id="editor.smartIndent" type="checkbox">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label id="smartIndent-label" for="editor.smartIndent" i18n-text="cm_smartIndent"></label>
|
2015-03-20 09:28:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="option">
|
|
|
|
<input data-option="indentWithTabs" id="editor.indentWithTabs" type="checkbox">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label id="indentWithTabs-label" for="editor.indentWithTabs" i18n-text="cm_indentWithTabs"></label>
|
2015-03-20 09:28:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label id="tabSize-label" for="editor.tabSize" i18n-text="cm_tabSize"></label>
|
2015-03-20 09:28:00 +00:00
|
|
|
<input data-option="tabSize" id="editor.tabSize" type="number" min="0">
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label id="keyMap-label" for="editor.keyMap" i18n-text="cm_keyMap"></label>
|
2015-03-20 09:28:00 +00:00
|
|
|
<select data-option="keyMap" id="editor.keyMap"></select>
|
2017-04-01 02:50:03 +00:00
|
|
|
<svg id="keyMap-help" class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2015-03-20 09:28:00 +00:00
|
|
|
</div>
|
2015-04-11 10:28:25 +00:00
|
|
|
<div class="option aligned">
|
|
|
|
<label id="theme-label" for="editor.theme" i18n-text="cm_theme"></label>
|
|
|
|
<select data-option="theme" id="editor.theme"></select>
|
|
|
|
</div>
|
2017-03-29 02:26:06 +00:00
|
|
|
<div class="option aligned">
|
|
|
|
<label id="highlight-label" for="editor.matchHighlight" i18n-text="cm_matchHighlight"></label>
|
|
|
|
<select data-option="highlightSelectionMatches" id="editor.matchHighlight">
|
|
|
|
<option i18n-text="cm_matchHighlightToken" value="token">
|
|
|
|
<option i18n-text="cm_matchHighlightSelection" value="selection">
|
|
|
|
<option i18n-text="genericDisabledLabel" value="">
|
|
|
|
</select>
|
|
|
|
</div>
|
2015-03-20 09:28:00 +00:00
|
|
|
</section>
|
2017-04-01 02:50:03 +00:00
|
|
|
<section id="lint"><h2 i18n-text="issues">: <span id="issue-count"></span><svg id="lint-help" class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></h2><div></div></section>
|
2015-02-09 03:32:06 +00:00
|
|
|
</div>
|
|
|
|
<section id="sections">
|
2017-04-01 02:50:03 +00:00
|
|
|
<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>
|
2015-02-09 03:32:06 +00:00
|
|
|
</section>
|
2015-04-26 12:34:59 +00:00
|
|
|
<div id="help-popup">
|
2017-04-01 02:50:03 +00:00
|
|
|
<div class="title"></div><svg id="sections-help" class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg></svg>
|
2015-04-26 12:34:59 +00:00
|
|
|
<div class="contents"></div>
|
|
|
|
</div>
|
2017-04-01 02:50:03 +00:00
|
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
|
|
|
|
<symbol id="svg-icon-external-link" height="16" width="16" viewBox="0 0 8 8">
|
|
|
|
<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>
|
|
|
|
<symbol id="svg-icon-help" height="16" width="14" viewBox="0 0 14 16" i18n-alt="helpAlt">
|
|
|
|
<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>
|
|
|
|
<symbol id="svg-icon-close" height="16" width="12" viewBox="0 0 12 16">
|
|
|
|
<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>
|
|
|
|
</svg>
|
|
|
|
|
2015-02-09 03:32:06 +00:00
|
|
|
</body>
|
|
|
|
</html>
|