mirror of
https://github.com/correl/elm-mdl.git
synced 2025-01-12 19:25:47 +00:00
Ran through elm-format
This commit is contained in:
parent
760ca47a24
commit
7eecb28745
1 changed files with 27 additions and 21 deletions
|
@ -1,29 +1,35 @@
|
|||
module Demo.Badges where
|
||||
module Demo.Badges (..) where
|
||||
|
||||
import Html exposing (..)
|
||||
import Html.Attributes exposing (class, style, key)
|
||||
import Material.Badge as Badge
|
||||
import Material.Style exposing (..)
|
||||
import Material.Icon as Icon
|
||||
|
||||
|
||||
-- VIEW
|
||||
|
||||
|
||||
view : List Html
|
||||
view = [ div [][p [][]
|
||||
, styled span [Badge.withBadge "2"] [ ] [ text "Span with badge" ]
|
||||
, p [][]
|
||||
, styled span [Badge.withBadge "22", Badge.noBackground] [ ] [ text "Span with no background badge" ]
|
||||
, p [][]
|
||||
, styled span [Badge.withBadge "33", Badge.overlap] [ ] [ text "Span with badge overlap" ]
|
||||
, p [][]
|
||||
, styled span [Badge.withBadge "99", Badge.overlap, Badge.noBackground] [ ] [ text "Span with badge overlap and no background" ]
|
||||
, p [][]
|
||||
, styled span [Badge.withBadge "♥"] [ ] [ text "Span with HTML symbol - Black heart suit" ]
|
||||
, p [][]
|
||||
, styled span [Badge.withBadge "→"] [ ] [ text "Span with HTML symbol - Rightwards arrow" ]
|
||||
, p [][]
|
||||
, styled span [Badge.withBadge "Δ"] [ ] [ text "Span with HTML symbol - Delta" ]
|
||||
, p [][]
|
||||
, span [][text "Icon with badge"]
|
||||
, Icon.view "face" [Icon.size24, Badge.withBadge "33", Badge.overlap ] []
|
||||
]
|
||||
]
|
||||
view =
|
||||
[ div
|
||||
[]
|
||||
[ p [] []
|
||||
, styled span [ Badge.withBadge "2" ] [] [ text "Span with badge" ]
|
||||
, p [] []
|
||||
, styled span [ Badge.withBadge "22", Badge.noBackground ] [] [ text "Span with no background badge" ]
|
||||
, p [] []
|
||||
, styled span [ Badge.withBadge "33", Badge.overlap ] [] [ text "Span with badge overlap" ]
|
||||
, p [] []
|
||||
, styled span [ Badge.withBadge "99", Badge.overlap, Badge.noBackground ] [] [ text "Span with badge overlap and no background" ]
|
||||
, p [] []
|
||||
, styled span [ Badge.withBadge "♥" ] [] [ text "Span with HTML symbol - Black heart suit" ]
|
||||
, p [] []
|
||||
, styled span [ Badge.withBadge "→" ] [] [ text "Span with HTML symbol - Rightwards arrow" ]
|
||||
, p [] []
|
||||
, styled span [ Badge.withBadge "Δ" ] [] [ text "Span with HTML symbol - Delta" ]
|
||||
, p [] []
|
||||
, span [] [ text "Icon with badge" ]
|
||||
, Icon.view "face" [ Icon.size24, Badge.withBadge "33", Badge.overlap ] []
|
||||
, Icon.view "face" [ Icon.size48, Badge.withBadge "33", Badge.overlap ] []
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue