Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1437142

    The list item font colour on hover is too dark to be legible in a specific instance on a block editor post. The post is not and will not be set to Advanced Editor. How can the text on hover be changed to 10% black?

    #1437187

    Hey Tanja,

    Thank you for the inquiry.

    You can adjust the hover color of the links in the Enfold > General Styling > Main Content tab. Look for the Highlight Color field and adjust the value.

    Best regards,
    Ismael

    #1437194

    Thank you! What other elements does Highlight Color affect?

    #1437230

    This is not a good solution because it changes all post text hyperlinks. So, the post hyperlinks on a white background need to be a different colour than these text links that are on a dark background.

    #1437267

    Hi,

    Thank you for the update.

    If you want to target the link in the list with the dark background, please try this css code:

    .single-post li a:hover {
        color: red;
    }

    To target the ol element specifically, you can add a unique class name to it.

    Example:

    
    <ol class="av-ol-list-with-links">.. li list here</ol>
    

    You can then use this css code;

    .single-post .av-ol-list-with-links li a:hover {
        color: red;
    }

    Best regards,
    Ismael

    #1437319

    Thank you, the problem is that the ol already has a class specified, “class=”has-white-color has-text-color has-background has-link-color has-medium-font-size”. Adding a second class creates an error. Deleting the default class while adding the new class also creates the same error: This block contains unexpected or invalid content.

    #1437375

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top ol li a:hover {
    	color: red;
    }

    Best regards,
    Mike

    #1437628

    Thank you, unfortunately this is not a solution because it changes all ol text hyperlinks. So, the ol hyperlinks on a white background need to be a different colour than these ol text links that are on a dark background.

    #1437635

    Hi,
    The css can be adjusted to check the background color of the ol, for example on the text page that you linked to the background color of the ol is #666666 so we would use this css:

    #top ol[style*="background-color:#666666;"] li a:hover {
    	color: red;
    }

    for your other pages adjust the colors to suit.

    Best regards,
    Mike

    #1437638

    Thank you! This works and is resolved!

    #1437662

    Hi,

    Glad to know that this has been resolved! Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘CSS for list item font colour on hover in post block editor’ is closed to new replies.