Skip to content

Commit

Permalink
fix hover effects
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaHombalevska committed Sep 28, 2023
1 parent a6788fa commit 813c5f9
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 18 deletions.
7 changes: 4 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dia</title>
<link rel="icon" href="./images/logo/dia-logo.svg">
<link rel="stylesheet" href="./styles/main.scss">
</head>
<body>
<header class="header">
<nav class="nav">
<div class="nav__list">
<div class="nav__icons">
<a href="/" class="nav__icon--logo"></a>
<a href="#" class="nav__icon--logo"></a>

<a href="#menu" class="nav__icon--menu"></a>
</div>
Expand Down Expand Up @@ -240,7 +241,7 @@ <h2 class="cta__title">Vision, Passion, Results</h2>
<div class="form" id="form">
<h3 class="form__title">Send us a message</h3>

<form action="submit" method="post">
<form onsubmit="this.reset(); return false;">
<label for="for">
<input
type="email"
Expand Down Expand Up @@ -296,7 +297,7 @@ <h2 class="footer__contacts__title">Contact us</h2>
</div>

<nav class="footer__navigation">
<a href="/">
<a href="#">
<img src="./images/logo/dia-logo.svg" alt="dia logo" class="footer__logo">
</a>

Expand Down
1 change: 1 addition & 0 deletions src/styles/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
font-size: 15px;
opacity: 0.7;
padding-bottom: 16px;
resize: none;

width: 100%;
max-width: 362px;
Expand Down
4 changes: 4 additions & 0 deletions src/styles/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
justify-content: space-between;
align-items: center;
}

@include onMediumDisplay {
padding-left: 227px;
}
}

&__left {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
// // display: flex;
// // justify-content: center;
// }
@include onMediumDisplay {
padding-left: 227px;

}

&__icons {
display: flex;
Expand Down
19 changes: 12 additions & 7 deletions src/styles/services.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.services {
@include contentPaddingInline;


&__container {
box-sizing: border-box;

Expand Down Expand Up @@ -80,14 +79,9 @@
padding: 32px 0 32px 32px;
box-shadow: 0 18px 9px 0 rgba(37, 41, 49, 0.03);

&:hover {
transform: scale(110%);
cursor: pointer;
}

@for $number from 1 through 4 {
&:nth-of-type(#{$number})::before {
content: "#{$number}";
content: "00#{$number}";
@include forSiteHeaders;
color: $c-default-blue;
font-size: 13px;
Expand All @@ -105,6 +99,12 @@
&:nth-child(2n) {
transform: translateY(-50%);
}

&:hover {
border-radius: 50px;
background-color: aliceblue;
cursor: pointer;
}
}
}

Expand Down Expand Up @@ -142,5 +142,10 @@
font-size: 15px;
padding-left: 56px;
line-height: 40px;

&:hover {
color: $c-default-blue;
cursor: pointer;
}
}
}
10 changes: 8 additions & 2 deletions src/styles/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

@include onDesctop {
height: 680px;
width: 100%;
max-width: 502px;
width: 502px;
margin-top: 38px;

border-radius: 60px 0 60px 0;
Expand All @@ -28,6 +27,13 @@
padding-bottom: 48px;
}

@include onMediumDisplay {
width: 687px;
height: 100vh;
background-position: center right;
background-repeat: no-repeat;
}

&__arrows {
display: flex;
@include contentPaddingInline;
Expand Down
7 changes: 1 addition & 6 deletions src/styles/utils/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
}
}

@mixin onMobile {
@media (min-width: 320px) {
@content;
}
}

@mixin onTablet {
@media (min-width: 640px) {
@content;
Expand All @@ -29,6 +23,7 @@
}
}


@mixin contentPaddingInline() {
padding-inline: 20px;

Expand Down

0 comments on commit 813c5f9

Please sign in to comment.