Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dokumentation
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
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
Dokumentation
Commits
b99dd331
Commit
b99dd331
authored
2 years ago
by
Mark Kane
Browse files
Options
Downloads
Patches
Plain Diff
Fix: add baseUrl in script,
tweak show/hide behaviour (
planning#404
)
parent
ed115022
No related branches found
No related tags found
1 merge request
!179
planning#404: add back-to-root button to nav,
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docusaurus.config.js
+1
-1
1 addition, 1 deletion
docusaurus.config.js
src/css/style.scss
+6
-2
6 additions, 2 deletions
src/css/style.scss
static/js/custom.js
+2
-2
2 additions, 2 deletions
static/js/custom.js
with
9 additions
and
5 deletions
docusaurus.config.js
+
1
−
1
View file @
b99dd331
...
...
@@ -171,7 +171,7 @@ module.exports = {
],
],
scripts
:
[
{
src
:
'
/
js/custom.js
'
,
src
:
`
${
baseUrl
}
js/custom.js
`
,
async
:
false
,
},
],
...
...
This diff is collapsed.
Click to expand it.
src/css/style.scss
+
6
−
2
View file @
b99dd331
...
...
@@ -74,12 +74,16 @@ img {
}
@media
screen
and
(
min-width
:
1000px
)
{
.has-back-btn
.navbar__brand
{
.navbar__brand
{
margin-left
:
32px
;
}
.hidden-back-btn
.navbar__brand
{
margin-left
:
0
;
}
}
.has-back-btn
.navbar__toggle.clean-btn
{
.navbar__toggle.clean-btn
{
margin-left
:
32px
;
}
...
...
This diff is collapsed.
Click to expand it.
static/js/custom.js
+
2
−
2
View file @
b99dd331
...
...
@@ -6,10 +6,10 @@ window.addEventListener("load", function() {
const
checkBackBtnVisibility
=
()
=>
{
if
(
window
.
location
.
pathname
===
'
/
'
&&
!
btn
.
classList
.
contains
(
'
hidden
'
))
{
btn
.
classList
.
add
(
'
hidden
'
);
nav
.
classList
.
remove
(
'
has
-back-btn
'
);
nav
.
classList
.
add
(
'
hidden
-back-btn
'
);
}
else
if
(
window
.
location
.
pathname
!==
'
/
'
&&
btn
.
classList
.
contains
(
'
hidden
'
))
{
btn
.
classList
.
remove
(
'
hidden
'
);
nav
.
classList
.
add
(
'
has
-back-btn
'
);
nav
.
classList
.
remove
(
'
hidden
-back-btn
'
);
}
};
...
...
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