File: Stack.md

package info (click to toggle)
cockpit 354-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308,956 kB
  • sloc: javascript: 775,606; python: 40,351; ansic: 35,655; cpp: 11,117; sh: 3,511; makefile: 580; xml: 261
file content (44 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
id: Stack
section: layouts
cssPrefix: pf-v6-l-stack
---import './Stack.css'

## Examples

### Basic

```html
<div class="pf-v6-l-stack">
  <div class="pf-v6-l-stack__item">content</div>
  <div class="pf-v6-l-stack__item pf-m-fill">pf-m-fill</div>
  <div class="pf-v6-l-stack__item">content</div>
</div>

```

### With gutter

```html
<div class="pf-v6-l-stack pf-m-gutter">
  <div class="pf-v6-l-stack__item">content</div>
  <div class="pf-v6-l-stack__item pf-m-fill">pf-m-fill</div>
  <div class="pf-v6-l-stack__item">content</div>
</div>

```

## Documentation

### Overview

The stack layout is designed to position items vertically.

### Usage

| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-l-stack` | `*` | Initiates the stack layout.  |
| `.pf-v6-l-stack__item` | `*` | Initiates a stack item.  |
| `.pf-m-gutter` | `.pf-v6-l-stack` | Adds space between children by using the globally defined gutter value. |
| `.pf-m-fill` | `.pf-v6-l-stack > *`, `.pf-v6-l-stack__item` | Specifies which item(s) should fill the avaiable vertical space. |