{"id":254,"date":"2017-11-24T13:07:34","date_gmt":"2017-11-24T13:07:34","guid":{"rendered":"http:\/\/www.appsolem.nl\/?p=254"},"modified":"2021-01-30T10:17:23","modified_gmt":"2021-01-30T11:17:23","slug":"bootstrap-4","status":"publish","type":"post","link":"https:\/\/appsolem.nl\/?p=254","title":{"rendered":"Bootstrap 4"},"content":{"rendered":"<p>Not happy with the responsive handling of the app in the browser I decided to go the Bootstrap route. So I have been busy the last weeks going from a custom html\/css interface to a bootstrap interface. And I am very happy with the result. Custom theme via SASS works very wel, and for those little things I really want to customise I just left it in a separate css file.<\/p>\n<p>Did some customisations for the bootstrap modals because I wanted to have multiple layers of modals :<\/p>\n<blockquote><p>$(document).on(&#8216;show.bs.modal&#8217;, &#8216;.modal&#8217;, function () {<br \/>\nvar zIndex = 1040 + (10 * $(&#8216;.modal:visible&#8217;).length);<br \/>\n$(this).css(&#8216;z-index&#8217;, zIndex);<br \/>\nsetTimeout(function() { $(&#8216;.modal-backdrop&#8217;).not(&#8216;.modal-stack&#8217;).css(&#8216;z-index&#8217;, zIndex &#8211; 1).addClass(&#8216;modal-stack&#8217;);<br \/>\n}, 0);<br \/>\n});<\/p><\/blockquote>\n<p>This handles the z-index of the modals and nicely adds them on top of each other. So all in all, lot of work but a much better user experience. \u00a0(Source :\u00a0<a href=\"https:\/\/stackoverflow.com\/questions\/19305821\/multiple-modals-overlay\">https:\/\/stackoverflow.com\/questions\/19305821\/multiple-modals-overlay<\/a>\u00a0)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not happy with the responsive handling of the app in the browser I decided to go the Bootstrap route. So [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts\/254"}],"collection":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254"}],"version-history":[{"count":1,"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}