Skip to content

Commit

Permalink
fix(cxl-ui): force symmetric course card grid
Browse files Browse the repository at this point in the history
  • Loading branch information
freudFlintstone committed Sep 28, 2023
1 parent 86c272d commit 601f226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/storybook/cxl-ui/cxl-course-card/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const sectionStyles = html`
<style>
section {
display: grid;
grid: auto-flow / repeat(2, 1fr);
grid: auto-flow / repeat(2, calc(50% - var(--lumo-space-l) / 2));
margin: 60px auto;
justify-items: center;
max-width: 900px;
Expand All @@ -74,7 +74,7 @@ export const sectionStyles = html`
@media (max-width: 800px) {
section {
grid: auto / 1fr;
grid: auto / 100%;
max-width: 100vw;
padding: var(--lumo-space-xs);
}
Expand All @@ -85,7 +85,7 @@ export const sectionStyles = html`
padding: 0;
}
section > * {
section > cxl-course-card {
max-width: calc(100vw - 2 * var(--lumo-space-xs) - var(--lumo-space-m));
}
}
Expand Down

0 comments on commit 601f226

Please sign in to comment.