risotto icon indicating copy to clipboard operation
risotto copied to clipboard

Firefox ignores the space after the asterisk in the ul li::marker rule

Open joeroe opened this issue 3 years ago • 2 comments

The issue appears to be with how Firefox handles UL/LI indentation compared to Chrome.

Originally posted by @mntn-xyz in https://github.com/joeroe/risotto/issues/3#issuecomment-887933920

joeroe avatar Jul 28 '21 11:07 joeroe

I think this will fix it, but I haven't tested it yet.

/* Replace existing rule (strip space after asterisk) */
ul li::marker {
    content: '∗';
    color: var(--bright-bg);
}

/* Specify use of margin */
.page__body ul, .page__aside ul {
    margin-left: 0.75rem;
    padding-left: 0;
}

I noticed that this was fixed on sslarch.github.io, but without the .page_body and .page_aside selectors. This adds a space after the ./ in the header menu.

Another way to go about this would be to apply the margin and padding to the whole page, then undo it just for the header menu. Might be a better approach.

mntn-xyz avatar Jul 28 '21 14:07 mntn-xyz

Fixed - confirmed

mntn-xyz avatar Aug 09 '21 14:08 mntn-xyz