Editor: de-tablify options, support for responsive layout
This commit is contained in:
parent
e0650fde71
commit
da52ff7ee0
104
edit.html
104
edit.html
|
@ -79,6 +79,13 @@
|
||||||
#header label {
|
#header label {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
#options .aligned {
|
||||||
|
display: table-row;
|
||||||
|
}
|
||||||
|
#options .aligned > * {
|
||||||
|
display: table-cell;
|
||||||
|
margin: 0.5ex 0 0 0;
|
||||||
|
}
|
||||||
.code {
|
.code {
|
||||||
height: 10em;
|
height: 10em;
|
||||||
width: 40em;
|
width: 40em;
|
||||||
|
@ -154,24 +161,68 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
#header section {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
#header label {
|
||||||
|
width: auto;
|
||||||
|
vertical-align: baseline;
|
||||||
|
margin-right: .5em;
|
||||||
|
}
|
||||||
|
#header input[type="checkbox"] {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
#name {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
h1, h2 {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#basic-info > div {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
#actions br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#actions img {
|
||||||
|
position: relative;
|
||||||
|
top: .2em;
|
||||||
|
margin-left: .2em;
|
||||||
|
}
|
||||||
|
#actions > * + button, #actions a {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
#options {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
|
}
|
||||||
|
#options .option, #options .option > * {
|
||||||
|
flex: auto;
|
||||||
|
height: 1.8em;
|
||||||
|
margin: 0;
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
#options .option {
|
||||||
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sections {
|
#sections {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sections > div {
|
#sections > div {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sections-heading {
|
#sections-heading {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > section > *:not(h2) {
|
body > section > *:not(h2) {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* editor options */
|
/* editor options */
|
||||||
|
@ -196,40 +247,35 @@
|
||||||
<div><label for="name" id="name-label"></label><input id="name" class="style-contributor"></div>
|
<div><label for="name" id="name-label"></label><input id="name" class="style-contributor"></div>
|
||||||
<div><label for="enabled" id="enabled-label"></label><input type="checkbox" id="enabled" class="style-contributor"></div>
|
<div><label for="enabled" id="enabled-label"></label><input type="checkbox" id="enabled" class="style-contributor"></div>
|
||||||
</section>
|
</section>
|
||||||
|
<section id="actions">
|
||||||
<button id="to-mozilla"></button><img id="to-mozilla-help" src="help.png"><br><br>
|
<button id="to-mozilla"></button><img id="to-mozilla-help" src="help.png"><br><br>
|
||||||
|
<button id="from-mozilla">From Mozilla format</button><img id="from-mozilla-help" src="help.png"><br><br>
|
||||||
<button id="save-button" title="Ctrl-S"></button>
|
<button id="save-button" title="Ctrl-S"></button>
|
||||||
<a href="manage.html"><button id="cancel-button"></button></a>
|
<a href="manage.html"><button id="cancel-button"></button></a>
|
||||||
<form id="options">
|
</section>
|
||||||
|
<section id="options">
|
||||||
<h2 id="options-heading"></h2>
|
<h2 id="options-heading"></h2>
|
||||||
<table cols="2">
|
<div class="option">
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<input data-option="lineWrapping" id="editor.lineWrapping" type="checkbox">
|
<input data-option="lineWrapping" id="editor.lineWrapping" type="checkbox">
|
||||||
<label id="lineWrapping-label" for="editor.lineWrapping"></label>
|
<label id="lineWrapping-label" for="editor.lineWrapping"></label>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div class="option">
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<input data-option="smartIndent" id="editor.smartIndent" type="checkbox">
|
<input data-option="smartIndent" id="editor.smartIndent" type="checkbox">
|
||||||
<label id="smartIndent-label" for="editor.smartIndent"></label>
|
<label id="smartIndent-label" for="editor.smartIndent"></label>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div class="option">
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<input data-option="indentWithTabs" id="editor.indentWithTabs" type="checkbox">
|
<input data-option="indentWithTabs" id="editor.indentWithTabs" type="checkbox">
|
||||||
<label id="indentWithTabs-label" for="editor.indentWithTabs"></label>
|
<label id="indentWithTabs-label" for="editor.indentWithTabs"></label>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div class="option aligned">
|
||||||
<tr>
|
<label id="tabSize-label" for="editor.tabSize"></label>
|
||||||
<td><label id="tabSize-label" for="editor.tabSize"></label></td>
|
<input data-option="tabSize" id="editor.tabSize" type="number" min="0">
|
||||||
<td><input data-option="tabSize" id="editor.tabSize" type="number" min="0"></td>
|
</div>
|
||||||
</tr>
|
<div class="option aligned">
|
||||||
<tr>
|
<label id="keyMap-label" for="editor.keyMap"></label>
|
||||||
<td><label id="keyMap-label" for="editor.keyMap"></label></td>
|
<select data-option="keyMap" id="editor.keyMap"></select>
|
||||||
<td><select data-option="keyMap" id="editor.keyMap"></select></td>
|
</div>
|
||||||
</tr>
|
</section>
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
<section id="sections">
|
<section id="sections">
|
||||||
<h2><span id="sections-heading"></span> <img id="sections-help" src="help.png"></h2>
|
<h2><span id="sections-heading"></span> <img id="sections-help" src="help.png"></h2>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user