Skip to content

Commit 993fd07

Browse files
Merge pull request #1 from natipral/dev
Optimización de estilos
2 parents 8260601 + ed9a258 commit 993fd07

2 files changed

Lines changed: 39 additions & 33 deletions

File tree

assets/css/styles.css

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
/*===== GOOGLE FONTS =====*/
22
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
3+
34
/*===== VARIABLES CSS =====*/
45
:root {
56
--header-height: 3rem;
67
--font-semi: 600;
78
/*===== Colores =====*/
8-
/*Purple 260 - Red 355 - Blue 224 - Pink 340*/
9+
/* Purple 260 - Red 355 - Blue 224 - Pink 340 */
910
/* HSL color mode */
1011
--hue-color: 6;
1112
--first-color: hsl(var(--hue-color), 100%, 85%);
1213
--second-color: hsl(var(--hue-color), 56%, 12%);
1314
/*===== Fuente y tipografia =====*/
14-
--body-font: 'Poppins', sans-serif;
15+
--body-font: "Poppins", sans-serif;
1516
--big-font-size: 2rem;
1617
--h2-font-size: 1.25rem;
17-
--normal-font-size: .938rem;
18-
--smaller-font-size: .75rem;
18+
--normal-font-size: 0.938rem;
19+
--smaller-font-size: 0.75rem;
1920
/*===== Margenes =====*/
2021
--mb-2: 1rem;
2122
--mb-4: 2rem;
@@ -31,12 +32,14 @@
3132
--big-font-size: 3.5rem;
3233
--h2-font-size: 2rem;
3334
--normal-font-size: 1rem;
34-
--smaller-font-size: .875rem;
35+
--smaller-font-size: 0.875rem;
3536
}
3637
}
3738

