Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
ved
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hebotek
ved
Commits
b9a03888
Commit
b9a03888
authored
Nov 22, 2023
by
Michael Apfelthaler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert Preview to One Pager
parent
3fb6f34b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
243 additions
and
10 deletions
+243
-10
style.css
preview/html/css/style.css
+21
-4
index.html
preview/html/index.html
+205
-6
menu.js
preview/html/js/menu.js
+17
-0
No files found.
preview/html/css/style.css
View file @
b9a03888
...
@@ -38,6 +38,20 @@ body {
...
@@ -38,6 +38,20 @@ body {
color
:
rgb
(
31
,
31
,
31
);
color
:
rgb
(
31
,
31
,
31
);
}
}
.sticky
{
position
:
fixed
;
top
:
0
;
width
:
100%
}
.sticky
+
.banner
{
margin-top
:
120px
;
}
.sticky
.header-content
{
padding
:
20px
0
;
}
.header-content
{
.header-content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -49,6 +63,7 @@ body {
...
@@ -49,6 +63,7 @@ body {
max-width
:
1800px
;
max-width
:
1800px
;
margin
:
0
auto
;
margin
:
0
auto
;
width
:
95%
;
width
:
95%
;
transition
:
padding
.4s
ease
;
}
}
.header-content
#logo
,
.header-content
#logo
,
...
@@ -67,7 +82,7 @@ body {
...
@@ -67,7 +82,7 @@ body {
#menu
a
{
#menu
a
{
color
:
black
;
color
:
black
;
text-decoration
:
none
;
text-decoration
:
none
;
font-size
:
28px
;
font-size
:
1.4em
;
}
}
.banner
{
.banner
{
...
@@ -232,6 +247,8 @@ section h2 {
...
@@ -232,6 +247,8 @@ section h2 {
.container
{
.container
{
margin
:
40px
auto
;
margin
:
40px
auto
;
padding-top
:
40px
;
padding-bottom
:
40px
;
width
:
95%
;
width
:
95%
;
max-width
:
1800px
;
max-width
:
1800px
;
}
}
...
@@ -408,7 +425,7 @@ footer img {
...
@@ -408,7 +425,7 @@ footer img {
}
}
#menu
a
{
#menu
a
{
font-size
:
25px
;
font-size
:
1.4em
;
}
}
.header-content
#logo
,
.header-content
#logo
,
...
@@ -490,7 +507,7 @@ footer img {
...
@@ -490,7 +507,7 @@ footer img {
}
}
#menu
a
{
#menu
a
{
font-size
:
30px
;
font-size
:
1.6em
;
}
}
.header-content
,
.header-content
,
...
@@ -499,7 +516,7 @@ footer img {
...
@@ -499,7 +516,7 @@ footer img {
width
:
auto
;
width
:
auto
;
}
}
.banner
{
.banner
{
min-height
:
300px
;
min-height
:
300px
;
}
}
}
}
...
...
preview/html/index.html
View file @
b9a03888
This diff is collapsed.
Click to expand it.
preview/html/js/menu.js
View file @
b9a03888
...
@@ -10,3 +10,20 @@ document.getElementById("close").addEventListener("click", () => {
...
@@ -10,3 +10,20 @@ document.getElementById("close").addEventListener("click", () => {
document
.
body
.
style
.
overflow
=
"auto"
document
.
body
.
style
.
overflow
=
"auto"
})
})
// When the user scrolls the page, execute myFunction
window
.
onscroll
=
function
()
{
myFunction
()
};
// Get the header
var
header
=
document
.
getElementById
(
"myHeader"
);
// Get the offset position of the navbar
var
sticky
=
header
.
offsetTop
;
// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
function
myFunction
()
{
if
(
window
.
scrollY
>
sticky
)
{
header
.
classList
.
add
(
"sticky"
);
}
else
{
header
.
classList
.
remove
(
"sticky"
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment