@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/dist/core.css +8 -0
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/package.json +1 -1
- package/styles/scss/core/_utilities.scss +24 -0
package/package.json
CHANGED
|
@@ -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
|
+
}
|