• Resolved Ray

    (@scootray)


    I’m trying to override the styling used by the pop up RSS preview, but it’s not working.

    For instance, you use <H1> for the title of the article. I have H1 previously defined and it’s a huge font so the title font on the preview is oversized.

    I tried overriding it like so:

    h1.ll_rss_preview_title {
    –fontfamily: Sans-Serif;
    –fontsize: 20px;
    }

    …but it is not taking, the original H1 style is still overriding this. Would appreciate any suggestions. (I also tried appending !important to no avail).

    Thanks!
    Ray

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    I don’t understand why you are writing -fontfamily instead of the actual CSS property which is font-family. Is this a new alternate CSS syntax? The best way to figure out how to style elements is with browser dev tools. With the pop-up on screen, right-click on it and select Inspect. You will then be in your browser dev tools and can make live changes to the CSS and see the results. If you make a mistake in the syntax, it will also show you right in the dev tools. Finally, if you create a new rule and it does not light up, it means your selector is not matching the item you’ve selected.

    It’s even possible to select an item and click on the + at the top of the stylesheet section to have the browser create a CSS selector for the item you clicked on.

    I took a look at your rule and it will work if you format it like this:

    .ll_rss_preview_title h1 {
        font-size: 14px;
        font-family: Sans-Serif;
    }
    Thread Starter Ray

    (@scootray)

    Yannick,

    That was strange — I copied it from the Safari properties during inspection so I guess it pasted that way. The original code was correct except for how you changed it to .ll_rss_preview_title h1 instead of h1.ll_rss_preview and that did the trick!

    Thank you for your help, still have much to learn ; )

    Ray

    Thread Starter Ray

    (@scootray)

    Ooops. Marking resolved.

    Thread Starter Ray

    (@scootray)

    Hmm, I just noticed the pop up windows is too big on mobile. I’m guessing CSS can take care of this — any suggestions?

    Thanks,
    Ray

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Well, you can use the following selector to modify the window dimensions:

    @media only screen and (max-width: 600px) {
        div#TB_window {
            width: 200px !important;
            margin-left: -90px !important;
        }
    }

    As you can see, had to use important parameters since these properties are set in the window’s direct style tag.

    That being said, the position of the window is calculated for desktop based on the pop-up window size parameters that you specify in the Pop-up tab of library settings. So depending on how variable your content it, it might not be easy to resize the window for mobile and have it perfectly centered.

    Thread Starter Ray

    (@scootray)

    It does pop up correctly now in mobile however the text within bleeds out to the old boundaries.

    It is not really critcal though.

    Thanks again,
    Ray

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    If you can provide a page where you have this setup, I can have a look this week-end and see adjustments in browser dev tools.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘CSS for RSS pop up preview’ is closed to new replies.