Open ghost opened 8 years ago
Hi,
thanks for opening this issue.
I'll look at porting my inline style definitions to bootstrap classes.
About bootstrap version, I'm not frontend developer, and don't really want to spend time tracking js library versions, but ok, I can update it.
About "forking" code from bootstrap and putting it inline on my templates, I don't like the idea. I'm already using a CDN, that creates a single js and css bundle for me, and does good caching, then I don't think that this is an issue. and maintaining js/css code isn't something I'll do unless strictly necessary.
Thanks
Ahoi kamarat,
The presented css here was meant to be added in your custom.css, not inlined into the html page itself. It's highly unlikely that the bootstrap devs and version 3 will rename any of the nav and navbar classes which are used to compose the website navigation bar.
Every single visitor will have to download 118KB javascripts bundle of which only the mobile users will be able to utilize the small amount of code required to add "click" action, so the hamburger button to show the rest of the navigation menu as dropdown menu.
Actually after opening your custom.css I can optimize the code even further:
h3,
h4,
h5 {
margin-bottom: 20px;
}
It doesn't have to become a full-time job to constantly check for the external resource versions, just do it twice in a year, as they may contain critical bug fixes which may affect your website visitors.
One minute later:
The jumbotron class can be combined with text-center, so:
.jumbotron {
text-align: center;
}
is not necessary.
https://github.com/blogc/blogc.rgm.io/blob/master/content/index.txt#L2
<div class="jumbotron text-center">
the body padding is not necessary
body {
padding-top: 60px;
}
Just change:
<div class="navbar navbar-default navbar-fixed-top">
to:
<div class="navbar navbar-default navbar-static-top">
Putting it all together:
custom.css
h3,
h4,
h5 {
margin-top: 20px;
}
.sidebar {
padding-top: 20px;
}
My blog
Pull request is pending https://github.com/blogc/blogc.rgm.io/pull/2
https://github.com/blogc/blogc.rgm.io/blob/master/templates/main.tmpl#L88
From
To
Why is the Jquery and BootstrapJS need ? The latest bootstrap as well bootswatch Flatty release is 3.3.6 , same goes for the font-awesome version.
custom.css