From 396f2bc4db1a2268bc4a6bba856edab01c999448 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 7 Apr 2025 21:12:07 -0700 Subject: [PATCH] Rename mh-* and mw-* to max-h/w-*, add additional width and height values Fixes #41330, fixes #40674. --- scss/_utilities.scss | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/scss/_utilities.scss b/scss/_utilities.scss index d43feeefe9..efb0ccd883 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -229,14 +229,25 @@ $utilities: map.merge( 50: 50%, 75: 75%, 100: 100%, - auto: auto + auto: auto, + min: min-content, + max: max-content, + fit: fit-content, ) ), "max-width": ( property: max-width, - class: mw, + class: max-w, values: (100: 100%) ), + "min-width": ( + property: min-width, + class: min-w, + values: ( + 0: 0, + 100: 100% + ) + ), "viewport-width": ( property: width, class: vw, @@ -255,14 +266,25 @@ $utilities: map.merge( 50: 50%, 75: 75%, 100: 100%, - auto: auto + auto: auto, + min: min-content, + max: max-content, + fit: fit-content, ) ), "max-height": ( property: max-height, - class: mh, + class: max-h, values: (100: 100%) ), + "min-height": ( + property: min-height, + class: min-h, + values: ( + 0: 0, + 100: 100%, + ), + ), "viewport-height": ( property: height, class: vh, -- 2.47.2