Files
landing_page/qdrant-landing/themes/qdrant-2024/assets/css/partials/_menu.scss
T
aa1acf0acb Created Dev-portal pages (#1219)
* Created Dev-portal pages

* changed structure of documents for dev-portal section, renamed dev-portal to docs, related template changes

* keeping learn section for future usage

* update dev-portal and documents

* added feedback and breadcrumbs components

* used the docs-side menu partial on documentation pages, and added active state to the docs-header links

* search console on docs

* small fixes

* assigned partitions, css fix

* fix links on the core page

* update links for cloud

* update links for build

* Reference -> API Reference

* [WIP] Dev portal light theme (#1250)

* light theme - docs side menu

* background fix

* wip: updating layout

* layout update

* light theme

* card titles with a link

* upd page-search package

* simplified header

* fixes

* TOC scroll spy (#1259)

* scroll spy on table of contents

* packages versions fix

* custom scroll spy for toc

* make spy work again

---------

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

* limit toc depth to 3

* thin scrollbar

* No dev template (#1266)

* divided the docs template into smaller partials, increased reusability

* removed docs section, moved all to the documentation

* review fixes

* review fixes

---------

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

* side panel more compact

* toc margin bottom fix

* Refactoring and renaming (#1277)

* renamed and moved partials, fixed link

* refactoring: docs-card

* fix

* fix urls

* disable scrollbar on table of content

* added scrollbar colors for light theme (#1280)

* fix language

* Dev portal fixes (#1285)

* cards fixes

* moved files, fixed paddings

* fix for my fix

* external header links

* fix

---------

Co-authored-by: trean <trean.mi@gmail.com>
Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
Co-authored-by: davidmyriel <davidmyriel@gmail.com>
2024-11-14 18:59:28 +01:00

181 lines
3.3 KiB
SCSS

@use '../mixins/mixins' as mixins;
@use '../helpers/functions' as *;
.menu-link {
text-decoration: none;
color: $neutral-98;
cursor: pointer;
&:hover,
&.active {
color: $primary-50;
}
}
.main-menu {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
flex-shrink: 0;
position: relative;
padding-top: pxToRem(12);
padding-bottom: pxToRem(12);
padding-left: pxToRem(20);
padding-right: pxToRem(20);
background: linear-gradient(180deg, #090d19, rgba(9, 13, 25, 0));
z-index: 1;
&__trigger {
outline: none;
border: none;
width: pxToRem(40);
height: pxToRem(40);
padding: 0 8px;
border-radius: 8px;
z-index: 1;
background: linear-gradient($neutral-20, #0e1424);
}
&__links {
display: none;
gap: calc($spacer / 2);
position: relative;
margin-bottom: 0;
}
&__item {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
flex-shrink: 0;
margin: 0 $spacer;
position: relative;
color: $neutral-98;
line-height: 1.5;
white-space: nowrap;
@include mixins.transitionAll(300ms);
&:hover {
.main-menu__submenu {
display: flex;
}
}
}
&__submenu {
display: none;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
padding: pxToRem(24);
position: absolute;
border-radius: 12px;
border: 1px solid $neutral-90;
background: $neutral-98;
box-shadow:
0 1px 2px 0 rgba(22, 30, 51, 0.1),
0 10px 20px 0 rgba(22, 30, 51, 0.1);
top: 48px;
&:before {
content: '';
display: block;
position: absolute;
top: -7px;
left: 50%;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid $neutral-98;
transform: translateX(-50%);
}
&:after {
content: '';
display: block;
position: absolute;
width: 100%;
height: 30px;
top: -30px;
left: 0;
}
}
&__submenu-item {
width: 100%;
list-style: none;
margin-bottom: pxToRem(4);
&:last-of-type {
margin-bottom: 0;
}
& a {
display: flex;
height: 2.5rem;
line-height: 1;
align-items: center;
border-radius: pxToRem(4);
color: $neutral-20;
padding: 0.5rem;
}
img {
display: block;
width: auto;
height: 1rem;
color: $primary-50;
margin-top: 0.3rem;
margin-bottom: 0.2rem;
margin-right: pxToRem(12);
}
&:hover {
a {
background: $neutral-94;
color: $primary-50;
}
}
}
&__section-link {
padding: 0.5rem;
margin-bottom: pxToRem(4);
text-transform: uppercase;
a {
line-height: $font-size-s;
}
}
&__buttons {
display: none;
align-items: center;
justify-content: flex-end;
flex-wrap: nowrap;
flex-shrink: 0;
gap: $spacer;
}
}
@include media-breakpoint-up(xl) {
.main-menu {
padding-top: $spacer * 2;
padding-bottom: $spacer * 2;
padding-left: $spacer * 1.5;
padding-right: $spacer * 1.5;
&__links {
display: flex;
}
&__buttons {
display: flex;
}
&__trigger {
display: none;
}
}
}