Vimeo fix
This commit is contained in:
@ -7,10 +7,10 @@
|
||||
// Default to 16:9 ratio but this is set by JavaScript based on config
|
||||
$padding: ((100 / 16) * 9);
|
||||
$height: 200;
|
||||
$offset: percentage(($height - $padding) / ($height / 50));
|
||||
$offset: to-percentage(($height - $padding) / ($height / 50));
|
||||
|
||||
height: 0;
|
||||
padding-bottom: percentage($padding);
|
||||
padding-bottom: to-percentage($padding);
|
||||
|
||||
iframe {
|
||||
border: 0;
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
// Vimeo hack
|
||||
> div {
|
||||
padding-bottom: percentage($height);
|
||||
padding-bottom: to-percentage($height);
|
||||
position: relative;
|
||||
transform: translateY(-$offset);
|
||||
}
|
||||
|
Reference in New Issue
Block a user