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

Use actual page numbers for the menu #2

Open
MatthiasBusch opened this issue Sep 12, 2017 · 1 comment
Open

Use actual page numbers for the menu #2

MatthiasBusch opened this issue Sep 12, 2017 · 1 comment

Comments

@MatthiasBusch
Copy link

In my opinion it would be better to use the actual page numbers for the slider menu instead of '•'. They make much more sense from a syntax perspective and you can more easily adjust them to your needs.

You could still style it the way it is now using css, but would be more flexible

@0xhtml
Copy link

0xhtml commented Jun 20, 2023

You could still style it the way it is now using css

Or the other way around. CSS to turn the way it is now into page numbers:

.slider-menu {
    counter-reset: slider-counter;
}
.slider-menu b {
    color: transparent !important;
}
.slider-menu b::before {
    content: counter(slider-counter);
    counter-increment: slider-counter;
    color: #bbb;
}
.slider-menu b.active::before {
    color: #666;
}

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

3 participants