major changes to styling:
move nav bar to left side and implement hover animations, generalize color scheme using css variables, move button and btn-group related styles to buttons.css, consolidate form input and select styles in form.css Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ export class Dialog extends HTMLElement {
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/form.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/dialog.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/buttons.css" type="text/css">
|
||||
<dialog>
|
||||
<p id="prompt"></p>
|
||||
<hr>
|
||||
@@ -14,8 +15,8 @@ export class Dialog extends HTMLElement {
|
||||
</form>
|
||||
<hr>
|
||||
<div class="btn-group">
|
||||
<button value="cancel" form="form" class="active" formnovalidate>CANCEL</button>
|
||||
<button value="confirm" form="form">CONFIRM</button>
|
||||
<button value="cancel" form="form" class="cancel" formnovalidate>CANCEL</button>
|
||||
<button value="confirm" form="form" class="accept">CONFIRM</button>
|
||||
</div>
|
||||
</dialog>
|
||||
`;
|
||||
|
@@ -6,17 +6,6 @@ window.addEventListener("DOMContentLoaded", init);
|
||||
async function init () {
|
||||
await populateInstances();
|
||||
|
||||
let instances = document.querySelector("nav #instances");
|
||||
instances.addEventListener("click", () => {
|
||||
goToPage("index.html");
|
||||
});
|
||||
|
||||
let logout = document.querySelector("nav #logout");
|
||||
logout.addEventListener("click", () => {
|
||||
deleteAllCookies();
|
||||
goToPage("login.html");
|
||||
});
|
||||
|
||||
let addInstanceBtn = document.querySelector("#instance-add");
|
||||
addInstanceBtn.addEventListener("click", handleInstanceAdd);
|
||||
}
|
||||
|
@@ -9,6 +9,7 @@ export class Instance extends HTMLElement {
|
||||
shadowRoot.innerHTML = `
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/instance.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/buttons.css" type="text/css">
|
||||
<article>
|
||||
<div>
|
||||
<div>
|
||||
@@ -23,10 +24,10 @@ export class Instance extends HTMLElement {
|
||||
</div>
|
||||
<hr>
|
||||
<div class="btn-group">
|
||||
<img id="power-btn">
|
||||
<img id="console-btn">
|
||||
<img id="configure-btn">
|
||||
<img id="delete-btn">
|
||||
<img id="power-btn" class="clickable">
|
||||
<img id="console-btn" class="clickable">
|
||||
<img id="configure-btn" class="clickable">
|
||||
<img id="delete-btn" class="clickable">
|
||||
</div>
|
||||
</article>
|
||||
`;
|
||||
|
Reference in New Issue
Block a user