3839
/*===== BASE =====*/
39-
*, ::before, ::after {
40+
*,
41+
::before,
42+
::after {
4043
box-sizing: border-box;
4144
}
4245

@@ -51,7 +54,9 @@ body {
5154
color: var(--second-color);
5255
}
5356

54-
h1, h2, p {
57+
h1,
58+
h2,
59+
p {
5560
margin: 0;
5661
}
5762

@@ -83,7 +88,7 @@ img {
8388

8489
.section-title::after {
8590
position: absolute;
86-
content: '';
91+
content: "";
8792
width: 64px;
8893
height: 0.18rem;
8994
left: 0;
@@ -106,7 +111,7 @@ img {
106111
margin-right: var(--mb-2);
107112
}
108113

109-
.l-header {
114+
.header {
110115
width: 100%;
111116
position: fixed;
112117
top: 0;
@@ -134,7 +139,7 @@ img {
134139
height: 100%;
135140
padding: 2rem;
136141
background-color: var(--second-color);
137-
transition: .5s;
142+
transition: 0.5s;
138143
}
139144
}
140145

@@ -153,7 +158,7 @@ img {
153158

154159
.nav__link:hover::after {
155160
position: absolute;
156-
content: '';
161+
content: "";
157162
width: 100%;
158163
height: 0.18rem;
159164
left: 0;
@@ -171,10 +176,10 @@ img {
171176
cursor: pointer;
172177
}
173178

174-
/*Active menu*/
179+
/* Active menu */
175180
.active::after {
176181
position: absolute;
177-
content: '';
182+
content: "";
178183
width: 100%;
179184
height: 0.18rem;
180185
left: 0;
@@ -238,15 +243,15 @@ img {
238243
width: 360px;
239244
}
240245

241-
/*BUTTONS*/
246+
/* BUTTONS */
242247
.button {
243248
display: inline-block;
244249
background-color: var(--first-color);
245250
color: #fff;
246-
padding: .75rem 2.5rem;
251+
padding: 0.75rem 2.5rem;
247252
font-weight: var(--font-semi);
248-
border-radius: .5rem;
249-
transition: .3s;
253+
border-radius: 0.5rem;
254+
transition: 0.3s;
250255
}
251256

252257
.button:hover {
@@ -269,7 +274,7 @@ img {
269274

270275
.about__img img {
271276
width: 200px;
272-
border-radius: .5rem;
277+
border-radius: 0.5rem;
273278
}
274279

275280
/* ===== SKILLS =====*/
@@ -292,9 +297,9 @@ img {
292297
align-items: center;
293298
position: relative;
294299
font-weight: var(--font-semi);
295-
padding: .5rem 1rem;
300+
padding: 0.5rem 1rem;
296301
margin-bottom: var(--mb-4);
297-
border-radius: .5rem;
302+
border-radius: 0.5rem;
298303
box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
299304
}
300305

@@ -314,11 +319,12 @@ img {
314319
left: 0;
315320
bottom: 0;
316321
background-color: var(--first-color);
317-
height: .25rem;
318-
border-radius: .5rem;
322+
height: 0.25rem;
323+
border-radius: 0.5rem;
319324
z-index: var(--z-back);
320325
}
321326

327+
/* MIS HABILIDADES */
322328
.skills__html {
323329
width: 95%;
324330
}
@@ -336,7 +342,7 @@ img {
336342
}
337343

338344
.skills__img {
339-
border-radius: .5rem;
345+
border-radius: 0.5rem;
340346
}
341347

342348
/* ===== WORK =====*/
@@ -346,7 +352,7 @@ img {
346352

347353
.work__img {
348354
box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
349-
border-radius: .5rem;
355+
border-radius: 0.5rem;
350356
overflow: hidden;
351357
}
352358

@@ -365,7 +371,7 @@ img {
365371
font-size: var(--normal-font-size);
366372
font-weight: var(--font-semi);
367373
padding: 1rem;
368-
border-radius: .5rem;
374+
border-radius: 0.5rem;
369375
border: 1.5px solid var(--second-color);
370376
outline: none;
371377
margin-bottom: var(--mb-4);
@@ -442,7 +448,7 @@ img {
442448
text-align: initial;
443449
}
444450
.skills__container {
445-
grid-template-columns: .7fr;
451+
grid-template-columns: 0.7fr;
446452
justify-content: center;
447453
column-gap: 1rem;
448454
}
@@ -451,13 +457,13 @@ img {
451457
column-gap: 2rem;
452458
padding-top: 2rem;
453459
}
460+
.contact__container {
461+
justify-items: center;
462+
}
454463
.contact__form {
455464
width: 360px;
456465
padding-top: 2rem;
457466
}
458-
.contact__container {
459-
justify-items: center;
460-
}
461467
}
462468

463469
@media screen and (min-width: 768px) {

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</head>
1414
<body>
1515
<!--===== HEADER =====-->
16-
<header class="l-header">
16+
<header class="header">
1717
<nav class="nav bd-grid">
1818
<div>
1919
<a href="#" class="nav__logo">Andrea</a>
@@ -35,7 +35,7 @@
3535
</nav>
3636
</header>
3737

38-
<main class="l-main">
38+
<main>
3939
<!--===== HOME =====-->
4040
<section class="home bd-grid" id="home">
4141
<div class="home__data">
@@ -64,7 +64,7 @@ <h1 class="home__title">Hola,<br>Soy <span class="home__title-color">Andrea</spa
6464
</section>
6565

6666
<!--===== ABOUT =====-->
67-
<section class="about section " id="about">
67+
<section class="about section" id="about">
6868
<h2 class="section-title">Acerca de mi</h2>
6969

7070
<div class="about__container bd-grid">
@@ -81,7 +81,7 @@ <h2 class="about__subtitle">Soy Andrea</h2>
8181

8282
<!--===== SKILLS =====-->
8383
<section class="skills section" id="skills">
84-
<h2 class="section-title">Habilides</h2>
84+
<h2 class="section-title">Habilidades</h2>
8585

8686
<div class="skills__container bd-grid">
8787
<div>

0 commit comments

Comments
 (0)