From 4623985462ebbc0b20ff02c7705f651a2b3410eb Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Tue, 30 Nov 2021 11:34:20 +0100 Subject: [PATCH] web (breaking change): move `combine` and `feature` functions to GenericStyleSheetBuilder scope (in CSSMediaRule.kt) (#1508) Co-authored-by: Oleksandr Karpovich --- .../kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt index 24fd0e4f31..9b95780179 100644 --- a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt +++ b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/CSSMediaRule.kt @@ -97,7 +97,7 @@ inline fun GenericStyleSheetBuilder.media( media(feature(name, value), rulesBuild) } -fun feature( +fun GenericStyleSheetBuilder.feature( name: String, value: StylePropertyValue? = null ) = CSSMediaQuery.MediaFeature(name, value) @@ -110,7 +110,7 @@ inline fun GenericStyleSheetBuilder.media( media(combine(*mediaList), rulesBuild) } -fun combine( +fun GenericStyleSheetBuilder.combine( vararg mediaList: CSSMediaQuery ) = CSSMediaQuery.Combine(mediaList.toMutableList())