-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Bootstrap 3 #329
Bootstrap 3 #329
Conversation
I imagine that the icon fonts don't work given I've not actually tried to load this in an application yet, this is just a straight Sass conversion that will compile ( |
Glad to see a 3.0 branch! Where did _reset.scss go? I'm looking for to get this fix asap: |
Got it. It looks like twbs/bootstrap@86bb3b8 isn't a part of this branch yet. I'd like to submit a pull request for taking out
|
Had to do this to make sass helpers work with master sprockets/rails: glebm@25399d4 |
$font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace !default; | ||
$font-family-base: $font-family-sans-serif !default; | ||
|
||
$font-size-base: 14 !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like px
got left out here
Hey! Just to know. In jlong/sass-bootstrap-defunct#73 we now started the work on 3.0.0-wip for SASS |
I've updated the script (incl. patch) and pulled from |
@m5o That's great, I've updated this repo's script to pull from |
Things to do/think about:
|
Interesting, I wonder if we can provide multiple BS versions. One way to do this would be to set sass/javascript load paths in runtime, based on a setting e.g. |
Thought of another thing with the converter (which seems to be failing at the moment) to look into. I was originally against the idea of #393 but it would make configuring components much easier than at the moment, copying the bootstrap.scss file across always seemed a little hacky. |
Sorry to sound terribly ignorant, but I'm trying to move from Bootstrap 2 to Bootstrap 3, the docs aren't very clear and |
@GantMan The conversion task is for the gem's internal use -- it converts bootstrap LESS to SASS. You can try it out with:
and manually convert all your markup and customizations; note that bootstrap-sass support for this is still very alpha -- no stable release yet. |
@sporkd, I see, could you please push a fix -- I am not sure what the |
At the moment there is a lot of manual patching that needs to happen after each |
@m5o Just updated sass-twitter-bootstrap to Bootstrap 3.0 RC1 |
@AJ-Acevedo We're actually ahead of sass-twitter-bootstrap conversion. |
Awesome! Thanks for the heads up! I'll be rolling it into my project tonight! |
👍 thanks for this! |
Getting close with the converter
|
found a minor converter bug in
|
@m5o Thanks, fixed! |
Converter does everything at this point (i.e. |
Dude, that's awesome. Nice work! Wasn't sure if we could ever get to 100%. Of course things could still change, but hopefully as 3.0 stabilizes, the converter shouldn't require too much tweaking. I was also thinking it would be nice if we had a test to compare the output css for equality with the official bootstrap.css. However this might be very difficult considering the various ways css can be output and still be equal in result. Perhaps something like Nokogiri could be useful. |
Yeah, hopefully it doesn't have too many different new things (some potential for bleeding edge). |
Converter output now contains all the non-generic transformations (the new patches) applied, makes it really easy to see what it does now. |
improvement idea |
I was thinking of versioning issues today. If we have 2.3 archived in a Of course, if rails_admin upgrades to b-s 3 then anyone wanting to stop on < 3 is kinda SOL, unless they choose to use static files. edit: just found this - railsadminteam/rails_admin#1716 |
I was thinking we could just instruct people not on the asset pipeline to override the font variable? It's probably the easiest way, given the various environments people manage to shoehorn this into. |
Do you mean something like this? in
in
|
I just tried the above in 2b717ee but it doesn't work |
ah. I was thinking of something much simpler, but I just remembered that the webfont has multiple different extensions. |
Glyphicons work fine in development but not in production. I get errors that look like: |
after that last update, I can no longer set
|
@frabrunelle should be fixed with 0e8d41d @travisdahl you can try overriding these variables, but I don't think percentage gutter is generally supported by twbs |
Thanks @glebm, it works! |
Thanks @glebm , that's exactly what I had in my SASS file... |
See my comment above, if you want this changed you can raise issue with twbs/bootstrap. |
@glebm , ah I see. I'll report it over there! Sorry about that! |
It looks like the .navbar-collapse class stylings are missing from this branch. Edit: Nevermind, looks like another gem was conflicting with my attempt to use 3 and was causing all my problems |
With "this is 3.0.1" commit, does it mean the "3" branch is ready for production use and will be merge to master branch soon? @thomas-mcdonald @glebm If not, what's the schedule? |
@umhan35 It just means the commit corresponds to twbs/bootstrap 3.0.1 in progress (unreleased). Whether it's ready for production is in the eye of the beholder: while it does appear to work just fine, we do not have any tests yet. See the checkboxes in the OP: once they are all √ then we are close. |
A rough notion of schedule would be nice. One of:
would be lovely. |
On 571ba86 : this commit incorporates some changes and deprecations from BS3.0.1 ship list, it's not actually 3.0.1. |
@glebm I'm gonna push the Sass as it was at the v3.0.0 tag, can we leave it at that for this PR, and then I'll spend some time working through the remaining issues as far as I can tell wrt testing, Compass etc. |
@thomas-mcdonald OK, great. I can push further updates to a If you have been using this on the bleeding edge before the revert commit, the latest commit ref is:
|
Hi, Hope someone can help.. I am using bootstrap-sass but want to upgrade to bootstrap 3 before I continue on mainly doing work on the views. Rather than wait for this to be released, I was hoping I could switch to this branch. I have changed my Gemfile to point at branch 3 by doing:
And then ran bundle update and the gem has been updated, however nothing in the repo has changed. And running:
Produces an error:
Can someone let me know what I am missing, please. |
You want the Rails install guide |
Sorry, my fault. When I was first trying it, I only did 'bundle' and not update. Then later I didn't restart the server! Very sorry, thanks for the reply and the hard work! |
Fix typo with loading individual Javascript files.
I wanted to use bootstrap 3 with bootstrap-sass, couldn't get it even if update my gemfile with the following, i want to start fresh and i only get 2.3.2. Please help me on the steps to get bootstrap 3 working with bootstrap-sass. |
Hi there. I've tried following the hints from bobbbie and still getting the "Don't know how to build task 'convert'" message. I do recon there's this script here and wonder do I have to do something with it in order to get it work? Sorry I'm pretty new in Rails in general. Thanks! :) |
Hi Jonathan. You don't need to run the convert task unless you're developing on the gem itself. You probably want the Rails install guide |
Bootstrap 3 has RC'ed, so we need to get ready-(ish) to push an update.
gem 'bootstrap-sass', github: 'thomas-mcdonald/bootstrap-sass', branch: '3'
Please comment on issues here rather than in new issues. +1's will be deleted with vengeance. I make no guarantees about the frequency of updates or responses here.
Stuff we have to work on for release: