diff --git a/js/h5p.js b/js/h5p.js index dc04eb6..11cffe1 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -58,7 +58,7 @@ H5P.init = function () { // Add Fullscreen button if relevant. if (H5PIntegration.getFullscreen(contentId)) { - H5P.jQuery('
' + H5PIntegration.fullscreenText + '
').insertBefore($el).children().click(function () { + H5P.jQuery('
' + H5PIntegration.fullscreenText + '
').insertBefore($el).children().click(function () { H5P.fullScreen($el, obj); return false; }); diff --git a/styles/h5p.css b/styles/h5p.css index 96d7b41..2714509 100644 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -1,3 +1,14 @@ +@font-face { + font-family: 'FontAwesome'; + src:url('../fonts/fontawesome-webfont.eot'); + src:url('../fonts/FontAwesome.otf?#iefix') format('embedded-opentype'), + url('../fonts/fontawesome-webfont.woff.woff') format('woff'), + url('../fonts/fontawesome-webfont.ttf') format('truetype'), + url('../fonts/fontawesome-webfont.svg#icomoon') format('svg'); + font-weight: normal; + font-style: normal; +} + body.h5p-iframe-content { font-family: Arial, Helvetica, sans-serif; margin: 0; @@ -21,28 +32,42 @@ div.h5p-semi-fullscreen { } .h5p-content-controls { - margin-bottom: 10px; + margin: 0; text-align: right; + margin: 0; } .h5p-content-controls > a:link, .h5p-content-controls > a:visited, a.h5p-disable-fullscreen:link, a.h5p-disable-fullscreen:visited { color: #e5eef6; } +.h5p-enable-fullscreen:before, .h5p-disable-fullscreen:before { + font-family: FontAwesome; + margin-right: 10px; + content: "\f0b2"; + font-size: 1.2em; +} + .h5p-enable-fullscreen, .h5p-disable-fullscreen { display: inline-block; padding: 6px 12px; - background: #539ad7; - background-image: -webkit-linear-gradient(top, #4584ba, #539ad7); - background-image: -moz-linear-gradient(top, #4584ba, #539ad7); - background-image: -o-linear-gradient(top, #4584ba, #539ad7); - background-image: -ms-linear-gradient(top, #4584ba, #539ad7); - background-image: linear-gradient(to bottom, #4584ba, #539ad7); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4584ba', endColorstr='#539ad7',GradientType=0); + border: 0.2em solid #fff; + border-radius: 0.4em; + margin: 1em 1.2em; + cursor: pointer; + color: #fff; + box-shadow: 0 0 0.5em #999; font-size: 12px; - box-shadow: 0 0 8px #bebebe; - opacity: 0.8; - filter: alpha(opacity = 80); + text-decoration: none; + font-family: Verdana, Arial, sans-serif; + + background: rgb(100,152,254); /* Old browsers */ + background: -moz-linear-gradient(top, rgba(100,152,254,1) 0%, rgba(4,104,206,1) 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(100,152,254,1)), color-stop(100%,rgba(4,104,206,1))); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6498fe', endColorstr='#0468ce',GradientType=0 ); /* IE6-9 */ } .h5p-disable-fullscreen { position: absolute; @@ -52,8 +77,14 @@ div.h5p-semi-fullscreen { } .h5p-enable-fullscreen:hover, .h5p-disable-fullscreen:hover { text-decoration: none; - opacity: 0.9; - filter: alpha(opacity = 90); + + background: rgb(4,104,206); /* Old browsers */ + background: -moz-linear-gradient(top, rgba(4,104,206,1) 0%, rgba(100,152,254,1) 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(4,104,206,1)), color-stop(100%,rgba(100,152,254,1))); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, rgba(4,104,206,1) 0%,rgba(100,152,254,1) 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, rgba(4,104,206,1) 0%,rgba(100,152,254,1) 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, rgba(4,104,206,1) 0%,rgba(100,152,254,1) 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0468ce', endColorstr='#6498fe',GradientType=0 ); /* IE6-9 */ } .h5p-iframe-wrapper.h5p-fullscreen { width: 100%;