Skip to content

Commit

Permalink
Merge pull request #54 from contao-themes-net/bugfix/video-element
Browse files Browse the repository at this point in the history
Fix youtube and video element
  • Loading branch information
MDevster committed Sep 21, 2023
2 parents 37d7930 + 456219e commit c968f14
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ Types of changes
Security in case of vulnerabilities.
)

## [3.3.2](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.2) – 2023-09-21

- [Fixed] Fix youtube and video element

## [3.3.1](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.1) – 2023-07-14

- [Fixed] Fix gallery pagination
Expand Down
28 changes: 15 additions & 13 deletions public/scss/parts/elements.scss
Expand Up @@ -190,22 +190,24 @@ h6 {
}
}

.ce_youtube {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;

iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
.content-youtube, .content-player {
figure {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
}

.content-youtube iframe, .content-player video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

hr {
border: 0;
border-top: 3px solid $oddColor2;
Expand Down
2 changes: 1 addition & 1 deletion src/Module/OddThemeSetup.php
Expand Up @@ -22,7 +22,7 @@

class OddThemeSetup extends BackendModule
{
public const VERSION = '3.3.1';
public const VERSION = '3.3.2';

protected $strTemplate = 'be_oddtheme_setup';

Expand Down

0 comments on commit c968f14

Please sign in to comment.