Media Grid

admin 11/22/2021

Media Grid has got a search bar to easily find items in grids. It is enabled in the shortode wizard and aligned accordingly with filters. By default the search will be performed on item titles. However you can improve the search results using the helper, in 'Edit Item' page. Media Grid is an unique tool to create unlimited responsive, filterable, paginated portfolios with ease. Using advanced CSS and javascript techniques allows you to create your own layouts and adapt them to any container. Unique means not repeatable by any tool: forget about fixed rows or schemes, here your creativity can be fully exploited. The Texas Tribune is a nonprofit, nonpartisan media organization that informs Texans — and engages with them — about public policy, politics, government and statewide issues. Graphic by ERCOT. ERCOT doesn’t have the power to mandate major changes. That’s the job of the Public Utility Commission (PUC), which oversees ERCOT and regulates the grid, as well as the Railroad Commission. “Community grid-only would crush businesses that directly rely on Interstate 81,” Ulatowski said. Salina Town Supervisor Colleen Gunnip said her town has fueling stations, 19 hotels and 50-60 restaurants that were built around I-81. “If that traffic gets rerouted, all of those businesses go away,” Gunnip said.

Onondaga County town supervisors are objecting to Gov. Andrew Cuomo allocating $800 million in the budget towards replacing the elevated I-81 highway in downtown Syracuse with a street-level community grid. The state DOT selected that as the preferred option. The town supervisors, who represent nearly 70% of the county, want some kind of high-speed access through the city, like a depressed highway or suspension bridge.

Clay Town Supervisor Damian Ulatowski said state and federal transportation officials are not listening to their concerns.

“Our constituents need to be taken into consideration in this proposal. Not just the city,” Ulatowski said.

Having only the community grid, he said, would fail miserably because it would bring thousands of cars and trucks onto city streets creating gridlock, pollution, traffic accidents and would reduce pedestrian safety. The current proposal not only eliminates 1.4 miles of the elevated highway, but also reroutes roughly 13 miles of the existing I-81 to Interstate-481, which goes around the city and the Town of Salina.

“Community grid-only would crush businesses that directly rely on Interstate 81,” Ulatowski said.

Salina Town Supervisor Colleen Gunnip said her town has fueling stations, 19 hotels and 50-60 restaurants that were built around I-81.

“If that traffic gets rerouted, all of those businesses go away,” Gunnip said.

She's still waiting on an economic analysis of how the I-81 project would impact businesses in the northern suburbs. That’s included in the DOT’s draft environmental impact statement, under review by the Federal Highway Administration, and expected to be made public later this summer.

Ulatowski and the town supervisors wrote letters to U.S. Transportation Secretary Pete Buttigieg, Governor Cuomo, Sens. Charles Schumer and Kirsten Gillibrand, asking to be included in any future meetings.

“Not once have we been recognized for our position, or been invited to the table to have a dialogue. I think that’s what needs to happen,” Ulatowski said.

Momentum for the project has been building. Syracuse Mayor Ben Walsh, a supporter of the community grid, met with Buttigieg’s staff in February and called it very encouraging. President Joe Biden mentioned I-81 in his infrastructure pitch.

Town of Clay, NY letter to Transportation Secretary Buttigieg by Kelly Nickerson on Scribd

View the discussion thread.

Media queries are commonly used to control responsive layouts on websites.Organizing layouts this way is intuitive: On a wide desktop display, we want topresent information in columns, and as screen width diminishes below athreshold, we stack elements vertically. With modern CSS, solutions to thisproblem have become easier than in the past. No longer must we use kludgey ruleslike display: table; to achieve the layout of our dreams. CSS modules likeflexbox and several clever frameworks have made grids easy to achieve withminimal code, but with CSS grid we can write our grid rules once, and achievethe desired layout at any screen size with a single rule, and without anyframework.

As an example, let’s take a common layout for a user profile. In a profile wehave a user name, avatar, and short biography. Our markup might look somethinglike this:

How do we flex it?

I’ve seen media queries of all varieties trying to solve the same problem. Acommon method is to describe a media query which sets the rule display: flex;on a container above a certain width:

This relies on the initial flex-direction of a flexbox being row and theinitial value of flex-wrap being nowrap. When the children are blockelements, they will naturally stack vertically when the display: flex; rule nolonger applies. Alternatively, we could write a query to swap the value offlex-direction for row or column.

The drawback to the flexbox solution is that in order to achieve complex layoutrules with blocks arranged along 2 axes, such as an element spanning 2 rows, wemust:

  1. nest elements
  2. write queries to ensure margins and gutters (white space between rows andcolumns) remain equal,
  3. trip over the order rules of child elements to correctly organize them.
Harmonic video server

What a headache! Media queries will quickly get out of hand if we take thisapproach for any complex layout.

Enter grid-template-areas

CSS grid definitely has the advantage when it comes to quickly organizinglayouts. Even simple layouts require minimal effort with CSS grid compared toflexbox. With the grid-template-areas property, we can write responsivelayouts with a single rule inside a media query. That’s becausegrid-template-areas defines a visual grid system on both axes at the once.Take a look:

This rule tells the container that there are three areas: “name”, “avatar”, and“bio”, arranged in a pattern with the avatar and username side by side in thefirst row, and the bio section in a second row spanning both columns. The magicof this rule is that the number of columns is inferred by the property values.Each name separated by one or more spaces defines a column (and each row mustdefine the same number of columns). For clarity, I broke up the rows ontoseparate lines to visualize the result of the grid. Our child elements simplyneed to tell the grid which area they appear in, and the container does therest:

Now a simple media query to rearrange the grid template will handle ourresponsive layout:

And now our children will stack vertically in a viewport up to 700px!

Keep accessibility in mind when reordering elements

When reordering elements visually, it’s important to ensure that the documentstructure is ordered logically for accessibility. Hereare some thoughts on maintaining accessibility when working with grid.

Vector Media Grid

Now, what if we want to show the user’s avatar first, with their nameunderneath? we can simply reorder the areas with the same property:

Aqueon Bio Media Grid

Furthermore, we can rearrange the grid areas in any arbitrary layout with thatsingle rule, and because the CSS grid system handles gutters with aflick of the grid-gap rule, we don’t have to worry about any conditionalmargins on our child elements. So the next time you tackle a layout with complexresponsive behavior, choose CSS grid and spend less time in front of yourcomputer.