You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am in the process of upgrading to Rails 4 so I updated to the rails 4 branch of forem. I like the new theme engine, but I use Foundation instead of Bootstrap and was wondering if you could clear up a question or two that I had.
what is the reasoning behind having bootstrap classes embedded in the views?
I ask because it seems that this makes Forem somewhat dependent on using bootstrap, even though you don't get the bootstrap goodness unless you use the bootstrap theme.
I was wondering how you would feel about making the bootstrap classes (ie. btn, col-md-12 etc..) that are used in some of the views more generic, and then using sass to extend them from within the theme?
I did this when reworking your bootstrap theme for foundation and it seems to work well... though I feel that refactoring some css classes in the views might be necessary to make it easier for theming.
I would be happy to submit a pull-request with these changes for you to check out, but wanted to get your opinions before putting too much time into it. Here is an example of re-assigning the bootstrap classes with foundation styles in the foundation theme I am working on:
I was thinking of making the classes forem-based, like "forem-button" and "forem-button-red", and then extending those with the appropriate classes from the preferred css framework within the theme.
BTW, I am good friends with Josh Adams and met you at Spree Conf in New York a few years ago.
Cheers,
JD
The text was updated successfully, but these errors were encountered:
I agree. Forem should definitely have its own classes and not rely on Bootstrap. I think that this is definitely the way forward. I do not have any spare time right now to fix this within Forem, but I do have enough time to review a PR. If you want to go ahead and patch this up, that'd be great.
The reason I did that in the first place is mainly due to laziness (I don't know enough about CSS, clearly) and therefore I wanted to be "opinionated" about what CSS framework that was chosen. Therefore I stuck Bootstrap everywhere with the idea that people could just customize the Bootstrap theme. Obviously this isn't going to work if someone wants to use something else.
@johndavid400 if you're going to be doing this - ideally all UI-related thingies should be moved to a separate Rails engine. I see a lot of people like doing their own UIs from scratch using their own favorite libs, so it makes little sense for them having to include stuff like Bootstrap, Select2 etc.
I was wondering how you would feel about making the bootstrap classes (ie. btn, col-md-12 etc..)
I disagree that Forem's views should be gridded up though. I mean I love grids, but only when it comes to graphic design and architecture. Why some people see the need to transfer them programatically onto their HTML and CSS to achieve things that regular CSS will do just fine, is beyond me. If it is alignment you're after, http://hashgrid.com/ might be able to help.
Hey Ryan,
First off, Forem is awesome! I have been using it on my site for a couple of years:
https://prototyperobotics.com/forums
I am in the process of upgrading to Rails 4 so I updated to the rails 4 branch of forem. I like the new theme engine, but I use Foundation instead of Bootstrap and was wondering if you could clear up a question or two that I had.
I ask because it seems that this makes Forem somewhat dependent on using bootstrap, even though you don't get the bootstrap goodness unless you use the bootstrap theme.
I did this when reworking your bootstrap theme for foundation and it seems to work well... though I feel that refactoring some css classes in the views might be necessary to make it easier for theming.
I would be happy to submit a pull-request with these changes for you to check out, but wanted to get your opinions before putting too much time into it. Here is an example of re-assigning the bootstrap classes with foundation styles in the foundation theme I am working on:
https://github.com/johndavid400/forem-foundation/blob/cleanup/app/assets/stylesheets/forem-foundation.css.scss
I was thinking of making the classes forem-based, like "forem-button" and "forem-button-red", and then extending those with the appropriate classes from the preferred css framework within the theme.
BTW, I am good friends with Josh Adams and met you at Spree Conf in New York a few years ago.
Cheers,
JD
The text was updated successfully, but these errors were encountered: