Skip to content
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

Header and title section colours #24

Open
lgatto opened this issue Aug 13, 2019 · 0 comments
Open

Header and title section colours #24

lgatto opened this issue Aug 13, 2019 · 0 comments

Comments

@lgatto
Copy link
Contributor

lgatto commented Aug 13, 2019

I was wondering if you were interested is setting the header and title section colour (#1881c2) as a global variable? This would allow a user to relatively simply customise it for different books/projects.

I have experimented with:

:root {
  --main-bg-color: #2aa0ea;
}

and, in msmb.css

h1 {
  color: var(--main-bg-color);
  width: 55%;
  border-bottom-color: var(--main-bg-color);
  border-bottom-style: solid;
  padding-bottom: 0.5rem;
}

h2 {
  color: var(--main-bg-color);
  border-bottom-color: var(--main-bg-color);
  border-bottom-style: solid;
  width: 55%;
  padding-bottom: 0.5rem;
  margin-top: 3em;
  font-weight: bold;
}

h3 {
  color: var(--main-bg-color);
  font-size: 1.5rem;
}
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant