Skip to content

Commit

Permalink
Add reset button and fix overflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Maingron committed Sep 1, 2024
1 parent f60ae51 commit 2d4e8e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion css/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html, body {
margin: 0;
padding: 0;
background: #000;
overflow: hidden;
}

body {
Expand Down Expand Up @@ -97,7 +96,8 @@ body {
}
}

.addblock {
.addblock,
.trashbin {
display: none;
}
}
Expand Down Expand Up @@ -196,9 +196,17 @@ body {
}

.edittools {
.addblock {
.addblock,
.trashbin {
display: inline-block;
}

.trashbin {
&:hover,
&:focus-visible {
color: red;
}
}
}
}
}
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
<body>
<main id="main">
<div class="edittools">
<button class="editpen" onclick="config.edit = !config.edit; saveConfig();window.location.reload()"></button> <!-- Save opposite value of config.edit (true -> false)-->
<button class="addblock" onclick="addBlock('block-fullclock')">+</button> <!-- Save opposite value of config.edit (true -> false)-->
<button class="trashbin" ondblclick="window.alert('Resetting Clock, click Ok to proceed, close tab/window to abort'); reset();" title="Doubleclick to reset to default settings">🗑</button>
<button class="addblock" onclick="addBlock('block-fullclock')" title="Add new block">+</button> <!-- Save opposite value of config.edit (true -> false)-->
<button class="editpen" onclick="config.edit = !config.edit; saveConfig();window.location.reload()" title="Switch Edit/View mode"></button> <!-- Save opposite value of config.edit (true -> false)-->
</div>
<p id="dev-configvalue"></p>
</main>
Expand Down

0 comments on commit 2d4e8e6

Please sign in to comment.