a lot isn't workijng

This commit is contained in:
Ben
2022-01-28 01:48:48 +00:00
parent a7b8b59327
commit 17b31c21d2
3 changed files with 67 additions and 12 deletions

View File

@@ -1,17 +1,21 @@
.navbar {
position: sticky;
display: flex;
font-family: 'Josefin Sans', sans-serif;
justify-content: space-between;
align-items: baseline;
align-items: center;
flex-direction: row;
flex-wrap: wrap;
font-size: 1.5em;
margin: auto;
padding-bottom: 20px;
padding-top: 3%;
/* padding-bottom: 20px; */
color: #222;
}
.push-right {
display: flex;
flex-direction: column;
margin-left: auto;
text-align: right;
}
@@ -24,7 +28,7 @@
.logo {
flex-grow: 2;
transform: translatey(30%);
transform: translatey(-30%);
}
.hamburger {
@@ -105,6 +109,9 @@
text-decoration: underline;
}
.drop-down {
z-index: 100;
}
.sub-nav {
border: 1px solid #ccc;
@@ -175,4 +182,46 @@
/* search bar */
.secondary-menu {
display: flex;
width: 100%;
flex-direction: row;
justify-content: space-between;
color: #222;
align-items: center;
align-content: center;
flex-wrap: nowrap;
}
.search-wrapper {
flex-basis: 75%;
height: 100%;
position: relative;
display: flex;
min-width: 100px;
z-index: 1;
}
.search-icon {
position: absolute;
top: 4px;
left: 8px;
width: 14px;
}
#search-bar {
border: 1px solid grey;
border-radius: 5px;
height: 100%;
width: 100%;
outline: 0;
}
/* #search-bar:hover, #search-bar:focus {
border: 1.5px solid #009688;
background-color: white;
} */
#cart-number {
margin-top: 8px;
}

View File

@@ -9,7 +9,7 @@
<span class="hamburger-line hamburger-line-bottom"></span>
</button>
<ul id="primary-menu" class="menu nav-menu">
<ul class="primary-menu menu nav-menu">
<li class="menu-item current-menu-item"><a class="nav-link" href="#">New</a></li>
<li class="menu-item dropdown"><a class="nav-link" href="#">Sets▾</a>
<!-- TODO: Going to need to dynamically generate this -->
@@ -28,14 +28,20 @@
</li>
<li class="menu-item"><a class="nav-link" href="#">My Account</a>
</ul>
<div class="push-down">
<span class="push-right">
<input id="search-bar" type="text" placeholder="search..."/>
<ul class="secondary-menu menu push-down">
<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NCw2eiIgZmlsbD0iIzAwMDAwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" />
<input id="search-bar" class="menu-item" type="text" placeholder="search..."/>
</span>
<img src="https://www.svgrepo.com/show/13666/heart.svg" width="30px" alt="">
<img src="https://www.svgrepo.com/show/80543/shopping-cart-outline.svg" width="30px" alt="">
<span id="cart-number">5</span>
</div>
<img class="menu-item" src="https://www.svgrepo.com/show/13666/heart.svg" width="27px" alt="">
<span class="cart-wrapper">
<img class="menu-item" src="https://www.svgrepo.com/show/80543/shopping-cart-outline.svg" width="30px" alt="">
<span class="menu-item" id="cart-number">5</span>
</span>
</ul>
</div>

View File

@@ -11,7 +11,7 @@
</head>
<body>
<notification-bar-component>
15:03:04 - New Limited Time Offer, Get Any Lego Set for £10
15:03:04 - New Limited Time Offer, Get Any Lego Set for £10 Using Code LEGO10
</notification-bar-component>
<limited-margin>