Files
itzmineydev/src/app/shared/navbar/navbar.component.css
T

75 lines
1.3 KiB
CSS

.navbar {
position: fixed;
top: 20px; /* Add top margin */
left: 50%;
transform: translateX(-50%); /* Center the navbar horizontally */
width: auto;
padding: 10px 13px; /* Adjusted padding for a wider 'bean' shape */
border-radius: 50px; /* Create the 'bean' shape */
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
}
.navbar-links {
display: flex;
gap: 20px;
}
.navbar a {
color: white;
background-color: #39354A;
text-decoration: none;
font-size: 16px;
padding: 10px 20px;
border-radius: 25px;
transition: all 0.3s ease;
}
.navbar a:hover {
background-color: #362e51;
color: #fff;
transform: scale(1.1);
}
.navbar a.active {
background-color: #e43b68;
color: #fff;
transform: scale(1.1);
}
.language-switch {
position: absolute;
right: -150px;
}
.language-switch button {
padding: 4px 8px;
background: transparent;
color: #fff;
border: none;
font-size: 14px;
cursor: pointer;
font-family: Roboto, serif;
transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.language-switch button:hover {
text-decoration: underline;
}
.language-switch button.active {
background: #fff;
color: #000;
}
.language-switch button.en {
margin-right: 8px;
border-radius: 25px;
}
.language-switch button.de {
border-radius: 25px;
}