asp.net - Disable Durandal inline styling -
durandal appears automatically add following inline styling div elements wrapping data-views:
style="margin-left: 0px; margin-right: 0px; opacity: 1; display: block;"
this occurs in both durandal , john papa hot towel asp.net spa templates make use of durandal.
this inline styling overriding external stylesheet, need disable behavior. i'm assuming being injected 1 of javascript files, can't life of me seem figure out where.
anyone know how prevent inline styling being added?
this being set "entrance" transition (durandal/transitions/entrance.js). looks final end point transition values, , they're not being removed when transition complete.
you can avoid entirely not using transition. take couple of steps:
- in main.js, modify app.setroot() call remove 'entrance' parameter. prevent styling settings being added shell container
- in shell.html, remove transition setting compose binding. prevent styling settings being added individual views.
the other possibility create own transition more compatible css requirements.
Comments
Post a Comment