Files
landing_page/qdrant-landing/themes/qdrant/static/css/blocks/_documentation.scss
T
treanandAndrey Vasnetsov eb148d545f Foldable documentation menu for mobiles (#353)
* foldable documentation menu for mobiles

* regenerated css

* Update qdrant-landing/themes/qdrant/layouts/partials/docs_sidebar.html

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>

---------

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
2023-10-23 13:39:30 +02:00

151 lines
2.7 KiB
SCSS

@use "../mixins/mixins" as mixins;
@use "../helpers/functions" as lib;
.documentation {
padding-top: 2rem;
margin-top: 0.5rem;
border-top: 1px solid var(--brand-light-grey);
&__article {
@include mixins.content-reset;
font-family: $font-family-content;
font-size: lib.rem(16);
font-weight: 400;
line-height: lib.rem(32);
@include mixins.content-image;
h1 {
font-size: 2.25rem;
}
h2 {
font-size: 1.75rem;
}
h3 {
font-size: 1.25rem;
}
h4 {
font-size: 1.25rem;
}
h5 {
font-size: 1.25rem;
}
h6 {
font-size: 1.25rem;
}
}
&__sidebar-inner {
display: none;
top: lib.rem(8);
@include media-breakpoint-up(md) {
display: block;
}
}
&__sidebar-list {
@include media-breakpoint-up(md) {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
scroll-behavior: smooth;
overflow-y: scroll;
max-height: calc(100vh - 90px);
}
&::-webkit-scrollbar {
display: none;
}
&::-webkit-scrollbar {
width: 1px;
}
&::-webkit-scrollbar-thumb {
background: var(--brand-gray);
}
&:hover {
scrollbar-width: thin; /* Firefox */
scrollbar-color: var(--brand-gray) var(--brand-mid-grey) !important;
&::-webkit-scrollbar {
display: block;
}
}
@media (hover: none) {
scrollbar-width: thin; /* Firefox */
scrollbar-color: var(--brand-gray) var(--brand-mid-grey) !important;
&::-webkit-scrollbar {
display: block;
}
}
}
&__sidebar-link-group {
& > summary {
list-style: none;
margin-right: 10px;
position: relative;
&::-webkit-details-marker {
display: none;
}
&:after {
display: block;
width: lib.rem(10);
height: lib.rem(20);
position: absolute;
top: 6px;
right: 0;
content: "\f0da";
text-align: center;
color: #272727;
font-family: 'Font Awesome 5 Free';
font-size: lib.rem(14);
font-weight: 600;
}
}
&[open] > summary {
&:after {
content: "\f0d7";
}
}
}
&__sidebar-delimiter {
font-size: 1rem;
font-weight: 600;
padding-top: 1rem;
padding-bottom: 0.3rem;
}
&__sidebar-toggle {
& i:after {
display: inline-block;
width: lib.rem(18);
height: lib.rem(18);
content: "\f078";
text-align: center;
font-family: 'Font Awesome 5 Free';
font-size: lib.rem(18);
font-weight: 600;
color: white;
font-style: normal;
}
&.active {
& i:after {
content: "\f077";
}
}
}
}