diff --git a/assets/main.scss b/assets/main.scss index 05d1a7c..2e58bb8 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -46,6 +46,9 @@ $maxwidthwide: 1400px; $contentwidth: 80%; $contentwidthwide: 92%; +$enable-grid-classes: false; +$enable-cssgrid: true; + @font-face { font-family: "Inter"; src: url("fonts/Inter/Inter-VariableFont_slnt,wght.ttf"); @@ -910,6 +913,48 @@ body { // TODO: I think this shouldn't be neccesary border-top: 0px; } +/** + * + * Define toggled state + * @ change the appropriate row's height on the parent grid to 0 via `grid-template-rows` + * @ change the element to hide's visibility to 'hidden' + * +**/ + +.ecosystem-grid { + grid-auto-rows: var(--rowHeight); + display: grid; + // grid-template-columns: 1fr 1fr 1fr 1fr; + // grid-auto-rows: var(--rowHeight); + grid-auto-rows: 1fr; + /* Or use grid-template-rows if row heights will need to be varied / manually set */ +} +.eco-table { + display: grid; + flex-wrap: wrap; + margin-bottom: 5rem; + + grid-auto-flow: row; + // grid-template-columns: 1fr 1fr; + gap: 2rem; + + @media (max-width: 50rem), (max-device-width: 40rem) { + grid-template-rows: 1fr; + } +} +.eco-table-entry { + // grid-column: span 4; + justify-content: flex-end; +} + +.grid-hiderows { + grid-template-rows: var(--rowHeight) 0; +} + +.grid-hiderows { + visibility: hidden; + backface-visibility: hidden !important; +} // Specific to /tutorials diff --git a/layouts/packages/list.html b/layouts/packages/list.html index 2220554..a7f9c36 100644 --- a/layouts/packages/list.html +++ b/layouts/packages/list.html @@ -58,24 +58,19 @@
Package | -Description | -
---|---|
- {{ $lib.name }} - | -{{ $lib.description | markdownify }} | -
{{ $lib.description | markdownify }}
+