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

Hover effect added to Explore button #258

Closed
wants to merge 3 commits into from
Closed
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
50 changes: 28 additions & 22 deletions src/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.body-cont {
margin: 0 auto;
padding: 20px;

font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
}
Expand All @@ -17,71 +18,74 @@

.body-search {
display: flex;
flex-direction: column; /* Stack items vertically by default */
flex-direction: column;
align-items: center;
gap: 10px; /* Add spacing between items */
gap: 10px;
}

.body-search h3 {
margin: 0; /* Remove margin to ensure better alignment */
text-align: center; /* Center align text */
margin: 0;
text-align: center;
}

.body-search input {
-webkit-transition: 1s;
width: 100%;
box-sizing: border-box;
padding: 14px;
border-radius: 8px;
border: 1px solid #dfdfdf;
font-size: 14px;
font-weight: 400;
outline: none;
padding: 14px;

-webkit-transition: 1s;
transition: 1s;
width: 100%; /* Full width on small screens */
box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.body-search input:focus {
outline: 2px solid #686666;
}

.search-button {
background-color: #000;
width: 100%;
padding: 14px;
border-radius: 8px;

background-color: #000;
color: #fff;
font-size: 14px;
font-weight: 400;
padding: 14px;
width: 100%; /* Full width on small screens */
}

/* Responsive Design */
@media (min-width: 601px) {
.body-search {
flex-direction: row; /* Align items horizontally on larger screens */
flex-direction: row;
align-items: center;
}

.body-search input {
border-radius: 8px 0 0 8px;
width: auto;
margin: 0;
width: auto; /* Adjust width to fit container */
border-radius: 8px 0 0 8px;
}

.search-button {
width: auto;
border-radius: 0 8px 8px 0;
width: auto; /* Adjust width to fit container */
}
}

.body-second-sect {
margin-top: 20px;
margin: 0 auto;
margin-top: 20px;
max-width: 943px;
}

.body-second-sect p {
font-size: 13px;
margin-bottom: 8px;

font-size: 13px;
}

.search-engines {
Expand All @@ -91,11 +95,12 @@
}

.engines {
display: block;
padding: 10px;
border-radius: 6px;
border: 1px solid #ddd;

cursor: pointer;
display: block;
padding: 10px;
}

.search-engines input[type="radio"] {
Expand All @@ -108,21 +113,22 @@
}

.search-engines label {
color: #333;
font-size: 13px;
font-weight: 600;
color: #333;
}

.engines h3 {
width: 100%;
}

.engines p {
margin: 0;
padding-top: 8px;

color: #404040;
font-size: 10px;
font-weight: 400;
padding-top: 8px;
margin: 0;
}

.engines:hover {
Expand Down
15 changes: 14 additions & 1 deletion src/assets/vocabulary/css/vocabulary.css
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,15 @@ button.expand-menu {

margin-right: .8em;
}
.ancilliary-menu a.donate:hover{
background: var(--vocabulary-brand-color-dark-tomato);
color: var(--vocabulary-brand-color-soft-tomato);

}
.ancilliary-menu a.donate.icon-attach:hover:before {
--icon-sprite-color: var(--vocabulary-brand-color-soft-tomato);

}
.ancilliary-menu a.search {
display: inline-flex;
align-items: center;
Expand Down Expand Up @@ -371,6 +379,12 @@ button.expand-menu {
border: none;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
transition: background-color 0.3s, color 0.3s;
}
.ancilliary-menu button.explore:hover {
background-color: #ddd;
color: #333;
font-weight: 500;
}

.explore-panel {
Expand Down Expand Up @@ -2623,7 +2637,6 @@ body > footer .license svg {
font-size: 1em;
padding: .5rem 1rem;
}

.primary-menu {
display: none;

Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down Expand Up @@ -46,7 +46,7 @@ <h1>
>Search Portal</a
>
</h1>
<button class="expand-menu">Menu</button>
<!-- <button class="expand-menu">Menu</button> -->
<nav class="ancilliary-menu">
<ul>
<li>
Expand Down