forked from MonicaFidalgo/my-first-portfolio-final
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
298 lines (255 loc) · 5.34 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
/* Our default values set as CSS variables */
:root {
--color-bg: #f9faff;
--color-text-primary: #828282;
--color-text-secondary: #333333;
--color-primary: #928df1;
--color-secondary: #fdc435;
}
/* Basic page style resets */
* {
box-sizing: border-box;
}
ul li {
list-style-type: none;
}
ul {
padding: 0;
}
body {
font-family: "Poppins";
color: var(--color-text-primary);
background-color: var(--color-bg);
margin: 0;
}
h1,
h2,
h3,
h4 {
color: var(--color-text-secondary);
}
h1 {
font-size: 56px;
}
h2 {
font-size: 48px;
}
.heading {
position: relative;
font-size: 48px;
font-weight: 700;
padding-bottom: 5px;
margin-bottom: 58px;
text-align: center;
}
.heading:after {
content: " ";
position: absolute;
top: 100%;
left: 50%;
width: 100px;
border: 2px solid var(--color-secondary);
background-color: var(--color-secondary);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
transform: translateX(-50%);
}
/*
Header and Navigation
*/
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
/*since top and bottom are both 20px
and left and right padding are 70px
we can use this shortcut*/
padding: 20px 70px;
background-color: var(--color-primary);
}
.header-logo {
max-width: 40px;
}
.header-links {
display: flex;
margin: 0;
}
.header-links li a {
color: white;
text-decoration: none;
padding: 20px;
}
@media only screen and (max-width: 767px) {
.header-content {
padding: 20px;
}
.header-links {
display: none;
}
}
/*
Layout/ page style
*/
.wrapper {
padding-top: 80px;
}
img {
width: 100%;
height: auto;
}
.about-img {
max-width: 420px;
max-height: 420px;
/*this makes the circle effect */
border-radius: 50%;
/* With the hidden value, the overflow is clipped, and the rest of the content is hidden */
overflow: hidden;
border: 5px solid var(--color-primary);
/*since we have specified a width on the object, now by applying margin: 0 auto,
the object will sit centrally within it's parent container*/
margin: 0 auto;
}
.intro {
align-items: center;
}
.intro .button-primary {
margin-right: 10px;
}
.intro p {
font-size: 24px;
margin-bottom: 32px;
}
.intro span {
font-size: 40px;
font-weight: 500;
color: var(--color-primary);
}
.about-text {
font-size: 18px;
line-height: 32px;
}
@media only screen and (max-width: 767px) {
.about-text,
.intro-img {
margin-top: 40px;
}
}
section {
margin-bottom: 200px;
}
/*
Card component
*/
.project-card {
display: flex;
align-items: center;
flex-direction: column;
height: 100%;
border-radius: 24px;
background-color: white;
/*rgba stands for red, green, blue and alpha*/
box-shadow: 0 6px 64px rgba(112, 144, 176, 0.1);
}
.project-card-title {
margin-bottom: 24px;
}
.project-card-content {
/*top right bottom left*/
padding: 30px 20px 40px 20px;
}
.project-card-text {
font-size: 16px;
margin-bottom: 40px;
/* the properties bellow are needed to limit the amount of text inside the card component */
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
}
.project-card-image {
display: flex;
height: 180px;
width: 100%;
border-bottom: 4px solid var(--color-secondary);
}
.project-card-image img {
/*object fit cover prevents image from strecthing */
object-fit: cover;
/* border radius on image makes a round effect like the card
border top left radius and border top right radius need to be 24px then */
border-radius: 24px 24px 0 0;
}
/*
Buttons
*/
.button {
display: inline-block;
font-family: "Poppins";
font-weight: 500;
padding: 7px 20px;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
/*transition allows you to change property values smoothly
this will be used for the hover effect so it wont be so abrupt*/
transition: 0.3s;
cursor: pointer;
}
.button-primary {
color: var(--color-text-secondary) !important;
background-color: var(--color-secondary);
border: 1px solid var(--color-secondary);
border-radius: 8px;
}
.button-primary:hover {
background-color: #e0a800;
border-color: #d39e00;
}
.button-secondary {
color: var(--color-primary) !important;
background-color: transparent;
border: 1px solid var(--color-primary);
border-radius: 8px;
}
.button-secondary:hover {
color: white !important;
background-color: var(--color-primary);
}
.button-secondary-rounded {
color: var(--color-primary) !important;
background-color: transparent;
border: 1px solid var(--color-primary);
border-radius: 24px;
}
.button-secondary-rounded:hover {
color: white !important;
background-color: var(--color-primary);
}
/* Social */
.social {
display: inline-block;
width: 54px;
height: 54px;
background-size: cover;
background-repeat: no-repeat;
margin: 0px 15px;
transition: 0.3s ease 0s;
}
.social:hover {
box-shadow: 0px 11px 3px cornsilk;
/* transform property applies a 2D or 3D transformation to an element*/
transform: translateY(-7px);
}
.instagram {
background-image: url("./assets/social/instagram.png");
}
.github {
background-image: url("./assets/social/github.png");
}
/* Footer */
.footer {
background-image: url("./assets/footer.png");
background-size: cover;
background-repeat: no-repeat;
background-position: top left;
height: 350px;
margin: 0 !important;
}