-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
89 lines (73 loc) · 2.07 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* body {
margin: auto;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
} */
/*
nav, h2 {
display: flex;
align-items: center;
justify-content: center;
} */
* {
margin: 0;
padding: 0;
/* font-size: 20px; */
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h2 {
padding: 1.5rem;
font-size: 24px;
}
p {
margin: 5rem;
}
section {
height: 100vh;
/* width: 100vh; */
text-align: center;
scroll-snap-align: start;
scroll-snap-stop: always; /* works with mobile scrolling(fast scrolling), the 'always' value stops in the next section instead of passing number of sections like in 'normal' value */
}
html {
scroll-snap-type: y mandatory; /* y or x direction, 'mandatory' will snap directly, 'proximity' will snap when near to the section */
scroll-padding-top: 2.5rem; /* either set the scroll padding value here or we could also set the scroll-margin-top value in the section */
}
nav {
position: sticky;
top: 0;
background-color: white;
text-align: center;
height: 2.5rem;
font-size: 17px;
/* line heigh will center the text vertically, value should be same as height value */
line-height: 2.5rem;
}
/* section:nth-child(n){
background: linear-gradient(110deg, #fdcd3b 60%, #ffed4b 60%);
} */
/* section:nth-child(n){
background-color: rgb(50, 168, 82);
} */
section:nth-child(odd) {
background: linear-gradient(-25deg, #fdcd3b 30%, #ffed4b 30%);;
}
section:nth-child(even) {
background: linear-gradient(0deg, #135CA3, 30%,dodgerblue 30%);
}
section:nth-child(3n) {
/* background: linear-gradient(calc(3*110deg), mediumorchid 30%, #9544A9 30%); */
background: linear-gradient(25deg,#9544A9 30%,mediumorchid 30%);
}
section:nth-child(4n){
background: linear-gradient(-205deg,#15726D , 30%, lightseagreen 30%);
}
section:nth-child(5n){
background: linear-gradient(180deg, #E5593F , 30%, tomato 30%);
}
section:nth-child(6n){
background: linear-gradient(205deg, #759C64 , 30%, #93C47D 30%);
}