changed CSS from Bootstrap to Bulma

This commit is contained in:
Johannes Erwerle 2026-10-02 19:03:08 +02:00
parent 9b971b0941
commit 5288815616
10 changed files with 90 additions and 43 deletions

View file

@ -1,17 +1,48 @@
{% load static %}
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.4/css/bulma.min.css">
<link rel="stylesheet" href="{% static 'vendored/css/bulma.min.css' %}">
<link rel="stylesheet" href="{% static 'webui/css/webui.css' %}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Community Backup</title>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Add a click event on each of them
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
});
</script>
</head>
<body style="display: flex; flex-direction: column; height: 100vh">
<nav class="navbar" role="navigation" aria-label="main navigation" >
<div class="navbar-brand">
<a class="navbar-item" href="/">Community Backup</a>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu">
<div class="navbar-menu" id="navMenu">
<div class="navbar-start"></div>
<div class="navbar-end">