2015-02-09 03:32:06 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
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>
|
|
|
|
<script src="codemirror/addon/dialog/dialog.js"></script>
|
|
|
|
<script src="codemirror/addon/search/searchcursor.js"></script>
|
|
|
|
<script src="codemirror/addon/search/search.js"></script>
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
<script src="csslint/csslint.js"></script>
|
|
|
|
<script src="codemirror/addon/lint/lint.js"></script>
|
|
|
|
<script src="codemirror/addon/lint/css-lint.js"></script>
|
|
|
|
|
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-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;
|
2015-03-24 02:55:16 +00:00
|
|
|
font: 9pt 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 {
|
|
|
|
height: 100%;
|
2015-03-24 02:55:16 +00:00
|
|
|
width: 15rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
position: fixed;
|
2015-03-15 03:35:30 +00:00
|
|
|
top: 0;
|
2015-03-24 02:55:16 +00:00
|
|
|
padding: 0.95rem;
|
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;
|
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 {
|
2015-03-24 02:55:16 +00:00
|
|
|
padding-left: 18rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-02-09 04:02:08 +00:00
|
|
|
#sections h2 {
|
2015-03-24 02:55:16 +00:00
|
|
|
margin-top: 0.5rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
.aligned {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
.aligned > * {
|
|
|
|
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%;
|
|
|
|
}
|
|
|
|
#enabled {
|
|
|
|
margin-left: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
#enabled-label {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
/* actions */
|
|
|
|
#actions > * {
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
#actions img {
|
|
|
|
margin-left: 0.2rem;
|
|
|
|
position: relative;
|
|
|
|
top: 0.2rem;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
#sections > div .add-section {
|
|
|
|
margin-left: 0.4rem;
|
|
|
|
}
|
2015-03-10 15:45:13 +00:00
|
|
|
.dirty > label::before {
|
|
|
|
content: "*";
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
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-07 00:11:41 +00:00
|
|
|
.CodeMirror-focused {
|
|
|
|
border-color: black;
|
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
.CodeMirror-lint-mark-warning {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
/* 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;
|
|
|
|
}
|
2015-03-24 00:39:21 +00:00
|
|
|
|
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
|
|
|
}
|
2015-03-24 02:55:16 +00:00
|
|
|
#options .aligned > * {
|
|
|
|
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;
|
|
|
|
}
|
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-03-08 06:21:43 +00:00
|
|
|
}
|
2015-02-09 03:32:06 +00:00
|
|
|
</style>
|
2015-02-09 04:02:08 +00:00
|
|
|
<script src="storage.js"></script>
|
|
|
|
<script src="messaging.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-02-09 03:32:06 +00:00
|
|
|
</head>
|
|
|
|
<body id="stylish-edit">
|
|
|
|
<div id="header">
|
|
|
|
<h1 id="heading"></h1>
|
|
|
|
<section id="basic-info">
|
2015-03-24 02:55:16 +00:00
|
|
|
<div id="basic-info-name">
|
|
|
|
<input id="name" class="style-contributor">
|
|
|
|
</div>
|
|
|
|
<div id="basic-info-enabled">
|
|
|
|
<input type="checkbox" id="enabled" class="style-contributor">
|
|
|
|
<label for="enabled" id="enabled-label"></label>
|
|
|
|
</div>
|
2015-02-09 03:32:06 +00:00
|
|
|
</section>
|
2015-03-20 09:28:00 +00:00
|
|
|
<section id="actions">
|
2015-03-24 02:55:16 +00:00
|
|
|
<div><button id="to-mozilla"></button><img id="to-mozilla-help" src="help.png"></div>
|
2015-03-20 09:28:00 +00:00
|
|
|
<a href="manage.html"><button id="cancel-button"></button></a>
|
2015-03-24 02:55:16 +00:00
|
|
|
<button id="save-button" title="Ctrl-S"></button>
|
2015-03-20 09:28:00 +00:00
|
|
|
</section>
|
|
|
|
<section id="options">
|
2015-02-09 04:02:08 +00:00
|
|
|
<h2 id="options-heading"></h2>
|
2015-03-20 09:28:00 +00:00
|
|
|
<div class="option">
|
|
|
|
<input data-option="lineWrapping" id="editor.lineWrapping" type="checkbox">
|
|
|
|
<label id="lineWrapping-label" for="editor.lineWrapping"></label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
|
|
|
<input data-option="smartIndent" id="editor.smartIndent" type="checkbox">
|
|
|
|
<label id="smartIndent-label" for="editor.smartIndent"></label>
|
|
|
|
</div>
|
|
|
|
<div class="option">
|
|
|
|
<input data-option="indentWithTabs" id="editor.indentWithTabs" type="checkbox">
|
|
|
|
<label id="indentWithTabs-label" for="editor.indentWithTabs"></label>
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
|
|
|
<label id="tabSize-label" for="editor.tabSize"></label>
|
|
|
|
<input data-option="tabSize" id="editor.tabSize" type="number" min="0">
|
|
|
|
</div>
|
|
|
|
<div class="option aligned">
|
|
|
|
<label id="keyMap-label" for="editor.keyMap"></label>
|
|
|
|
<select data-option="keyMap" id="editor.keyMap"></select>
|
|
|
|
</div>
|
|
|
|
</section>
|
2015-02-09 03:32:06 +00:00
|
|
|
</div>
|
|
|
|
<section id="sections">
|
|
|
|
<h2><span id="sections-heading"></span> <img id="sections-help" src="help.png"></h2>
|
|
|
|
</section>
|
|
|
|
<script src="edit.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|