togethere.cloud/private_html/css/header.css

226 lines
5.3 KiB
CSS

/* RESET / PODSTAWY */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Lato', sans-serif;
}
nav.navigation {
margin-bottom: 30px;
width: 100%;
margin-top: -35px;
background: #f0f8ff; /* jasno niebieskie tło */
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30px;
height: 100px;
position: relative;
z-index: 1000;
}
/* Wyłączenie animacji wejścia w nav (zostawiamy hover transitions) */
nav.navigation,
nav.navigation * {
animation: none !important;
}
/* LOGO */
nav .logo img.logo-img {
width: 75px !important;
height: auto;
display: block;
transition: transform 0.3s ease;
}
nav .logo img.logo-img:hover {
transform: scale(1.1);
}
/* MENU NA DUŻY EKRAN */
nav ul.phone-menu,
nav ul.linksLogged,
nav ul.linksNoLogined {
display: flex;
list-style: none;
gap: 10px;
}
nav ul li a {
text-decoration: none;
color: #007BFF; /* niebieski tekst */
font-weight: 600;
padding: 10px 10px;
border-radius: 5px;
transition: all 0.3s ease;
}
nav ul li a:hover {
background: #007BFF;
color: #ffffff;
}
/* LOGIN BUTTON */
nav ul li.login a {
background: #007BFF;
color: #ffffff;
font-weight: 700;
}
nav ul li.login a:hover {
background: #0056b3;
}
/* ADMIN PANEL BUTTON */
nav ul li.admin-panel a {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
font-weight: 700;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
nav ul li.admin-panel a:hover {
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
transform: translateY(-2px);
}
/* HAMBURGER MENU - MOBILE */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 6px;
padding: 15px;
position: relative;
z-index: 10001;
-webkit-tap-highlight-color: transparent;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
}
.hamburger .line {
width: 25px;
height: 3px;
background: #007BFF;
border-radius: 2px;
transition: all 0.3s ease;
}
/* RESPONSYWNOŚĆ */
@media (max-width: 800px) {
/* ukrywamy wszystkie menu na start */
nav ul.phone-menu,
nav ul.linksLogged,
nav ul.linksNoLogined {
display: none;
position: absolute;
top: 70px;
left: 0;
width: 100%;
flex-direction: column;
align-items: center;
padding: 20px 0;
background: #f0f8ff;
z-index: 10000;
}
/* aktywne menu po kliknięciu hamburgera */
nav ul.phone-menu.active,
nav ul.linksLogged.active,
nav ul.linksNoLogined.active {
display: flex;
gap: 0px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* li w aktywnym menu */
nav ul.phone-menu.active li,
nav ul.linksLogged.active li,
nav ul.linksNoLogined.active li {
width: 90%; /* dopasowuje się do szerokości kontenera */
text-align: center;
margin: 5px 0; /* odstępy między elementami */
list-style: none;
}
/* linki w li */
nav ul.phone-menu.active li a,
nav ul.linksLogged.active li a,
nav ul.linksNoLogined.active li a {
display: block;
width: 100%;
padding: 10px 0;
text-decoration: none;
color: #007BFF;
font-weight: 600;
border-radius: 5px;
transition: all 0.3s ease;
}
nav ul.phone-menu.active li a:hover,
nav ul.linksLogged.active li a:hover,
nav ul.linksNoLogined.active li a:hover {
background: #007BFF;
color: #ffffff;
}
/* hamburger pokazany */
.hamburger {
display: flex;
flex-direction: column;
gap: 6px;
cursor: pointer;
padding: 15px;
margin: -15px;
position: relative;
z-index: 10001;
}
/* LOGIN BUTTON */
nav ul li.login a {
background: #007BFF; /* jasno niebieskie tło */
color: #ffffff !important; /* biały tekst */
font-weight: 700;
padding: 10px 15px;
border-radius: 5px;
transition: all 0.3s ease;
}
nav ul li.login a:hover {
background: #0056b3; /* ciemniejszy niebieski przy hover */
color: #ffffff !important; /* tekst nadal biały */
}
/* ADMIN PANEL BUTTON - MOBILE */
nav ul li.admin-panel a {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff !important;
font-weight: 700;
padding: 10px 15px;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
nav ul li.admin-panel a:hover {
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}
}
/* ANIMACJA HAMBURGER */
.hamburger.active .line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
width: 30px;
}
.hamburger.active .line:nth-child(2) {
opacity: 0;
}
.hamburger.active .line:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
width: 30px;
}