Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua
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
Tsinghua
Commits
7bca8565
Commit
7bca8565
authored
6 months ago
by
HouTeng Chan
Browse files
Options
Downloads
Patches
Plain Diff
Update file layout.html
parent
df11cc37
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#502076
passed
6 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wiki/layout.html
+24
-45
24 additions, 45 deletions
wiki/layout.html
with
24 additions
and
45 deletions
wiki/layout.html
+
24
−
45
View file @
7bca8565
...
@@ -84,6 +84,14 @@
...
@@ -84,6 +84,14 @@
box-shadow
:
2px
0
5px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
2px
0
5px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
0px
;
border-radius
:
0px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
transition
:
transform
0.3s
ease-in-out
;
}
/* Media query for screens smaller than 768px (typical tablet breakpoint) */
@media
(
max-width
:
768px
)
{
.sidebar
{
transform
:
translateX
(
-100%
);
}
}
}
.sidebar
ul
{
.sidebar
ul
{
list-style
:
none
;
list-style
:
none
;
...
@@ -137,51 +145,6 @@
...
@@ -137,51 +145,6 @@
color
:
hsl
(
17
,
100%
,
50%
);
color
:
hsl
(
17
,
100%
,
50%
);
}
}
.back-to-top
{
position
:
fixed
;
left
:
95px
;
bottom
:
170px
;
width
:
40px
;
height
:
40px
;
background-color
:
hsl
(
17
,
100%
,
50%
);
border
:
none
;
border-radius
:
50%
;
color
:
white
;
font-size
:
20px
;
cursor
:
pointer
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
transition
:
opacity
0.3s
,
visibility
0.3s
;
opacity
:
0
;
visibility
:
hidden
;
}
.back-to-top.show
{
opacity
:
1
;
visibility
:
visible
;
}
.back-to-top
:hover
{
background-color
:
hsl
(
18
,
25%
,
8%
);
}
.team-logo
{
position
:
fixed
;
left
:
10px
;
top
:
130px
;
transform
:
translateY
(
-50%
);
width
:
150px
;
height
:
150px
;
border-radius
:
75%
;
overflow
:
hidden
;
z-index
:
10
;
}
.team-logo
img
{
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
}
.text-size-toggle
{
.text-size-toggle
{
position
:
fixed
;
position
:
fixed
;
right
:
10px
;
right
:
10px
;
...
@@ -405,6 +368,22 @@
...
@@ -405,6 +368,22 @@
}
}
});
});
window
.
addEventListener
(
'
resize
'
,
function
()
{
var
sidebar
=
document
.
querySelector
(
'
.sidebar
'
);
if
(
window
.
innerWidth
<=
768
)
{
sidebar
.
style
.
transform
=
'
translateX(-100%)
'
;
}
else
{
sidebar
.
style
.
transform
=
'
translateX(0)
'
;
}
});
// Initial check on page load
window
.
addEventListener
(
'
load
'
,
function
()
{
var
sidebar
=
document
.
querySelector
(
'
.sidebar
'
);
if
(
window
.
innerWidth
<=
768
)
{
sidebar
.
style
.
transform
=
'
translateX(-100%)
'
;
}
});
</script>
</script>
</body>
</body>
...
...
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