Hi!

I’m searching for a possibility to add something like this to my theme:

my_mobile = is one of my defined breakpoints

if (breakpoint == my_mobile) {
// node output for mobile or other awesome things
} else {
// node output for the rest or something other awesome
}

That would be great!
Of course I asked Google ;-) Perhaps I'm missing the magical search term.

Best wishes
Andreas

Comments

joachim namyslo’s picture

Status: Active » Closed (works as designed)

Maybe you should search for media queries by device. Breakpoints just adds functionality for the picture element if picture module is installed.

You can achieve the same with the @import rule in css and one style sheet by device.

Don't forget to close this if this solved your problem.