Skip to content

Commit

Permalink
Added detection for pre-BB OS6 and disabled box-shadow on form fields…
Browse files Browse the repository at this point in the history
… for those devices.
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Sep 16, 2012
1 parent 92e45ca commit 64c26c6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/grids/css/util-ie-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/grids/css/util-min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/js/jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion src/grids/sass/includes/_form.scss
Expand Up @@ -270,7 +270,16 @@
&:focus, &:active { @include box-shadow(darken($alert, 37%)); }
}
}


.bb-pre6 {
input, textarea, select {
@include box-shadow(none);
}
&:focus, &:active {
@include box-shadow(none);
}
}

// apply color to form text elements
.form-help-block, .form-text-inline, > label {
.form-confirm & { color: darken($summary, 5%); }
Expand Down
5 changes: 3 additions & 2 deletions src/js/pe-ap.js
Expand Up @@ -54,7 +54,7 @@
* @returns {void}
*/
_init: function () {
var hlinks, hlinks_same, hlinks_other, $this, url, target, init_on_mobileinit = false;
var $html = $('html'), hlinks, hlinks_same, hlinks_other, $this, url, target, init_on_mobileinit = false;

// Load polyfills that need to be loaded before anything else
pe.polyfills.init();
Expand All @@ -65,7 +65,7 @@
pe.urlquery = pe.urlpage.params;

// Identify whether or not the device supports JavaScript and has a touchscreen
$('html').removeClass('no-js').addClass(wet_boew_theme !== null ? wet_boew_theme.theme : '').addClass(pe.touchscreen ? 'touchscreen' : '');
$html.removeClass('no-js').addClass(wet_boew_theme !== null ? wet_boew_theme.theme : '').addClass(pe.touchscreen ? 'touchscreen' : '');

hlinks = pe.main.find("a").filter(function () {
return this.href.indexOf('#') !== -1;
Expand All @@ -81,6 +81,7 @@
if (pe.mobilecheck()) {
pe.mobile = true;
$('body > div').attr('data-role', 'page').addClass('ui-page-active');
$html.addClass(navigator.userAgent.indexOf('BlackBerry') === 0 ? 'bb-pre6' : '');

pe.document.on('mobileinit', function () {
$.extend($.mobile, {
Expand Down

0 comments on commit 64c26c6

Please sign in to comment.