feature: scrollbar on left-menu and content added

This commit is contained in:
gaelle morin 2021-01-12 11:25:09 +01:00
parent 8a9838a37f
commit df59033e06
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
6 changed files with 66 additions and 6 deletions

View File

@ -20,7 +20,7 @@ if endpoints.get
//- script(type="module" src="/lib/sib-event-component/sib-event.js" defer) //- script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
if endpoints.get.resources && endpoints.get.resourceskeywords && endpoints.get.resourcestypes if endpoints.get.resources && endpoints.get.resourceskeywords && endpoints.get.resourcestypes
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" defer) //- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" defer)
//- script(type="module" src="/lib/sib-resource/sib-resource.js" defer) //- script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
if endpoints.get.joboffers if endpoints.get.joboffers

View File

@ -47,7 +47,7 @@ html(lang="en")
header#header.segment.lg-full.padding-left-large.padding-right-large.shadow-small.text-disable-selection header#header.segment.lg-full.padding-left-large.padding-right-large.shadow-small.text-disable-selection
include views/partials/header.pug include views/partials/header.pug
nav#main__menu.segment.bg-color-heading.text-top.lg-quarter nav#main__menu.scrollbar-nav.segment.bg-color-heading.text-top.lg-quarter
include views/partials/menu-left.pug include views/partials/menu-left.pug
main#content.segment.lg-three-quarter.text-top.notLoggedIn main#content.segment.lg-three-quarter.text-top.notLoggedIn

View File

@ -96,4 +96,64 @@ main {
} }
} }
} }
} }
/* Add scrollbar to the left and to the content */
.scrollbar-nav,
.scrollbar-content {
overflow-y: auto;
height: calc(100vh - 72px); /* 72px == header's height */
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
/* Custom scrollbar of the left-menu*/
/* Works on Firefox*/
.scrollbar-nav {
scrollbar-width: thin;
scrollbar-color:#D6CECE var(--color-heading);
}
/* Works on Chrome, Edge, and Safari */
.scrollbar-nav {
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: var(--color-heading); /* color of the tracking area */
}
&::-webkit-scrollbar-thumb {
background-color:#D6CECE; /* color of the scroll thumb */
border-radius: 6px; /* roundness of the scroll thumb */
border: 3px solid var(--color-heading); /* creates padding around scroll thumb */
}
}
/* Custom scrollbar of the content */
/* Works on Firefox */
.scrollbar-content {
scrollbar-width: thin;
scrollbar-color:#D6CECE white; /* scroll thumb and track */
}
/* Works on Chrome, Edge, and Safari */
.scrollbar-content {
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: white; /* color of the tracking area */
}
&::-webkit-scrollbar-thumb {
background-color:#D6CECE; /* color of the scroll thumb */
border-radius: 6px; /* roundness of the scroll thumb */
border: 3px solid white; /* creates padding around scroll thumb */
}
}

View File

@ -1,4 +1,4 @@
.views-container.sidebar-is-closed .scrollbar-content.views-container.sidebar-is-closed
if endpoints.circles || (endpoints.get && endpoints.get.circles) if endpoints.circles || (endpoints.get && endpoints.get.circles)
#admin-circles(hidden, data-view="admin-circles") #admin-circles(hidden, data-view="admin-circles")
include partials/admin/page-admin-circles.pug include partials/admin/page-admin-circles.pug

View File

@ -1,4 +1,4 @@
.views-container.sidebar-is-closed .scrollbar-content.views-container.sidebar-is-closed
solid-ac-checker(permission='acl:Read', bind-resources) solid-ac-checker(permission='acl:Read', bind-resources)
#circle-chat(hidden, data-view="circle-chat") #circle-chat(hidden, data-view="circle-chat")
include partials/circle/page-circle-chat.pug include partials/circle/page-circle-chat.pug

View File

@ -1,4 +1,4 @@
.views-container.sidebar-is-closed .scrollbar-content.views-container.sidebar-is-closed
solid-ac-checker(permission='acl:Read', bind-resources) solid-ac-checker(permission='acl:Read', bind-resources)
#project-chat(hidden, data-view="project-chat") #project-chat(hidden, data-view="project-chat")
include partials/project/page-project-chat.pug include partials/project/page-project-chat.pug