Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MSP-Maastricht
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
MSP-Maastricht
Commits
768dd154
Commit
768dd154
authored
5 months ago
by
Natasha Nunez
Browse files
Options
Downloads
Patches
Plain Diff
fix sidebar
parent
01969835
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#456115
failed
5 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/.vuepress/components/HumanPractices.vue
+5
-5
5 additions, 5 deletions
docs/.vuepress/components/HumanPractices.vue
docs/.vuepress/config.js
+39
-5
39 additions, 5 deletions
docs/.vuepress/config.js
docs/.vuepress/styles/index.scss
+1
-1
1 addition, 1 deletion
docs/.vuepress/styles/index.scss
with
45 additions
and
11 deletions
docs/.vuepress/components/HumanPractices.vue
+
5
−
5
View file @
768dd154
...
...
@@ -13,7 +13,7 @@ export default {
},
sidebarWidth
:
{
type
:
String
,
default
:
'
18rem
'
,
default
:
'
18rem
'
,
// Default value for sidebar width, adjust if needed
},
},
}
...
...
@@ -23,7 +23,7 @@ export default {
.banner
{
position
:
relative
;
left
:
0
;
width
:
calc
(
100%
-
var
(
--sidebar-width
));
/* Dynamic width
calculation */
width
:
calc
(
100%
-
18rem
);
/* Use the default value for
calculation */
max-width
:
100%
;
display
:
block
;
margin
:
0
auto
;
...
...
@@ -35,8 +35,8 @@ export default {
}
@media
(
max-width
:
768px
)
{
.banner
{
width
:
100%
;
right
:
0
;
/*
Adjust for
smaller screens */
width
:
100%
;
/* Adjust to full width for smaller screens */
right
:
0
;
/*
No offset on
smaller screens */
}
}
</
style
>
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/.vuepress/config.js
+
39
−
5
View file @
768dd154
...
...
@@ -44,16 +44,50 @@ export default defineUserConfig({
},
],
sidebar
:
{
'
/team/
'
:
[
{
text
:
'
Team
'
,
children
:
[
'
/team/
'
,
// Corresponds to '/team/README.md' or '/team/index.md'
'
/team/attributions
'
,
// Corresponds to '/team/attributions.md'
],
},
],
'
/project/
'
:
[
{
text
:
'
Project
'
,
children
:
[
'
/project/contribution
'
,
'
/project/description
'
,
'
/project/engineering
'
,
'
/project/parts
'
,
],
},
],
'
/human-practices/
'
:
[
{
text
:
'
Human Practices
'
,
children
:
[
'
/human-practices/
'
],
// Make sure file path exists
},
],
'
/awards/
'
:
[
{
text
:
'
Awards
'
,
children
:
[
'
/awards/education
'
,
'
/awards/sustainable
'
,
'
/awards/new-basic-part
'
,
],
},
],
'
/
'
:
[
{
t
itle
:
'
On This Page
'
,
// Title for the sidebar
children
:
'
auto
'
,
// Automatically generate based on headers
t
ext
:
'
On This Page
'
,
children
:
'
auto
'
,
},
],
'
/team
'
:
false
,
// Disable sidebar on team pa
ge
'
/team
'
:
false
,
// Disable sidebar on
/
team pa
th (if needed)
},
sidebarDepth
:
2
,
// Controls depth of headers in sidebar
displayAllHeaders
:
true
,
// Show all headers in the sidebar
}),
bundler
:
viteBundler
({
viteOptions
:
{},
...
...
This diff is collapsed.
Click to expand it.
docs/.vuepress/styles/index.scss
+
1
−
1
View file @
768dd154
...
...
@@ -45,7 +45,7 @@ height: 50px; /* Adjust based on your image size */
top
:
1rem
;
/* Space from the top of the page */
max-height
:
calc
(
100vh
-
2rem
);
/* Full height minus some margin */
overflow-y
:
auto
;
/* Enable vertical scrolling */
width
:
var
(
--
sidebar-width
);
/* Use the theme's sidebar width
*/
width
:
18rem
;
/* Ensure sidebar width is explicitly defined
*/
background-color
:
#f9f9f9
;
/* Optional: Background color */
padding
:
1rem
;
/* Sidebar padding */
border
:
1px
solid
#ddd
;
/* Optional: Border for the sidebar */
...
...
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