I downloaded Bootstrap, set $enable-flex true and recompiled.
I have a question about Bootstrap 4 and flexbox. If you reduce the size of Twitter homepage, you can see that “Who to follow” part is moving to the left side of the site (but main feed doesn’t get effected by that), and this is the thing I want to do using Bootstrap 4 and flexbox. So, when I resize the window (for an hypothetical size like -sm), #right will start after #left. #middle is the feed section.
How can I do it? I know that it can be arranged using jQuery/Javascript, but things get complicated and I have to use px instead or em that way.
1-) If I use something like below, I will have to remove some classes (col-sm-3 and col-md-3) and add another (col-md-12) to #right since I’ll have to place #right inside #left. This is easy, but is it okay to do?
2-) How can I restructure it with Javascript without breaking responsiveness? I can work with pixels only for now (width() < 768), but Bootstrap 4 is based on ems. Is there a way to tell Javascript to work with ems instead of pixels?