Adds css breakpoint helper examples

This commit is contained in:
Tessa Kelly 2022-03-09 15:15:47 -08:00
parent d931c36603
commit b84f306cfd
2 changed files with 16 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module Nri.Ui.Message.V3 exposing
, view, Attribute
, icon, custom, testId, id
, hideIconForMobile, hideIconFor
, css
, css, notMobileCss, mobileCss, quizEngineMobileCss
, tiny, large, banner
, plaintext, markdown, html, httpError
, tip, error, alert, success, customTheme

View File

@ -46,6 +46,21 @@ init =
, use = Message.css
, default = "border: 1px dashed red;"
}
|> CommonControls.mobileCss
{ moduleName = "Message"
, use = Message.mobileCss
, default = "border: 2px solid orange;"
}
|> CommonControls.quizEngineMobileCss
{ moduleName = "Message"
, use = Message.quizEngineMobileCss
, default = "border: 4px solid yellow !important;"
}
|> CommonControls.notMobileCss
{ moduleName = "Message"
, use = Message.notMobileCss
, default = ""
}
}