DigNap15 Well-known member Mar 9, 2021 #1 Hello I'd like to change the colour of warning text and the background I have used the Firefox Inspector feature, but I cannot find it Can someone give me a heads up for extra.less ? (PS sorry about the R rated text in my warning!)
Hello I'd like to change the colour of warning text and the background I have used the Firefox Inspector feature, but I cannot find it Can someone give me a heads up for extra.less ? (PS sorry about the R rated text in my warning!)
beerForo Well-known member Mar 9, 2021 #2 It's "Accent 1" or "Accented content background color" try both. Upvote 0 Downvote
DigNap15 Well-known member Mar 9, 2021 #3 Thanks for that That was quick! Can I do it on the fly, or do I have to turn the board off? Upvote 0 Downvote
DigNap15 Well-known member Mar 10, 2021 #5 Thanks I tried that and it worked! My first attempt at styling But that changes all the occurences of Accent1 from the default Orange 242 147 13 I really only want to change the warning text and background as shown in my OP So that it really stands out as a WARNING So I think I need the edit less names Upvote 0 Downvote
Thanks I tried that and it worked! My first attempt at styling But that changes all the occurences of Accent1 from the default Orange 242 147 13 I really only want to change the warning text and background as shown in my OP So that it really stands out as a WARNING So I think I need the edit less names
P Paul B XenForo moderator Staff member Mar 10, 2021 #6 Add to the extra.less template: Less: .messageNotice.messageNotice--warning { background-color: orange; color: black; } Teach a man to fish, give a dog a bone, tie a yellow ribbon around the old oak tree, etc.: https://xenforo.com/community/resources/how-to.4390/ Upvote 1 Downvote
Add to the extra.less template: Less: .messageNotice.messageNotice--warning { background-color: orange; color: black; } Teach a man to fish, give a dog a bone, tie a yellow ribbon around the old oak tree, etc.: https://xenforo.com/community/resources/how-to.4390/
DigNap15 Well-known member Mar 10, 2021 #7 Thanks Brogan, I'll give that a go Can I use rgb numbers? Upvote 0 Downvote
O Old Nick Well-known member Mar 10, 2021 #8 Yes ! Less: .messageNotice.messageNotice--warning { background-color: rgb(123, 120 111); color: rgb(200, 200, 200); } Upvote 0 Downvote
Yes ! Less: .messageNotice.messageNotice--warning { background-color: rgb(123, 120 111); color: rgb(200, 200, 200); }
DigNap15 Well-known member Mar 11, 2021 #9 Hi I added that code to my Extra.Less and then it changed my whole logo I added it at the end, and then tried it at the start What I am doing wrong? .p-header-logo.p-header-logo--image img { max-height: 120px; } .p-header { background: #ffffff url(welcome.png); } .actionBar-action.actionBar-action--sv-rate .sv-rating-type__text { justify-content: flex-start; display: none; } .p-nav-smallLogo { display: none !important; } .p-header-logo { max-width: none !important; } .has-js .p-header { display: block; } .sv-rate-menu--type-bar.sv-rate-menu--location-standalone a, .sv-rate-menu--type-bar.sv-rate-menu--location-bar a { margin-left: 8px; } Thanks Upvote 0 Downvote
Hi I added that code to my Extra.Less and then it changed my whole logo I added it at the end, and then tried it at the start What I am doing wrong? .p-header-logo.p-header-logo--image img { max-height: 120px; } .p-header { background: #ffffff url(welcome.png); } .actionBar-action.actionBar-action--sv-rate .sv-rating-type__text { justify-content: flex-start; display: none; } .p-nav-smallLogo { display: none !important; } .p-header-logo { max-width: none !important; } .has-js .p-header { display: block; } .sv-rate-menu--type-bar.sv-rate-menu--location-standalone a, .sv-rate-menu--type-bar.sv-rate-menu--location-bar a { margin-left: 8px; } Thanks
DigNap15 Well-known member Mar 17, 2021 #10 Can anyone tell me about extra.less ? Can it only cover one subject If I add that code it upsets other things (eg my heading loso) Upvote 0 Downvote
Can anyone tell me about extra.less ? Can it only cover one subject If I add that code it upsets other things (eg my heading loso)
P Paul B XenForo moderator Staff member Mar 17, 2021 #11 It can be used to style any element on the front end. Invalid or incorrectly formatted code will cause issues. Code which overrides default code will change the layout and affect core styling. Remove all of the code you added and add it back one line at a time until you identify which section is causing issues. Upvote 0 Downvote
It can be used to style any element on the front end. Invalid or incorrectly formatted code will cause issues. Code which overrides default code will change the layout and affect core styling. Remove all of the code you added and add it back one line at a time until you identify which section is causing issues.
DigNap15 Well-known member Mar 17, 2021 #12 nicodak said: Yes ! Less: .messageNotice.messageNotice--warning { background-color: rgb(123, 120 111); color: rgb(200, 200, 200); } Click to expand... Ha Ha My problem was that I copied the above code and it did not work due to the missing comma in the background colour line! Upvote 0 Downvote
nicodak said: Yes ! Less: .messageNotice.messageNotice--warning { background-color: rgb(123, 120 111); color: rgb(200, 200, 200); } Click to expand... Ha Ha My problem was that I copied the above code and it did not work due to the missing comma in the background colour line!
DigNap15 Well-known member Mar 17, 2021 #13 Now all I need is to find the orange warning triangle and replace that with a red or yellow one! Upvote 0 Downvote
P Paul B XenForo moderator Staff member Mar 17, 2021 #14 The browser inspector is your friend. Upvote 0 Downvote
O Old Nick Well-known member Mar 17, 2021 #15 DigNap15 said: Ha Ha My problem was that I copied the above code and it did not work due to the missing comma in the background colour line! Click to expand... sorry for that. Upvote 0 Downvote
DigNap15 said: Ha Ha My problem was that I copied the above code and it did not work due to the missing comma in the background colour line! Click to expand... sorry for that.
DigNap15 Well-known member Mar 17, 2021 #16 nicodak said: sorry for that. Click to expand... Thats's OK its amazing what problems one missing comma can cause At least I got there in the end. Upvote 0 Downvote
nicodak said: sorry for that. Click to expand... Thats's OK its amazing what problems one missing comma can cause At least I got there in the end.