Skip to content

Commit a67b0e7

Browse files
committed
The root pseudoclass is added in css variables
1 parent 33da706 commit a67b0e7

2 files changed

Lines changed: 23 additions & 65 deletions

File tree

assets/css/styles.css

Lines changed: 18 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
--first-color: hsl(var(--hue-color), 89%, 60%);
1212
--second-color: hsl(var(--hue-color), 56%, 12%);
1313
/*===== Fuente y tipografia =====*/
14-
--body-font: 'Poppins', sans-serif;
14+
--body-font: "Poppins", sans-serif;
1515
--big-font-size: 2rem;
1616
--h2-font-size: 1.25rem;
1717
--normal-font-size: .938rem;
@@ -25,7 +25,6 @@
2525
--z-back: -10;
2626
--z-fixed: 100;
2727
}
28-
2928
@media screen and (min-width: 968px) {
3029
:root {
3130
--big-font-size: 3.5rem;
@@ -80,10 +79,9 @@ img {
8079
margin-bottom: var(--mb-4);
8180
text-align: center;
8281
}
83-
8482
.section-title::after {
8583
position: absolute;
86-
content: '';
84+
content: "";
8785
width: 64px;
8886
height: 0.18rem;
8987
left: 0;
@@ -124,7 +122,6 @@ img {
124122
align-items: center;
125123
font-weight: var(--font-semi);
126124
}
127-
128125
@media screen and (max-width: 767px) {
129126
.nav__menu {
130127
position: fixed;
@@ -134,37 +131,31 @@ img {
134131
height: 100%;
135132
padding: 2rem;
136133
background-color: var(--second-color);
137-
transition: .5s;
134+
transition: 0.5s;
138135
}
139136
}
140-
141137
.nav__item {
142138
margin-bottom: var(--mb-4);
143139
}
144-
145140
.nav__link {
146141
position: relative;
147142
color: #fff;
148143
}
149-
150144
.nav__link:hover {
151145
position: relative;
152146
}
153-
154147
.nav__link:hover::after {
155148
position: absolute;
156-
content: '';
149+
content: "";
157150
width: 100%;
158151
height: 0.18rem;
159152
left: 0;
160153
top: 2rem;
161154
background-color: var(--first-color);
162155
}
163-
164156
.nav__logo {
165157
color: var(--second-color);
166158
}
167-
168159
.nav__toggle {
169160
color: var(--second-color);
170161
font-size: 1.5rem;
@@ -174,7 +165,7 @@ img {
174165
/*Active menu*/
175166
.active::after {
176167
position: absolute;
177-
content: '';
168+
content: "";
178169
width: 100%;
179170
height: 0.18rem;
180171
left: 0;
@@ -193,47 +184,38 @@ img {
193184
row-gap: 5rem;
194185
padding: 4rem 0 5rem;
195186
}
196-
197187
.home__data {
198188
align-self: center;
199189
}
200-
201190
.home__title {
202191
font-size: var(--big-font-size);
203192
margin-bottom: var(--mb-5);
204193
}
205-
206194
.home__title-color {
207195
color: var(--first-color);
208196
}
209-
210197
.home__social {
211198
display: flex;
212199
flex-direction: column;
213200
}
214-
215201
.home__social-icon {
216202
width: max-content;
217203
margin-bottom: var(--mb-2);
218204
font-size: 1.5rem;
219205
color: var(--second-color);
220206
}
221-
222207
.home__social-icon:hover {
223208
color: var(--first-color);
224209
}
225-
226210
.home__img {
227211
position: absolute;
228212
right: 0;
229213
bottom: 0;
230214
width: 260px;
231215
}
232-
233216
.home__blob {
234217
fill: var(--first-color);
235218
}
236-
237219
.home__blob-img {
238220
width: 360px;
239221
}
@@ -243,12 +225,11 @@ img {
243225
display: inline-block;
244226
background-color: var(--first-color);
245227
color: #fff;
246-
padding: .75rem 2.5rem;
228+
padding: 0.75rem 2.5rem;
247229
font-weight: var(--font-semi);
248-
border-radius: .5rem;
249-
transition: .3s;
230+
border-radius: 0.5rem;
231+
transition: 0.3s;
250232
}
251-
252233
.button:hover {
253234
box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
254235
}
@@ -258,102 +239,85 @@ img {
258239
row-gap: 2rem;
259240
text-align: center;
260241
}
261-
262242
.about__subtitle {
263243
margin-bottom: var(--mb-2);
264244
}
265-
266245
.about__img {
267246
justify-self: center;
268247
}
269-
270248
.about__img img {
271249
width: 200px;
272-
border-radius: .5rem;
250+
border-radius: 0.5rem;
273251
}
274252

275253
/* ===== SKILLS =====*/
276254
.skills__container {
277255
row-gap: 2rem;
278256
text-align: center;
279257
}
280-
281258
.skills__subtitle {
282259
margin-bottom: var(--mb-2);
283260
}
284-
285261
.skills__text {
286262
margin-bottom: var(--mb-4);
287263
}
288-
289264
.skills__data {
290265
display: flex;
291266
justify-content: space-between;
292267
align-items: center;
293268
position: relative;
294269
font-weight: var(--font-semi);
295-
padding: .5rem 1rem;
270+
padding: 0.5rem 1rem;
296271
margin-bottom: var(--mb-4);
297-
border-radius: .5rem;
272+
border-radius: 0.5rem;
298273
box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
299274
}
300-
301275
.skills__icon {
302276
font-size: 2rem;
303277
margin-right: var(--mb-2);
304278
color: var(--first-color);
305279
}
306-
307280
.skills__names {
308281
display: flex;
309282
align-items: center;
310283
}
311-
312284
.skills__bar {
313285
position: absolute;
314286
left: 0;
315287
bottom: 0;
316288
background-color: var(--first-color);
317-
height: .25rem;
318-
border-radius: .5rem;
289+
height: 0.25rem;
290+
border-radius: 0.5rem;
319291
z-index: var(--z-back);
320292
}
321-
322293
.skills__html {
323294
width: 95%;
324295
}
325-
326296
.skills__css {
327297
width: 85%;
328298
}
329-
330299
.skills__js {
331300
width: 65%;
332301
}
333-
334302
.skills__ux {
335303
width: 85%;
336304
}
337-
338305
.skills__img {
339-
border-radius: .5rem;
306+
border-radius: 0.5rem;
340307
}
341308

342309
/* ===== WORK =====*/
343310
.work__container {
344311
row-gap: 2rem;
345312
}
346-
347313
.work__img {
348314
box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
349-
border-radius: .5rem;
315+
border-radius: 0.5rem;
350316
overflow: hidden;
351317
}
352-
353318
.work__img img {
354319
transition: 1s;
355320
}
356-
357321
.work__img img:hover {
358322
transform: scale(1.1);
359323
}
@@ -364,12 +328,11 @@ img {
364328
font-size: var(--normal-font-size);
365329
font-weight: var(--font-semi);
366330
padding: 1rem;
367-
border-radius: .5rem;
331+
border-radius: 0.5rem;
368332
border: 1.5px solid var(--second-color);
369333
outline: none;
370334
margin-bottom: var(--mb-4);
371335
}
372-
373336
.contact__button {
374337
display: block;
375338
border: none;
@@ -387,22 +350,18 @@ img {
387350
font-weight: var(--font-semi);
388351
padding: 2rem 0;
389352
}
390-
391353
.footer__title {
392354
font-size: 2rem;
393355
margin-bottom: var(--mb-4);
394356
}
395-
396357
.footer__social {
397358
margin-bottom: var(--mb-4);
398359
}
399-
400360
.footer__icon {
401361
font-size: 1.5rem;
402362
color: #fff;
403363
margin: 0 var(--mb-2);
404364
}
405-
406365
.footer__copy {
407366
font-size: var(--smaller-font-size);
408367
}
@@ -416,7 +375,6 @@ img {
416375
width: 200px;
417376
}
418377
}
419-
420378
@media screen and (min-width: 576px) {
421379
.home {
422380
padding: 4rem 0 2rem;
@@ -441,7 +399,7 @@ img {
441399
text-align: initial;
442400
}
443401
.skills__container {
444-
grid-template-columns: .7fr;
402+
grid-template-columns: 0.7fr;
445403
justify-content: center;
446404
column-gap: 1rem;
447405
}
@@ -458,7 +416,6 @@ img {
458416
justify-items: center;
459417
}
460418
}
461-
462419
@media screen and (min-width: 768px) {
463420
body {
464421
margin: 0;
@@ -515,7 +472,6 @@ img {
515472
column-gap: 2rem;
516473
}
517474
}
518-
519475
@media screen and (min-width: 992px) {
520476
.bd-grid {
521477
margin-left: auto;
@@ -527,4 +483,4 @@ img {
527483
.home__img {
528484
width: 450px;
529485
}
530-
}
486+
}

assets/scss/styles.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
33

44
/*===== VARIABLES CSS =====*/
5-
--header-height: 3rem;
5+
:root{
6+
--header-height: 3rem;
67
--font-semi: 600;
7-
8+
89
/*===== Colores =====*/
910
/*Purple 260 - Red 355 - Blue 224 - Pink 340*/
1011
/* HSL color mode */
@@ -35,6 +36,7 @@
3536
--h2-font-size: 2rem;
3637
--normal-font-size: 1rem;
3738
--smaller-font-size: .875rem;
39+
}
3840
}
3941

4042
/*===== BASE =====*/
@@ -442,7 +444,7 @@ img{
442444
}
443445
}
444446

445-
@media screen and(min-width: 768px){
447+
@media screen and (min-width: 768px){
446448
body{
447449
margin: 0;
448450
}

0 commit comments

Comments
 (0)