Project / styles.css
srinuksv's picture
Upload 5 files
fd41275 verified
raw
history blame contribute delete
No virus
2.45 kB
/* Reset default margin and padding */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif; /* Changed to Arial for broader compatibility */
}
/* Top 1 Navbar */
.top-1-navbar {
background-color: #2980b9;
color: white;
padding: 1rem 0;
}
.top-1-navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.top-1-navbar .logo {
font-size: 2rem;
font-weight: bold;
}
.top-1-navbar .nav {
display: flex;
gap: 20px;
}
.top-1-navbar .nav-item {
cursor: pointer;
transition: color 0.3s ease;
}
.top-1-navbar .nav-item:hover {
color: #f08080;
}
/* Top 2 Navbar */
.top-2-navbar {
background-color: #f4f4f1;
color: #1a0202; /* Adjusted text color for better contrast */
padding: 0.5rem 1rem;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
.top-2-navbar .logo {
font-size: 2rem;
font-weight: bold;
}
.top-2-navbar .nav-item {
cursor: pointer;
transition: color 0.3s ease;
}
.top-2-navbar .nav-item:hover {
color: #f08080;
}
/* Actions Section */
.actions {
display: flex;
align-items: center;
gap: 15px;
}
.action-item {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
color: #333; /* Adjusted icon color */
}
.action-item:hover {
opacity: 0.7;
}
/* Delivery Switch */
.delivery {
display: flex;
align-items: center;
gap: 10px;
}
.delivery-label {
font-size: 14px;
}
.delivery-switch {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 40px;
height: 20px;
border-radius: 20px;
background-color: #ccc;
position: relative;
cursor: pointer;
transition: background-color 0.3s ease;
}
.delivery-switch::before {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 50%;
background-color: #fff;
transition: transform 0.3s ease;
}
.delivery-switch:checked {
background-color: #f08080;
}
.delivery-switch:checked::before {
transform: translateX(22px);
}