cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find the cookie css file to change the design

SOLVED
Highlighted

Where to find the cookie css file to change the design

Hi all, I'm trying to alter the default background (yellow) of the cookie notice.

 

.message.global.noscript,
.message.global.cookie {
margin: 0 0 10px;
padding: 10px 20px;
display: block;
line-height: 1.2em;
font-size: 1.3rem;
background: #ffee9c;
border-color: #d6ca8e;
color: #333333;
margin: 0;
}

 

Is the css part, but I can't find the file where it's defined. I've even tried to search the entire magento folder with Grepwin.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Where to find the cookie css file to change the design

Hello @Bierkelder 

 

vendor/magento/theme-frontend-luma/Magento_Theme/web/css/source/_module.less file used for same

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

View solution in original post

5 REPLIES 5
Highlighted

Re: Where to find the cookie css file to change the design

Hello @Bierkelder 

 

https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/css-topics/css-preprocess.html

 

check above link will help ful for you.

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
Highlighted

Re: Where to find the cookie css file to change the design

Hi,

 

Thanks for you guidance, but it's not exactly what I meant. Or maybe it is, but I can't distillate my answer from your guidance. So there isn't a file where this is exactly declared like this?

Regards, Wouter

Highlighted

Re: Where to find the cookie css file to change the design

Hello @Bierkelder 

 

vendor/magento/theme-frontend-luma/Magento_Theme/web/css/source/_module.less file used for same

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

View solution in original post

Highlighted

Re: Where to find the cookie css file to change the design

Hi Sunil,


Let me check!


Regards, Wouter

Highlighted

Re: Where to find the cookie css file to change the design

Worked like a charm!