Skip to content

Commit

Permalink
Search data adjustments and css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Yeshtukova committed Aug 3, 2022
1 parent af4850b commit 6fa0a9c
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 189 deletions.
1 change: 0 additions & 1 deletion src/docs/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ function initDocs() {

onSubmit: (result) => {
autocompleteNoResult.classList.remove('show')
window.open(`${result.url}`, '_self')
},
})

Expand Down
12 changes: 6 additions & 6 deletions src/docs/docs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import './src/main';

$content-width: 768px;
$nav-width: 300px;
$header-height: 151px;

.nsw-palette {
Expand Down Expand Up @@ -126,8 +127,7 @@ $header-height: 151px;
@include breakpoint($nsw-desktop-breakpoint) {
.nsw-container,
.nsw-header__container {
padding-left: rem(32px);
max-width: rem(1240px);
max-width: rem($content-width + $nav-width + 172px);
}

.nsw-header__container .nsw-header__inner {
Expand All @@ -145,8 +145,8 @@ $header-height: 151px;

&__nav {
@include breakpoint($nsw-desktop-breakpoint) {
min-width: rem(300px);
max-width: rem(300px);
min-width: rem($nav-width);
max-width: rem($nav-width);
}

&-wrapper {
Expand All @@ -156,7 +156,7 @@ $header-height: 151px;
top: rem($header-height);
bottom: 0;
left: 0;
width: rem(300px);
width: rem($nav-width);
overflow-y: auto;
border-right: 1px solid var(--nsw-grey-04);
background-color: var(--nsw-white);
Expand Down Expand Up @@ -337,7 +337,7 @@ $header-height: 151px;
flex-grow: 1;

@include breakpoint($nsw-desktop-breakpoint) {
padding: rem(48px) rem(52px);
padding: rem(48px) rem(16px) rem(48px) rem(52px);
}
}

Expand Down
Loading

0 comments on commit 6fa0a9c

Please sign in to comment.