Add button stylings (By magnuma)
parent
e4c268612f
commit
69ad6c9370
|
@ -58,7 +58,7 @@ H5P.init = function () {
|
||||||
|
|
||||||
// Add Fullscreen button if relevant.
|
// Add Fullscreen button if relevant.
|
||||||
if (H5PIntegration.getFullscreen(contentId)) {
|
if (H5PIntegration.getFullscreen(contentId)) {
|
||||||
H5P.jQuery('<div class="h5p-content-controls"><a href="#" class="h5p-enable-fullscreen">' + H5PIntegration.fullscreenText + '</a></div>').insertBefore($el).children().click(function () {
|
H5P.jQuery('<div class="h5p-content-controls"><div role="button" class="h5p-enable-fullscreen">' + H5PIntegration.fullscreenText + '</div></div>').insertBefore($el).children().click(function () {
|
||||||
H5P.fullScreen($el, obj);
|
H5P.fullScreen($el, obj);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
@ -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 {
|
body.h5p-iframe-content {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -21,28 +32,42 @@ div.h5p-semi-fullscreen {
|
||||||
}
|
}
|
||||||
|
|
||||||
.h5p-content-controls {
|
.h5p-content-controls {
|
||||||
margin-bottom: 10px;
|
margin: 0;
|
||||||
text-align: right;
|
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 {
|
.h5p-content-controls > a:link, .h5p-content-controls > a:visited, a.h5p-disable-fullscreen:link, a.h5p-disable-fullscreen:visited {
|
||||||
color: #e5eef6;
|
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 {
|
.h5p-enable-fullscreen, .h5p-disable-fullscreen {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
background: #539ad7;
|
border: 0.2em solid #fff;
|
||||||
background-image: -webkit-linear-gradient(top, #4584ba, #539ad7);
|
border-radius: 0.4em;
|
||||||
background-image: -moz-linear-gradient(top, #4584ba, #539ad7);
|
margin: 1em 1.2em;
|
||||||
background-image: -o-linear-gradient(top, #4584ba, #539ad7);
|
cursor: pointer;
|
||||||
background-image: -ms-linear-gradient(top, #4584ba, #539ad7);
|
color: #fff;
|
||||||
background-image: linear-gradient(to bottom, #4584ba, #539ad7);
|
box-shadow: 0 0 0.5em #999;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4584ba', endColorstr='#539ad7',GradientType=0);
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
box-shadow: 0 0 8px #bebebe;
|
text-decoration: none;
|
||||||
opacity: 0.8;
|
font-family: Verdana, Arial, sans-serif;
|
||||||
filter: alpha(opacity = 80);
|
|
||||||
|
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 {
|
.h5p-disable-fullscreen {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -52,8 +77,14 @@ div.h5p-semi-fullscreen {
|
||||||
}
|
}
|
||||||
.h5p-enable-fullscreen:hover, .h5p-disable-fullscreen:hover {
|
.h5p-enable-fullscreen:hover, .h5p-disable-fullscreen:hover {
|
||||||
text-decoration: none;
|
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 {
|
.h5p-iframe-wrapper.h5p-fullscreen {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in New Issue