Skip to content
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

docs(website): update stack documentation - FRONT-4577 #3572

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ order: 2

import { Playground } from '@ecl/website-components';

To start using the stack utilities, make sure the container has `display: flex` or `display: inline-flex`. You can use the `.ecl-u-d-inline-flex` or `.ecl-u-d-inline-flex` classes for this.
Stacks consist in a set of utilites leveraging the power of [CSS flexbox](https://www.w3.org/TR/2018/CR-css-flexbox-1-20181119/) in order to give you the ability to build complex layouts.
A stack can be nested inside another stack, making it possible to create a wide range of layouts.

Notice: Don't use stacks when the layout you're aiming for depends on the grid, use the grid itself.

To start using the stack utilities, make sure the container has `display: flex` or `display: inline-flex`. You can use the `.ecl-u-d-flex` or `.ecl-u-d-inline-flex` classes for this.

<Playground>
<div className="demo-container ecl-u-d-flex">Flex container</div>
Expand Down
28 changes: 0 additions & 28 deletions src/website/src/pages/ec/utilities/layout/stacks/docs/usage.mdx

This file was deleted.

4 changes: 2 additions & 2 deletions src/website/src/pages/ec/utilities/layout/stacks/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Stacks
defaultTab: usage
title: Stacks (Flex)
defaultTab: code
status: ready
playground:
system: ec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ order: 2

import { Playground } from '@ecl/website-components';

To start using the stack utilities, make sure the container has `display: flex` or `display: inline-flex`. You can use the `.ecl-u-d-inline-flex` or `.ecl-u-d-inline-flex` classes for this.
Stacks consist in a set of utilites leveraging the power of [CSS flexbox](https://www.w3.org/TR/2018/CR-css-flexbox-1-20181119/) in order to give you the ability to build complex layouts.
A stack can be nested inside another stack, making it possible to create a wide range of layouts.

Notice: Don't use stacks when the layout you're aiming for depends on the grid, use the grid itself.

To start using the stack utilities, make sure the container has `display: flex` or `display: inline-flex`. You can use the `.ecl-u-d-flex` or `.ecl-u-d-inline-flex` classes for this.

<Playground>
<div className="demo-container ecl-u-d-flex">Flex container</div>
Expand Down
28 changes: 0 additions & 28 deletions src/website/src/pages/eu/utilities/layout/stacks/docs/usage.mdx

This file was deleted.

4 changes: 2 additions & 2 deletions src/website/src/pages/eu/utilities/layout/stacks/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Stacks
defaultTab: usage
title: Stacks (Flex)
defaultTab: code
status: ready
playground:
system: eu
Expand Down
Loading