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

Add transition on hover #141

Open
wants to merge 1 commit 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
67 changes: 59 additions & 8 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ body {
max-height: 14vh;
background: var(--clr-main);
width: 100%;
background-color: whitesmoke;
}
header {
display: flex;
Expand All @@ -134,6 +135,7 @@ header {
max-width: 1200px;
margin-left: auto;
margin-right: auto;

}

.logo {
Expand All @@ -144,6 +146,7 @@ header {
}

.logo-span {

color: var(--clr-accent);
}

Expand All @@ -160,6 +163,7 @@ nav {
padding: 1rem;
border-bottom: 1px solid var(--clr-dark-opc);
border-left: 1px solid var(--clr-dark-opc);
background-color: whitesmoke;
}

nav ul {
Expand All @@ -171,9 +175,16 @@ nav ul {

nav ul li {
position: relative;

padding-bottom: 1.5em;
border-bottom: 1px solid var(--clr-dark-opc);
}
nav ul li:hover {
border-bottom: 1px solid ;
color : grey;
transition: color 0.5s , bottom-border 0.4s;

}

li {
list-style: none;
Expand Down Expand Up @@ -365,11 +376,13 @@ ul li::before {
display: flex;
position: static;
margin-top: 0;

margin-left: 5em;
padding: 0;
border: none;
}


nav ul {
flex-direction: row;
align-items: center;
Expand Down Expand Up @@ -397,16 +410,31 @@ ul li::before {
height: 22px;
}
}
@media (min-width: 1000px) {
@media (min-width: 500px) {
nav ul li {
margin-left: 2em;
}

}


@media screen and (max-width: 600px) {
body {
overflow-x: hidden;
}

.heading{
margin-bottom :20px;
}

.tile-logo{
align-items: center;
}


#db-search-form{
margin: auto;
}
}

.nav-active {
Expand Down Expand Up @@ -497,15 +525,13 @@ ul li::before {
width: fit-content;
}
.card {
border: 1px solid;
border-radius: 4px;
border-bottom: 1px solid;

box-shadow: rgba(90, 90, 90, 0.2) 0px 2px 8px 0px;
display: flex;


display: none;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;

align-items: center;
width: fit-content;
margin: 20px;
Expand Down Expand Up @@ -548,6 +574,20 @@ a {
justify-content: center;
}

.d-logo:hover {

color: blueviolet;
}
.copy-button:hover{
background-color:skyblue ;
font-weight: 547;
color: black;
}
.card:hover{
background-color: whitesmoke;
box-shadow: 0 0 10px #74ADC8;;
}

.logo-button {
text-decoration: none;
color: var(--text-color);
Expand All @@ -563,12 +603,23 @@ a {
}

@media (max-width: 768px) {
body {
body {`
display: flex;
flex-direction: column;
}
}

@media screen and (max-width: 570px) {
.heading{
margin-left: 135px;
}
}
@media screen and (max-width: 550px) {
.heading{
margin-left: 110px;
}
}

.d-title li::before {
list-style-type: none;
}
4 changes: 3 additions & 1 deletion datasets/indian_food.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name,ingredients,diet,prep_time,cook_time,flavor_profile,course,state,region
NAME,INGREDIENTS,DIET,PREP_TIME,COOK_TIME,FLAVOR_PROFILE,COURSE,STATE,REGION


Balu shahi,"Maida flour, yogurt, oil, sugar",vegetarian,45,25,sweet,dessert,West Bengal,East
Boondi,"Gram flour, ghee, sugar",vegetarian,80,30,sweet,dessert,Rajasthan,West
Gajar ka halwa,"Carrots, milk, sugar, ghee, cashews, raisins",vegetarian,15,60,sweet,dessert,Punjab,North
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
<div class="header-wrapper">
<header>

<div class="logo">
<div class="logo" height="100px">
<h4>Data<span class="logo-span">4</span>ALL</h4>
</div>
<nav>
<ul class="nav-links">
<li class="all"><a href="#" onclick="filterSelection('all')">all</a></li>
<li class="beginner" onclick="filterSelection('beginner-db')"><a href="#">beginner</a></li>
<li class="inter" onclick="filterSelection('intermediate-db')"><a href="#">intermediate</a></li>
<li class="adv" onclick="filterSelection('advanced-db')"><a href="#">advanced</a></li>
<li class="all"><a href="#" onclick="filterSelection('all')">All</a></li>
<li class="beginner" onclick="filterSelection('beginner-db')"><a href="#">Beginner</a></li>
<li class="inter" onclick="filterSelection('intermediate-db')"><a href="#">Intermediate</a></li>
<li class="adv" onclick="filterSelection('advanced-db')"><a href="#">Advanced</a></li>
<button id="theme-switcher" class="theme" ></button>
</ul>
</nav>
Expand Down