Comments (4)
It's a little issue with pkgdown.css
interacting with the bootstrap theme.
pkgdown has a CSS rule like this
.contents h1 {
padding-top: 60px;
margin-top: -40px;
}
This is a common pattern for taking into account the height of the navbar. But because I bumped up the size of the fonts a bit, the navbar is too tall.
I think this will work. Open up pkgdown/extra.css
and add this on the last line
.template-article .page-header h1 { padding-top: 120px; }
I used the .template-article
class to avoid having this apply to the reference page where things seem to be working fine.
from boostrap-v3-theme-minty.
okay, just realized that's going to mess with the spacing of the first h1
header on the front page... might have to think about this a bit more
from boostrap-v3-theme-minty.
got it! This should be pretty robust now
.template-article .contents > .page-header { margin-top: 50px; }
Turns out the front page uses the article template but has slightly different structure. This should apply the margin change but only on the regular article pages.
from boostrap-v3-theme-minty.
thank you, that works perfectly! 👌
from boostrap-v3-theme-minty.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boostrap-v3-theme-minty.