@openedx/paragon 23.17.0 → 23.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "23.17.0",
3
+ "version": "23.18.0",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -122,3 +122,27 @@ $indexes: map.merge(
122
122
  }
123
123
  }
124
124
  }
125
+
126
+ // Dynamic viewport
127
+ //
128
+ // Following the pattern of `vh-100` and `min-vh-100` from
129
+ // https://github.com/twbs/bootstrap/blob/v4-dev/scss/utilities/_sizing.scss
130
+ //
131
+ // More info on MDN
132
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/length#dynamic_viewport_units
133
+
134
+ .dvh-100 {
135
+ // fallback for browsers that don't support dynamic viewport units
136
+ height: 100vh !important;
137
+
138
+ // dynamic units for modern browsers
139
+ height: 100dvh !important;
140
+ }
141
+
142
+ .min-dvh-100 {
143
+ // fallback for browsers that don't support dynamic viewport units
144
+ min-height: 100vh !important;
145
+
146
+ // dynamic units for modern browsers
147
+ min-height: 100dvh !important;
148
+ }