:root {
--linkheight:
2
rem;
}
* {
box-sizing: border-box;
margin
:
0px
;
padding
:
0px
;
}
html {
scroll-behavior: smooth;
}
ul,
ol {
list-style
:
none
;
}
ul {
background-color
:
rgb
(
0
0
0
/
0
);
}
ul li {
padding-left
:
1
rem;
}
.section-nav {
display
: flex;
flex-
direction
: row;
width
:
15em
;
position
:
fixed
;
top
:
2
rem;
right
:
2
rem;
padding-left
:
0
;
border-left
:
1px
solid
#ddd
;
background-color
:
rgb
(
0
0
0
/
0
);
}
.section-nav a {
display
: inline-
block
;
text-decoration
:
none
;
line-height
:
2
rem;
padding
:
0
1
rem;
color
:
#202020
;
}
.section-nav a:hover,
.section-nav a:focus {
color
:
rgb
(
9
,
153
,
59
);
text-decoration
:
underline
;
}
h
1
{
text-align
:
center
;
font-weight
:
1000
;
color
:
rgb
(
9
,
153
,
59
);
width
: calc(
100%
-
7.5em
);
margin
:
1
rem
0
;
}
main {
width
:
80%
;
margin
:
0
auto
;
}
section {
padding-bottom
:
20
rem;
}
section:nth-of-type(even) {
padding-bottom
:
20
rem;
}
section:nth-of-type(
1
) {
background
:
right
2
rem
top
2
rem /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
2
) {
background
:
right
2
rem
top
calc(
2
* var(--linkheight)) /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
3
) {
background
:
right
2
rem
top
calc(
3
* var(--linkheight)) /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) {
padding-bottom
:
0
;
background
:
right
2
rem
top
calc(
4
* var(--linkheight)) /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
1
) {
background
:
right
2
rem
top
calc(
5
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
2
) {
background
:
right
2
rem
top
calc(
6
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
3
) {
background
:
right
2
rem
top
calc(
7
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
4
) {
background
:
right
2
rem
top
calc(
8
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
5
) {
background
:
right
2
rem
top
calc(
9
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
6
) {
background
:
right
2
rem
top
calc(
10
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
7
) {
background
:
right
2
rem
top
calc(
11
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
4
) section:nth-of-type(
8
) {
background
:
right
2
rem
top
calc(
12
* var(--linkheight)) /
14em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
5
) {
background
:
right
2
rem
top
calc(
13
* var(--linkheight)) /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
6
) {
background
:
right
2
rem
top
calc(
14
* var(--linkheight)) /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(
7
) {
background
:
right
2
rem
top
calc(
15
* var(--linkheight)) /
15em
var(--linkheight)
no-repeat
linear-gradient(
#ccc
,
#ccc
);
}
section:nth-of-type(n),
section:nth-of-type(
4
) section:nth-of-type(n) {
background-attachment
:
fixed
;
}