Skip to content

Commit

Permalink
Add warning about disabled JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Feb 11, 2024
1 parent d153d66 commit 619288d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/admin/partials/nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
</a>
</div>
</nav>
<noscript class="warning">Looks like JavaScript is disabled or your browser does not support it. JavaScript is required for the site to work properly.</noscript>
<div class="nav-background" onclick="document.body.toggleAttribute('nav-open')"></div>
<?= $this->include('admin/partials/snackbar.php') ?>
<script>
Expand Down
13 changes: 13 additions & 0 deletions public/assets/css/admin/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ code {
border-radius: 4px;
}

.warning {
display: flex;
justify-content: center;
padding: 10px;
background-color: #ffee71;
text-align: center;
margin-left: var(--nav-width);
}

.title-label {
color: white;
background: #9fa4ad;
Expand Down Expand Up @@ -1334,6 +1343,10 @@ textarea.code {
}

@media screen and (max-width: 1080px) {
* {
--nav-width: 0;
}

.admin > .content {
--content-spacing: 14px;
margin-left: initial;
Expand Down

0 comments on commit 619288d

Please sign in to comment.