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

Current version does not center h1 headers correctly with NOTOC pages #351

Closed
dralli72 opened this issue Feb 22, 2018 · 3 comments
Closed

Comments

@dralli72
Copy link

Description

Hi, after upgrading the template to the current version, h1 headers are not centered correctly when they are displayed on a wiki page with the ~ ~ NOTOC ~ ~ macro. This was not the case with the previous version.

Steps to reproduce

  1. I've edited the "userstyle.css" file with additional CSS for h1 headers:
h1 {
  font-family: "Kaushan Script","Raleway","Helvetica Neue",Helvetica,Arial,sans-serif !important;
  text-shadow: 2px 2px 0 rgba(0,0,0,33%);
  text-align: center;
}
  1. Purge DokuWiki's CSS cache, delete browser's cache and reload the page

Expected behavior: On a page with a visible TOC, the h1 header is centered between the left border of the page and the left border of the TOC. When you minimize the TOC, the h1 header is centered between the left and the right borders of the page. When there is no TOC, the h1 header should also be centered between the left and right borders of the page.

Actual behavior: When there is no TOC, the h1 header is centered between the left border of the page and an invisible border of the area where the TOC normally displays.

Versions

  • Current version (updated 2 days ago)
  • 2017-02-19e "Frusterick Manners"
  • Chrome Version 64.0.3282.167 (Official Build) (64-Bit)

Screenshots or Logs

Page with visible TOC:
image

Page with minmized TOC:
image

Page with ~ ~ NOTOC ~ ~ macro (it's the same when there are not enough headers to generate a TOC):
image

Page source with div for TOC
image

@giterlizzi
Copy link
Owner

Hi, i have fixed this issue in master and develop branch.

Can you reinstall the template again ?

Thanks.

At your disposal,
Joseph

@trailjeep
Copy link

Updated & working fine here.

@dralli72
Copy link
Author

Re-installed the template and everything looks good now. Thank you, Joseph!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants