Separate the example code sections

This commit is contained in:
Tessa Kelly 2024-02-05 11:13:26 -07:00
parent fbc9ee61ec
commit 215eb970c3

View File

@ -128,7 +128,14 @@ codeSampleHeading =
viewCodeDetails : Html msg -> { sectionName : String, code : String } -> Html msg
viewCodeDetails ellieLink example =
details
[ css [ marginTop (px 10) ] ]
[ css
[ paddingTop (px 5)
, paddingBottom (px 5)
, borderBottom3 (px 1) solid Colors.gray45
, firstOfType [ marginTop (px 10) ]
, lastChild [ borderWidth zero, paddingBottom zero ]
]
]
[ summary [ css [ color Colors.yellow ] ]
[ Heading.h3
[ Heading.css [ display inline, color Colors.yellow ]