-
Notifications
You must be signed in to change notification settings - Fork 2
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
[WIP] Switch to Bootstrap 4 #14
Conversation
Judging by your screenshot, it looks like there should be some margin-bottom added to the bottom of each section to separate each section a bit more nicely. |
Yeah, it definitely looks like. But I guess i'm just using the new grid/container-system the wrong way and have to fix that to get some space between those sections. |
As Bootstrap 4 removed support for non-responsive usage (cite), we have to think about adding Bootstraps javascript stuff (which i'm not a big fan of, because it requires jQuery which bloats the site a lot) or find some other way to show the navbar-content on mobile as it's collapsed by default and there's no way (I'm aware of) to uncollapse it without this javascript-button. |
I think you could just write a small amount of your own javascript to toggle a classname on an element which is used to hide or unhide the menu, then use CSS animations to make it slide up and down. |
I'll take a quick look today and see if I can come up with anything. |
I just had a glance over the migration document. They're breaking so many things unnecessarily :( it's not so bad for a small project like this, but where I work we have several huge projects that would take months to update. |
That sounds like a good option, yeah. Just found an implementation of Bootstraps javascript-components without jQuery: bootstrap.native. Maybe we can just use that or at least parts from it to accomplish this.
Yeah, it's a really big mess. And I don't even think it looks a lot better, maybe even worse (not only the output but also the code required to build it). |
Cheers, I wasn't aware of bootstrap.native. I'll check it out.
The rationale for removing the |
I've pushed a commit to the I've been meaning to ask, why do you have onclick attributes that scroll the page on each of the headers and list items? |
Great, can you open a Pull Request for these changes? (I'm not sure if GitHub supports creating Pull Requests to branches other than
Because I thought it would be nice to have the option to directly link to specific users/sections, especially in large lists with multiple virtual servers. |
Sure, gimme a few minutes.
You only need the |
Yeah, I'm aware of that but the user has to find/get the link some way and the
For headings that's a great idea, yeah. But how is the user supposed to find the link to a specific listitem? |
Just generally the way they're implemented right now is a bit weird, even for headings. I'll tap/click on what I think is empty space and trigger the |
Yeah, not sure what I thought when implementing it this way... |
Yeah, that definitely works better.
You had good intentions 😄 |
a461722
to
9c031f9
Compare
Argh, there are further breaking changes in Bootstrap 4.0.0-beta... |
@djmattyg007 Can you take a look at the changes regarding Navbars? |
I'll take a look this weekend. Thanks for the heads up. |
Life got in the way, but I am definitely looking at it today! |
@djmattyg007 No problem, taking care of other things in life is definitely more important than this side project :) |
explicit definition of badge-style and -position
removed padding from debug-badge as it's not required anymore
with `display-4`
* add button to show/hide menu items * ensure navigation fills the width of the viewport by moving it out of the main container element
to align badges correctly
because -default is now invisible
* Simplify navbar markup, update it for bootstrap4 beta1. * Fix CSS classname for background color of navbar
I'm not really sold on the new look, yet.
![screenshot](https://cloud.githubusercontent.com/assets/4989736/23325154/749748f2-faf3-11e6-9128-8e4a0b6b5b49.png)
But I guess to keep up to date we should migrate to Bootstrap 4 anyways in the near future.
This PR is just here for an overview about the process and will be merged as soon as Bootstrap 4 is out of beta-status.