mirror of
https://github.com/rowtype-yoga/ry-blocks.git
synced 2024-09-11 21:38:06 +03:00
Sidebar CSS
This commit is contained in:
parent
8d6aa2fe4a
commit
ac97ca36c7
@ -13,6 +13,7 @@ derive instance eqSidebarSide :: Eq SidebarSide
|
||||
type Props :: forall k. (Type -> k) -> Row k -> Row k
|
||||
type Props f r =
|
||||
( css ∷ f Style
|
||||
, sideBarCss :: f Style
|
||||
, space ∷ f String
|
||||
, side ∷ f SidebarSide
|
||||
, sideWidth ∷ f String
|
||||
@ -57,6 +58,7 @@ sidebar props = styles <>? props.css
|
||||
, flexBasis: props.sideWidth # foldMap str
|
||||
}
|
||||
<> foldMap (nest <<< { flexBasis: _ } <<< str) props.sideWidth
|
||||
<> foldMap nested props.sideBarCss
|
||||
}
|
||||
<> case side of
|
||||
SidebarLeft -> css { "& > * > :last-child": nonSidebarStyle }
|
||||
|
Loading…
Reference in New Issue
Block a user