Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
legionaire Posted Thursday at 11:53 PM Posted Thursday at 11:53 PM is ipsGrid_span no longer used in 5.0 and if not what replaced it ?
Management Matt Posted yesterday at 09:13 AM Management Posted yesterday at 09:13 AM I'm going to tag in our CSS maestro @Ehren for assistance. SeNioR- 1
SeNioR- Posted yesterday at 10:26 AM Posted yesterday at 10:26 AM Hi. You need to replace ipsGrid with ipsData and ipsData--grid and for single record you need to useipsData__item. David N. and Adriano Faria 2
Management Matt Posted yesterday at 11:01 AM Management Posted yesterday at 11:01 AM Ehren, you look different today. DawPi, TSP, Gary and 1 other 4
legionaire Posted yesterday at 11:19 AM Author Posted yesterday at 11:19 AM Thanks to you both will give that a shot 🙂
Solution Ehren Posted 14 hours ago Solution Posted 14 hours ago On 11/15/2024 at 10:53 AM, legionaire said: is ipsGrid_span no longer used in 5.0 and if not what replaced it ? ipsGrid has moved to a more fluid concept in version 5. With version 4, you'd typically add ipsGrid and then each child would need to use a ipsGrid_spanx class which told it how many columns to span (out of 12). On tablets and phones, these grids would automatically collapse to 1 column. That concept was fine a decade ago, but with the limitless amount of devices these days, fluid/dynamic concepts are better. In version 5, when you assign ipsGrid, all children are automatically assigned to a grid (the span class is now redundant). By default, grids have an ideal column width of 260px, but you can change that by adding a basis class, such as i-basis_350 which will make all columns 350px, or by changing the --i-basis CSS variable for that element. Columns will automatically grow/shrink/add/remove depending on the available space on the screen. If you need to restrict the grid to a certain amount of columns (lets assume you never want more than 3 columns for some reason), you can add ipsGrid--max-3 to the parent. If you need to use the old grid system and force content into a 12 column grid (like v4), you can use .ipsSpanGrid on the parent, and then ipsSpanGrid__4 (for example) on the children. But the new fluid code is better 🙂Â
Recommended Posts