@dashboard-page-content-background: @global-background; @dashboard-z-index: @global-z-index - 21; @dashboard-header-height: var(--header-height); @dashboard-primary-background: @global-primary-background; @dashboard-primary-gradient: @global-primary-gradient; @dashboard-primary-inverse-color: @global-inverse-color; @dashboard-sidebar-background: @global-inverse-color; @dashboard-sidebar-border-width: @global-border-width; @dashboard-sidebar-border: @global-border; @dashboard-sidebar-width: 280px; @dashboard-sidebar-mini-width: 125px; @dashboard-sidebar-mini-width-s: 100px; @dashboard-menu-section-margin: 10px; @dashboard-menu-section-font-size: @global-small-font-size; @dashboard-menu-section-item-line-height: @global-control-small-height; @dashboard-menu-section-item-padding-vertical: 5px; @dashboard-menu-section-item-padding-horizontal: 20px; @dashboard-menu-section-item-parent-icon-color: @global-meta-color; @dashboard-menu-section-item-color-hover: @dashboard-primary-background; @dashboard-menu-section-icon-padding: 6px; @dashboard-menu-section-icon-border-radius: @global-border-radius; @dashboard-menu-section-icon-color: @global-meta-color; @dashboard-menu-section-sublist-padding-left: @nav-sublist-padding-left + @dashboard-menu-section-icon-padding; @dashboard-menu-section-sublist-margin-right: @dashboard-menu-section-item-padding-horizontal; @dashboard-menu-section-sublist-border-width: 3px; @dashboard-menu-section-sublist-border-radius: 40px; @dashboard-menu-section-sublist-border: fade(@dashboard-primary-background, 30%); @dashboard-menu-section-sublist-item-padding-vertical: 5px; @dashboard-menu-section-sublist-item-padding-horizontal: 15px; @dashboard-menu-section-sublist-item-border-radius: @global-small-border-radius; @dashboard-menu-section-sublist-item-background-hover: fade(@dashboard-primary-background, 10%); @dashboard-menu-section-sublist-item-color-hover: @dashboard-primary-background; @dashboard-menu-section-sublist-item-background-active: fade(@dashboard-primary-background, 10%); @dashboard-menu-section-sublist-item-color-active: @dashboard-primary-background; @dashboard-page-content-sticky-border-width: @global-border-width; @dashboard-page-content-sticky-border: @global-border; @dashboard-page-content-header-info-height: @global-header-height - 20px; @dashboard-page-content-header-info-img-max-height: @dashboard-page-content-header-info-height; @dashboard-page-content-header-info-img-max-width: 180px; @dashboard-pages: #page_content, openaire-user > user > div, openaire-error > div; @dashboard-elements: #page_content .message, bottom > div; .sidebar_main_swipe { #sidebar_main { #sidebar_content { width: @dashboard-sidebar-width; position: fixed; top: 0; bottom: 0; left: 0; padding-top: @dashboard-header-height; z-index: @dashboard-z-index; background: @dashboard-sidebar-background; border-right: @dashboard-sidebar-border-width solid @dashboard-sidebar-border; transition: 0.5s; transition-property: width; overflow-y: auto; } .menu_section { margin-left: @dashboard-menu-section-margin; position: relative; font-size: @dashboard-menu-section-font-size; & > ul > li { & > a { position: relative; padding: @dashboard-menu-section-item-padding-vertical @dashboard-menu-section-item-padding-horizontal; line-height: @dashboard-menu-section-item-line-height; &:not(.uk-flex) { display: block; } & .menu-icon { display: block; padding: @dashboard-menu-section-icon-padding; border-radius: @dashboard-menu-section-icon-border-radius; background-color: transparent; color: @dashboard-menu-section-icon-color; } } &.uk-parent { & > a { padding: @dashboard-menu-section-item-padding-vertical (3*@dashboard-menu-section-item-padding-horizontal) @dashboard-menu-section-item-padding-vertical @dashboard-menu-section-item-padding-horizontal; &::after { color: @dashboard-menu-section-item-parent-icon-color; } &:not(.uk-flex)::after { position: absolute; right: (@dashboard-menu-section-item-padding-horizontal/2); top: 50%; transform: translate(-50%, -50%); line-height: (@dashboard-menu-section-item-line-height - 10px); } } & .uk-nav-sub { margin-right: @dashboard-menu-section-sublist-margin-right; padding-left: @dashboard-menu-section-sublist-padding-left; position: relative; & a { border-radius: @dashboard-menu-section-sublist-item-border-radius; padding: @dashboard-menu-section-sublist-item-padding-vertical @dashboard-menu-section-sublist-item-padding-horizontal; } & > li:hover > a { background-color: @dashboard-menu-section-sublist-item-background-hover; color: @dashboard-menu-section-sublist-item-color-active; } & > li.uk-active > a { background-color: @dashboard-menu-section-sublist-item-background-active; color: @dashboard-menu-section-sublist-item-color-hover; } &:before { content: ""; left: @dashboard-menu-section-item-padding-horizontal + 2*@dashboard-menu-section-icon-padding; top: 0; position: absolute; height: 95%; border-left: @dashboard-menu-section-sublist-border-width solid @dashboard-menu-section-sublist-border; border-radius: @dashboard-menu-section-sublist-border-radius; } } } &:hover:not(.uk-active) > a { color: @dashboard-menu-section-item-color-hover; & .menu-icon { color: @dashboard-menu-section-item-color-hover; } } &.uk-active > a { & .menu-icon { background-color: @dashboard-primary-background; background-image: @dashboard-primary-gradient; color: @dashboard-primary-inverse-color; } } } } } @{dashboard-pages}, @{dashboard-elements} { padding-left: @dashboard-sidebar-width; transition: 0.5s; } #page_content { .set-blur-background(@dashboard-page-content-background, 80%); .message { top: 50%; left: 50%; transform: translate(-50%, -50%); position: absolute; padding-left: calc(@dashboard-sidebar-width - 100px); padding-right: @global-small-gutter; text-align: center; } #page_content_header.uk-sticky, #page_content_actions.uk-sticky { z-index: @dashboard-z-index; &.uk-active { border-bottom: @dashboard-page-content-sticky-border-width solid @dashboard-page-content-sticky-border; .uk-tab { margin-bottom: 0; } *:last-child.uk-tab:before { content: none; } } } #page_content_header { overflow-x: hidden; .info { height: @dashboard-page-content-header-info-height; overflow: hidden; img { max-height: @dashboard-page-content-header-info-img-max-height; max-width: @dashboard-page-content-header-info-img-max-width; } } } } @{dashboard-pages} { min-height: calc(100vh - @dashboard-header-height); background-color: @dashboard-page-content-background; position: relative; z-index: @dashboard-z-index - 1; } /* No sidebar */ &:not(.sidebar_main_active):not(.sidebar_mini) { @{dashboard-pages}, @{dashboard-elements} { padding-left: 0; } #sidebar_main #sidebar_content { display: none; width: 0; } } /* Mini Sidebar*/ &.sidebar_mini { #sidebar_main #sidebar_content { width: @dashboard-sidebar-mini-width; } @{dashboard-pages}, @{dashboard-elements} { padding-left: @dashboard-sidebar-mini-width; } } @media (max-width: @breakpoint-small - 1px) { #sidebar_main #sidebar_content { width: @dashboard-sidebar-mini-width-s !important; } @{dashboard-pages}, @{dashboard-elements} { padding-left: @dashboard-sidebar-mini-width-s !important; } #page_content .message { padding-right: 0; } } }