-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
133 lines (103 loc) · 2.02 KB
/
styles.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* 01. better to start with following code, * and container */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
list-style-type: none;
}
.container{
margin: 1% 6%;
}
.nav-top{
display: flex;
position: relative;
justify-content: space-between;
align-items: center;
margin: 1.4% 0;
}
.nav-top svg{
cursor: pointer;
}
.nav-top h2{
font-family: 'Grenze Gotisch', cursive;
font-size: 2.2em;
}
.nav-open ul li a{
text-decoration: none;
color: darkslategray;
}
.nav-open{
position: absolute;
top: 0;
left: 0;
height: 40%;
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
margin: 6% 0;
align-items: center;
justify-items: center;
opacity: 0;
background-color: white;
z-index: 1;
}
.nav-open h3, li{
margin-bottom: 10%;
}
.nav-open img{
padding: 0.5em;
}
.nav-open ul li a:hover{
border-bottom: 1.4px solid grey;
color: #1eb894;
}
/* 02. important part to know, resize bigger images */
.s1{
width: 100%;
height: 70vh;
background-image: url(img/000.jpeg);
background-size: cover;
background-position: center 28%;
}
/* 03. make 2 pictures sit on top of each other and animate later */
.s2 .nature{
position: absolute;
width: 40%;
top: 10%;
left: 50%;
}
.s3 .time{
position: absolute;
width: 40%;
top: 10%;
}
/* 04. Add text linear gradient */
.s1 h2{
font-size: 2em;
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%, 40%);
background: linear-gradient(to right, #23a1ad, #69a4ba);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* 05. adjust position of page 2 and page 3 */
.s2{
margin: 20% 5%;
}
.s3{
margin-left: 5%;
margin-top: 40%;
margin-bottom: 18%;
}
.s3 .description{
padding-left: 45%;
}
.s2 .description h2, .s3 .description h2{
padding-bottom: 1em;
}
.s2 .description p, .s3 .description p{
padding-bottom: 5px;
font-size: 1.15em;
}