Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
red_brick_board
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ciella Francisco
red_brick_board
Commits
bfefa3b5
Commit
bfefa3b5
authored
Mar 17, 2024
by
gab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added collapse to navbar
parent
ed355c41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
7 deletions
+35
-7
custom.css
redbrickboard/static/css/custom.css
+26
-1
base.html
redbrickboard/templates/base.html
+9
-6
No files found.
redbrickboard/static/css/custom.css
View file @
bfefa3b5
...
...
@@ -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
;
}
...
...
redbrickboard/templates/base.html
View file @
bfefa3b5
...
...
@@ -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 %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment