hubl/src/styles/content/_index.scss

179 lines
3.6 KiB
SCSS
Raw Normal View History

main {
2021-04-01 05:10:59 +00:00
height: 100vh;
2020-12-11 17:13:03 +00:00
}
/* Styles of the right-hand menu + pages with that menu */
.with-sidebar {
flex-grow: 1;
display: flex;
flex-direction: row;
align-items: stretch;
/*margin-top: 50px;*/
overflow: hidden;
.views-container {
flex: 1 0 0;
/*-webkit-backface-visibility: hidden;*/
&.sidebar-is-closed {
2021-01-19 18:59:24 +00:00
@media(min-width: 768.01px) {
2020-12-11 17:13:03 +00:00
margin-left: -152px;
transform: translate(152px);
}
}
}
>div {
transition: all 0.5s;
}
2020-12-23 16:47:07 +00:00
.sidebar {
2020-12-11 17:13:03 +00:00
background: #F1F1F1;
2021-04-01 05:10:59 +00:00
height: calc(100vh - 50px);
2020-12-11 17:13:03 +00:00
transition: all 0.5s;
width: 217px;
2021-01-19 18:59:24 +00:00
@media (max-width: 768px) {
width: 65px;
}
2020-12-11 17:13:03 +00:00
ul {
li {
border-bottom: 1px solid #D6CECE;
&>a {
vertical-align: super;
}
}
&>li:first-child>a {
vertical-align: middle;
}
>solid-route {
&[active]>li {
background-color: var(--color-heading);
color: white;
}
&:hover:not([active])>li {
background: #E4E4E4;
}
}
}
2020-12-23 16:47:07 +00:00
/* Styles use with JS to open/close the sidebar */
2020-12-11 17:13:03 +00:00
&.jsRightMenu {
2021-01-19 18:59:24 +00:00
display: block;
solid-link[active] {
color: white;
background: var(--color-heading);
}
2021-01-22 13:50:03 +00:00
solid-link:not([active]):hover {
background: #e4e4e4;
}
2020-12-11 17:13:03 +00:00
}
&.jsRightMenu:not([open]) {
2021-01-19 18:59:24 +00:00
@media (min-width: 768.01px) {
transform: translate(152px);
}
/* Quick fix. When you got time, use animation on the span instead */
@media (max-width: 768px) {
ul>li:first-child>span,
ul>li:first-child>a {
visibility: hidden;
}
}
2020-12-11 17:13:03 +00:00
}
&.jsRightMenu[open] {
2021-01-19 18:59:24 +00:00
display: block;
bottom: 0;
right: 0;
2020-12-11 17:13:03 +00:00
2021-01-19 18:59:24 +00:00
@media(max-width: 768px) {
2020-12-11 17:13:03 +00:00
box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.12);
min-width: 60%;
position: fixed;
top: 50px;
z-index: 3000;
2020-12-11 17:13:03 +00:00
}
}
}
}
2021-04-01 05:10:59 +00:00
/* Add scrollbar to the left menu and to the content */
.scrollbar-nav,
.scrollbar-content {
overflow-y: auto;
2021-04-01 05:10:59 +00:00
height: calc(100vh - 50px); /* 50px == header's height */
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
2021-04-01 05:10:59 +00:00
}
2021-01-19 18:59:24 +00:00
2021-04-01 05:10:59 +00:00
.scrollbar-nav {
height: 100vh;
}
/* 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 */
}
}
solid-display-value-markdown {
p {
margin: 0;
}
}