1
1
mirror of https://github.com/srid/ema.git synced 2024-12-01 15:13:36 +03:00

tailwind: appHead before twind

This commit is contained in:
Sridhar Ratnakumar 2021-04-29 14:50:33 -04:00
parent fe8a5c0a65
commit 2f0bb39b6a
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,9 @@
- Remove Ex03_Documentation.hs (moved to separate repo, `ema-docs`)
- Add `Ord` instance to `Slug`
- Helpers.Tailwind: add overflow-y-scroll to body
- Helpers.Tailwind
- add overflow-y-scroll to body
- Add twind shim *before* application's head
- Add Ex03_Basic.hs example
- Add default implementation based on Enum for `staticRoute`

View File

@ -42,8 +42,8 @@ layoutWith lang encoding twindShim appHead appBody = RU.renderHtml $ do
H.meta ! A.charset encoding
-- This makes the site mobile friendly by default.
H.meta ! A.name "viewport" ! A.content "width=device-width, initial-scale=1"
appHead
twindShim
appHead
-- The "overflow-y-scroll" makes the scrollbar visible always, so as to
-- avoid janky shifts when switching to routes with suddenly scrollable content.
H.body ! A.class_ "overflow-y-scroll" $ do