Logic Machine Forum
CSS to Vizu only, not touch - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: CSS to Vizu only, not touch (/showthread.php?tid=4209)



CSS to Vizu only, not touch - cdebackere - 01.09.2022

We have a series of custom classes to alter alignment etc. These were designed to work well, and do so, in the usermode Vizu.
But when looking at the touch interface now, it's a mess.
So we want those classes to apply only to the usermode. And maybe lateron some classes only to touch mode.

What do we need to add the the css definition to achieve this selectivity?

Thx,
C.


RE: CSS to Vizu only, not touch - admin - 01.09.2022

Add .usermode to your CSS rules:
Code:
.usermode .mycustomclass {
  color: red;
}



RE: CSS to Vizu only, not touch - cdebackere - 01.09.2022

(01.09.2022, 07:12)admin Wrote: Add .usermode to your CSS rules:
Code:
.usermode .mycustomclass {
  color: red;
}

Thanks: does the trick. 
I assume '.touch' to be added for touch only then

C.


RE: CSS to Vizu only, not touch - admin - 01.09.2022

Yes, use .touch for Touch only.