onlytablet suffix does not seem to work

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Jun 18, 2012 12:59 am
Reply with quote
Report this post
Hi,

If I apply the "onlytablet" suffix to a module (in this case in the mainbody position) it makes the module disappear in all 3 display modes...Have tried on desktop, Ipad and iphone...

Dave
User avatar
Expert Boarder

Konrad M
Mon Jun 18, 2012 9:25 am
Reply with quote
Report this post
Hi, probably you didn't add space before suffix name. Please try this " onlytablet".
User avatar

GK User
Mon Jun 18, 2012 10:09 am
Reply with quote
Report this post
Additionally please remember that suffixes like " onlytablet" depends from browser width not the device. So if you have a browser which loads with tablet.css then it will show the module with this suffix even if it is a desktop/tablet/mobile device.
User avatar
Administrator

GK User
Mon Jun 18, 2012 12:31 pm
Reply with quote
Report this post
Konrad M wrote:Hi, probably you didn't add space before suffix name. Please try this " onlytablet".


Space is there...Was the first thing I checked....

D
User avatar
Expert Boarder

GK User
Mon Jun 18, 2012 12:35 pm
Reply with quote
Report this post
dziudek wrote:Additionally please remember that suffixes like " onlytablet" depends from browser width not the device. So if you have a browser which loads with tablet.css then it will show the module with this suffix even if it is a desktop/tablet/mobile device.


I have two GK Image Show modules in the mainbody position. One, non responsive with notablet suffix and the other with onlytablet suffix which is responsive (both have space at the start)..

I have tested this on Desktop 1900px wide, an actual Ipad2 and an Iphone..

Dave

http://www1.aerosolpalnet.com/site5
User avatar
Expert Boarder

GK User
Mon Jun 18, 2012 12:52 pm
Reply with quote
Report this post
You're right - now I see the problem - after testing this feature we have changed the order of the CSS files, what cause that now in the tablet.css and mobile.css should be placed more specific selectors. Please change in the both files (tablet.css and mobile.css) this code:

Code: Select all
.notablet {
   display: block;
}

.nomobile {
   display: none;
}

.onlytablet {
   display: none;
}

.onlymobile {
   display: block;
}


to:

Code: Select all
.box.notablet {
   display: block!important;
}

.box.nomobile {
   display: none!important;
}

.box.onlytablet {
   display: none!important;
}

.box.onlymobile {
   display: block!important;
}
User avatar
Administrator

GK User
Mon Jun 18, 2012 10:29 pm
Reply with quote
Report this post
dziudek wrote:You're right - now I see the problem - after testing this feature we have changed the order of the CSS files, what cause that now in the tablet.css and mobile.css should be placed more specific selectors. Please change in the both files (tablet.css and mobile.css) this code:

Code: Select all
.notablet {
   display: block;
}

.nomobile {
   display: none;
}

.onlytablet {
   display: none;
}

.onlymobile {
   display: block;
}


to:

Code: Select all
.box.notablet {
   display: block!important;
}

.box.nomobile {
   display: none!important;
}

.box.onlytablet {
   display: none!important;
}

.box.onlymobile {
   display: block!important;
}


Hi,

I have made these changes but still no change...Do the module suffixes need to change ?

Dave
User avatar
Expert Boarder

GK User
Tue Jun 19, 2012 9:58 am
Reply with quote
Report this post
Whats is even weirder is that the GK Imageshow module that is using the " .notablet " suffix DOES show up if I shrink my desktop browser window to tablet size but does NOT show on a ipad 2 at all...The GK Imageshow module that is using the "onlytablet" does not show anywhere...

Dave
User avatar
Expert Boarder

GK User
Tue Jun 19, 2012 11:05 am
Reply with quote
Report this post
Sorry but it must works - I've made these changes and I've tested it. The only problem can be related with fact that the tablet.css is loaded for smaller widths than mobile.css what cause that it never work.
User avatar
Administrator

GK User
Tue Jun 26, 2012 1:52 am
Reply with quote
Report this post
dziudek wrote:Sorry but it must works - I've made these changes and I've tested it. The only problem can be related with fact that the tablet.css is loaded for smaller widths than mobile.css what cause that it never work.


If you go to my dev site (link in this thread) you will see it does not work..

Dave
User avatar
Expert Boarder

GK User
Tue Jun 26, 2012 4:26 pm
Reply with quote
Report this post
User avatar
Administrator

GK User
Fri Oct 12, 2012 1:13 am
Reply with quote
Report this post
dziudek wrote:Sorry but the url: http://www1.aerosolpalnet.com/site5 and even http://www.aerosolpalnet.com/site5 don't work.


the url appears to be http://www1.aerosolplanet.com/site5/
User avatar
Senior Boarder


cron