-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
99 lines (79 loc) · 1.55 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
90
91
92
93
94
95
96
97
98
99
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--index: calc(1vw + 1vh);
--color-header: #f4efec;
--color-text:#cdc6ec;
--gallery-gap: calc(var(--index)*10)
}
@import url('https://fonts.googleapis.com/css2?family=Outfit&family=Raleway&display=swap');
h1, h2, h3, h4, h5{
font-family: Raleway;
}
body{
background-image: url(img/bg.jpg);
background-size: 50px;
color: #fafafa;
font-family: 'Outfit', sans-serif;
font-family: 'Raleway', sans-serif;
overflow-x: hidden;
}
.hero-img{
width: calc(var(--index) *34);
left: 47vw;
top: 8vh;
position: absolute;
z-index: -1;
}
.main-header{
height: 100vh;
}
.container{
padding: 0 10vw;
}
.main-title{
font-size: calc(var(--index)*8);
position: absolute;
width: min-content;
bottom: 12vh;
line-height: .9;
}
.gallery{
display: flex;
padding: calc(var(--index)*8) 0;
}
.gallery__item{
max-width: calc(var(--index)*25);
margin-bottom: var(--gallery-gap);
max-height: 100vh;
border-radius: 10px;
}
.gallery > *{
flex: 1;
display: flex;
align-items: center;
flex-direction: column;
}
.gallery__left {
margin-top: calc(var(--gallery-gap)*2);
}
.gallery__right .gallery__item{
margin: 0;
margin-top: var(--gallery-gap);
}
.text-block{
color: var(--color-text);
position: relative;
}
.text-block__h{
font-size: 2rem;
line-height: 2.4rem;
color: var(--color-header);
margin-bottom: 1.5rem;
}
.text-block__p{
line-height: 2rem;
}