Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes hover on Companies logo #189

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -10,8 +11,9 @@

<link rel="stylesheet" href="media-queries.css">
</head>

<body>

<!-- top banner -->

<div class="top-banner">
Expand Down Expand Up @@ -138,7 +140,7 @@ <h3>Design professionals</h3>
</div>
</div>
</section>

<section class="big-feature-section">
<div class="container flex big-feature-container" id="second-big-feature">
<div class="feature-img">
Expand Down Expand Up @@ -256,6 +258,13 @@ <h4>Resources</h4>
navLinks.classList.toggle('active');
})

</script>

</body>

</html>


var icon=document.getElementById("icon")

icon.onclick=function(){
Expand All @@ -271,3 +280,4 @@ <h4>Resources</h4>

</body>
</html>

82 changes: 44 additions & 38 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ ul {
list-style: none;
}


/* utility classes */

.small-bold-text {
Expand Down Expand Up @@ -103,7 +104,7 @@ ul {
box-shadow: 0 0 2px var(--secondary-text-color);
transition: 0.2s ease-out;
text-align: center;
margin-top:6px;
margin-top: 6px;
}

.primary-button:hover {
Expand All @@ -117,7 +118,7 @@ ul {
color: var(--secondary-text-color) !important;
padding: 5px 40px;
transition: 0.2s ease-out;
margin-top:6px;
margin-top: 6px;
}

.secondary-button:hover {
Expand All @@ -127,6 +128,7 @@ ul {
transition: 0.3s ease-in-out;
}


/* top banner */

.top-banner {
Expand All @@ -141,6 +143,7 @@ ul {
text-align: center;
}


/* nav bar */
nav {
position: fixed;
Expand All @@ -154,23 +157,18 @@ nav {
.main-nav {
margin-top: 40px;
justify-content: space-between;

position: fixed;
top: 0;
width: 100%;
padding: 10px 0;
margin-left: 50px;

background-color: #ccc
}

.company-logo img {
width: 200px;

visibility: visible;

padding: 20px;

}

.nav-links {
Expand All @@ -181,38 +179,36 @@ nav {
justify-content: end;
gap: 40px;
}
.nav-links a{
border: 1px transparent solid;
border-radius: 2px;
padding:4px;

}
.nav-links a:hover{
background-color: #ebf2fa;


.nav-links ul {
list-style: none;
padding: 0;
margin: 0;
}

.nav-links ul li {
display: inline;
margin-right: 20px;
white-space: nowrap;
}
.nav-links a {

.nav-links ul li:last-child {
margin-right: 0;
}
border: 1px transparent solid;
border-radius: 2px;
padding: 4px;

.nav-links a {
text-decoration: none;
color: var(--secondary-text-color);
}


.nav-links a:hover {
background-color: #ebf2fa;
.nav-links ul {
list-style: none;
padding: 0;
margin: 0;
}
.nav-links ul li {
display: inline;
margin-right: 20px;
white-space: nowrap;
}
.nav-links ul li:last-child {
margin-right: 0;
}
.nav-links a {
text-decoration: none;
color: black
}
}

.nav-toggle {
Expand All @@ -223,11 +219,9 @@ nav {
.nav-links {
display: none;
}

.nav-toggle {
display: block;
}

.nav-links.active {
display: block;
}
Expand Down Expand Up @@ -261,6 +255,7 @@ header {
width: 100%;
}


/* companies section */

.companies-header {
Expand All @@ -275,6 +270,11 @@ header {
gap: 20px;
}

.logos :hover {
transform: scale(1.20);
transition: 0.7s ease-in-out;
}

.logo {
height: 46px;
filter: grayscale(100%);
Expand All @@ -293,6 +293,7 @@ header {
gap: 20px;
}


/* features section */

.features-section {
Expand Down Expand Up @@ -324,7 +325,8 @@ header {
max-width: 30%;
text-align: center;
}
.features-card:hover{

.features-card:hover {
transform: scale(1.02);
transition: 0.3s ease-in-out;
}
Expand All @@ -333,6 +335,7 @@ header {
width: 60px;
}


/* big feature section */

.big-feature-section {
Expand All @@ -356,6 +359,7 @@ header {
align-items: flex-start;
}


/* examples section */

.examples-section {
Expand Down Expand Up @@ -406,6 +410,7 @@ header {
color: var(--secondary-text-color);
}


/* cta section */

.cta-section-container {
Expand All @@ -425,6 +430,7 @@ header {
margin-top: 20px;
}


/* footer */

footer {
Expand All @@ -443,6 +449,7 @@ footer {
justify-content: space-between;
}


/* subfooter */

.subfooter {
Expand All @@ -455,6 +462,7 @@ footer {
gap: 30px;
flex-wrap: wrap;
}

.containers {
max-width: 400px;
/* margin: 0; */
Expand Down Expand Up @@ -488,6 +496,4 @@ button {
.error-message {
color: red;
margin-top: 10px;
}


}