You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
It converts a standard table to a definition list (dl, dt, and dd). I don't love the dependence on JavaScript, but I don't see a better (non-hackish) solution in pure CSS.
My plans so far are to activate this behavior by adding the linear class to a table entity.
The one tricky piece is that it's difficult to determine when the table has reached a point of overflow from the user's perspective. I think it would be most straightforward to set the table to collapse at one of the breakpoints ($breakpoint-xsmall) and then fine-tune with the following conditions:
If somehow the table element has exceeded the width of its parent element, then activate the linear version
Allow developer to configure per each table (possibly via data- attribute)
Allow developer to configure the aforementioned base breakpoint for linearization
@hyperboy raises (and all agree) that we should target CSS-only solutions to start - that keeps the DOM structured and avoids the problem @lnicks raised
Implementation ticket for the extension for Entity/Table that would provide for a Linearized Table on smaller viewports.
Research for this extension started in #71
The text was updated successfully, but these errors were encountered: