mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-01 09:12:33 +03:00
Reorder for clarity
This commit is contained in:
parent
fbfccc5c49
commit
c20caf4980
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user