diff --git a/css/jquery.uls.css b/css/jquery.uls.css index 4e80c6b..6074e60 100644 --- a/css/jquery.uls.css +++ b/css/jquery.uls.css @@ -31,6 +31,26 @@ 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; } @@ -221,6 +241,10 @@ div.uls-region { float: right; } +.uls-menu.uls-narrow .uls-search-label { + background-size: 20px; +} + .uls-menu .uls-languagefilter-clear { /* @embed */ background: transparent url('../images/clear.png') no-repeat scroll left center; 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 8852d59..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 = '