Updated documentation

This commit is contained in:
James Burton 2020-11-15 17:44:56 +00:00
parent 7b327b3dcd
commit 0d0112b73b

View File

@ -45,8 +45,7 @@ instance ToJavascript Text where toJavascript = toJavascript . toJSON
-- | By default delete buttons have a @margin-left@ property of @0.75rem@. -- | By default delete buttons have a @margin-left@ property of @0.75rem@.
-- You can override this by specifying an alternative value in a class -- You can override this by specifying an alternative value in a class
-- which is then passed inside 'MultiSettings'. Note that you might have -- which is then passed inside 'MultiSettings'.
-- to use @!important@.
-- --
-- @since 1.6.0 -- @since 1.6.0
data MultiSettings site = MultiSettings data MultiSettings site = MultiSettings
@ -65,27 +64,26 @@ data MultiSettings site = MultiSettings
-- both the field and it's corresponding delete button. -- both the field and it's corresponding delete button.
-- --
-- The structure is illustrated by the following: -- The structure is illustrated by the following:
-- @ --
-- <div .#{wrapperClass}> -- > <div .#{wrapperClass}>
-- <div .#{wrapperClass}-inner> -- > <div .#{wrapperClass}-inner>
-- ^{fieldWidget} -- > ^{fieldWidget}
-- ^{deleteButton} -- > ^{deleteButton}
-- ^{maybeErrorMessages} -- > ^{maybeErrorMessages}
-- @
-- --
-- Each wrapper element has the same class which is automatically generated. This class -- Each wrapper element has the same class which is automatically generated. This class
-- is returned in the 'MultiView' should you wish to change the styling. The inner wrapper -- is returned in the 'MultiView' should you wish to change the styling. The inner wrapper
-- uses the same class followed by @-inner@. By default the wrapper and inner wrapper has -- uses the same class followed by @-inner@. By default the wrapper and inner wrapper has
-- classes are as follows: -- classes are as follows:
-- @ --
-- .#{wrapperClass} { -- > .#{wrapperClass} {
-- margin-bottom: 1rem; -- > margin-bottom: 1rem;
-- } -- > }
-- .#{wrapperClass}-inner { -- >
-- display: flex; -- > .#{wrapperClass}-inner {
-- flex-direction: row; -- > display: flex;
-- } -- > flex-direction: row;
-- @ -- > }
-- --
-- @since 1.6.0 -- @since 1.6.0
data MultiView site = MultiView data MultiView site = MultiView