XF 2.3 Popup text and X color

philmckrackon

Well-known member
Been looking for what colors the text and dismiss "X" in the XF popups. Any hints or pointers? CSS or style setting?
Nothing here seams to control this and I do not see anything in extra.less either. On F12 I cannot find the CSS element.
pop3.webp

Popup:
pop1.webp

On X hover:
pop2.webp

Text highlighted:
pop4.webp
 
Last edited:
Solution
I don't think there is a setting, but adding it to the extra less would work:

Code:
.overlay-title {
     color: hsla(var(--xf-majorHeadingTextColor));
}

.overlay-titleCloser {
    color: hsla(var(--xf-majorHeadingTextColor));
}
I don't think there is a setting, but adding it to the extra less would work:

Code:
.overlay-title {
     color: hsla(var(--xf-majorHeadingTextColor));
}

.overlay-titleCloser {
    color: hsla(var(--xf-majorHeadingTextColor));
}
 
Last edited:
Solution
Time for a revisit. I am having an issue with the 'a' reference font color in the .overlay-title div. Can you suggest CSS to add the color change and add an underline on hover? @CedricV

a:hover
text-decoration: underline;

a1.webp
 
Probably a better way but this works except it also overrides the closer X color.
CSS:
// Popup Title and Dismiss Color
.overlay-title {
     color: orange;
}
.overlay-title a {
     color: red;
    text-decoration: underline;
}
.overlay-titleCloser {
    color: orange;
}
a2.webp
 
Last edited:
Try this:

Code:
.overlay-title {
    color: orange;
}

.overlay-title a {
    color: red;
}

.overlay-titleCloser {
    color: orange !important;
}

The important tag should force orange color on the closer.
 
Try this:

Code:
.overlay-title {
    color: orange;
}

.overlay-title a {
    color: red;
}

.overlay-titleCloser {
    color: orange !important;
}

The important tag should force orange color on the closer.
Tie post... :)
TY, I changed the code to this while you were replying and this is the result.
CSS:
// Popup Title and Dismiss Color
.overlay-title {
     color: orange;
}
.overlay-title a {
     color: red;
    text-decoration: underline;
}
.overlay-titleCloser.js-overlayClose {
    color: orange;
}
a2.webp
 
Back
Top Bottom