File: Display.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 (102 lines) | stat: -rw-r--r-- 2,599 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
id: Display
section: utility-classes
---import './Display.css'

## Examples

### Inline

```html
<div class="pf-v6-u-display-inline">.pf-v6-u-display-inline</div>

```

### Block

```html
<div class="pf-v6-u-display-block">.pf-v6-u-display-block</div>

```

### Inline block

```html
<div class="pf-v6-u-display-inline-block">.pf-v6-u-display-inline-block</div>

```

### Flex

```html
<div class="pf-v6-u-display-flex">.pf-v6-u-display-flex</div>

```

### Inline flex

```html
<div class="pf-v6-u-display-inline-flex">.pf-v6-u-display-inline-flex</div>

```

### Grid

```html
<div class="pf-v6-u-display-grid">.pf-v6-u-display-grid</div>

```

### Inline grid

```html
<div class="pf-v6-u-display-inline-grid">.pf-v6-u-display-inline-grid</div>

```

### Table, table row, table cell

```html
<div class="pf-v6-u-display-table">
  <div class="pf-v6-u-display-table-row">
    <div class="pf-v6-u-display-table-cell">table-cell</div>
    <div class="pf-v6-u-display-table-cell">table-cell</div>
    <div class="pf-v6-u-display-table-cell">table-cell</div>
  </div>
  <div class="pf-v6-u-display-table-row">
    <div class="pf-v6-u-display-table-cell">table-cell</div>
    <div class="pf-v6-u-display-table-cell">table-cell</div>
    <div class="pf-v6-u-display-table-cell">table-cell</div>
  </div>
</div>

```

### None

```html
<div class="pf-v6-u-display-none-on-sm">Hidden on sm breakpoint</div>

```

## Documentation

### Overview

[Breakpoints](/tokens/all-patternfly-tokens) are optional. Breakpoint options include: base (no breakpoint value), `-on-sm`, `-on-md`, `-on-lg`, and `-on-xl`. Example: `.pf-v6-u-display-inline-block-on-lg`

### Usage

| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-u-display-inline{-on-[breakpoint]}` | `*` |  Sets display: inline |
| `.pf-v6-u-display-block{-on-[breakpoint]}` | `*` |  Sets display: block |
| `.pf-v6-u-display-inline-block{-on-[breakpoint]}` | `*` |  Sets display: inline-block |
| `.pf-v6-u-display-flex{-on-[breakpoint]}` | `*` |  Sets display: flex |
| `.pf-v6-u-display-inline-flex{-on-[breakpoint]}` | `*` |  Sets display: inline-flex |
| `.pf-v6-u-display-grid{-on-[breakpoint]}` | `*` |  Sets display: grid |
| `.pf-v6-u-display-inline-grid{-on-[breakpoint]}` | `*` |  Sets display: inline-grid |
| `.pf-v6-u-display-table{-on-[breakpoint]}` | `*` |  Sets display: table |
| `.pf-v6-u-display-table-row{-on-[breakpoint]}` | `*` |  Sets display: table-row |
| `.pf-v6-u-display-table-cell{-on-[breakpoint]}` | `*` |  Sets display: table-cell |
| `.pf-v6-u-display-none{-on-[breakpoint]}` | `*` |  Sets display: none |