diff --git a/docs/src/assets/images/logo.svg b/docs/src/assets/images/logo.svg new file mode 100644 index 000000000..ad843d0e9 --- /dev/null +++ b/docs/src/assets/images/logo.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/docs/src/layouts/App/base.scss b/docs/src/layouts/App/base.scss index f6e645e61..342fae832 100644 --- a/docs/src/layouts/App/base.scss +++ b/docs/src/layouts/App/base.scss @@ -28,11 +28,11 @@ border: 4px solid rgba(0, 0, 0, 0); background-clip: padding-box; border-radius: 8px; - background-color: rgba($colorWhite, 0); + background-color: rgba($colorBlack, 0); } :hover::-webkit-scrollbar-thumb { - background-color: rgba($colorWhite, 0.1); + background-color: rgba($colorBlack, 0.1); } ::-webkit-scrollbar-button { diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index 3f5e4c82a..f605dc037 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -1,117 +1,110 @@ diff --git a/docs/src/layouts/App/style.scss b/docs/src/layouts/App/style.scss index 7c648ac6d..b33ffe123 100644 --- a/docs/src/layouts/App/style.scss +++ b/docs/src/layouts/App/style.scss @@ -2,14 +2,37 @@ $navHeight: 4.5rem; $mobileBreakPoint: 600px; $menuBreakPoint: 800px; -.app { - display: flex; - &__title { + +.app { + &__navigation { + position: fixed; + display: flex; + z-index: 1; + top: 0; + width: 100%; + height: $navHeight; + backdrop-filter: blur(10px); + border-bottom: 1px solid rgba($colorBlack, 0.1); + padding: 0 2rem; + + &::after { + content: ''; + z-index: -1; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: $colorWhite; + opacity: 0.8; + transform: translate3d(0,0,0); + pointer-events: none; + } + } + + &__content { display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 2rem; } &__name { @@ -45,20 +68,6 @@ $menuBreakPoint: 800px; &__search { position: relative; - display: flex; - align-items: center; - width: 100%; - height: 3rem; - overflow: hidden; - background-color: transparent; - border: 1px solid rgba($colorBlack, 0.1); - border-radius: 0.5rem; - padding: 0.5rem 0.75rem; - - &::after { - content: 'Search'; - color: rgba($colorBlack, 0.5); - } } &__search-docsearch { @@ -85,48 +94,48 @@ $menuBreakPoint: 800px; top: 0; align-self: flex-start; padding: 2rem; + padding-top: $navHeight + 2rem; height: 100vh; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; - border-right: 1px solid rgba($colorBlack, 0.1); } } - &__content { + &__main { flex: 1 1 auto; min-width: 0; } - &__top-bar { - display: flex; - flex-direction: column; - padding: 1rem 0; - position: sticky; - z-index: 2; - top: 0; - backdrop-filter: blur(10px); - max-height: 100vh; + // &__top-bar { + // display: flex; + // flex-direction: column; + // padding: 1rem 0; + // position: sticky; + // z-index: 2; + // top: 0; + // backdrop-filter: blur(10px); + // max-height: 100vh; - @media (min-width: $menuBreakPoint) { - padding: 1.5rem 0; - } + // @media (min-width: $menuBreakPoint) { + // padding: 1.5rem 0; + // } - &::after { - content: ''; - z-index: -1; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: $colorWhite; - opacity: 0.8; - transform: translate3d(0,0,0); - pointer-events: none; - } - } + // &::after { + // content: ''; + // z-index: -1; + // position: absolute; + // top: 0; + // left: 0; + // width: 100%; + // height: 100%; + // background-color: $colorWhite; + // opacity: 0.8; + // transform: translate3d(0,0,0); + // pointer-events: none; + // } + // } &__top-bar-inner { width: 100%; @@ -283,6 +292,7 @@ $menuBreakPoint: 800px; @media (min-width: $mobileBreakPoint) { padding: 2rem 0; + padding-top: $navHeight; } } @@ -290,17 +300,6 @@ $menuBreakPoint: 800px; border-top: 1px solid rgba($colorBlack, 0.1); } - &__page-footer { - font-size: 0.85rem; - padding: 1.5rem 0; - text-align: center; - border-top: 1px solid rgba($colorBlack, 0.1); - - a { - text-decoration: underline; - } - } - &__mobile-nav { padding: 1rem; flex: 1 1 auto; @@ -313,4 +312,9 @@ $menuBreakPoint: 800px; padding: 2rem; } } + + &__footer { + border-top: 1px solid rgba($colorBlack, 0.1); + padding: 2rem; + } }