feat: buttons to open/close settings on mobile using anchors

This commit is contained in:
Orangerot 2024-12-06 15:45:53 +01:00
parent 2a0bad598b
commit 037f30fe8b
2 changed files with 13 additions and 6 deletions

View file

@ -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>

View file

@ -1,3 +1,4 @@
html, body {
margin: 0px;
margin: 0px;
scroll-behavior: smooth;
}