Skip to content

Commit

Permalink
Adjust style for medium-sized laptop screens
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla committed Oct 14, 2024
1 parent db97da9 commit 1137141
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docusaurus/src/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
}
}

@mixin medium-to-intermediate {
@media (min-width: 997px) and (max-width: 1298px) {
@content;
}
}

/** Mixin: Responsive */
@mixin large-up {
@media (min-width: 1536px) {
Expand Down
37 changes: 37 additions & 0 deletions docusaurus/src/scss/custom-search-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,43 @@
}
}

@include medium-to-intermediate {
.my-custom-search-bar {
max-width: 200px;
margin-top: 10px;
margin-bottom: 10px;

.DocSearch-Button,
.kapa-widget-button {
* {
font-size: 12px !important;
}
}

.kapa-widget-button {
position: relative;
top: -1px;
svg {
width: 12px;
margin-left: 4px;
// height: 10px;
}
}
.DocSearch-Button {
svg {
margin-right: -4px;
width: 12px;
height: 12px;
}
&-Keys {
position: relative;
top: 0;
}
}

}
}

@include dark {
.my-custom-search-bar {
background: var(--strapi-neutral-0);
Expand Down
24 changes: 23 additions & 1 deletion docusaurus/src/scss/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
&__items {
max-width: var(--custom-navbar-items-width);
gap: var(--strapi-spacing-2);
height: 100%;
}

&__brand,
&__logo {
height: auto;
line-height: 0;
}

&__brand {
Expand Down Expand Up @@ -243,6 +243,28 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
}
}

@include medium-to-intermediate {
.navbar__logo img {
width: 150px;
height: 23px;
}
.navbar__items {
padding-right: 20px;

&--right {
padding-right: 0;
}
}
.navbar__item {
font-size: 13px;
line-height: 14px;
}
[class*="oggleIcon"] { // purposedly omitting the "t" because selectors vary in production and local envs
width: 20px;
height: 20px;
}
}

@include dark {
.kapa-widget-button {
button {
Expand Down

0 comments on commit 1137141

Please sign in to comment.