Skip to content

Commit

Permalink
fix form
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaHombalevska committed Sep 29, 2023
1 parent ca4785f commit c4e17ac
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
Binary file added src/images/socials/facebook-hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/socials/instagram-hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ <h3 class="form__title">Send us a message</h3>
<input
type="email"
placeholder="Your email"
pattern=".+@globex\.com" size="30"
class="form__field"
required
>
Expand All @@ -261,12 +262,12 @@ <h3 class="form__title">Send us a message</h3>
</label>

<label for="for">
<textarea
<input
type="text"
class="form__field"
class="form__field form__field--message"
placeholder="Your message"
required
>Your massage
</textarea>
>
</label>
</form>

Expand Down
2 changes: 2 additions & 0 deletions src/styles/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

&:hover {
transform: scale(150%);
background-image: url(../images/socials/facebook-hover.png);
transition: 0.3s;
}
}
Expand All @@ -88,6 +89,7 @@

&:hover {
transform: scale(150%);
background-image: url(../images/socials/instagram-hover.png);
transition: 0.3s;
}
}
Expand Down
10 changes: 10 additions & 0 deletions src/styles/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@

border-bottom: 1px solid $background-c-white;
margin-bottom: 40px;

&:autofill {
outline: 5px solid $c-default-blue;
background-color: transparent;
color: $background-c-white;
}
}

&__field--message {
text-overflow: ellipsis;
}

&__field:hover {
Expand Down

0 comments on commit c4e17ac

Please sign in to comment.