Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TU-Delft
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
TU-Delft
Commits
52925140
Commit
52925140
authored
7 months ago
by
Shraddha Raghuram
Browse files
Options
Downloads
Patches
Plain Diff
third attempt glitch fix
parent
09d13352
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#406862
passed
7 months ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/navbar.css
+6
-30
6 additions, 30 deletions
static/navbar.css
wiki/menu.html
+0
-73
0 additions, 73 deletions
wiki/menu.html
with
6 additions
and
103 deletions
static/navbar.css
+
6
−
30
View file @
52925140
...
@@ -63,6 +63,7 @@ body{
...
@@ -63,6 +63,7 @@ body{
width
:
120px
;
width
:
120px
;
height
:
110%
;
height
:
110%
;
margin-right
:
25px
;
margin-right
:
25px
;
position
:
relative
;
}
}
#human-practice
{
#human-practice
{
width
:
250px
;
width
:
250px
;
...
@@ -73,31 +74,6 @@ body{
...
@@ -73,31 +74,6 @@ body{
margin-right
:
30px
;
/* Ensure sufficient space between "Education" and "Safety" */
margin-right
:
30px
;
/* Ensure sufficient space between "Education" and "Safety" */
}
}
.my-navbar
>
li
a
{
color
:
var
(
--text
,
var
(
--text
,
rgba
(
24
,
90
,
79
,
1
)));
font-family
:
AccidenzCommons
;
font-size
:
25px
;
font-style
:
normal
;
font-weight
:
400
;
line-height
:
normal
;
text-decoration
:
none
;
transition
:
color
0.15s
linear
;
}
.son
{
margin-top
:
30px
;
list-style
:
none
;
visibility
:
hidden
;
opacity
:
0
;
transition
:
opacity
0.3s
ease-out
,
visibility
0.3s
ease-out
;
}
.my-navbar
>
li
{
float
:
left
;
width
:
120px
;
height
:
110%
;
margin-right
:
25px
;
position
:
relative
;
/* Keep this to position dropdowns relative to their parent */
}
.my-navbar
>
li
.son
{
.my-navbar
>
li
.son
{
margin-top
:
0
;
/* Remove any margin to avoid indentation */
margin-top
:
0
;
/* Remove any margin to avoid indentation */
padding
:
0
;
/* Remove padding if not needed */
padding
:
0
;
/* Remove padding if not needed */
...
@@ -107,15 +83,15 @@ body{
...
@@ -107,15 +83,15 @@ body{
width
:
100%
;
/* Make sure the dropdown is as wide as the parent */
width
:
100%
;
/* Make sure the dropdown is as wide as the parent */
background-color
:
#C6EBE8
;
/* Match the background to the navbar */
background-color
:
#C6EBE8
;
/* Match the background to the navbar */
z-index
:
1000
;
/* Ensure it appears above other elements */
z-index
:
1000
;
/* Ensure it appears above other elements */
d
is
play
:
none
;
/* Hide the dropdown i
nitially */
v
is
ibility
:
hidden
;
/* I
nitially
hidden
*/
opacity
:
0
;
/* Start with
an
invisible dropdown */
opacity
:
0
;
/* Start with invisible dropdown */
transition
:
opacity
0.3s
ease-out
;
/* Smooth transition for visibility */
transition
:
opacity
0.3s
ease-out
,
visibility
0.3s
ease-out
;
/* Smooth transition for visibility
and opacity
*/
}
}
.my-navbar
>
li
:hover
.son
,
.my-navbar
>
li
:hover
.son
,
.my-navbar
>
li
.active
.son
{
.my-navbar
>
li
.active
.son
{
d
is
play
:
block
;
/* Show dropdown on hover or when activ
e */
v
is
ibility
:
visible
;
/* Make it visibl
e */
opacity
:
1
;
/* Make it
visibl
e */
opacity
:
1
;
/* Make it
opaqu
e */
}
}
/* Adjust for smaller screens */
/* Adjust for smaller screens */
...
...
This diff is collapsed.
Click to expand it.
wiki/menu.html
+
0
−
73
View file @
52925140
...
@@ -174,79 +174,6 @@
...
@@ -174,79 +174,6 @@
navbox
.
style
.
height
=
"
78px
"
;
navbox
.
style
.
height
=
"
78px
"
;
}
}
}
}
// let navbox = document.getElementById("navbox");
// let navbar = document.getElementById("my-navbar");
// let items = navbar.children;
// function over(el) {
// resetColors();
// el.children[0].style.color = "#62D881";
// // Close any open dropdowns except the current one
// for (let i = 0; i
<
items
.
length
;
i
++
)
{
// if (items[i] !== el) {
// closeDropdown(items[i]);
// }
// }
// // Show the current dropdown
// let son = el.children[1];
// if (son) {
// son.style.display = "block";
// son.style.opacity = 1;
// el.classList.add('active');
// adjustNavHeight();
// }
// }
// function leave(el) {
// // Do nothing here, as the dropdown should stay open
// }
// function closeDropdown(el) {
// let son = el.children[1];
// if (son) {
// son.style.opacity = 0;
// setTimeout(() => {
// son.style.display = "none";
// el.classList.remove('active');
// }, 300); // Match this delay with the CSS transition time
// }
// }
// function resetColors() {
// for (let i = 0; i
<
4
;
i
++
)
{
// items[i].children[0].style.color = "#185A4F";
// }
// }
// function adjustNavHeight() {
// if (document.documentElement.clientWidth > 1400) {
// navbox.style.height = "320px";
// } else if (document.documentElement.clientHeight
<
1120
)
{
// navbox.style.height = "245px";
// } else {
// navbox.style.height = "280px";
// }
// }
// // Close dropdown when clicking outside the navbar
// document.addEventListener('click', function(event) {
// let isClickInside = navbox.contains(event.target);
// if (!isClickInside) {
// for (let i = 0; i
<
items
.
length
;
i
++
)
{
// closeDropdown(items[i]);
// }
// navbox.style.height = "78px"; // Reset the height
// }
// });
// // Close dropdown on mouseleave for the whole navbar
// navbox.addEventListener('mouseleave', function() {
// for (let i = 0; i
<
items
.
length
;
i
++
)
{
// closeDropdown(items[i]);
// }
// navbox.style.height = "78px"; // Reset the height
// });
</script>
</script>
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