Files
front-Censo/src/app/styles/layout/BarNavigation.scss
T

186 lines
2.8 KiB
SCSS
Raw Normal View History

2025-10-22 13:27:10 -06:00
.barNavigation {
text-align: center;
2025-10-27 14:23:52 -06:00
justify-content: end;
2025-10-22 13:27:10 -06:00
background-color: #ffffff;
display: flex;
width: 100%;
top: 0;
height: 45px;
max-height: 40px;
}
.barNavigation ul {
display: flex;
justify-content: space-around;
2025-10-27 14:23:52 -06:00
width: 90%;
2025-10-22 13:27:10 -06:00
gap: 10px;
}
.barNavigation li {
transition: all 0.3s ease;
cursor: pointer;
2025-10-24 17:15:07 -06:00
width: auto;
2025-10-22 13:27:10 -06:00
transition: background-color 0.3s ease;
2025-11-21 11:29:47 -06:00
font-size: 1rem;
2025-10-22 13:27:10 -06:00
}
.menuToggle {
display: none;
flex-direction: column;
align-items: center;
gap: 4px;
cursor: pointer;
padding: 10px;
margin-right: 10px;
}
.menuToggle div {
width: 25px;
height: 3px;
background-color: black;
border-radius: 4px;
}
.subMenu {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
position: relative;
z-index: 1;
border-radius: 4px 4px 0 0;
}
.subMenu ul {
opacity: 0;
max-height: 0;
position: absolute;
flex-direction: column;
2025-10-24 17:15:07 -06:00
min-width: 200px;
2025-10-25 20:05:16 -06:00
max-width: 300px;
2025-10-24 17:15:07 -06:00
left: 0;
2025-10-22 13:27:10 -06:00
background-color: #003e79;
transition: opacity 0.4s ease, max-height 0.4s ease;
}
.subMenu ul a {
display: none;
}
.subMenu:hover ul {
opacity: 1;
max-height: 500px;
}
.subMenu:hover ul a {
display: flex;
}
.subMenu li {
padding: 10px 0;
}
.subMenu span {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
color: #383838;
2025-11-21 11:29:47 -06:00
font-size: 1.5rem;
2025-10-22 13:27:10 -06:00
}
.links {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
font-size: 1.5rem;
}
2025-10-25 20:05:16 -06:00
/* Estilo del botón de cierre de sesión */
.logout-button {
background-color: #ff4d4d;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 200px;
&:hover {
background-color: #e63939;
}
2025-10-22 13:27:10 -06:00
}
2025-10-27 14:23:52 -06:00
@media (max-width: 1000px) {
2025-10-22 13:27:10 -06:00
.menuToggle {
display: flex;
position: relative;
align-items: end;
transition: transform 0.3s ease;
}
.barNavigation {
font-size: 15px;
display: block;
2025-10-25 20:05:16 -06:00
padding: 0;
width: 100%;
2025-10-22 13:27:10 -06:00
}
.barNavigation ul {
position: absolute;
2025-10-31 20:26:32 -06:00
background-color: #f4f5f7;
2025-10-22 13:27:10 -06:00
flex-direction: column;
padding: 10px 0;
align-items: center;
display: none;
z-index: 1;
height: auto;
2025-10-25 20:05:16 -06:00
width: 100%;
2025-10-22 13:27:10 -06:00
}
2025-10-25 20:05:16 -06:00
.barNavigation ul.active {
2025-10-27 15:35:23 -06:00
left: 0;
2025-10-25 20:05:16 -06:00
display: flex;
2025-10-27 15:35:23 -06:00
width: 100vw;
2025-11-19 18:55:39 -06:00
z-index: 3;
2025-10-22 13:27:10 -06:00
}
.barNavigation li:hover {
background-color: #d59f0f;
2025-10-31 20:26:32 -06:00
color: black;
2025-10-22 13:27:10 -06:00
border-radius: 0;
border: none;
}
.subMenu ul {
width: 100%;
border-radius: 4px;
position: relative;
background-color: rgb(1, 92, 184);
}
2025-10-25 20:05:16 -06:00
.logout-button {
margin-top: 10px;
padding: 6px 12px;
max-width: 180px;
}
2025-10-22 13:27:10 -06:00
thead,
tbody {
font-size: 1rem;
}
2025-10-27 15:35:23 -06:00
.subMenu a span {
2025-10-31 20:26:32 -06:00
color: black;
2025-10-27 15:35:23 -06:00
}
2025-10-27 14:23:52 -06:00
}