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
01969835
Commit
01969835
authored
5 months ago
by
Natasha Nunez
Browse files
Options
Downloads
Patches
Plain Diff
sidebar fix
parent
e073d244
No related branches found
No related tags found
No related merge requests found
Pipeline
#456010
failed
5 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/.vuepress/components/HumanPractices.vue
+42
-0
42 additions, 0 deletions
docs/.vuepress/components/HumanPractices.vue
docs/.vuepress/styles/index.scss
+50
-37
50 additions, 37 deletions
docs/.vuepress/styles/index.scss
with
92 additions
and
37 deletions
docs/.vuepress/components/HumanPractices.vue
0 → 100644
+
42
−
0
View file @
01969835
<
template
>
<div
class=
"banner"
:style=
"
{ right: sidebarWidth }">
<img
:src=
"imageUrl"
alt=
"Banner Image"
class=
"banner-image"
/>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
imageUrl
:
{
type
:
String
,
default
:
'
https://static.igem.wiki/teams/5306/human-practices/banners/humanpractices-introbanner.png
'
,
},
sidebarWidth
:
{
type
:
String
,
default
:
'
18rem
'
,
},
},
}
</
script
>
<
style
scoped
>
.banner
{
position
:
relative
;
left
:
0
;
width
:
calc
(
100%
-
var
(
--sidebar-width
));
/* Dynamic width calculation */
max-width
:
100%
;
display
:
block
;
margin
:
0
auto
;
}
.banner-image
{
width
:
100%
;
max-width
:
100%
;
display
:
block
;
}
@media
(
max-width
:
768px
)
{
.banner
{
width
:
100%
;
right
:
0
;
/* Adjust for smaller screens */
}
}
</
style
>
This diff is collapsed.
Click to expand it.
docs/.vuepress/styles/index.scss
+
50
−
37
View file @
01969835
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
a
,
span
,
strong
{
font-family
:
'Red Hat Display'
,
sans-serif
;
font-weight
:
400
;
/* or use 700 if you want to keep them bold */
}
/* Ensure any strong or bold tags also use the correct font */
strong
,
b
{
font-family
:
'Red Hat Display'
,
sans-serif
;
font-weight
:
700
;
/* or whatever weight you prefer */
}
font-family
:
'Red Hat Display'
,
sans-serif
;
font-weight
:
400
;
/* or use 700 if you want to keep them bold */
}
/* Ensure any strong or bold tags also use the correct font */
strong
,
b
{
font-family
:
'Red Hat Display'
,
sans-serif
;
font-weight
:
700
;
/* or whatever weight you prefer */
}
.video-wrapper
{
display
:
flex
;
justify-content
:
center
;
/* Centers the video horizontally */
align-items
:
center
;
/* Centers the video vertically (if necessary) */
position
:
relative
;
width
:
100%
;
padding-bottom
:
56
.25%
;
/* 16:9 Aspect Ratio */
height
:
0
;
overflow
:
hidden
;
}
.video-wrapper
iframe
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
border
:
0
;
/* Optional: removes the iframe border */
}
.video-wrapper
{
display
:
flex
;
justify-content
:
center
;
/* Centers the video horizontally */
align-items
:
center
;
/* Centers the video vertically (if necessary) */
position
:
relative
;
width
:
100%
;
padding-bottom
:
56
.25%
;
/* 16:9 Aspect Ratio */
height
:
0
;
overflow
:
hidden
;
}
.video-wrapper
iframe
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
border
:
0
;
/* Optional: removes the iframe border */
}
.back-to-top-icon
{
background-image
:
url('https://static.igem.wiki/teams/5306/natronaut-logo-no-text.png')
!
important
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
background-position
:
center
;
border
:
none
;
/* Optional: Remove border */
width
:
50px
;
/* Adjust based on your image size */
height
:
50px
;
/* Adjust based on your image size */
background-image
:
url('https://static.igem.wiki/teams/5306/natronaut-logo-no-text.png')
!
important
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
background-position
:
center
;
border
:
none
;
/* Optional: Remove border */
width
:
50px
;
/* Adjust based on your image size */
height
:
50px
;
/* Adjust based on your image size */
}
/* Sidebar Styling */
.theme-hope-sidebar
{
position
:
sticky
;
/* Stick to the top when scrolling */
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 */
background-color
:
#f9f9f9
;
/* Optional: Background color */
padding
:
1rem
;
/* Sidebar padding */
border
:
1px
solid
#ddd
;
/* Optional: Border for the sidebar */
border-radius
:
8px
;
/* Optional: Rounded corners */
}
/* Sidebar Title */
...
...
@@ -62,7 +75,7 @@ h1, h2, h3, h4, h5, h6, p, a, span, strong {
text-decoration
:
underline
;
/* Underline on hover */
}
/*
Prevent sidebar from extending beyond the f
ooter */
/*
Layout and F
ooter */
.theme-hope-layout
{
display
:
flex
;
flex-direction
:
column
;
...
...
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