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

slide_numbers always True for slides2 theme (?) #146

Open
Stewori opened this issue Jul 16, 2018 · 2 comments
Open

slide_numbers always True for slides2 theme (?) #146

Stewori opened this issue Jul 16, 2018 · 2 comments

Comments

@Stewori
Copy link

Stewori commented Jul 16, 2018

With slide_theme = 'slides2' I always get slide numbers like 2/15on the bottom right corner of every slide, except on title page.
I tried to set slide_numbers = False explicitly in conf.py without any effect. However it should default to False anyway, so it was expectable that there's more to it.

Is there a working way to turn it off? If there is no proper way, does someone know where I need to modify the source for this? At least roughly (maybe I can figure out then)?

I looked into the html and css source but cannot find the code responsible for the page number. It must be somewhere else.

@Stewori
Copy link
Author

Stewori commented Jul 17, 2018

It looks like this is defined in default.css as

/* line 147, ../scss/default.scss */
slides > slide:not(.nobackground):after {
  font-size: 12pt;
  content: attr(data-slide-num) "/" attr(data-total-slides);
  position: absolute;
  bottom: 20px;
  right: 60px;
  line-height: 1.9;
}

However, overriding this css entry in a custom.css seems to have no effect. This used to work for other aspects of the slides.
The entry stems from default.scss:

    &:after {
      font-size: 12pt;
      content: attr(data-slide-num) '/' attr(data-total-slides);
      position: absolute;
      bottom: $slide-top-bottom-padding / 2;
      right: $slide-left-right-padding;
      line-height: 1.9;
    }

Maybe that needs to be overridden...?

@Stewori
Copy link
Author

Stewori commented Jul 17, 2018

If I directly modify _build/slides/_static/theme/css/default.css like this:

/* line 147, ../scss/default.scss */
  slides > slide:not(.nobackground):after {
  font-size: 12pt;
  /* content: attr(data-slide-num) "/" attr(data-total-slides); */
  position: absolute;
  bottom: 20px;
  right: 60px;
  line-height: 1.9;
}

I get actually rid of the slide numbers. But this does obviously not persist building. For now I helped myself with a shell script for building:

make slides
cp default.css _build/slides/_static/theme/css/default.css

having the modified default.css in the source folder.

Still, this should be properly fixed.

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