Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navbar fixed at top #110

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file removed newsaggregator/core/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file removed newsaggregator/core/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file removed newsaggregator/core/__pycache__/forms.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file removed newsaggregator/core/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified newsaggregator/db.sqlite3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 25 additions & 4 deletions newsaggregator/static/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,28 @@ header {
header .flex-wrapper { display: none; }


.navbar-section {
/* The navigation bar */
.navbar {
overflow: hidden;
background-color: #333;
position: fixed; /* Set the navbar to fixed position */
top: 0; /* Position the navbar at the top of the page */
width: 100%; /* Full width */
z-index:1000;
}

/* Links inside the navbar */
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
/* padding: 14px 16px; */
text-decoration: none;
}


/* .navbar-section {
padding-left: 3rem;
padding-right: 3rem;
border-bottom: 1px solid var(--action-primary);
Expand All @@ -249,12 +270,12 @@ header .flex-wrapper { display: none; }
align-items: center;
gap: 15px;
padding: 15px 0;
}
} */

.dropdown {
padding-top: 2rem;
padding-top: 7rem;
padding-right: 1rem;
padding-bottom: 1rem;;
padding-bottom: 1rem;
}

.logo-container {
Expand Down
2 changes: 1 addition & 1 deletion newsaggregator/templates/core/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block index %}
<link rel="stylesheet" href="{% static './assets/css/components/about.css' %}">

<div class="container about">
<div class="container about" style="padding-top:100px">
<div class="about-us">
<h4>About Us</h4>
<p>
Expand Down
2 changes: 1 addition & 1 deletion newsaggregator/templates/core/bookmarks.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<link rel="stylesheet" href="{% static './assets/css/components/news.css' %}">

<div class="container">
<div class="container" style="padding-top:100px">
{% include 'components/swiperjs.html' %}

<div class="row mt-2 p-2">
Expand Down
2 changes: 1 addition & 1 deletion newsaggregator/templates/core/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!------ Include the above in your HEAD tag ---------->
<main>
<div class="container">
<div class="container" style="padding-top:100px">

<div class="col-md-12">
<br>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading