Skip to content

Commit

Permalink
chore(site): replace usages of --100vh hack with dvh units
Browse files Browse the repository at this point in the history
  • Loading branch information
fshovchko committed Feb 1, 2024
1 parent bd2e55b commit f8df5a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 0 additions & 3 deletions site/src/localdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import '@exadel/esl/modules/lib';
import './common/breakpoints';

import {
ESLVSizeCSSProxy,
ESLImage,
ESLMedia,
ESLToggleable,
Expand Down Expand Up @@ -56,8 +55,6 @@ import {ESLDemoAnchorLink} from './anchor/anchor-link';
import {ESLDemoBanner} from './banner/banner';
import {ESLDemoSwipeArea, ESLDemoWheelArea} from './esl-events-demo/esl-events-demo';

ESLVSizeCSSProxy.observe();

// Register Demo components
ESLDemoAutofocus.register();
ESLDemoSidebar.register();
Expand Down
7 changes: 4 additions & 3 deletions site/src/navigation/sidebar/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ esl-d-sidebar {
@media @md-xl {
position: relative;
top: 0;
/* stylelint-disable */
height: 100vh;
height: var(--100vh, 100vh);
/* stylelint-enable */
max-width: 72px;

@supports (height: 100dvh) {
height: 100dvh;
}
}

&.open {
Expand Down
7 changes: 4 additions & 3 deletions site/src/page/base-layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

body {
width: 100%;
/* stylelint-disable */
height: 100vh;
height: var(--100vh, 100vh);
/* stylelint-enable */

@supports (height: 100dvh) {
height: 100dvh;
}
}
}

Expand Down

0 comments on commit f8df5a5

Please sign in to comment.