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

Bootstrap 3.0 support? #3

Open
cviebrock opened this issue Sep 11, 2013 · 8 comments
Open

Bootstrap 3.0 support? #3

cviebrock opened this issue Sep 11, 2013 · 8 comments

Comments

@cviebrock
Copy link

Just wondering if you've looked at the vertical-rhythm settings since BS3 was released. I know that they've changed some of their .less files and class names, and added some new components (e.g. panels) that would be affected by vertical rhythm.

@jonschlinkert
Copy link
Owner

this wasn't really created with Bootstrap support in mind, but I can update classes if it helps out.

Which classes in particular would be affected? The vast majority of the styles in this component are element selectors rather than classes, and the differentiating aspect of this component is nested in the .rhythm class. So rather than trying to maintain compatibility, maybe I should just remove the "base" section altogether? what are your thoughts?

@cviebrock
Copy link
Author

Not sure. I only downloaded BS3 yesterday and haven't been digging into it much yet.

Personally, it would be "nice" to be able to @import(vertical-rhythm.less) into my Bootstrap stack and have everything magically fixed. 😉

Let me play some more and see how it works with BS3. As you said, since it's mostly affecting elements rather than classes, it's probably just fine and I'm jumping the gun with my issue request.

@jonschlinkert
Copy link
Owner

it's probably just fine

Maybe, but I would love to know how it turns out for you. Please let me know and I'd be happy to update.

it would be "nice" to be able to @import(vertical-rhythm.less) into my Bootstrap stack and have everything magically fixed.

I'm a fan of this as well!

@jonschlinkert jonschlinkert reopened this Sep 11, 2013
@cviebrock
Copy link
Author

Well, one issue I just noticed is that you should probably comment out the two variable definitions in the less file:

@font-size-base:       14px;
@line-height-base:     20px;

If I'm importing that file, it's going to overwrite any custom variable definitions I made previously. Does that make sense?

@jonschlinkert
Copy link
Owner

Makes perfect sense. I'll probably do as you suggested, but let me think about alternatives as well.

@cviebrock
Copy link
Author

Fair enough. If it helps, I'll put up my workflow for customizing BS. It's mostly based on https://github.com/divshot/themestrap .. using Grunt to handle the builds and source paths.

@jonschlinkert
Copy link
Owner

sounds great, thanks.

@jonschlinkert
Copy link
Owner

to just think out loud and let you know what's on my mind. For a while now I've wanted to find a better way to solve the issue(s) we're discussing here, not for just this project per se, but for LESS in general. I think part of the solution will be the conventions we use for including external less files, but it goes beyond that. Anyway, I'll just get this fixed per your suggestions when I have a chance, and we'll go from there. (btw, thanks for pointing out themestrap, they use a project I created, assemble, for building the HTML.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants