Skip to content

Commit

Permalink
use 100dvh instead of 100vh globally
Browse files Browse the repository at this point in the history
  • Loading branch information
christianboyle committed Dec 3, 2024
1 parent 86b8015 commit 25b2769
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion dist/css/bootstrap-grid.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-grid.rtl.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-reboot.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-reboot.rtl.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap-utilities.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-utilities.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap-utilities.rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-utilities.rtl.css.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.css.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/css/bootstrap.rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.rtl.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scss/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ $dropdown-border-color: $janus-color-secondary-background !default;
$dropdown-divider-bg: $janus-color-gray-200 !default;

$modal-fade-transform-mobile: translate(0, 0) !default;
$modal-hide-transform-mobile: translate(0, 100vh);
$modal-hide-transform-mobile: translate(0, 100dvh);

$modal-title-line-height: $janus-modal-title-line-height !default;
$modal-header-border-color: transparent !default;
Expand Down
4 changes: 2 additions & 2 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ $utilities: map-merge(
"viewport-height": (
property: height,
class: vh,
values: (100: 100vh)
values: (100: 100dvh)
),
"min-viewport-height": (
property: min-height,
class: min-vh,
values: (100: 100vh)
values: (100: 100dvh)
),
// scss-docs-end utils-sizing
// Flex utilities
Expand Down
2 changes: 1 addition & 1 deletion scss/mixins/_backdrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
left: 0;
z-index: $zindex;
width: 100vw;
height: 100vh;
height: 100dvh;
background-color: $backdrop-bg;

// Fade for backdrop
Expand Down
2 changes: 1 addition & 1 deletion site/assets/scss/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Override collapse behaviors
// stylelint-disable-next-line declaration-no-important
display: block !important;
height: subtract(100vh, 7rem);
height: subtract(100dvh, 7rem);
// Prevent focus styles to be cut off:
padding-left: .25rem;
margin-left: -.25rem;
Expand Down
2 changes: 1 addition & 1 deletion site/assets/scss/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
top: 5rem;
right: 0;
z-index: 2;
height: subtract(100vh, 7rem);
height: subtract(100dvh, 7rem);
overflow-y: auto;
}

Expand Down

0 comments on commit 25b2769

Please sign in to comment.