Skip to content

Clean up flex docs #1804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/pages/docs/flex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Use `flex-initial` to allow a flex item to shrink but not grow, taking into acco

```html
<div class="flex">
<div class="flex-none w-14 h-14">
<div class="flex-none w-14 ...">
01
</div>
<div class="**flex-initial** w-64 ...">
Expand All @@ -52,7 +52,7 @@ Use `flex-1` to allow a flex item to grow and shrink as needed, ignoring its ini

```html
<div class="flex">
<div class="flex-none ...">
<div class="flex-none w-14 ...">
01
</div>
<div class="**flex-1** w-64 ...">
Expand All @@ -78,7 +78,7 @@ Use `flex-auto` to allow a flex item to grow and shrink, taking into account its

```html
<div class="flex ...">
<div class="flex-none ...">
<div class="flex-none w-14 ...">
01
</div>
<div class="**flex-auto** w-64 ...">
Expand All @@ -97,12 +97,12 @@ Use `flex-none` to prevent a flex item from growing or shrinking:
```html {{ example: { resizable: true } }}
<div class="flex gap-4 text-white text-sm font-bold font-mono leading-6 bg-stripes-indigo rounded-lg">
<div class="flex-none last:pr-8 sm:last:pr-0">
<div class="p-4 w-14 h-14 rounded-lg flex items-center justify-center bg-indigo-300 dark:bg-indigo-800 dark:text-indigo-400">
<div class="p-4 w-14 h-14 rounded-lg flex items-center justify-center bg-indigo-500">
01
</div>
</div>
<div class="flex-none last:pr-8 sm:last:pr-0">
<div class="p-4 w-72 rounded-lg flex items-center justify-center bg-indigo-500 shadow-lg">
<div class="p-4 w-32 rounded-lg flex items-center justify-center bg-indigo-500 shadow-lg">
02
</div>
</div>
Expand All @@ -116,10 +116,10 @@ Use `flex-none` to prevent a flex item from growing or shrinking:

```html
<div class="flex ...">
<div class="flex-none w-14 h-14 ...">
<div class="**flex-none** w-14 ...">
01
</div>
<div class="**flex-none** ...">
<div class="**flex-none** w-32 ...">
02
</div>
<div class="flex-1 ...">
Expand Down