huge improvements to layer menu layout
This commit is contained in:
+154
-72
@@ -106,7 +106,6 @@
|
|||||||
}
|
}
|
||||||
input {
|
input {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
@@ -152,6 +151,21 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.containerOptionListing {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 4rem;
|
||||||
|
}
|
||||||
|
input[type="text"] {
|
||||||
|
width: 4rem;
|
||||||
|
}
|
||||||
|
input[type="color"] {
|
||||||
|
width: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
.bookmarkListingButtons {
|
.bookmarkListingButtons {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,16 +298,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="containerForm" onsubmit="return false">
|
<form id="containerForm" onsubmit="return false">
|
||||||
<h2 class="menuHeader">layers</h2>
|
|
||||||
<div id="containers">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="display:flex; flex-direction:row; align-items:center; justify-content: space-between; flex-wrap: wrap;">
|
|
||||||
<div>
|
<div>
|
||||||
<h2 class="menuHeader">add bookmark layer</h2>
|
<h2 class="menuHeader">add bookmark layer</h2>
|
||||||
<input
|
<input
|
||||||
id="newTextContainerNameInput"
|
id="newTextContainerNameInput"
|
||||||
placeholder="optional: layer name"
|
placeholder="(optional) layer name"
|
||||||
|
style="width: 100%"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
<button id="newTextContainerCreateButton" onclick="createNewTextContainer(this)">
|
<button id="newTextContainerCreateButton" onclick="createNewTextContainer(this)">
|
||||||
@@ -304,20 +314,22 @@
|
|||||||
<h2 class="menuHeader">add image to page</h2>
|
<h2 class="menuHeader">add image to page</h2>
|
||||||
<input
|
<input
|
||||||
id="newImageContainerNameInput"
|
id="newImageContainerNameInput"
|
||||||
placeholder="optional: image name"
|
placeholder="(optional) image name"
|
||||||
style="width: 50%;"
|
style="width: 100%;"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
id="newImageContainerUrlInput"
|
id="newImageContainerUrlInput"
|
||||||
placeholder="required: direct url to image"
|
placeholder="direct url to image"
|
||||||
style="width: 50%;"
|
style="width: 100%;"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
<button id="newImageContainerCreateButton" onclick="createNewImageContainer(this)">
|
<button id="newImageContainerCreateButton" onclick="createNewImageContainer(this)">
|
||||||
place image
|
place image
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
|
<h2 class="menuHeader">layers</h2>
|
||||||
|
<div id="containers"></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -716,7 +728,7 @@
|
|||||||
loadBookmarkListings() {
|
loadBookmarkListings() {
|
||||||
if (Object.keys(this.sections).length == 0) {
|
if (Object.keys(this.sections).length == 0) {
|
||||||
let bookmarkListings = document.getElementById(this.id + "-bookmark-menu--listings");
|
let bookmarkListings = document.getElementById(this.id + "-bookmark-menu--listings");
|
||||||
bookmarkListings.innerHTML = "(no bookmarks)";
|
bookmarkListings.innerHTML = "(you have no bookmarks)";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -826,16 +838,29 @@
|
|||||||
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ add new bookmarks / sections</p>
|
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ add new bookmarks / sections</p>
|
||||||
<div class="expandableMenu" id=${this.id + "-bookmark-menu--add-new"} >
|
<div class="expandableMenu" id=${this.id + "-bookmark-menu--add-new"} >
|
||||||
|
|
||||||
<label> enter url: </label>
|
<input
|
||||||
<input id=${this.id + "-url-input"} type="text" name="url" />
|
id=${this.id + "-url-input"}
|
||||||
|
type="text" name="url"
|
||||||
|
placeholder="enter URL for bookmark"
|
||||||
|
style="width: 20rem"
|
||||||
|
/>
|
||||||
|
<br />
|
||||||
|
|
||||||
<label> enter label: </label>
|
<input
|
||||||
<input id=${this.id + "-label-input"} type="text" name="label" />
|
id=${this.id + "-label-input"}
|
||||||
|
type="text" name="label"
|
||||||
|
placeholder="enter label for bookmark"
|
||||||
|
style="width: 20rem"
|
||||||
|
/>
|
||||||
|
<br />
|
||||||
|
|
||||||
<label> enter section (optional): </label>
|
<input
|
||||||
<input id=${this.id + "-section-input"} type="text" name="section" />
|
id=${this.id + "-section-input"}
|
||||||
|
type="text" name="section"
|
||||||
<br /><br />
|
placeholder="optional: enter a new or existing section name"
|
||||||
|
style="width: 20rem"
|
||||||
|
/>
|
||||||
|
<br />
|
||||||
|
|
||||||
<button id=${this.id + "-add-link-button"} onclick="addLink(this)">add link</button>
|
<button id=${this.id + "-add-link-button"} onclick="addLink(this)">add link</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -846,20 +871,36 @@
|
|||||||
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ ${this.name}: customize</p>
|
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ ${this.name}: customize</p>
|
||||||
<div class="expandableMenu">
|
<div class="expandableMenu">
|
||||||
|
|
||||||
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ ${this.name}: header options</p>
|
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ header options</p>
|
||||||
<div class="expandableMenu">
|
<div class="expandableMenu">
|
||||||
<p class="menuHeader">date + time options</p>
|
<p class="menuHeader">date + time options</p>
|
||||||
<label for=${this.id + "-settings-date-toggle"}>show date?</label>
|
<label for=${this.id + "-settings-date-toggle"}>show date?</label>
|
||||||
<input id=${this.id + "-settings-date-toggle"} type="checkbox" />
|
<input id=${this.id + "-settings-date-toggle"} type="checkbox" />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<label>show clock?</label>
|
<label for=${this.id + "-settings-clock-toggle"}>show clock?</label>
|
||||||
<input id=${this.id + "-settings-clock-toggle"} type="checkbox" />
|
<input id=${this.id + "-settings-clock-toggle"} type="checkbox" />
|
||||||
|
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|
||||||
|
<label for=${this.id + "-settings-clock-color"}>set header text color: </label>
|
||||||
|
<input id=${this.id + "-settings-clock-color"} type="color" />
|
||||||
|
<br /><br />
|
||||||
|
|
||||||
|
<label>set header font size (px): </label>
|
||||||
|
<input id=${this.id + "-settings-clock-size"} />
|
||||||
|
<br /><br />
|
||||||
|
|
||||||
|
<label for=${this.id + "-settings-clock-bold"}>bold header?</label>
|
||||||
|
<input id=${this.id + "-settings-clock-bold"} type="checkbox" />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<label for=${this.id + "-settings-clock-italic"}>italic header?</label>
|
||||||
|
<input id=${this.id + "-settings-clock-italic"} type="checkbox" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="menuHeader">divider options</p>
|
<p class="menuHeader">divider options</p>
|
||||||
<label for=${this.id + "-settings-divider-toggle"}>show divider?</label>
|
<label for=${this.id + "-settings-divider-toggle"}>display divider?</label>
|
||||||
<input id=${this.id + "-settings-divider-toggle"} type="checkbox" />
|
<input id=${this.id + "-settings-divider-toggle"} type="checkbox" />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
@@ -867,93 +908,134 @@
|
|||||||
<input id=${this.id + "-settings-divider-color"} type="color" />
|
<input id=${this.id + "-settings-divider-color"} type="color" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ ${this.name}: text options</p>
|
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ text options</p>
|
||||||
<div class="expandableMenu">
|
<div class="expandableMenu">
|
||||||
<p class="menuHeader">header text options</p>
|
|
||||||
<label>set header text color: </label>
|
|
||||||
<input id=${this.id + "-settings-clock-color"} type="color" />
|
|
||||||
<br /><br />
|
|
||||||
|
|
||||||
<label>set header font size (px): </label>
|
|
||||||
<input id=${this.id + "-settings-clock-size"} />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<label for=${this.id + "-settings-clock-bold"}>bold header?</label>
|
|
||||||
<input id=${this.id + "-settings-clock-bold"} type="checkbox" />
|
|
||||||
|
|
||||||
<label for=${this.id + "-settings-clock-italic"}>italic header?</label>
|
|
||||||
<input id=${this.id + "-settings-clock-italic"} type="checkbox" />
|
|
||||||
|
|
||||||
<p class="menuHeader">section text options</p>
|
<p class="menuHeader">section text options</p>
|
||||||
<label>set section size (px): </label>
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-section-size"}>set section size (px): </label>
|
||||||
<input id=${this.id + "-settings-section-size"} />
|
<input id=${this.id + "-settings-section-size"} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<label>set section color: </label>
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-section-color"}>set section color: </label>
|
||||||
<input id=${this.id + "-settings-section-color"} type="color" />
|
<input id=${this.id + "-settings-section-color"} type="color" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="containerOptionListing">
|
||||||
<label for="sectionBoldToggle">bold sections?</label>
|
<label for="sectionBoldToggle">bold sections?</label>
|
||||||
<input id=${this.id + "-settings-section-bold"} type="checkbox" />
|
<input id=${this.id + "-settings-section-bold"} type="checkbox" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="containerOptionListing">
|
||||||
<label for="sectionItalicToggle">italic sections?</label>
|
<label for="sectionItalicToggle">italic sections?</label>
|
||||||
<input id=${this.id + "-settings-section-italic"} type="checkbox" />
|
<input id=${this.id + "-settings-section-italic"} type="checkbox" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="menuHeader">bookmark text options</p>
|
<p class="menuHeader">bookmark text options</p>
|
||||||
<label>set link size (px): </label>
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-link-size"}>set link size (px): </label>
|
||||||
<input id=${this.id + "-settings-link-size"} />
|
<input id=${this.id + "-settings-link-size"} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<label>set link color: </label>
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-link-color"}>set link color: </label>
|
||||||
<input id=${this.id + "-settings-link-color"} type="color" />
|
<input id=${this.id + "-settings-link-color"} type="color" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="menuHeader">layer-wide options</p>
|
<p class="menuHeader">layer-wide options</p>
|
||||||
<label>change font (see instructions for more info):</label>
|
|
||||||
<input id=${this.id + "-settings-font-input"} />
|
|
||||||
<button id=${this.id + "-settings-set-font-button"}>set font</button>
|
|
||||||
|
|
||||||
<label>current font:</label>
|
<div class="containerOptionListing">
|
||||||
|
<div>
|
||||||
|
<p style="margin: 0;">
|
||||||
|
change font (see instructions for more info):<br />
|
||||||
|
<b>current font:</b>
|
||||||
<span id=${this.id + "-settings-font-name"}></span>
|
<span id=${this.id + "-settings-font-name"}></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<br /><br />
|
<div style="display: flex; flex-direction: column; align-items: end;">
|
||||||
<label>align text:</label>
|
<input id=${this.id + "-settings-font-input"} />
|
||||||
<br />
|
<br />
|
||||||
|
<button id=${this.id + "-settings-set-font-button"}>set font</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<div class="containerOptionListing" >
|
||||||
|
<p style="margin-top: 0;">align text:</p>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; align-items: end;">
|
||||||
|
<div>
|
||||||
<label for=${this.id + "-settings-left-align"}>left</label>
|
<label for=${this.id + "-settings-left-align"}>left</label>
|
||||||
<input id=${this.id + "-settings-left-align"} type="radio" name="align" />
|
<input id=${this.id + "-settings-left-align"} type="radio" name="align" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
<label for=${this.id + "-settings-center-align"}>center</label>
|
<label for=${this.id + "-settings-center-align"}>center</label>
|
||||||
<input id=${this.id + "-settings-center-align"} type="radio" name="align" />
|
<input id=${this.id + "-settings-center-align"} type="radio" name="align" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ ${this.name}: color + shape options</p>
|
<p class="expandableMenuToggle" onclick="toggleExpandableMenu(this)">+ color / shape options</p>
|
||||||
<div class="expandableMenu">
|
<div class="expandableMenu">
|
||||||
|
|
||||||
<p class="menuHeader">background color</p>
|
<p class="menuHeader">background color</p>
|
||||||
<label>set background color: </label>
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-bg-color"}>set background color: </label>
|
||||||
<input id=${this.id + "-settings-bg-color"} type="color" />
|
<input id=${this.id + "-settings-bg-color"} type="color" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<label>set background opacity (%): </label>
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-bg-alpha"}>set background opacity (%): </label>
|
||||||
<input id=${this.id + "-settings-bg-alpha"} />
|
<input id=${this.id + "-settings-bg-alpha"} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="menuHeader">change border + shape</p>
|
<p class="menuHeader">border + shape</p>
|
||||||
<label>set border color: </label>
|
<div class="containerOptionListing">
|
||||||
<input id=${this.id + "-settings-border-color"} type="color" />
|
<label for=${this.id + "-settings-shadow-color"}>shadow color: </label>
|
||||||
|
<input id=${this.id + "-settings-shadow-color"} type="color" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<label>set border width (px): </label>
|
<div class="containerOptionListing">
|
||||||
<input id=${this.id + "-settings-border-width"} placeholder="0 for none" />
|
|
||||||
|
|
||||||
<label>set container roundedness (px): </label>
|
|
||||||
<input id=${this.id + "-settings-border-radius"} placeholder="0 for square" />
|
|
||||||
|
|
||||||
<p class="menuHeader">change shadow / glow</p>
|
|
||||||
shadow settings:<br />
|
|
||||||
<label>x-offset (px): </label><br />
|
|
||||||
<input id=${this.id + "-settings-shadow-x"} placeholder="all 0 for none" /><br />
|
|
||||||
<label>y-offset (px): </label><br />
|
|
||||||
<input id=${this.id + "-settings-shadow-y"} placeholder="all 0 for none" /><br />
|
|
||||||
<label>blur radius / fuzziness (px): </label><br />
|
|
||||||
<input id=${this.id + "-settings-shadow-blur"} placeholder="all 0 for none" /><br />
|
|
||||||
<label>shadow color: </label><br />
|
|
||||||
<input id=${this.id + "-settings-shadow-color"} type="color" /><br />
|
|
||||||
<label>shadow opacity:</label>
|
<label>shadow opacity:</label>
|
||||||
<input id=${this.id + "-settings-shadow-alpha"} />
|
<input id=${this.id + "-settings-shadow-alpha"} />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-border-color"}>set border color: </label>
|
||||||
|
<input id=${this.id + "-settings-border-color"} type="color" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-border-width"}>set border width (0 = no border): </label>
|
||||||
|
<input id=${this.id + "-settings-border-width"} placeholder="0 for none" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-border-radius"}>container roundedness (0 = right angles): </label>
|
||||||
|
<input id=${this.id + "-settings-border-radius"} placeholder="0 for square" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="menuHeader">shadow / glow</p>
|
||||||
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-shadow-x"}>x-offset (in px): </label>
|
||||||
|
<input id=${this.id + "-settings-shadow-x"} placeholder="all 0 for none" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-shadow-y"}>y-offset (px): </label>
|
||||||
|
<input id=${this.id + "-settings-shadow-y"} placeholder="all 0 for none" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="containerOptionListing">
|
||||||
|
<label for=${this.id + "-settings-shadow-blur"}>blur radius / fuzziness (px): </label>
|
||||||
|
<input id=${this.id + "-settings-shadow-blur"} placeholder="all 0 for none" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="display: flex; flex-direction: row; justify-content: space-between;">
|
<div style="display: flex; flex-direction: row; justify-content: space-between;">
|
||||||
|
|||||||
Reference in New Issue
Block a user