Display: Fix sidebar sub menus styles

pull/5827/head
Angel Fernando Quiroz Campos 2 months ago
parent 175fdc6559
commit d7584fe391
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 10
      assets/css/app.scss
  2. 4
      assets/css/scss/_social.scss
  3. 4
      assets/css/scss/organisms/_menu.scss
  4. 7
      assets/css/scss/organisms/_sidebar.scss
  5. 6
      assets/vue/composables/sidebarMenu.js

@ -570,16 +570,6 @@ form .field {
display: none; display: none;
} }
.sub-item-indent {
padding-left: 20px;
}
.sub-item-indent.active {
background-color: #e0e0e0;
color: #333;
font-weight: bold;
}
.easy-donut { .easy-donut {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

@ -1039,10 +1039,6 @@
color: gray; color: gray;
} }
.icon-spacing {
margin-right: 8px;
}
#social-wall-container { #social-wall-container {
.tab { .tab {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;

@ -2,14 +2,14 @@
@apply bg-white px-0 py-2 border border-gray-25 rounded-sm w-52; @apply bg-white px-0 py-2 border border-gray-25 rounded-sm w-52;
.p-menuitem-link { .p-menuitem-link {
@apply p-3 duration-150 select-none flex cursor-pointer; @apply p-3 duration-150 select-none flex cursor-pointer items-center;
.p-menuitem-text { .p-menuitem-text {
@apply text-body-2; @apply text-body-2;
} }
.p-menuitem-icon { .p-menuitem-icon {
@apply mr-2; @apply mr-2 leading-none;
} }
.p-submenu-icon { .p-submenu-icon {

@ -120,6 +120,10 @@
.p-menuitem-link { .p-menuitem-link {
@apply pl-8 py-3 pr-6; @apply pl-8 py-3 pr-6;
.p-menuitem-icon {
@apply mr-2 leading-none;
}
.p-menuitem-text { .p-menuitem-text {
@apply text-body-2 @apply text-body-2
hover:text-primary; hover:text-primary;
@ -127,7 +131,8 @@
} }
} }
&.p-highlight { &.p-highlight,
&.p-focus {
> .p-menuitem-content { > .p-menuitem-content {

@ -132,9 +132,9 @@ export function useSidebarMenu() {
const styledSocialItems = socialItems.value.map((item) => { const styledSocialItems = socialItems.value.map((item) => {
const newItem = { const newItem = {
...item, ...item,
class: `sub-item-indent${isActive(item) ? ' active' : ''}`, class: isActive(item) ? "p-focus" : "",
icon: item.icon ? `${item.icon} icon-spacing` : null icon: item.icon ? item.icon : undefined,
}; }
if (newItem.isLink && newItem.route) { if (newItem.isLink && newItem.route) {
newItem.url = newItem.route newItem.url = newItem.route

Loading…
Cancel
Save