hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
985 stars 376 forks source link

How to a make alterations in the heading style. #113

Closed reselbob closed 3 years ago

reselbob commented 3 years ago

I want to do something simple, for example change the black heading backcolor from black to white.

I looks like the place to make the change is here:


function myFunction() {
  var x = document.getElementById('navbar');

  if (x.className === 'topnav') {
    x.className += ' responsive';
  } else {
    x.className = 'topnav';
  }
}

In this file, https://github.com/hasura/gatsby-gitbook-starter/blob/master/src/components/Header.js

But I can't figure out where the style topnav is defined. Maybe I am missing something. If so, please excuse my oversight.

Any help will be greatly appreciated.

reselbob commented 3 years ago

Found the answer, https://github.com/hasura/gatsby-gitbook-starter/blob/master/src/components/styles/GlobalStyles.js

reselbob commented 3 years ago

Figured it out