Skip to content
Snippets Groups Projects
Commit 343258f6 authored by Christophorus Dharma Winata's avatar Christophorus Dharma Winata
Browse files

fix: fixing navbar

parents ef9ba550 b231ab51
No related merge requests found
img{
float: left;
margin: 10px;
min-width: 100px;
min-height: 50px;
}
.tabgroup{
.navbar-container {
display: flex;
justify-content: space-evenly;
background-color: #AA1E1E;
color: #eaeaea;
float: left;
border: none;
outline: none;
color: #eaeaea;
/* float: left; */
font-size: 17px;
width: 100%;
height: 8%;
}
img{
/* float: left; */
margin: 5px;
min-width: 100px;
min-height: 50px;
}
.searchbar {
float: left;
/* float: left; */
padding: 6px;
background: linear-gradient(rgba(255,255,255,0.67), rgba(255,255,255,0.67));
margin-top: 15px;
margin-left: 10%;
border-radius: 10px;
display: flex;
align-items: center;
/* align-items: center; */
max-height: 35px;
transition: max-height 0.5s;
overflow: hidden;
......@@ -33,32 +36,28 @@ img{
.searchbar input{
background: transparent;
background-color: transparent;
border: none;
outline: none;
font-size: 20px;
margin-left: 10px;
width: 100%;
}
input{
width: 100%;
background: transparent;
border: 0;
outline: 0;
}
}
.tabexpand{
background-color: #AA1E1E;
color: #eaeaea;
float: left;
border: none;
outline: none;
text-decoration: none;
text-align: center;
cursor: pointer;
font-size: 30px;
padding: 14px 14px;
font-size: 5vh;
padding: 10px 14px;
width: 5%;
height: 100%;
}
......@@ -67,73 +66,74 @@ input{
background-color: transparent;
color: #eaeaea;
border: none;
outline: none;
cursor: pointer;
font-size: 17px;
padding: 17px 0px;
/* padding: 17px 0px; */
width: 10%;
text-align: center;
border-radius: 10px;
height: 100%;
}
.tabbutton{
background-color: #AA1E1E;
/* .tabbutton{
color: #eaeaea;
float: left;
border: none;
outline: none;
cursor: pointer;
font-size: 17px;
padding: 14px 16px;
width: 13%;
}
} */
.tabright{
background-color: #AA1E1E;
color: #eaeaea;
float: right;
border: none;
outline: none;
text-decoration: none;
text-align: center;
cursor: pointer;
font-size: 30px;
font-size: 3vh;
padding: 17px 14px;
width: 13%;
height: 100%;
/* height: 100%; */
}
.tabaccount{
background-color: #AA1E1E;
/* .tabaccount{
color: #eaeaea;
float: right;
border: none;
outline: none;
cursor: pointer;
text-align: center;
font-size: 30px;
padding: 14px 16px;
width: 5%;
margin-left: 50px;
}
} */
@media screen and (max-width: 850px){
.tabaccount, .tabright{
font-size: 8px;
font-size: 3vh;
width: 17%;
height: 100%;
}
.tabexpand{
font-size: 15px;
font-size: 3vh;
width: 10%;
}
.searchbar{
margin-left: 5%;
width: 50%;
margin-top: 7px;
margin-top: 3.5px;
margin-bottom: 3.5px;
}
img{
display: none;
......@@ -142,10 +142,16 @@ input{
@media screen and (max-width: 1350px) and (min-width: 851px) {
.tabaccount, .tabright{
font-size: 25px;
font-size: 3.5vh;
}
.tabexpand{
font-size: 25px;
font-size: 3.5vh;
}
.searchbar{
margin: 5px;
}
img{
margin: 5px;
}
}
......
addnavbar = () => {
return document.getElementById("tabgroup").innerHTML =`
<a class="tabexpand" href="#">
<i class="fa-solid fa-bars"></i>
</a>
<img src="../image/logoregis.svg" alt="icon" width="10%" height="5%">
<div class="searchbar">
<input id="Searchinput" type="text" placeholder="Search..." value="" onkeypress="">
<button class="search" onclick="">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
<div class="navbar-container">
<a class="tabexpand" href="#">
<i class="fa-solid fa-bars"></i>
</a>
<img src="../image/logoregis.svg" alt="icon" width="10%" height="5%">
<div class="searchbar">
<input id="Searchinput" type="text" placeholder="Search..." value="" onkeypress="">
<button class="search" onclick="">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</div>
<a class="tabright" href="#">
<i class="fa-solid fa-cart-shopping"></i>
Cart
</a>
<a class="tabright" href="../pages/catalog.php">
<i class="fa-solid fa-clipboard-list"></i>
Catalog
</a>
</div>
<a class="tabright" href="#">
<i class="fa-solid fa-cart-shopping"></i>
Cart
</a>
<a class="tabright" href="../pages/catalog.php">
<i class="fa-solid fa-clipboard-list"></i>
Catalog
</a>
`
}
\ No newline at end of file
......@@ -10,7 +10,7 @@
</head>
<body>
<div class="container">
<div id = "tabgroup">
<div id="tabgroup">
<script>
addnavbar();
</script>
......
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial scale=1.0">
<link rel="stylesheet" href="../css/navbar.css">
<script src="https://kit.fontawesome.com/8505941c5b.js" crossorigin="anonymous"></script>
<!-- <script src="../js/navbar.js"></script> -->
</head>
<body>
<div class="navbar-container">
<a class="tabexpand" href="#">
<i class="fa-solid fa-bars"></i>
</a>
<img src="../image/logoregis.svg" alt="icon" width="10%" height="5%">
<div class="searchbar">
<input id="Searchinput" type="text" placeholder="Search..." value="" onkeypress="">
<button class="search" onclick="">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</div>
<a class="tabright" href="#">
<i class="fa-solid fa-cart-shopping"></i>
Cart
</a>
<a class="tabright" href="../pages/catalog.php">
<i class="fa-solid fa-clipboard-list"></i>
Catalog
</a>
</div>
</body>
</html>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment