Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/css/scss/organisms/_sidebar.scss

187 lines
3.6 KiB

.app-sidebar {
@apply block bg-white fixed left-0 transition-[width] duration-150 items-stretch w-full text-gray-50 z-10
sm:bg-gray-15 sm:border-r sm:border-solid sm:border-gray-25 sm:w-60;
height: calc(100vh - 4.5rem - 1px);
top: calc(4.5rem + 1px);
&__container {
@apply flex flex-col h-full;
}
&__top {
@apply sm:hidden font-bold pt-10 px-9 text-gray-90 text-[32px];
}
&__panel {
@apply pt-8 px-0 overflow-x-hidden overflow-y-auto flex-1 overscroll-none
sm:pt-5;
}
&__bottom {
@apply flex flex-col border-b border-solid border-gray-25 p-6 text-tiny font-semibold gap-2;
}
&__logout-link {
@apply block font-semibold whitespace-nowrap mt-5 mx-6 mb-3.5 px-4 py-2;
.mdi {
@apply leading-normal text-body-2;
}
.logout-text {
@apply ml-2 text-body-2;
}
&:hover {
@apply bg-primary text-white rounded-md;
}
}
&__button {
@apply bg-white border border-solid border-gray-25 rounded-full top-6 -right-4 text-primary p-1.5;
display: none !important;
font-size: 20px;
line-height: 20px;
position: absolute !important;
z-index: 11;
&:hover,
&:active {
@apply border-primary;
}
&.p-button.p-button-icon-only {
@apply h-8 p-0 w-8;
}
.p-button-label {
@apply hidden;
}
.p-togglebutton-input {
@apply appearance-none absolute top-0 left-0 w-full h-full p-0 m-0 opacity-0 outline-0 outline-none;
z-index: 1;
}
.p-button {
@apply bg-white p-0 text-primary;
}
}
.p-panelmenu {
@apply min-w-[15rem];
.p-panelmenu-header {
> .p-panelmenu-header-content a {
@apply gap-4 pl-8 py-3 pr-6 mb-1 flex-nowrap;
.p-submenu-icon {
@apply order-3 rotate-90 text-body-2 font-semibold;
}
.p-menuitem-icon {
@apply order-1 text-body-2 font-semibold;
}
.p-menuitem-text {
@apply order-2 grow text-body-2 font-semibold whitespace-nowrap;
}
&.router-link-active,
&[aria-expanded="true"],
&:hover{
@apply bg-support-1 border-l-4 border-primary border-solid pl-7 text-primary;
}
&[aria-expanded="true"] {
.p-submenu-icon {
@apply rotate-180;
}
}
}
}
.p-panelmenu-content {
.p-menuitem {
.p-menuitem-link {
@apply pl-8 py-3 pr-6;
.p-menuitem-text {
@apply text-body-2;
}
&.router-link-active-exact,
&:hover {
@apply text-primary;
}
}
}
}
}
}
.app-sidebar__topbar-button {
@apply text-center sm:hidden;
}
#app {
.app-main {
@apply overflow-hidden;
}
&.app--sidebar-inactive {
.app-sidebar {
@apply hidden
sm:block sm:w-[88px];
.p-panelmenu-header {
> .p-panelmenu-header-content a {
.p-submenu-icon {
@apply sm:hidden;
}
.p-menuitem-text {
@apply sm:hidden;
}
}
}
&__bottom {
@apply p-0;
* {
@apply hidden;
}
}
&__logout-link {
@apply sm:mx-5 sm:my-3 sm:py-3 sm:px-3 text-center;
.logout-text {
@apply sm:hidden sm:mr-0;
}
}
}
.app-sidebar__topbar-button {
.mdi.mdi-close {
&::before {
content: "\F035C";
}
}
}
.app-main {
@apply overflow-auto;
}
}
}
@media (min-width: 640px) {
.app-sidebar {
&__button {
display: inline-flex !important;
position: absolute !important;
}
}
}