Giter Club home page Giter Club logo

Comments (4)

gadenbuie avatar gadenbuie commented on June 9, 2024

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.

gadenbuie avatar gadenbuie commented on June 9, 2024

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.

gadenbuie avatar gadenbuie commented on June 9, 2024

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.

sharlagelfand avatar sharlagelfand commented on June 9, 2024

thank you, that works perfectly! 👌

from boostrap-v3-theme-minty.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.