summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-12-06 15:45:53 +0100
committerOrangerot <purple@orangerot.dev>2024-12-06 15:47:52 +0100
commit037f30fe8bec7265db275227596b0f4eb776f671 (patch)
tree98a25e8ea655aaace4f2eafd63b809d19e8b52f1
parent2a0bad598ba401786f834e614199a8147ae44fbd (diff)
feat: buttons to open/close settings on mobile using anchors
-rw-r--r--index.html14
-rw-r--r--style.css5
2 files changed, 13 insertions, 6 deletions
diff --git a/index.html b/index.html
index ab3f5af..c2286ef 100644
--- a/index.html
+++ b/index.html
@@ -9,8 +9,8 @@
<link rel="stylesheet" href="style.css">
<title>Imagine - Image Editor</title>
</head>
- <body style="padding-top: 100vh">
- <div class="navbar columns is-mobile is-fixed-top" style="z-index: -1">
+ <body style="padding-top: 100vh; ">
+ <div class="navbar columns is-mobile is-fixed-top">
<div class="column">
<div class="hero is-fullheight">
<div class="hero-body">
@@ -31,7 +31,11 @@
</button>
</div>
</div>
- </div>
+ </div><br>
+ <a href="#settings" class="button is-hidden-desktop" style="position: absolute; right: 30px;
+ bottom: 30px">
+ Settings
+ </a>
</div>
</div>
</div>
@@ -88,7 +92,9 @@
</aside>
</div>
</div>
- <div class="notification is-fullwidth is-hidden-desktop">
+ <div class="notification is-fullwidth is-hidden-desktop" style="z-index: 200">
+ <span id="settings"></span>
+ <a href="#top" class="delete"></a>
<button class="button is-primary">
Save Image
</button>
diff --git a/style.css b/style.css
index fa56098..d709d30 100644
--- a/style.css
+++ b/style.css
@@ -1,3 +1,4 @@
html, body {
- margin: 0px;
-} \ No newline at end of file
+ margin: 0px;
+ scroll-behavior: smooth;
+}