Reorder for clarity

This commit is contained in:
Tessa Kelly 2018-06-15 11:36:41 -07:00
parent fbfccc5c49
commit c20caf4980

View File

@ -469,18 +469,6 @@ type CssClasses
| PremiumClass
type CheckboxImage
= CheckboxUnchecked
| CheckboxChecked
| CheckboxCheckedPartially
| PremiumUnlocked
| PremiumFlag
| CheckWhite
| PremiumLocked
| PremiumKey
| CheckboxLockOnInside
{-| -}
type Theme
= Square ColorTheme
@ -588,6 +576,15 @@ styles =
|> Nri.Ui.Styles.V1.stylesWithAssets "checkbox-"
-- ICONS used instead of default browser implementations
backgroundImage : Assets r -> CheckboxImage -> Css.Style
backgroundImage assets checkboxImage =
property "background-image" (Nri.Ui.AssetPath.Css.url <| checkboxAssetPath assets checkboxImage)
{-| The assets used in this module.
-}
type alias Assets r =
@ -604,9 +601,16 @@ type alias Assets r =
}
backgroundImage : Assets r -> CheckboxImage -> Css.Style
backgroundImage assets checkboxImage =
property "background-image" (Nri.Ui.AssetPath.Css.url <| checkboxAssetPath assets checkboxImage)
type CheckboxImage
= CheckboxUnchecked
| CheckboxChecked
| CheckboxCheckedPartially
| PremiumUnlocked
| PremiumFlag
| CheckWhite
| PremiumLocked
| PremiumKey
| CheckboxLockOnInside
checkboxAssetPath : Assets r -> CheckboxImage -> Asset