Skip to content

Commit

Permalink
style(docs): use CSS grid
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 30, 2023
1 parent e238666 commit dc76fa9
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/src/components/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</Row>
<Row>
<Column>
<ul>
<div class="grid">
{#each pictogramNames as pictogram (pictogram)}
{#if filteredModuleNames.includes(pictogram)}
<ClickableTile
Expand All @@ -110,7 +110,7 @@
</ClickableTile>
{/if}
{/each}
</ul>
</div>
</Column>
</Row>
</Grid>
Expand All @@ -129,9 +129,8 @@
display: flex;
align-items: center;
justify-content: center;
width: calc(100% / 16);
min-width: 9.3875rem;
flex: 0 0 auto;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
:global(#select-theme) {
Expand All @@ -142,9 +141,9 @@
color: var(--cds-text-02);
}
ul {
display: flex;
flex-wrap: wrap;
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.flex {
Expand Down

0 comments on commit dc76fa9

Please sign in to comment.