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

Lists bullets overlaps floated image untill page resized #4

Closed
paulradzkov opened this Issue Jun 10, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@paulradzkov
Owner

paulradzkov commented Jun 10, 2017

codepen - a pen by paul radzkov 2017-06-10 23-00-21

On first load and when cache disabled bullets overlaps floated image.

paulradzkov added a commit that referenced this issue Jun 10, 2017

@paulradzkov

This comment has been minimized.

Show comment
Hide comment
@paulradzkov

paulradzkov Jun 10, 2017

Owner

Added invisible animation to trigger recalculation on page load:

    /* lists without classes */

    // 1) force reflow to fix bullet overlapping.
    // See https://git.io/vHyUo for details.

    ul:not([class]),
    ol:not([class]) {
        margin: 0 0 @m-default;
        max-width: calc(@linel - 2.5em);
        padding-left: 0;
        padding-right: 2.5em;

        ul,
        ol {
            margin-bottom: 0;
        }

        li {
            transform: translateX(2.5em);
            animation: fixlists 1s; // 1)
        }
    }

    @keyframes fixlists {
        0%   { text-indent: -0.001em;}
        100% { text-indent: 0;}
    }
Owner

paulradzkov commented Jun 10, 2017

Added invisible animation to trigger recalculation on page load:

    /* lists without classes */

    // 1) force reflow to fix bullet overlapping.
    // See https://git.io/vHyUo for details.

    ul:not([class]),
    ol:not([class]) {
        margin: 0 0 @m-default;
        max-width: calc(@linel - 2.5em);
        padding-left: 0;
        padding-right: 2.5em;

        ul,
        ol {
            margin-bottom: 0;
        }

        li {
            transform: translateX(2.5em);
            animation: fixlists 1s; // 1)
        }
    }

    @keyframes fixlists {
        0%   { text-indent: -0.001em;}
        100% { text-indent: 0;}
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment