Skip to content

Commit

Permalink
use % instead of vh
Browse files Browse the repository at this point in the history
steelydylan committed Feb 3, 2017
1 parent e443b10 commit f61d906
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion css/modal-video.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion js/modal-video.js
Original file line number Diff line number Diff line change
@@ -119,7 +119,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol

function getHtml(opt, videoId) {
var videoUrl = getVideoUrl(opt, videoId);
console.log(videoUrl);
var padding = getPadding(opt.ratio);
return '\n\t\t\t\t\t<div class="' + opt.classNames.modalVideo + '" tabindex="-1" role="dialog" aria-label="' + opt.aria.openMessage + '">\n\t\t\t\t\t\t<div class="' + opt.classNames.modalVideoBody + '">\n\t\t\t\t\t\t\t<div class="' + opt.classNames.modalVideoInner + '">\n\t\t\t\t\t\t\t\t<div class="' + opt.classNames.modalVideoIframeWrap + '" style="padding-bottom:' + padding + '">\n\t\t\t\t\t\t\t\t\t<button class="' + opt.classNames.modalVideoCloseBtn + ' js-modal-video-dismiss-btn" aria-label="' + opt.aria.dismissBtnMessage + '"/>\n\t\t\t\t\t\t\t\t\t<iframe width=\'460\' height=\'230\' src="' + videoUrl + '" frameborder=\'0\' allowfullscreen=' + opt.allowFullScreen + ' tabindex="-1"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t';
}
2 changes: 1 addition & 1 deletion js/modal-video.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scss/modal-video.scss
Original file line number Diff line number Diff line change
@@ -25,8 +25,8 @@ $backdrop-color: rgba(0, 0, 0, .5);
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
background-color: $backdrop-color;
z-index: 1000000;
cursor: pointer;
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -115,7 +115,6 @@

function getHtml(opt,videoId) {
const videoUrl = getVideoUrl(opt,videoId);
console.log(videoUrl);
const padding = getPadding(opt.ratio);
return `
<div class="${opt.classNames.modalVideo}" tabindex="-1" role="dialog" aria-label="${opt.aria.openMessage}">

0 comments on commit f61d906

Please sign in to comment.