Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Conditional for "reponsive"
Mixy Offline
Junior Member
**
Posts: 1
Joined: Jan 2019
Post: #1
Conditional for "reponsive"
Hi there, I'm trying to make some modifications for mobile users and one thing I want is to set collapsed by default the categories on my index.

For this I need to change in forumbit_depth1_cat

<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">

to

<tbody style= "display: none" id="cat_{$forum['fid']}_e">

But I'm not quire sure for the 'responsive' conditional. I've tried:

Code:
<if media=(max-width: 420px) then>
	<tbody style= "display: none" id="cat_{$forum['fid']}_e">
<else>
               <tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
</if>


And some variations with "" and the @media but they don't work. If someone could guide me, I would be very grateful. Thank you.

(This post was last modified: 03-16-2019 11:25 AM by Mixy.)
03-16-2019 11:24 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Conditional for "reponsive" - Mixy - 03-16-2019 11:24 AM
RE: Conditional for "reponsive" - RateU - 03-17-2019, 10:23 PM

 Standard Tools
Forum Jump: