Browse Source

Moving background

CSS_BASIC_PROPS
Shagen Ogandzhanian 3 years ago
parent
commit
7806156f4b
  1. 8
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt
  2. 14
      web/core/src/jsMain/kotlin/androidx/compose/web/css/properties/background.kt

8
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt

@ -33,14 +33,6 @@ fun StyleBuilder.color(value: CSSColorValue) {
property("color", value)
}
fun StyleBuilder.backgroundColor(value: CSSColorValue) {
property("background-color", value)
}
fun StyleBuilder.backgroundColor(value: String) {
property("background-color", value)
}
@Suppress("EqualsOrHashCode")
class CSSBorder : CSSStyleValue {
var width: CSSNumeric? = null

14
web/core/src/jsMain/kotlin/androidx/compose/web/css/properties/background.kt

@ -0,0 +1,14 @@
/*
* Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.compose.web.css
fun StyleBuilder.backgroundColor(value: CSSColorValue) {
property("background-color", value)
}
fun StyleBuilder.backgroundColor(value: String) {
property("background-color", value)
}
Loading…
Cancel
Save