diff --git a/css/jquery.uls.css b/css/jquery.uls.css index 7099d96..7a7d402 100644 --- a/css/jquery.uls.css +++ b/css/jquery.uls.css @@ -26,12 +26,30 @@ background-clip: padding-box; } -/* .uls-wide { min-width: 715px; width: 45%; } -*/ + +.uls-medium { + min-width: 360px; + width: 30%; +} + +/* Override the grid */ +.uls-medium.grid .row { + min-width: 300px; +} + +.uls-narrow { + min-width: 180px; + width: 20%; +} + +/* Override the grid */ +.uls-narrow.grid .row { + min-width: 150px; +} .uls-title-region a { padding-left: 15px; diff --git a/examples/index-mobile.html b/examples/index-mobile.html index d6be71f..91b2b22 100644 --- a/examples/index-mobile.html +++ b/examples/index-mobile.html @@ -41,7 +41,6 @@ $( '.uls-trigger' ).click( function () { //Hacks I need to make afterwards. ULS API should be probably modified to allow optional classes and not force position: $( '.uls-menu' ) - .removeClass( 'uls-wide' ) .addClass( 'uls-mobile' ) .css( 'left', '2.5%' ); }); diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index 7aeee4a..e259728 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -25,7 +25,7 @@ // Region numbers in id attributes also appear in the langdb. /*jshint multistr:true */ - template = '