An open API service indexing awesome lists of open source software.

https://github.com/stuymedova/kirbytext-video-plugin

Kirby CMS Plugin to set the width of each (video: …) to 100%
https://github.com/stuymedova/kirbytext-video-plugin

kirby kirby-cms kirby-plugin kirby3 kirby3-cms kirby3-plugin

Last synced: about 2 months ago
JSON representation

Kirby CMS Plugin to set the width of each (video: …) to 100%

Awesome Lists containing this project

README

        

# Kirbytext Video Plugin

Sets the width of each video added with a [`(video: …)`](https://getkirby.com/docs/reference/text/kirbytags/video) tag to 100% while maintaining the height.

Overrides the default `(video: …)` KirbyTag located in `kirby/config/tags.php`. More info on overriding the default tags: [getkirby.com/docs/reference/plugins/extensions/kirbytags#overriding-default-kirbytags](https://getkirby.com/docs/reference/plugins/extensions/kirbytags#overriding-default-kirbytags).

## Output

```html




Caption goes here.

```

## Setup
1. Download and copy this repository to `/site/plugins`
2. Add the following CSS to the project:
```css
.video-wrapper {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16:9 ratio */
}

.video-wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
```