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

Simplify the markup of "dotted list" #135

Open
bzaar opened this issue May 27, 2020 · 0 comments
Open

Simplify the markup of "dotted list" #135

bzaar opened this issue May 27, 2020 · 0 comments

Comments

@bzaar
Copy link
Contributor

bzaar commented May 27, 2020

This markup could be simplified to look like this:

    <ul class="page-index">
        <li>
            м, мо, ж, жо, мо-жо, с, со — раздел «субстантивное склонение»
            <span class="page-number"><a href="#patterns6">39</a></span>
        </li>
        <li>причем
        </li>
        <li class="indented">
            м, мо — подраздел «мужской род»
            <span class="page-number"><a href="#patterns6">39</a></span>
        </li>
        <li class="indented">
            ж, жо, мо-жо — подраздел «женский род»
            <span class="page-number">45</span>
        </li>
        <li class="indented">
            с, со — подраздел «средний род»
            <span class="page-number">51</span>
        </li>
        <li>
            п — раздел «адъективное склонение»<sup><a href="#footnote14">14</a></sup>
            <span class="page-number">55</span>
        </li>
        <li>
            мс, мс-п — раздел «местоименное склонение»
            <span class="page-number">61</span>
        </li>
        <li>
            числ. — раздел «склонение числительных»
            <span class="page-number">66</span>
        </li>
    </ul>

In the CSS, use styles with >:

.page-index > li {}
.page-index > li > .page-number {}
.page-index > li.indented {}

The rendering should stay the same.

This is a follow-up to #21.

@bzaar bzaar added the front-end label Feb 8, 2023
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

1 participant