-

+
Melpomeni Étaín
-
etain
+
etain
diff --git a/src/js/script.js b/src/js/script.js
index 73f538b..0d57753 100644
--- a/src/js/script.js
+++ b/src/js/script.js
@@ -2,11 +2,12 @@
'use strict';
var scrollTop = 0;
+ var scrollThreshold = $(window).height() / 2;
$(window).scroll(function () {
scrollTop = $(window).scrollTop();
- if (scrollTop >= $(window).height() / 2) {
+ if (scrollTop >= scrollThreshold) {
$('.navbar').addClass('navbar--shrink');
} else {
$('.navbar').removeClass('navbar--shrink');
diff --git a/src/scss/_about.scss b/src/scss/_about.scss
index c846e4f..6975906 100644
--- a/src/scss/_about.scss
+++ b/src/scss/_about.scss
@@ -4,36 +4,13 @@
height: 710px;
}
-.about__feature {
- margin: 20px 0 0 10px;
-}
-
-.about__feature-icon {
- text-align: center;
-}
-
-.about__feature-title {
- margin-bottom: 10px;
- font-family: Montserrat, sans-serif;
- font-size: 16px;
- font-weight: 600;
- color: $dark-text;
-}
-
-.about__feature-description {
- font-family: Montserrat, sans-serif;
- font-size: 14px;
- color: $regular-text;
-}
-
-.about__h1 {
+.about__title {
font-family: Montserrat, sans-serif;
font-weight: bold;
font-size: 48px;
color: $primary;
-}
-.about__h1--no-wrap {
- white-space: nowrap;
+ &--no-wrap {
+ white-space: nowrap;
+ }
}
-
diff --git a/src/scss/_author.scss b/src/scss/_author.scss
index f86121a..6fe9770 100644
--- a/src/scss/_author.scss
+++ b/src/scss/_author.scss
@@ -24,18 +24,18 @@
color: $primary-dark;
}
-.author__nickname {
- margin: 0;
- padding: 0;
- font-family: Montserrat, sans-serif;
- font-weight: 600;
- font-size: 16px;
-}
-
.nickname {
color: $primary;
&:before {
content: '@';
}
+
+ &--strong {
+ margin: 0;
+ padding: 0;
+ font-family: Montserrat, sans-serif;
+ font-weight: 600;
+ font-size: 16px;
+ }
}
\ No newline at end of file
diff --git a/src/scss/_editor.scss b/src/scss/_editor.scss
index 5073ebc..42f3acd 100644
--- a/src/scss/_editor.scss
+++ b/src/scss/_editor.scss
@@ -2,7 +2,7 @@
text-align: center;
}
-.editor__h1 {
+.editor__title {
margin-top: 60px;
font-family: Montserrat, sans-serif;
font-size: 54px;
@@ -11,7 +11,7 @@
color: $primary-dark;
}
-.editor__h2 {
+.editor__subtitle {
margin: 0 auto;
font-family: Source Sans Pro, sans-serif;
font-size: 21px;
diff --git a/src/scss/_feature.scss b/src/scss/_feature.scss
new file mode 100644
index 0000000..f6c64a8
--- /dev/null
+++ b/src/scss/_feature.scss
@@ -0,0 +1,21 @@
+.feature {
+ margin: 20px 0 0 10px;
+}
+
+.feature__icon {
+ text-align: center;
+}
+
+.feature__title {
+ margin-bottom: 10px;
+ font-family: Montserrat, sans-serif;
+ font-size: 16px;
+ font-weight: 600;
+ color: $dark-text;
+}
+
+.feature__description {
+ font-family: Montserrat, sans-serif;
+ font-size: 14px;
+ color: $regular-text;
+}
\ No newline at end of file
diff --git a/src/scss/_header.scss b/src/scss/_header.scss
index 426ea83..4374f25 100644
--- a/src/scss/_header.scss
+++ b/src/scss/_header.scss
@@ -4,7 +4,7 @@
padding-top: 110px;
}
-.header__h1 {
+.header__title {
font-family: Montserrat, sans-serif;
font-size: 82px;
font-weight: bold;
@@ -13,7 +13,7 @@
text-align: center;
}
-.header__h2 {
+.header__subtitle {
font-family: Lato, sans-serif;
font-size: 30px;
color: $primary;
@@ -21,7 +21,7 @@
margin-bottom: 0;
}
-.header__h3 {
+.header__description {
margin-top: 20px;
font-family: Montserrat, sans-serif;
font-size: 16px;
diff --git a/src/scss/style.scss b/src/scss/style.scss
index 7e0f6df..08be73d 100644
--- a/src/scss/style.scss
+++ b/src/scss/style.scss
@@ -7,5 +7,6 @@
@import "download";
@import "editor";
@import "about";
+@import "feature";
@import "reviews";
@import "social";
\ No newline at end of file