Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
1e7038a9
Commit
1e7038a9
authored
10 months ago
by
Iziram
Browse files
Options
Downloads
Patches
Plain Diff
remove bootstrap : rework navbar
parent
cf174cdc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/static/css/scodoc97.css
+132
-0
132 additions, 0 deletions
app/static/css/scodoc97.css
app/templates/base.j2
+5
-1
5 additions, 1 deletion
app/templates/base.j2
with
137 additions
and
1 deletion
app/static/css/scodoc97.css
+
132
−
0
View file @
1e7038a9
...
@@ -496,6 +496,138 @@ fieldset {
...
@@ -496,6 +496,138 @@ fieldset {
/* #endregion pagination */
/* #endregion pagination */
/* #region navbar */
/* #region navbar */
/* Navbar container */
.navbar
{
background-color
:
#f8f9fa
;
padding
:
8px
2px
;
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,
0.1
);
display
:
flex
;
justify-content
:
center
;
}
.navbar
>
.container.container-fluid
{
margin
:
4px
2px
;
}
.container-fluid
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
0
15px
;
}
.navbar-collapse
{
width
:
100%
;
display
:
flex
;
}
/* Brand/logo */
.navbar-brand
{
font-size
:
1.25rem
;
font-weight
:
bold
;
color
:
#333
;
text-decoration
:
none
;
}
/* Navigation links container */
.navbar-nav
{
display
:
flex
;
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
}
/* Navigation links */
.nav-item
{
margin
:
0
10px
;
}
.nav-link
{
color
:
#333
;
text-decoration
:
none
;
font-size
:
1rem
;
transition
:
color
0.2s
ease-in-out
;
}
.nav-link
:hover
{
color
:
#007bff
;
}
/* Responsive toggle button */
.navbar-toggler
{
display
:
none
;
background
:
none
;
border
:
none
;
font-size
:
1.5rem
;
cursor
:
pointer
;
}
.navbar-toggler-icon
{
display
:
inline-block
;
width
:
1.5em
;
height
:
1.5em
;
vertical-align
:
middle
;
background-image
:
url
(
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"
);
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
100%
;
}
/* Media query for responsive design */
@media
(
max-width
:
767px
)
{
.navbar-collapse
{
display
:
none
;
width
:
100%
;
}
.navbar-collapse.show
{
display
:
block
;
}
.navbar-nav
{
flex-direction
:
column
;
width
:
100%
;
}
.nav-item
{
margin
:
10px
0
;
}
.navbar-toggler
{
display
:
block
;
}
.container-fluid
{
flex-wrap
:
wrap
;
}
.navbar-brand
{
flex-grow
:
1
;
}
}
/* Specific styles for your layout */
.navbar-nav.justify-content-center
{
flex-grow
:
1
;
justify-content
:
center
;
}
.navbar-nav.ms-auto
{
justify-content
:
flex-end
;
margin-left
:
auto
!important
;
}
.logout
.nav-link
{
color
:
#dc3545
;
}
.logout
.nav-link
:hover
{
color
:
#a71d2a
;
}
/* #endregion navbar */
/* #endregion navbar */
/* #endregion bootstrap ==> */
/* #endregion bootstrap ==> */
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/templates/base.j2
+
5
−
1
View file @
1e7038a9
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
{# NAVBAR CONTENT #}
{# NAVBAR CONTENT #}
<div class="collapse navbar-collapse justify-content-center align-items-center" id="index-nav">
<div class="collapse navbar-collapse justify-content-center align-items-center" id="index-nav">
<ul class="navbar-nav
justify-content-center
">
<ul class="navbar-nav">
{% if current_user.is_administrator() %}
{% if current_user.is_administrator() %}
<li class="nav-item"><a class="nav-link" href="{{ url_for('scodoc.configuration') }}">Configuration</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('scodoc.configuration') }}">Configuration</a></li>
{% endif %}
{% endif %}
...
@@ -89,5 +89,9 @@
...
@@ -89,5 +89,9 @@
<script>
<script>
const SCO_URL = "{% if g.scodoc_dept %}{{
const SCO_URL = "{% if g.scodoc_dept %}{{
url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)}}{% endif %}";
url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)}}{% endif %}";
document.querySelector('.navbar-toggler').addEventListener('click', function() {
document.querySelector('.navbar-collapse').classList.toggle('show');
});
</script>
</script>
{% endblock %}
{% endblock %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment