Sackgesicht VIP
Total posts: 1,636
27 Jan 2013 19:47

Responsive templates getting more and more attention.

Maybe Cobalt should also be ready for this challenge.

A good start would be a responsive table design for the intro view.

Responsive table design depends highly on the columns-data. Not every strategy might be suitable for it.

Here some articles:

JQueryMobile

Elvery

CSS Tricks

ZURB

Last Modified: 02 Mar 2014


stblink VIP
Total posts: 501
16 May 2013 11:15

Thanks Sack, those are really helpfull.

Do u know if C8 templates are responsive ? I mean, at least in section and category view.


Sackgesicht VIP
Total posts: 1,636
16 May 2013 11:56

C8 list templates are not responsive.

A first approach might be a parameter for intro field display, based on a "visibility matrix" similar to the responsive utility classes from bootstrap (does not work for tables). See here

Another example: Gantry framework responsive support classes here

For the category list, the "default" template should be, but it seems it has a problem with 6 columns (have to investigate further). The Cobalt7 category list template is not responsive, but should work quite well, depending on the category title length.


stblink VIP
Total posts: 501
16 May 2013 12:29

In my case it would not be mostly associated to categories, since i will avoid the category list inside section display. My concern would be more directed to the record listing to be responsive...

I'm using a RT template that has gantry although visiting the links i understood little if anything.

I guess i will just have to wait...


Sergey
Total posts: 13,748
17 May 2013 00:52

By the way Elvery is an Universal CSS solution. Just add piece of CSS into yout template and it will work.


pepperstreet VIP
Total posts: 3,837
22 May 2013 09:46

I tried the Script solution from ZURB Foundation on Cobalt default list (Table). No success. The wrapper DIVs are missing. the first column (title) is hidden. No scrolling. Unsure what is the culprit.


Sackgesicht VIP
Total posts: 1,636
16 Jun 2013 02:29

An easy start would be to wrap the table in a div container with overflow: auto

This would already help in providing a horizontal scroll bar and cobalt would not break the layout when resizing a responsive Joomla template.

Example:

This annoying behaviour can be avoided with the above mentioned solution.

Either wrap it in the list template or in the markup template (so it will cover automatically all list templates).

Result:

It does not break the layout anymore by inserting a horizontal scrollbar.

If it is inserted into the list template, then it should be conditional if the list template would be used for a relate field as well to avoid unnecessary scroll bars from the table (child list template) within the table (cobalt list template).

See i) here


Sackgesicht VIP
Total posts: 1,636
16 Jun 2013 19:49

Tried it with android v 4.04 and IOS 6.1.3 .. It does not have the scrollbar bar you can "scroll" by moving it left and right .. layout not destroyed

unlike my cobalt7 category listing which still breaks the layout --> have to wrap it also ...

Main reason to place the overflow was some complaints from encoders, that they could not access the table information while they used a smaller window, since they needed additional screen estate for other browser windows to verify data for encoding.

Now they can scroll. :D


Sackgesicht VIP
Total posts: 1,636
16 Jun 2013 21:46

Its a jungle out there!

I was even thinking of server side mobile-detect to decide server side already what to deliver and eventually save some content instead of hiding it with visibility classes.

Came across this article which may create a different perspective to the problem.

Powered by Cobalt