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 {
...
@@ -27,7 +27,7 @@ body {
background-color
:
var
(
--theme-bright-red
);
background-color
:
var
(
--theme-bright-red
);
color
:
#fff
;
color
:
#fff
;
border-color
:
var
(
--theme-bright-red
);
border-color
:
var
(
--theme-bright-red
);
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.btn-red
:hover
{
.btn-red
:hover
{
...
@@ -38,10 +38,35 @@ body {
...
@@ -38,10 +38,35 @@ body {
border-color
:
var
(
--theme-prusian-blue
);
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
{
.nav-link
{
transition
:
all
0.3s
ease-in
;
transition
:
all
0.3s
ease-in
;
color
:
var
(
--theme-bright-red
)
!important
;
color
:
var
(
--theme-bright-red
)
!important
;
font-size
:
1.5vw
;
font-size
:
1.5vw
;
white-space
:
nowrap
;
}
}
...
...
redbrickboard/templates/base.html
View file @
bfefa3b5
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</head>
</head>
<body>
<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"
>
<div
class=
"container-fluid justify-content-end"
>
<a
class=
"navbar-brand"
href=
"/"
>
<a
class=
"navbar-brand"
href=
"/"
>
<img
src=
"{% static '/images/Logo with Name.png' %}"
alt=
"Red Brick Board"
style=
"width:30%; height:auto;"
>
<img
src=
"{% static '/images/Logo with Name.png' %}"
alt=
"Red Brick Board"
style=
"width:30%; height:auto;"
>
...
@@ -25,10 +25,12 @@
...
@@ -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"
>
<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>
<span
class=
"navbar-toggler-icon"
></span>
</button>
</button>
<div
class=
"collapse navbar-collapse justify-content-end"
id=
"navbarNav"
>
<div
class=
"collapse navbar-collapse justify-content-end"
id=
"navbarNavAltMarkup"
>
<div
class=
"navbar-nav d-flex"
>
<ul
class=
"navbar-nav d-flex"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"/eventcatalog"
style=
"margin-right: 2.94rem;"
>
Event Catalog
</a>
<a
class=
"nav-link"
href=
"/eventcatalog"
style=
"margin-right: 2.94rem;"
>
Event Catalog
</a>
</li>
<li
class=
"nav-item"
>
{% if user.is_authenticated %}
{% if user.is_authenticated %}
<form
role=
"Log Out"
action=
"{% url 'accounts:logout' %}"
method=
"post"
>
<form
role=
"Log Out"
action=
"{% url 'accounts:logout' %}"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
...
@@ -40,7 +42,8 @@
...
@@ -40,7 +42,8 @@
<button
class=
"btn btn-red"
type=
"submit"
>
Log In
</button>
<button
class=
"btn btn-red"
type=
"submit"
>
Log In
</button>
</form>
</form>
{% endif %}
{% endif %}
</div>
</li>
</ul>
</div>
</div>
</nav>
</nav>
{% block content %}
{% 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