Skip to content

Commit

Permalink
fixed hover link and centered images
Browse files Browse the repository at this point in the history
  • Loading branch information
ogerenko committed Jun 23, 2024
1 parent 7416297 commit 4ed925a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
<div class="features__slider-arrows"></div>

<img
class="features__image no-borders"
class="features__image no-borders???"
src="./images/banner-images/features_image.png"
alt="features"
/>
Expand Down Expand Up @@ -473,15 +473,15 @@
</div>

<div class="footer__social-media">
<a href="#">
<a href="https://www.facebook.com/" target="_blank">
<div class="social-media__link social-media__facebook"></div>
</a>

<a href="#">
<a href="https://www.twitter.com/" target="_blank">
<div class="social-media__link social-media__twiter"></div>
</a>

<a href="#">
<a href="https://www.instagram.com/" target="_blank">
<div class="social-media__link social-media__instagram"></div>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/blocks/features.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.features {
&__container {
background-color: $second-turquoise-color;
padding-inline: 30px;

@include on-tablet {
@include page-grid;
Expand All @@ -17,6 +16,7 @@

&__content {
&--sound-music {
margin-inline: 30px;
@include on-tablet {
grid-column: 2 / 5;
}
Expand Down Expand Up @@ -100,7 +100,7 @@

&__image {
display: block;
width: 100vw;
width: 100%;

@include on-tablet {
position: absolute;
Expand Down
15 changes: 5 additions & 10 deletions src/styles/blocks/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,15 @@
}

// to skip autofill styles
input:-moz-autofill {
box-shadow: 0 0 0 30px $main-background-color inset !important;
-moz-text-fill-color: #000 !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px $main-background-color inset !important;
-webkit-text-fill-color: #000 !important;
}

input:-moz-autofill {
box-shadow: 0 0 0 30px $main-background-color inset !important;
-moz-text-fill-color: #000 !important;
}

input:-ms-input-placeholder {
color: #000 !important;
}

6 changes: 6 additions & 0 deletions src/styles/blocks/social-media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
width: 24px;
background-repeat: no-repeat;
background-position: center;

transition-duration: $effect-duration;

&:hover {
scale: 1.1;
}
}

&__facebook {
Expand Down
2 changes: 2 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ iframe {

.no-borders {
margin-inline: -30px;
width: 100vw;

@include on-tablet {
margin-inline: 0;
width: 100%;
}
}

Expand Down

0 comments on commit 4ed925a

Please sign in to comment.