[cXF] Cookie Notice

[cXF] Cookie Notice 1.1.0

No permission to download
So how did you get to see it in a different colour? Did you switch to default view instead of the style?
Simple browser inspector tool.

Add this to your extra.less:

Less:
[data-notice-id="-1"].notice--cookie .js-noticeDismiss.button--notice.button, .notice--cookieAdvanced .cookies-buttons .button--primary {
    color: #fcfcfc !important;
    background: #e8264d !important;
}

See if it changes anything.
 
Ok. Thank you. I did check in "default style" as well and the colours did show up :-) But not in the style I'm using. I'll try that in extra_less
 
That worked for Accept all cookies, but not for Reject cookies :-) Or the main text colour. Although it's mainly the buttons.
 
Yes, use also this:

Less:
[data-notice-id="-1"].notice--cookieAdvanced .cookies-buttons .button--link {
    color: #fdfdfc !important;
    background: #f23a02 !important;
}
 
Actually no it didn't work. It changed the accept button to red. But when I changed the colour for that to something else, it stayed red.
 
Yes, use also this:

Less:
[data-notice-id="-1"].notice--cookieAdvanced .cookies-buttons .button--link {
    color: #fdfdfc !important;
    background: #f23a02 !important;
}
Thank you. It has changed the button colours for Accept and Reject, but not to the colours I chose 🤣 They are now two different shades of red. I had set two different shades of green.
 
Yes, if you are changing the colors now in the style properties, they won't change in the frontend. You need to adjust the color code in the extra.less template now.
 
Settings in style properties should work for these buttons too. It works fine on my side. Maybe it is overwriting something (from extra.less?).


You can do it manually with this in your extra.less template:

Less:
@media (min-width: @xf-responsiveMedium) {
    .u-bottomFixer [data-notice-id="-1"] {
        left: auto;
        right: 20px;
    }
}
It's still on the left 🤔 It doesn't matter - it's fine where it is :-)

I also still seem to have a slight bit of the old cream colour round the edges - on the left particularly. As if the new colour is on top of the old one. Maybe to do with my style again?

Cookie sample border.webp
 
Last edited:
Thank you so much. It looks so much better on desktop, when floating, and information is clearer to see. On mobile however, whether floating or not, it takes up about half the screen (not related to this addon, just the fact it's the advanced cookie banner) - which is horrible! I hate that on websites! I guess that's just the nature of a full cookie banner.
 
Btw it's still on the left :-) Not sure why but the extra.less code didn't move it to the right. Do you think that's possible?
 
Try this:
Less:
@media (min-width: @xf-responsiveMedium) {
    .u-bottomFixer [data-notice-id="-1"] {
        left: auto !important;
        right: 20px !important;
    }
}
 
How does the process of excluding one type of cookie from others work? For example, if you choose to accept only technical cookies, how are the others excluded?
 
Back
Top Bottom
OSZAR »