diff --git a/docs/_assets/css/jqm-docs.css b/docs/_assets/css/jqm-docs.css index 750a0f82..ff977ab5 100644 --- a/docs/_assets/css/jqm-docs.css +++ b/docs/_assets/css/jqm-docs.css @@ -1,3 +1,9 @@ +/* jqm docs css + +Beware: lots of last-minute CSS going on in here +cobblers, shoes, +*/ + body { background: #dddddd; } .ui-mobile #jqm-home { background: #e5e5e5 url(../images/jqm-sitebg.png) top center repeat-x; } @@ -93,8 +99,18 @@ p.intro { /* docs site layout */ @media all and (min-width: 650px){ - .ui-mobile #jqm-homeheader {max-width: 340px;} - .ui-mobile .jqm-themeswitcher {float: right; + + .jqm-home { + position: absolute; + left: 10px; + top: 0; + } + + .ui-mobile #jqm-homeheader { + max-width: 340px; + } + .ui-mobile .jqm-themeswitcher { + float: right; } p.intro { border-top-color: #75ae18; @@ -110,6 +126,7 @@ p.intro { } .type-interior .ui-content { background-position: 45%; + overflow: hidden; } .content-secondary { text-align: left; @@ -124,6 +141,12 @@ p.intro { padding: 20px 4% 0 0; background: none; } + .type-index .content-secondary { + padding: 0; + } + .type-index .content-secondary .ui-listview { + margin: 0; + } .ui-mobile #jqm-homeheader { padding: 0; @@ -145,7 +168,6 @@ p.intro { .type-interior .content-primary { padding: 1.5em 6% 3em 0; margin: 0; - } /* fix up the collapsibles - expanded on desktop */ .content-secondary .ui-collapsible-heading { @@ -159,7 +181,10 @@ p.intro { margin: 0; padding: 0; } - + .type-interior .content-secondary .ui-li-divider { + padding-top: 1em; + padding-bottom: 1em; + } .type-interior .content-secondary { margin: 0; padding: 0; diff --git a/docs/_assets/js/jqm-docs.js b/docs/_assets/js/jqm-docs.js index f4036314..f67a7018 100644 --- a/docs/_assets/js/jqm-docs.js +++ b/docs/_assets/js/jqm-docs.js @@ -7,6 +7,10 @@ $('div').live('pagecreate',function(event){ appendEl = $(this).find('.ui-content'); } + if( appendEl.is("[data-position]") ){ + return; + } + $('Switch theme') .buttonMarkup({ 'icon':'gear', @@ -20,7 +24,7 @@ $('div').live('pagecreate',function(event){ $.themeswitcher(); }); } - event.stopPropagation(); + }); //collapse page navs after use @@ -31,7 +35,17 @@ $(function(){ }); function setDefaultTransition(){ - $.mobile.defaultPageTransition = $( window ).width() >= 650 ? "fade" : "slide"; + var winwidth = $( window ).width(), + trans ="slide"; + + if( winwidth >= 1000 ){ + trans = "none"; + } + else if( winwidth >= 650 ){ + trans = "fade"; + } + + $.mobile.defaultPageTransition = trans; } //set default documentation diff --git a/docs/about/accessibility.html b/docs/about/accessibility.html index 55d4de83..5294d44c 100755 --- a/docs/about/accessibility.html +++ b/docs/about/accessibility.html @@ -38,7 +38,7 @@
-

Demos & Docs Sections

+

More in this section