Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Estonia_TUIT
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
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
2022 Competition
Estonia_TUIT
Merge requests
!2
Sidebar
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Sidebar
sidebar
into
main
Overview
0
Commits
2
Pipelines
0
Changes
3
Merged
Aleksandrs Rebriks
requested to merge
sidebar
into
main
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
3
Expand
Done:
Basic sidebar functionalityes TO-DO:
put sidebar styles in separate css file
Make sidebar for universal for other pages Bugs:
On hover animation resets after some time
Anchor tags not leading to exact location on page
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
ca9afc28
2 commits,
2 years ago
3 files
+
135
−
46
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
static/css/sidebar.css
0 → 100644
+
69
−
0
Options
.sidebar
{
position
:
fixed
;
top
:
50%
;
right
:
0
;
width
:
70px
;
height
:
350px
;
margin-top
:
-175px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.7
);
border-radius
:
20px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-evenly
;
align-items
:
center
;
-webkit-transition
:
width
300ms
;
-moz-transition
:
width
300ms
;
-ms-transition
:
width
300ms
;
-o-transition
:
width
300ms
;
transition
:
width
300ms
;
}
.sidebar
.sidebar-chapter__text
{
display
:
none
;
/* text */
text-decoration
:
none
;
color
:
white
;
font-size
:
large
;
-webkit-transition
:
color
300ms
;
-moz-transition
:
color
300ms
;
-ms-transition
:
color
300ms
;
-o-transition
:
color
300ms
;
transition
:
color
300ms
;
}
/* Hover on chapter text */
.sidebar
.sidebar-chapter__text
:hover
{
color
:
rgba
(
0
,
0
,
0
,
0.6
);
}
.sidebar
.sidebar-default__text
{
/* text */
text-decoration
:
none
;
color
:
white
;
font-size
:
large
;
}
/* Sliding behaviour */
/*
TODO
- Check smooth scrolling on Safari.
- Check smooth scrolling on Mozilla firefox.
*/
.sidebar
:hover
{
width
:
170px
;
}
.sidebar
.sidebar-chapter__text
{
display
:
none
;
}
.sidebar
:hover
.sidebar-default__text
{
display
:
none
;
}
.sidebar
:hover
.sidebar-chapter__text
{
display
:
inline
;
}
Loading