Skip to content

Commit

Permalink
fix: style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Bagautdinov committed Jul 16, 2024
1 parent 0aeca29 commit 897ba70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/DocLayout/DocLayout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
flex-direction: column-reverse;

&__center + &__right:has(> .dc-subnavigation_invisible) {
margin-top: calc(0px - var(--dc-subheader-height));
margin-top: calc(0px - var(--dc-subheader-height, 52px));
}

&__right {
Expand Down
14 changes: 6 additions & 8 deletions src/components/SubNavigation/subnavigation.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../styles/variables";
@import "../../styles/mixins";
@import '../../styles/variables';
@import '../../styles/mixins';

.dc-subnavigation {
position: absolute;
Expand All @@ -13,8 +13,8 @@

gap: 4px;

background: var(--g-color-base-background, #FFF);
border-bottom: 1px solid var(--g-color-line-generic, #0000001A);
background: var(--g-color-base-background, #fff);
border-bottom: 1px solid var(--g-color-line-generic, #0000001a);

@media (min-width: map-get($screenBreakpoints, 'md')) {
display: none;
Expand All @@ -38,7 +38,7 @@
border: none;
outline: none;

transition: transform .1s ease-out, color .15s linear;
transition: transform 0.1s ease-out, color 0.15s linear;
transform: scale(1);

touch-action: manipulation;
Expand Down Expand Up @@ -72,7 +72,6 @@
}

&__title {
font-family: inherit;
@include text-size(subheader-2);
font-weight: 400;
}
Expand All @@ -95,6 +94,5 @@

&_invisible &__button {
margin-top: 8px;
}
}
}

0 comments on commit 897ba70

Please sign in to comment.