Skip to content

Commit

Permalink
Improved expandable details styling
Browse files Browse the repository at this point in the history
  • Loading branch information
idesigncode committed Jun 8, 2023
1 parent d83d480 commit aa470b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/storybook.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ body,
/* Expandable section */
details {
&[open] {
margin-bottom: 3em;

summary {
margin-bottom: 1em;
}
Expand All @@ -112,8 +114,14 @@ body,
summary {
cursor: pointer;

&::marker {
font-size: 1.5em;
}

p {
display: inline;
font-weight: bold;
text-decoration: underline;
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions stories/PropsTable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ For further control, you can also use `props` to override each `required`, `type

<details>
<summary>
<p>
<strong>Examples of all prop types</strong>
</p>
<p>Examples of all prop types</p>
</summary>

Below is a complete list of example props showing how the `PropsTable` will display them:
Expand Down
4 changes: 1 addition & 3 deletions stories/Webpack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ These can be easily added to `.storybook/main.mjs` with the named export `webpac

<details>
<summary>
<p>
<strong>Using `webpackFinal` with custom configuration settings</strong>
</p>
<p>Using `webpackFinal` with custom configuration settings</p>
</summary>

You can alternatively use the imported `webpackFinal` async function with your own custom configuration settings:
Expand Down

0 comments on commit aa470b7

Please sign in to comment.