Files
UI-examples/Facebook (Gemini 3.1)/src/components/Navbar.css
2026-03-10 20:28:48 +01:00

124 lines
2.0 KiB
CSS

.navbar {
height: 56px;
background-color: var(--fb-card-bg);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
position: sticky;
top: 0;
z-index: 1000;
}
.navbar-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
}
.fb-logo-link {
text-decoration: none;
}
.fb-logo {
background-color: var(--fb-blue);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
}
.search-bar {
background-color: var(--fb-bg);
border-radius: 20px;
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
color: var(--fb-text-secondary);
}
.search-bar input {
background: none;
border: none;
outline: none;
font-size: 15px;
}
.navbar-middle {
display: flex;
align-items: center;
gap: 4px;
height: 100%;
}
.nav-link {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 0 32px;
color: var(--fb-text-secondary);
border-bottom: 3px solid transparent;
transition: all 0.2s;
}
.nav-link:hover {
background-color: var(--fb-hover);
border-radius: 8px;
}
.nav-link.active {
color: var(--fb-blue);
border-bottom-color: var(--fb-blue);
border-radius: 0;
}
.nav-link.active:hover {
background: none;
}
.navbar-right {
display: flex;
align-items: center;
gap: 8px;
justify-content: flex-end;
flex: 1;
}
.nav-item-round {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--fb-hover);
display: flex;
align-items: center;
justify-content: center;
}
.nav-item-profile {
display: flex;
align-items: center;
gap: 4px;
padding: 4px;
cursor: pointer;
}
.avatar-placeholder {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--fb-divider);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}