navbar con titulo responsivo
This commit is contained in:
parent
cb72d48acd
commit
c468e25ef0
@ -1,16 +1,13 @@
|
||||
<div class="navbar-container">
|
||||
<!-- Left navbar section with menu toggle -->
|
||||
<div class="navbar-left">
|
||||
<button pButton icon="pi pi-bars" class="p-button-text p-button-rounded sidebar-toggle"
|
||||
(click)="toggleSidebar()"></button>
|
||||
<span class="app-title">Administrador de Cronogramas</span>
|
||||
</div>
|
||||
|
||||
<!-- Right navbar section with user info -->
|
||||
<div class="navbar-right">
|
||||
<span class="user-name">Luis Muñoz</span>
|
||||
<button pButton icon="pi pi-sign-out" class="p-button-text p-button-rounded logout-button">
|
||||
</button>
|
||||
<button pButton icon="pi pi-sign-out" class="p-button-text p-button-rounded logout-button"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -89,4 +89,31 @@
|
||||
.p-button-icon {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive para contraer navbar en md y sm */
|
||||
@media (max-width: 991.98px) {
|
||||
/* .navbar-left, */
|
||||
.navbar-right {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.navbar-right {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.app-title {
|
||||
width: 208px;
|
||||
max-width: 100%;
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive para ocultar título para resoluciones sm */
|
||||
@media (max-width: 767.98px) {
|
||||
.app-title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user