interstellar_ai/app/styles/header.css

129 lines
2.7 KiB
CSS
Raw Normal View History

2024-10-08 09:44:44 +02:00
header {
2024-09-30 16:11:01 +02:00
position: relative;
2024-09-25 11:22:59 +02:00
padding: 0 20px;
width: 100%;
2024-09-30 16:11:01 +02:00
height: 10dvh;
2024-09-24 14:54:39 +02:00
display: flex;
align-items: center;
2024-09-30 11:40:14 +02:00
justify-content: center;
2024-09-25 13:33:46 +02:00
font-size: 1em;
2024-09-30 10:46:03 +02:00
z-index: 999;
2024-09-18 11:17:34 +02:00
}
2024-10-08 09:44:44 +02:00
/* Hamburger button styles */
.hamburger {
2024-09-25 12:35:17 +02:00
position: absolute;
2024-09-30 11:40:14 +02:00
left: 5vw;
2024-10-08 09:44:44 +02:00
display: flex; /* Always show hamburger button */
2024-09-25 12:35:17 +02:00
flex-direction: column;
cursor: pointer;
2024-09-24 14:54:39 +02:00
}
2024-10-08 09:44:44 +02:00
.hamburger span {
2024-09-25 12:35:17 +02:00
width: 25px;
height: 3px;
background-color: white;
margin: 4px;
transition: 0.3s;
}
2024-10-08 09:44:44 +02:00
.hamburger.open span:nth-child(1) {
2024-09-25 12:35:17 +02:00
transform: rotate(45deg) translate(5px, 10px);
}
2024-10-08 09:44:44 +02:00
.hamburger.open span:nth-child(2) {
2024-09-25 12:35:17 +02:00
opacity: 0;
}
2024-10-08 09:44:44 +02:00
.hamburger.open span:nth-child(3) {
2024-09-25 12:35:17 +02:00
transform: rotate(-45deg) translate(5px, -10px);
}
2024-10-08 09:44:44 +02:00
/* Navigation links (hidden in header, shown in dropdown) */
.nav-links {
display: none; /* Default hidden */
2024-09-25 11:40:17 +02:00
position: absolute;
2024-10-08 09:44:44 +02:00
top: 10vh; /* Adjust as needed */
left: 0;
background-color: var(--burger-menu-background-color);
width: 100%;
flex-direction: column;
2024-10-08 14:41:14 +02:00
align-items: center;
justify-content: center;
padding: 10px auto;
margin: auto;
2024-09-25 11:40:17 +02:00
}
2024-10-08 09:44:44 +02:00
.nav-links.active {
display: flex; /* Show when active */
height: fit-content;
}
.nav-btn {
2024-09-30 08:41:06 +02:00
background-color: var(--input-button-color);
2024-09-25 11:40:17 +02:00
border: none;
2024-09-25 13:33:46 +02:00
font-size: 0.9em;
2024-10-08 09:44:44 +02:00
height: 50px; /* Consistent height */
2024-09-30 08:41:06 +02:00
border-radius: 5px;
2024-10-08 14:41:14 +02:00
padding: 10px auto;
2024-09-30 10:46:03 +02:00
font-family: var(--font-family);
2024-10-08 09:44:44 +02:00
width: 100%; /* Full width */
text-align: center; /* Center text */
2024-10-08 14:41:14 +02:00
margin: 4px auto;
2024-09-30 08:41:06 +02:00
}
2024-10-08 09:44:44 +02:00
.nav-btn:hover {
2024-09-30 08:41:06 +02:00
background-color: var(--input-button-hover-color);
2024-09-25 11:40:17 +02:00
}
2024-10-08 09:44:44 +02:00
/* Logo styles */
.header-logo {
2024-09-25 11:40:17 +02:00
width: 250px;
height: 5vh;
background-image: url(../../public/img/logo.png);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
background-color: transparent;
border: none;
}
2024-10-08 09:44:44 +02:00
/* Login button styles */
.login-button-container {
2024-09-30 10:46:03 +02:00
position: absolute;
2024-10-02 09:23:29 +02:00
top: 0.1vh;
2024-09-30 10:46:03 +02:00
right: 1vw;
2024-09-30 08:41:06 +02:00
height: 100%;
display: flex;
align-items: center;
}
2024-10-08 09:44:44 +02:00
.header-login-button {
2024-10-02 09:23:29 +02:00
height: 100%;
2024-10-08 09:44:44 +02:00
width: max-content;
2024-09-30 10:46:03 +02:00
font-size: var(--font-size);
2024-10-02 14:05:06 +02:00
padding: 0.5vw 1vw;
2024-09-25 11:22:59 +02:00
background-color: var(--input-button-color);
color: var(--text-color);
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
2024-09-30 10:46:03 +02:00
font-family: var(--font-family);
2024-10-02 09:23:29 +02:00
display: flex;
justify-content: center;
align-items: center;
2024-09-24 14:54:39 +02:00
}
2024-09-30 08:41:06 +02:00
.header-login-button:hover {
2024-09-25 11:22:59 +02:00
background-color: var(--input-button-hover-color);
2024-10-08 09:44:44 +02:00
}
.show-hide-btn{
2024-10-08 14:20:27 +02:00
display: flex;
align-items: center;
2024-10-08 09:44:44 +02:00
width: fit-content;
align-self: left;
position: absolute;
left: 10vw;
cursor: pointer;
2024-10-08 16:09:35 +02:00
padding: 10px;
}