-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
131 lines (128 loc) · 2.39 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
122
123
124
125
126
127
128
129
130
131
@import url("https://fonts.googleapis.com/css2?family=Inter&family=Lexend+Deca&display=swap");
/* Custom Properties */
:root {
--clr-primary-1: hsl(233, 47%, 7%);
--clr-primary-2: hsl(244, 38%, 16%);
--clr-primary-3: hsl(277, 64%, 61%);
--clr-txt-1: hsl(0, 0%, 100%);
--clr-txt-2: hsla(0, 0%, 100%, 0.75);
--clr-txt-3: hsla(0, 0%, 100%, 0.6);
}
*,
::after,
::before {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
font-family: "Lexend Deca", sans-serif;
}
body {
min-height: 100vh;
display: grid;
justify-items: center;
align-content: center;
box-sizing: border-box;
background-color: var(--clr-primary-1);
}
.container {
border-radius: 0.7rem;
overflow: hidden;
display: flex;
flex-direction: row-reverse;
background-color: var(--clr-primary-2);
justify-content: center;
max-width: 75vw;
/* max-height: 70vh; */
margin: 0 10%;
}
.header-image {
background-image: linear-gradient(
rgba(170, 92, 219, 0.6),
rgba(170, 92, 219, 0.6)
),
url(images/image-header-desktop.jpg);
width: 100%;
background-size: cover;
background-position: right;
}
.header-info {
padding: 7rem;
}
.info-title {
font-size: 5rem;
font-family: "Inter", sans-serif;
color: var(--clr-txt-1);
font-weight: 900;
margin-bottom: 3rem;
}
.info-title .highlight {
color: var(--clr-primary-3);
}
.info-sub {
font-size: 2rem;
color: var(--clr-txt-2);
margin-bottom: 7rem;
}
.flex-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
width: 80%;
}
.analytics {
font-size: 3rem;
color: var(--clr-txt-1);
margin-bottom: 2rem;
}
.sml-text {
display: block;
font-size: 1.2rem;
text-transform: uppercase;
color: var(--clr-txt-2);
font-weight: 100;
}
/* .flex-container :not(:last-child) {
margin-right: 14rem;
} */
.attribution {
font-size: 1.5rem;
color: var(--clr-txt-1);
}
.attribution a {
color: hsl(228, 45%, 44%);
}
@media (max-width: 1350px) {
.container {
flex-direction: column;
max-width: 85vw;
margin: 8rem 0;
}
.header-image {
height: 50rem;
background-position: top;
}
}
@media (max-width: 709px) {
.header-info {
text-align: center;
}
.info-title {
font-size: 3rem;
}
.info-sub {
font-size: 1.7rem;
}
.header-image {
height: 40rem;
}
.flex-container {
display: block;
width: 100%;
}
.analytics {
margin-bottom: 4rem;
}
}