-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
217 lines (172 loc) · 4.02 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
:root {
/* Primary Colors */
--Violet: hsl(257, 40%, 49%);
--SoftMagenta: rgb(232, 130, 232);
--HeaderColor: hsl(0, 0%, 100%);
--TextColor: hsl(300, 100%, 99%);
--ButtonShadow: hsl(256, 32%, 35%);
/* Typography - Headings 400, 600 */
--Poppins: 'Poppins', sans-serif;
/* Typography - Body (400) */
--OpenSans: 'Open Sans', sans-serif;
}
/* Small CSS Reset */
html {
font-size: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*, *::before, *::after {
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
* {
outline: none;
-moz-outline-style: none;
}
/* Tags Section */
body {
margin: 0;
padding: 0;
line-height: 1.3;
background-color: var(--Violet);
background-image: url(./images/bg-mobile.svg);
background-position: top;
background-repeat: no-repeat;
}
h1 {
font-family: var(--Poppins);
font-size: 1.5rem;
font-weight: 400;
color: var(--HeaderColor);
line-height: 1.5;
}
p {
font-family: var(--OpenSans);
font-weight: 400;
color: var(--TextColor);
line-height: 1.4;
opacity: 0.8;
}
/* Logo Section */
.logo {
width: 100%;
height: 100%;
}
.logo img {
margin: 1.875rem 0 0 0.35rem;
width: 11.4375rem;
height: 1.875rem;
}
/* Main Section */
.container__image {
text-align: center;
}
.container__image img {
padding: 3.5rem 0rem 2rem 0;
max-width: 77%;
}
.container__text {
padding: 0 1rem;
text-align: center;
}
.container__text p {
padding-bottom: 0.625rem;
}
.container__text__button {
width: 13rem;
background-color: var(--HeaderColor);
color: var(--Violet);
border-style: none;
box-shadow: 0px 3px 5px 3px var(--ButtonShadow);
border-radius: 1.25rem;
padding: 0.625rem;
font-size: 1rem;
font-weight: 300;
margin-bottom: 5rem;
transition: all 0.1s ease-in-out 0s;
}
.container__text__button:hover {
background-color: var(--SoftMagenta);
color: var(--HeaderColor);
}
/* Social Image Section */
.social__image__container {
text-align: center;
display: block;
}
.social__image__container img:nth-child(2) {
margin: 0rem 0.5rem;
}
.social__image {
width: 1.7rem;
height: 1.7rem;
border: 1px solid black;
border-radius: 100%;
filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(98deg) brightness(107%) contrast(106%);
padding: 0.4rem;
transition: all 0.1s ease-in-out 0s;
}
.social__image:hover {
filter: invert(48%) sepia(23%) saturate(5559%) hue-rotate(295deg) brightness(107%) contrast(93%);
}
/* Media Queries for Desktop */
@media (min-width : 23.5rem) {
body {
background-image: url(./images/bg-desktop.svg);
background-position: 0% 0%;
}
}
@media (min-width : 54rem) {
h1 {
font-size: 2.5rem;
font-weight: 600;
max-width: 30.6rem;
}
p {
font-size: 1.125rem;
max-width: 32rem;
}
.logo img {
width: 13.5rem;
height: 3.5rem;
margin-left: 4rem;
margin-top: 3rem;
}
.container {
display: flex;
}
.container__image {
min-width: 50%;
flex: 1 1;
}
.container__image img {
max-width: 100%;
margin: 1rem 4.5rem 0rem 4.5rem
}
.container__text {
text-align: left;
padding: 4.5rem 3rem 7rem 6.5rem;
flex: 1 1;
}
.container__text__button {
width: 12.5rem;
height: 3.5rem;
border-radius: 28px;
}
.social__image__container {
position: absolute;
right :7%;
bottom: 5%;
}
.social__image {
width: 2.2rem;
height: 2.2rem;
}
}
/* Styling for Attribution in the Footer section */
.attribution { font-size: 11px; text-align: center; visibility: hidden;}
.attribution a { color: hsl(228, 45%, 44%); }