Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with .less-compiled version of Bootstrap CSS in mobile #15203

Closed
adventmedia opened this issue Nov 23, 2014 · 3 comments
Closed

Problems with .less-compiled version of Bootstrap CSS in mobile #15203

adventmedia opened this issue Nov 23, 2014 · 3 comments
Labels

Comments

@adventmedia
Copy link

Struggled for the better part of an afternoon with a problem where a working component (ui.bootstrap carousel) would break in a mobile browser (iOS and Android) while functioning fine on the desktop.
Problem solved by using the cdn version of bootstrap.css (or the downloaded .css files) instead of the version transpiled by .less (v. 2.0.0). Presumably a substantive difference in the transpiled version that only impacts mobile. Not a function of media selectors for size as far as I could see.

@juthilo juthilo added the css label Nov 23, 2014
@juthilo
Copy link
Collaborator

juthilo commented Nov 23, 2014

We only officially support using our own grunt commands for Compiling CSS and JavaScript, which currently use Less v1.7.5.

Please check if your problems persist when you switch to the build method detailed at the link above.

@bassjobsen
Copy link
Contributor

@adventmedia you should try to compile the Less code with the autoprefixer:

lessc bootstrap.less --autoprefix="Android 2.3,Android >= 4,Chrome >= 20,Firefox >= 24,Explorer >= 8,iOS >= 6,Opera >= 12,Safari >= 6"

The autoprefixer plugin can be found at: https://github.com/less/less-plugin-autoprefix

Also see the comments in less/vendor-prefixes.less:

// All vendor mixins are deprecated as of v3.2.0 due to the introduction of
// Autoprefixer in our Gruntfile. They will be removed in v4.

@mdo
Copy link
Member

mdo commented Nov 30, 2014

Closing as it's a build tool problem and there's nothing to really fix.

@mdo mdo closed this as completed Nov 30, 2014
@twbs twbs locked and limited conversation to collaborators Jan 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants