Skip to content

Commit

Permalink
[docs] Devdocs Bootstrap media refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
roland04 committed Jan 3, 2024
1 parent 9068af5 commit 0046c93
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/devupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,38 @@ should be replaced with:

:::

- The .media component has been replaced with utility classes.

:::info Media refactor example

The following code:

```html
<div class="media">
<div class="media-left">
[...]
</div>
<div class="media-body">
[...]
</div>
</div>
```

could be replaced with:

```html
<div class="d-flex">
<div class="flex-shrink-0">
[...]
</div>
<div class="flex-grow-1 ml-3">
[...]
</div>
</div>
```

:::

## Previous versions

- [Moodle 4.3 developer update](./4.3/devupdate)
Expand Down

0 comments on commit 0046c93

Please sign in to comment.