Hi,
Am trying to get started with Radix, I needed to explore different styles for different breakpoints.
I edited components/_menu.main.scss (on both standard sub theme and bootswatch) and added this:
.navbar-right {
background: red; // Body will have background: red for all xs devices.
@include breakpoint(sm) {
background: blue; // As from sm devices, the background will be blue.
}
@include breakpoint(md) {
background: yelllow; // Yellow background for md devices.
}
@include breakpoint(lg) {
background: green; // Green background for lg devices.
}
}
compiled, checked on the result css, this new config is on, BUT, nothing has changed on all sizes, and theses styles do not appear when I inspect the "navbar-right" class on the browsers, what's wrong ?
Zied.
Comments
Comment #2
shadcn CreditAttribution: shadcn at Chapter Three commented@zydoon let's check a few things:
/path/to/your/subtheme/assets/css/subtheme.style.css
?Comment #3
zydoon CreditAttribution: zydoon commentedHello @arshadcn,
thank you for your reply
Is the style added to /path/to/your/subtheme/assets/css/subtheme.style.css?
Yes, it's, in the very bottom of the file:
Did you turn off caching?
Yes
Clear the cache and test again
Many times :)
Comment #4
zydoon CreditAttribution: zydoon commentedI started over with a Radix subtheme and bootswatch kit
put this on the same file
And now I get the expected behaviour.
Comment #5
shadcn CreditAttribution: shadcn at Chapter Three commentedClosing this as outdated. Feel free to reopen if not. Thank you.