Commit bfefa3b5 authored by gab's avatar gab

added collapse to navbar

parent ed355c41
......@@ -27,7 +27,7 @@ body {
background-color: var(--theme-bright-red);
color: #fff;
border-color: var(--theme-bright-red);
white-space:nowrap;
white-space: nowrap;
}
.btn-red:hover {
......@@ -38,10 +38,35 @@ body {
border-color: var(--theme-prusian-blue);
}
@media (max-width: 950px) {
.navbar-brand {
width: 90%;
}
}
@media (max-width: 780px) {
.navbar-brand {
width: 85%;
}
}
@media (max-width: 560px) {
.navbar-brand {
width: 75%;
}
}
@media (max-width: 425px) {
.navbar-brand {
width: 70%;
}
}
.nav-link {
transition: all 0.3s ease-in;
color: var(--theme-bright-red) !important;
font-size: 1.5vw;
white-space: nowrap;
}
......
......@@ -17,7 +17,7 @@
</head>
<body>
<nav class="px-5 navbar navbar-expand navbar-light bg-light">
<nav class="px-5 navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid justify-content-end">
<a class="navbar-brand" href="/">
<img src="{% static '/images/Logo with Name.png' %}" alt="Red Brick Board" style="width:30%; height:auto;">
......@@ -25,10 +25,12 @@
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
<div class="navbar-nav d-flex">
<div class="collapse navbar-collapse justify-content-end" id="navbarNavAltMarkup">
<ul class="navbar-nav d-flex">
<li class="nav-item">
<a class="nav-link" href="/eventcatalog" style="margin-right: 2.94rem;">Event Catalog</a>
</li>
<li class="nav-item">
{% if user.is_authenticated %}
<form role="Log Out" action="{% url 'accounts:logout' %}" method="post">
{% csrf_token %}
......@@ -40,7 +42,8 @@
<button class="btn btn-red" type="submit">Log In</button>
</form>
{% endif %}
</div>
</li>
</ul>
</div>
</nav>
{% block content %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment