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 {
|
|
|
|
margin: 0px;
|
|
|
|
font: 12px arial,sans-serif;
|
|
|
|
}
|
|
|
|
#header {
|
|
|
|
height: 100%;
|
|
|
|
width: 250px;
|
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
padding: 15px;
|
|
|
|
border-right: 1px dashed #AAA;
|
|
|
|
}
|
|
|
|
.notmac #header {
|
|
|
|
-webkit-box-shadow: 0px 0px 50px -18px black;
|
|
|
|
}
|
|
|
|
#sections {
|
|
|
|
padding-left: 290px;
|
|
|
|
}
|
2015-02-09 04:02:08 +00:00
|
|
|
#sections h2 {
|
2015-02-09 03:32:06 +00:00
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
#basic-info {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
#name {
|
|
|
|
width: 185px;
|
|
|
|
}
|
|
|
|
#sections > div {
|
|
|
|
margin: 10px;
|
|
|
|
padding: 0px 15px;
|
|
|
|
}
|
|
|
|
#sections > div:not(:first-child) {
|
|
|
|
border-top: 2px solid black;
|
|
|
|
}
|
2015-02-09 04:02:08 +00:00
|
|
|
#basic-info label {
|
2015-02-09 03:32:06 +00:00
|
|
|
display: inline-block;
|
|
|
|
width: 10em;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
#header label {
|
|
|
|
width: 60px;
|
|
|
|
}
|
|
|
|
.code {
|
|
|
|
height: 10em;
|
|
|
|
width: 40em;
|
|
|
|
}
|
2015-02-09 04:02:08 +00:00
|
|
|
.CodeMirror {
|
|
|
|
border: solid #CCC 1px;
|
|
|
|
}
|
2015-02-28 18:40:05 +00:00
|
|
|
.applies-to {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.applies-to label {
|
|
|
|
flex: auto;
|
|
|
|
margin-top: 0.25em;
|
|
|
|
}
|
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;
|
|
|
|
margin-bottom: 0.4em;
|
|
|
|
}
|
|
|
|
.applies-to li > * {
|
|
|
|
flex: auto;
|
|
|
|
min-height: 1.7em;
|
|
|
|
margin-left: 0.4em;
|
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 {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
.applies-to li .applies-value {
|
|
|
|
flex-grow: 99;
|
|
|
|
padding-left: 0.5ex;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
body > section > *:not(h2) {
|
|
|
|
padding-left: 15px;
|
|
|
|
}
|
|
|
|
#sections > div {
|
|
|
|
padding-top: 1em;
|
|
|
|
padding-bottom: 1em;
|
|
|
|
}
|
|
|
|
#sections > div:only-of-type .remove-section {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#sections > div .add-section {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#sections > div:last-of-type .add-section {
|
|
|
|
display: inline;
|
2015-02-28 18:40:05 +00:00
|
|
|
margin-left: 0.4em;
|
2015-02-09 03:32:06 +00:00
|
|
|
}
|
|
|
|
.applies-to img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2015-02-25 04:05:00 +00:00
|
|
|
.CodeMirror-lint-marker-warning {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-02-19 17:29:57 +00:00
|
|
|
@media(max-width:737px) {
|
2015-02-18 15:57:33 +00:00
|
|
|
#header {
|
|
|
|
height: auto;
|
|
|
|
position: inherit;
|
2015-02-19 17:29:57 +00:00
|
|
|
width: auto;
|
|
|
|
border-right: none;
|
2015-02-19 17:42:34 +00:00
|
|
|
padding-left: 8px;
|
2015-02-18 15:57:33 +00:00
|
|
|
}
|
2015-02-19 17:42:34 +00:00
|
|
|
|
2015-02-18 15:57:33 +00:00
|
|
|
#sections {
|
|
|
|
padding-left: 0px;
|
2015-02-19 17:29:57 +00:00
|
|
|
}
|
2015-02-19 17:42:34 +00:00
|
|
|
|
|
|
|
#sections > div {
|
|
|
|
padding: 0px;
|
|
|
|
}
|
2015-02-25 04:05:00 +00:00
|
|
|
|
2015-02-19 17:29:57 +00:00
|
|
|
#sections-heading {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
2015-02-19 17:42:34 +00:00
|
|
|
|
2015-02-19 17:29:57 +00:00
|
|
|
body > section > *:not(h2) {
|
|
|
|
padding-left: 8px;
|
2015-02-18 15:57:33 +00:00
|
|
|
}
|
2015-02-25 04:05:00 +00:00
|
|
|
|
2015-02-18 15:57:33 +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">
|
|
|
|
<div><label for="name" id="name-label"></label><input id="name"><div>
|
|
|
|
<div><label for="enabled" id="enabled-label"></label><input type="checkbox" id="enabled"></div>
|
|
|
|
</section>
|
|
|
|
<button id="to-mozilla"></button><img id="to-mozilla-help" src="help.png"><br><br>
|
2015-03-01 22:36:21 +00:00
|
|
|
<button id="save-button" title="Ctrl-S"></button>
|
2015-02-09 03:32:06 +00:00
|
|
|
<a href="manage.html"><button id="cancel-button"></button></a>
|
2015-02-09 04:02:08 +00:00
|
|
|
<div id="options">
|
|
|
|
<h2 id="options-heading"></h2>
|
|
|
|
<input id="smart-indent" type="checkbox"><label id="smart-indent-label" for="smart-indent"></label>
|
|
|
|
</div>
|
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>
|