javascript - Where is the app.css in DurandalJS that enables modals? -
i'm trying modal work in app using durandaljs (spa) framework , can't modal display correctly. currently, when modal opens, displays without blockout , fills browser horizontally.
("feeds", "new feed" button, , "logout" link should blocked out.)
i have read the docs few times , clue can find note below "the default modal context" section:
note: default modal context has required css positioning can found in app.css file. assumes target browser supports position: fixed. if target browsers not support this, should replace default modal context custom implementation.
it mentions "app.css" file... can't find it. have searched durandaljs's github repo , the app.css file doesn't have affect modal (for or bad). clues?
the content of durandal.css
should started. https://github.com/bluespire/durandal/blob/master/content/durandal.css
.modalblockout { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: black; opacity: 0; pointer-events: auto; -webkit-backface-visibility: hidden; -webkit-transition: opacity 0.1s linear; -moz-transition: opacity 0.1s linear; -o-transition: opacity 0.1s linear; transition: opacity 0.1s linear; } .modalhost { top: 50%; left: 50%; position: fixed; opacity: 0; -webkit-backface-visibility: hidden; -webkit-transition: opacity 0.1s linear; -moz-transition: opacity 0.1s linear; -o-transition: opacity 0.1s linear; transition: opacity 0.1s linear; } .messagebox { background-color: white; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; min-width: 300px; }
Comments
Post a Comment