Skip to content

Commit

Permalink
chore(storefront): Fix smaller MDX styling issues (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunear authored May 3, 2024
1 parent 0dce5ef commit 9294da4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/storefront/components/Image/Image.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.container {
display: flex;
max-width: 800px;
max-width: var(--media-max-width);
margin: var(--fds-spacing-7) 0;
border-radius: var(--fds-border_radius-medium);
flex-wrap: wrap;
Expand Down
8 changes: 6 additions & 2 deletions apps/storefront/components/MdxContent/MdxContent.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
.content > p,
.content > h2,
.content > h3,
.content > h4 {
.content > h4,
.content > ul,
.content > ol {
max-width: 740px;
}

Expand Down Expand Up @@ -154,7 +156,9 @@
font-weight: 600;
}

.content p code {
.content p code,
.content ul code,
.content ol code {
padding: 0.2em 0.5em;
margin: 1px;
font-size: 0.9em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
position: relative;
overflow: hidden;
width: 100%;
max-width: var(--media-max-width);
padding-top: 56.25%;
box-shadow: var(--fds-shadow-medium);
border-radius: 4px;
Expand Down
1 change: 1 addition & 0 deletions apps/storefront/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--grid-gap: var(--fds-spacing-8);
--page-spacing-top: var(--fds-spacing-14);
--page-spacing-bottom: var(--fds-spacing-14);
--media-max-width: 800px;
}

body {
Expand Down

0 comments on commit 9294da4

Please sign in to comment.