mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-76691 core_h5p: Upgrade core lib to moodle-1.23
This commit is contained in:
parent
0780e87f06
commit
d18d90602b
@ -12,3 +12,7 @@ See existing implementations for details. For instance the Drupal H5P module loc
|
||||
We will make available documentation and tutorials for creating platform integrations in the future.
|
||||
|
||||
The H5P PHP library is GPL licensed due to GPL code being used for purifying HTML provided by authors.
|
||||
|
||||
## License
|
||||
|
||||
Open Sans font is licensed under Apache license, Version 2.0
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid meet">
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
<json>
|
||||
<![CDATA[
|
||||
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid meet">
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
<json>
|
||||
<![CDATA[
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
202
h5p/h5plib/v124/joubel/core/fonts/open-sans/LICENSE-2.0.txt
Normal file
202
h5p/h5plib/v124/joubel/core/fonts/open-sans/LICENSE-2.0.txt
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Moodle;
|
||||
|
||||
/**
|
||||
* File info?
|
||||
*/
|
||||
@ -11,13 +9,13 @@ namespace Moodle;
|
||||
* operations using PHP's standard file operation functions.
|
||||
*
|
||||
* Some implementations of H5P that doesn't use the standard file system will
|
||||
* want to create their own implementation of the H5P\FileStorage interface.
|
||||
* want to create their own implementation of the \H5P\FileStorage interface.
|
||||
*
|
||||
* @package H5P
|
||||
* @copyright 2016 Joubel AS
|
||||
* @license MIT
|
||||
*/
|
||||
class H5PDefaultStorage implements H5PFileStorage {
|
||||
class H5PDefaultStorage implements \H5PFileStorage {
|
||||
private $path, $alteditorpath;
|
||||
|
||||
/**
|
||||
@ -41,15 +39,19 @@ class H5PDefaultStorage implements H5PFileStorage {
|
||||
* Library properties
|
||||
*/
|
||||
public function saveLibrary($library) {
|
||||
$dest = $this->path . '/libraries/' . H5PCore::libraryToString($library, TRUE);
|
||||
$dest = $this->path . '/libraries/' . \H5PCore::libraryToFolderName($library);
|
||||
|
||||
// Make sure destination dir doesn't exist
|
||||
H5PCore::deleteFileTree($dest);
|
||||
\H5PCore::deleteFileTree($dest);
|
||||
|
||||
// Move library folder
|
||||
self::copyFileTree($library['uploadDirectory'], $dest);
|
||||
}
|
||||
|
||||
public function deleteLibrary($library) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the content folder.
|
||||
*
|
||||
@ -62,7 +64,7 @@ class H5PDefaultStorage implements H5PFileStorage {
|
||||
$dest = "{$this->path}/content/{$content['id']}";
|
||||
|
||||
// Remove any old content
|
||||
H5PCore::deleteFileTree($dest);
|
||||
\H5PCore::deleteFileTree($dest);
|
||||
|
||||
self::copyFileTree($source, $dest);
|
||||
}
|
||||
@ -74,7 +76,7 @@ class H5PDefaultStorage implements H5PFileStorage {
|
||||
* Content properties
|
||||
*/
|
||||
public function deleteContent($content) {
|
||||
H5PCore::deleteFileTree("{$this->path}/content/{$content['id']}");
|
||||
\H5PCore::deleteFileTree("{$this->path}/content/{$content['id']}");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -135,7 +137,8 @@ class H5PDefaultStorage implements H5PFileStorage {
|
||||
* Folder that library resides in
|
||||
*/
|
||||
public function exportLibrary($library, $target, $developmentPath=NULL) {
|
||||
$folder = H5PCore::libraryToString($library, TRUE);
|
||||
$folder = \H5PCore::libraryToFolderName($library);
|
||||
|
||||
$srcPath = ($developmentPath === NULL ? "/libraries/{$folder}" : $developmentPath);
|
||||
self::copyFileTree("{$this->path}{$srcPath}", "{$target}/{$folder}");
|
||||
}
|
||||
@ -294,7 +297,7 @@ class H5PDefaultStorage implements H5PFileStorage {
|
||||
* Save files uploaded through the editor.
|
||||
* The files must be marked as temporary until the content form is saved.
|
||||
*
|
||||
* @param H5peditorFile $file
|
||||
* @param \H5peditorFile $file
|
||||
* @param int $contentid
|
||||
*/
|
||||
public function saveFile($file, $contentId) {
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Moodle;
|
||||
|
||||
/**
|
||||
* This is a data layer which uses the file system so it isn't specific to any framework.
|
||||
*/
|
||||
@ -97,7 +95,9 @@ class H5PDevelopment {
|
||||
$this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE);
|
||||
|
||||
// Need to decode it again, since it is served from here.
|
||||
$library['metadataSettings'] = json_decode($library['metadataSettings']);
|
||||
$library['metadataSettings'] = isset($library['metadataSettings'])
|
||||
? json_decode($library['metadataSettings'])
|
||||
: NULL;
|
||||
|
||||
$library['path'] = 'development/' . $contents[$i];
|
||||
$this->libraries[H5PDevelopment::libraryToString($library['machineName'], $library['majorVersion'], $library['minorVersion'])] = $library;
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Moodle;
|
||||
|
||||
/**
|
||||
* The base class for H5P events. Extend to track H5P events in your system.
|
||||
*
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Moodle;
|
||||
|
||||
/**
|
||||
* File info?
|
||||
*/
|
||||
@ -19,6 +17,13 @@ interface H5PFileStorage {
|
||||
*/
|
||||
public function saveLibrary($library);
|
||||
|
||||
/**
|
||||
* Delete library folder
|
||||
*
|
||||
* @param array $library
|
||||
*/
|
||||
public function deleteLibrary($library);
|
||||
|
||||
/**
|
||||
* Store the content folder.
|
||||
*
|
||||
@ -140,7 +145,7 @@ interface H5PFileStorage {
|
||||
* Save files uploaded through the editor.
|
||||
* The files must be marked as temporary until the content form is saved.
|
||||
*
|
||||
* @param H5peditorFile $file
|
||||
* @param \H5peditorFile $file
|
||||
* @param int $contentId
|
||||
*/
|
||||
public function saveFile($file, $contentId);
|
||||
|
@ -1,7 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace Moodle;
|
||||
|
||||
/**
|
||||
* Utility class for handling metadata
|
||||
*/
|
||||
|
@ -1,9 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace Moodle;
|
||||
|
||||
use ZipArchive;
|
||||
|
||||
/**
|
||||
* Interface defining functions the h5p library needs the framework to implement
|
||||
*/
|
||||
@ -709,15 +704,15 @@ class H5PValidator {
|
||||
'source' => '/^(http[s]?:\/\/.+)$/',
|
||||
'license' => '/^(CC BY|CC BY-SA|CC BY-ND|CC BY-NC|CC BY-NC-SA|CC BY-NC-ND|CC0 1\.0|GNU GPL|PD|ODC PDDL|CC PDM|U|C)$/',
|
||||
'licenseVersion' => '/^(1\.0|2\.0|2\.5|3\.0|4\.0)$/',
|
||||
'licenseExtras' => '/^.{1,5000}$/',
|
||||
'licenseExtras' => '/^.{1,5000}$/s',
|
||||
'yearsFrom' => '/^([0-9]{1,4})$/',
|
||||
'yearsTo' => '/^([0-9]{1,4})$/',
|
||||
'changes' => array(
|
||||
'date' => '/^[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{1,2}:[0-9]{2}:[0-9]{2}$/',
|
||||
'author' => '/^.{1,255}$/',
|
||||
'log' => '/^.{1,5000}$/'
|
||||
'log' => '/^.{1,5000}$/s'
|
||||
),
|
||||
'authorComments' => '/^.{1,5000}$/',
|
||||
'authorComments' => '/^.{1,5000}$/s',
|
||||
'w' => '/^[0-9]{1,4}$/',
|
||||
'h' => '/^[0-9]{1,4}$/',
|
||||
// deprecated
|
||||
@ -800,6 +795,10 @@ class H5PValidator {
|
||||
* TRUE if the .h5p file is valid
|
||||
*/
|
||||
public function isValidPackage($skipContent = FALSE, $upgradeOnly = FALSE) {
|
||||
// Create a temporary dir to extract package in.
|
||||
$tmpDir = $this->h5pF->getUploadedH5pFolderPath();
|
||||
$tmpPath = $this->h5pF->getUploadedH5pPath();
|
||||
|
||||
// Check dependencies, make sure Zip is present
|
||||
if (!class_exists('ZipArchive')) {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Your PHP version does not support ZipArchive.'), 'zip-archive-unsupported');
|
||||
@ -812,10 +811,6 @@ class H5PValidator {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Create a temporary dir to extract package in.
|
||||
$tmpDir = $this->h5pF->getUploadedH5pFolderPath();
|
||||
$tmpPath = $this->h5pF->getUploadedH5pPath();
|
||||
|
||||
// Only allow files with the .h5p extension:
|
||||
if (strtolower(substr($tmpPath, -3)) !== 'h5p') {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('The file you uploaded is not a valid HTML5 Package (It does not have the .h5p file extension)'), 'missing-h5p-extension');
|
||||
@ -858,7 +853,7 @@ class H5PValidator {
|
||||
$totalSize += $fileStat['size'];
|
||||
|
||||
$fileName = mb_strtolower($fileStat['name']);
|
||||
if (preg_match('/(^[\._]|\/[\._])/', $fileName) !== 0) {
|
||||
if (preg_match('/(^[\._]|\/[\._]|\\\[\._])/', $fileName) !== 0) {
|
||||
continue; // Skip any file or folder starting with a . or _
|
||||
}
|
||||
elseif ($fileName === 'h5p.json') {
|
||||
@ -938,7 +933,7 @@ class H5PValidator {
|
||||
for ($i = 0; $i < $zip->numFiles; $i++) {
|
||||
$fileName = $zip->statIndex($i)['name'];
|
||||
|
||||
if (preg_match('/(^[\._]|\/[\._])/', $fileName) !== 0) {
|
||||
if (preg_match('/(^[\._]|\/[\._]|\\\[\._])/', $fileName) !== 0) {
|
||||
continue; // Skip any file or folder starting with a . or _
|
||||
}
|
||||
|
||||
@ -998,7 +993,7 @@ class H5PValidator {
|
||||
// - or -
|
||||
// - <machineName>-<majorVersion>.<minorVersion>
|
||||
// where machineName, majorVersion and minorVersion is read from library.json
|
||||
if ($libraryH5PData['machineName'] !== $file && H5PCore::libraryToString($libraryH5PData, TRUE) !== $file) {
|
||||
if ($libraryH5PData['machineName'] !== $file && H5PCore::libraryToFolderName($libraryH5PData) !== $file) {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Library directory name must match machineName or machineName-majorVersion.minorVersion (from library.json). (Directory: %directoryName , machineName: %machineName, majorVersion: %majorVersion, minorVersion: %minorVersion)', array(
|
||||
'%directoryName' => $file,
|
||||
'%machineName' => $libraryH5PData['machineName'],
|
||||
@ -1068,7 +1063,12 @@ class H5PValidator {
|
||||
'minorVersion' => $mainDependency['minorVersion']
|
||||
))) {
|
||||
foreach ($missingLibraries as $libString => $library) {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Missing required library @library', array('@library' => $libString)), 'missing-required-library');
|
||||
if (!empty($mainDependency) && $library['machineName'] === $mainDependency['machineName']) {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Missing main library @library', array('@library' => $libString )), 'missing-main-library');
|
||||
}
|
||||
else {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Missing required library @library', array('@library' => $libString)), 'missing-required-library');
|
||||
}
|
||||
$valid = FALSE;
|
||||
}
|
||||
if (!$this->h5pC->mayUpdateLibraries()) {
|
||||
@ -1620,20 +1620,21 @@ class H5PStorage {
|
||||
|
||||
// Go through libraries that came with this package
|
||||
foreach ($this->h5pC->librariesJsonData as $libString => &$library) {
|
||||
// Find local library identifier
|
||||
$libraryId = $this->h5pC->getLibraryId($library, $libString);
|
||||
// Find local library with same major + minor
|
||||
$existingLibrary = $this->h5pC->loadLibrary($library['machineName'], $library['majorVersion'], $library['minorVersion']);
|
||||
|
||||
// Assume new library
|
||||
$new = TRUE;
|
||||
if ($libraryId) {
|
||||
// Found old library
|
||||
$library['libraryId'] = $libraryId;
|
||||
if (isset($existingLibrary['libraryId'])) {
|
||||
$new = false;
|
||||
// We have the library installed already (with the same major + minor)
|
||||
|
||||
if ($this->h5pF->isPatchedLibrary($library)) {
|
||||
// This is a newer version than ours. Upgrade!
|
||||
$new = FALSE;
|
||||
}
|
||||
else {
|
||||
$library['libraryId'] = $existingLibrary['libraryId'];
|
||||
|
||||
// Is this a newer patchVersion?
|
||||
$newerPatchVersion = $existingLibrary['patchVersion'] < $library['patchVersion'];
|
||||
|
||||
if (!$newerPatchVersion) {
|
||||
$library['saveDependencies'] = FALSE;
|
||||
// This is an older version, no need to save.
|
||||
continue;
|
||||
@ -1648,11 +1649,12 @@ class H5PStorage {
|
||||
H5PMetadata::boolifyAndEncodeSettings($library['metadataSettings']) :
|
||||
NULL;
|
||||
|
||||
$this->h5pF->saveLibraryData($library, $new);
|
||||
|
||||
// Save library folder
|
||||
$this->h5pC->fs->saveLibrary($library);
|
||||
|
||||
// Update our DB
|
||||
$this->h5pF->saveLibraryData($library, $new);
|
||||
|
||||
// Remove cached assets that uses this library
|
||||
if ($this->h5pC->aggregateAssets && isset($library['libraryId'])) {
|
||||
$removedKeys = $this->h5pF->deleteCachedAssets($library['libraryId']);
|
||||
@ -1662,6 +1664,10 @@ class H5PStorage {
|
||||
// Remove tmp folder
|
||||
H5PCore::deleteFileTree($library['uploadDirectory']);
|
||||
|
||||
if ($existingLibrary) {
|
||||
$this->h5pC->fs->deleteLibrary($existingLibrary);
|
||||
}
|
||||
|
||||
if ($new) {
|
||||
$newOnes++;
|
||||
}
|
||||
@ -2065,12 +2071,13 @@ class H5PCore {
|
||||
|
||||
public static $coreApi = array(
|
||||
'majorVersion' => 1,
|
||||
'minorVersion' => 24
|
||||
'minorVersion' => 25
|
||||
);
|
||||
public static $styles = array(
|
||||
'styles/h5p.css',
|
||||
'styles/h5p-confirmation-dialog.css',
|
||||
'styles/h5p-core-button.css'
|
||||
'styles/h5p-core-button.css',
|
||||
'styles/h5p-tooltip.css',
|
||||
);
|
||||
public static $scripts = array(
|
||||
'js/jquery.js',
|
||||
@ -2082,13 +2089,14 @@ class H5PCore {
|
||||
'js/h5p-confirmation-dialog.js',
|
||||
'js/h5p-action-bar.js',
|
||||
'js/request-queue.js',
|
||||
'js/h5p-tooltip.js',
|
||||
);
|
||||
public static $adminScripts = array(
|
||||
'js/jquery.js',
|
||||
'js/h5p-utils.js',
|
||||
);
|
||||
|
||||
public static $defaultContentWhitelist = 'json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 m4a wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt';
|
||||
public static $defaultContentWhitelist = 'json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 m4a wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt gltf glb';
|
||||
public static $defaultLibraryWhitelistExtras = 'js css';
|
||||
|
||||
public $librariesJsonData, $contentJsonData, $mainJsonData, $h5pF, $fs, $h5pD, $disableFileCheck;
|
||||
@ -2124,7 +2132,7 @@ class H5PCore {
|
||||
*
|
||||
* @param H5PFrameworkInterface $H5PFramework
|
||||
* The frameworks implementation of the H5PFrameworkInterface
|
||||
* @param string|H5PFileStorage $path H5P file storage directory or class.
|
||||
* @param string|\H5PFileStorage $path H5P file storage directory or class.
|
||||
* @param string $url To file storage directory.
|
||||
* @param string $language code. Defaults to english.
|
||||
* @param boolean $export enabled?
|
||||
@ -2132,7 +2140,7 @@ class H5PCore {
|
||||
public function __construct(H5PFrameworkInterface $H5PFramework, $path, $url, $language = 'en', $export = FALSE) {
|
||||
$this->h5pF = $H5PFramework;
|
||||
|
||||
$this->fs = ($path instanceof H5PFileStorage ? $path : new H5PDefaultStorage($path));
|
||||
$this->fs = ($path instanceof \H5PFileStorage ? $path : new \H5PDefaultStorage($path));
|
||||
|
||||
$this->url = $url;
|
||||
$this->exportEnabled = $export;
|
||||
@ -2526,7 +2534,7 @@ class H5PCore {
|
||||
* @return string
|
||||
*/
|
||||
protected function getDependencyPath(array $dependency) {
|
||||
return 'libraries/' . H5PCore::libraryToString($dependency, TRUE);
|
||||
return 'libraries/' . H5PCore::libraryToFolderName($dependency);
|
||||
}
|
||||
|
||||
private static function getDependenciesHash(&$dependencies) {
|
||||
@ -2719,14 +2727,26 @@ class H5PCore {
|
||||
* Writes library data as string on the form {machineName} {majorVersion}.{minorVersion}
|
||||
*
|
||||
* @param array $library
|
||||
* With keys machineName, majorVersion and minorVersion
|
||||
* @param boolean $folderName
|
||||
* Use hyphen instead of space in returned string.
|
||||
* With keys (machineName and/or name), majorVersion and minorVersion
|
||||
* @return string
|
||||
* On the form {machineName} {majorVersion}.{minorVersion}
|
||||
*/
|
||||
public static function libraryToString($library, $folderName = FALSE) {
|
||||
return (isset($library['machineName']) ? $library['machineName'] : $library['name']) . ($folderName ? '-' : ' ') . $library['majorVersion'] . '.' . $library['minorVersion'];
|
||||
public static function libraryToString($library) {
|
||||
$name = $library['machineName'] ?? $library['name'];
|
||||
|
||||
return "{$name} {$library['majorVersion']}.{$library['minorVersion']}";
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of a library's folder name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function libraryToFolderName($library) {
|
||||
$name = $library['machineName'] ?? $library['name'];
|
||||
$includePatchVersion = $library['patchVersionInFolderName'] ?? false;
|
||||
|
||||
return "{$name}-{$library['majorVersion']}.{$library['minorVersion']}" . ($includePatchVersion ? ".{$library['patchVersion']}" : '');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3144,6 +3164,8 @@ class H5PCore {
|
||||
* @return int Identifier, or FALSE if non-existent
|
||||
*/
|
||||
public function getLibraryId($library, $libString = NULL) {
|
||||
static $libraryIdMap = [];
|
||||
|
||||
if (!$libString) {
|
||||
$libString = self::libraryToString($library);
|
||||
}
|
||||
@ -3285,23 +3307,21 @@ class H5PCore {
|
||||
* @return string
|
||||
*/
|
||||
private static function hashToken($action, $time_factor) {
|
||||
global $SESSION;
|
||||
|
||||
if (!isset($SESSION->h5p_token)) {
|
||||
if (!isset($_SESSION['h5p_token'])) {
|
||||
// Create an unique key which is used to create action tokens for this session.
|
||||
if (function_exists('random_bytes')) {
|
||||
$SESSION->h5p_token = base64_encode(random_bytes(15));
|
||||
$_SESSION['h5p_token'] = base64_encode(random_bytes(15));
|
||||
}
|
||||
else if (function_exists('openssl_random_pseudo_bytes')) {
|
||||
$SESSION->h5p_token = base64_encode(openssl_random_pseudo_bytes(15));
|
||||
$_SESSION['h5p_token'] = base64_encode(openssl_random_pseudo_bytes(15));
|
||||
}
|
||||
else {
|
||||
$SESSION->h5p_token = uniqid('', TRUE);
|
||||
$_SESSION['h5p_token'] = uniqid('', TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
// Create hash and return
|
||||
return substr(hash('md5', $action . $time_factor . $SESSION->h5p_token), -16, 13);
|
||||
return substr(hash('md5', $action . $time_factor . $_SESSION['h5p_token']), -16, 13);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3743,7 +3763,8 @@ class H5PCore {
|
||||
'copyrightWarning' => $this->h5pF->t('Copyrighted material cannot be shared in the H5P Content Hub. If the content is licensed with a OER friendly license like Creative Commons, please choose the appropriate license. If not this content cannot be shared.'),
|
||||
'keywordsExits' => $this->h5pF->t('Keywords already exists!'),
|
||||
'someKeywordsExits' => $this->h5pF->t('Some of these keywords already exist'),
|
||||
|
||||
'width' => $this->h5pF->t('width'),
|
||||
'height' => $this->h5pF->t('height')
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 345 150" enable-background="new 0 0 345 150" xml:space="preserve" preserveAspectRatio="xMinYMid meet">
|
||||
viewBox="0 0 345 150" enable-background="new 0 0 345 150" xml:space="preserve">
|
||||
<g>
|
||||
<path fill="#FFFFFF" d="M325.7,14.7C317.6,6.9,305.3,3,289,3h-43.5H234v31h-66l-5.4,22.2c4.5-2.1,10.9-4.2,15.3-5.3
|
||||
c4.4-1.1,8.8-0.9,13.1-0.9c14.6,0,26.5,4.5,35.6,13.3c9.1,8.8,13.6,20,13.6,33.4c0,9.4-2.3,18.5-7,27.2c-4.7,8.7-11.3,15.4-19.9,20
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
@ -35,11 +35,15 @@ H5P.ActionBar = (function ($, EventDispatcher) {
|
||||
var handler = function () {
|
||||
self.trigger(type);
|
||||
};
|
||||
H5P.jQuery('<li/>', {
|
||||
|
||||
const $actionList = H5P.jQuery('<li/>', {
|
||||
'class': 'h5p-button h5p-noselect h5p-' + (customClass ? customClass : type),
|
||||
role: 'button',
|
||||
appendTo: $actions
|
||||
});
|
||||
|
||||
const $actionButton = H5P.jQuery('<button/>', {
|
||||
tabindex: 0,
|
||||
title: H5P.t(type + 'Description'),
|
||||
'aria-label': H5P.t(type + 'Description'),
|
||||
html: H5P.t(type),
|
||||
on: {
|
||||
click: handler,
|
||||
@ -50,9 +54,11 @@ H5P.ActionBar = (function ($, EventDispatcher) {
|
||||
}
|
||||
}
|
||||
},
|
||||
appendTo: $actions
|
||||
appendTo: $actionList
|
||||
});
|
||||
|
||||
H5P.Tooltip($actionButton.get(0));
|
||||
|
||||
hasActions = true;
|
||||
};
|
||||
|
||||
@ -69,7 +75,8 @@ H5P.ActionBar = (function ($, EventDispatcher) {
|
||||
}
|
||||
if (displayOptions.icon) {
|
||||
// Add about H5P button icon
|
||||
H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="' + H5P.t('h5pDescription') + '"></a></li>').appendTo($actions);
|
||||
const $h5pLogo = H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" aria-label="' + H5P.t('h5pDescription') + '"></a></li>').appendTo($actions);
|
||||
H5P.Tooltip($h5pLogo.find('.h5p-link').get(0));
|
||||
hasActions = true;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||
popup.setAttribute('aria-labelledby', 'h5p-confirmation-dialog-dialog-text-' + uniqueId);
|
||||
popupBackground.appendChild(popup);
|
||||
popup.addEventListener('keydown', function (e) {
|
||||
if (e.which === 27) {// Esc key
|
||||
if (e.key === 'Escape') {// Esc key
|
||||
// Exit dialog
|
||||
dialogCanceled(e);
|
||||
}
|
||||
@ -135,18 +135,18 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||
// Exit button
|
||||
var exitButton = document.createElement('button');
|
||||
exitButton.classList.add('h5p-confirmation-dialog-exit');
|
||||
exitButton.setAttribute('aria-hidden', 'true');
|
||||
exitButton.tabIndex = -1;
|
||||
exitButton.title = options.cancelText;
|
||||
exitButton.setAttribute('aria-label', options.cancelText);
|
||||
|
||||
// Cancel handler
|
||||
cancelButton.addEventListener('click', dialogCanceled);
|
||||
cancelButton.addEventListener('keydown', function (e) {
|
||||
if (e.which === 32) { // Space
|
||||
if (e.key === ' ') { // Space
|
||||
dialogCanceled(e);
|
||||
}
|
||||
else if (e.which === 9 && e.shiftKey) { // Shift-tab
|
||||
flowTo(confirmButton, e);
|
||||
else if (e.key === 'Tab' && e.shiftKey) { // Shift-tab
|
||||
const nextbutton = options.hideExit ? confirmButton : exitButton;
|
||||
flowTo(nextbutton, e);
|
||||
}
|
||||
});
|
||||
|
||||
@ -161,11 +161,17 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||
// Confirm handler
|
||||
confirmButton.addEventListener('click', dialogConfirmed);
|
||||
confirmButton.addEventListener('keydown', function (e) {
|
||||
if (e.which === 32) { // Space
|
||||
if (e.key === ' ') { // Space
|
||||
dialogConfirmed(e);
|
||||
}
|
||||
else if (e.which === 9 && !e.shiftKey) { // Tab
|
||||
const nextButton = !options.hideCancel ? cancelButton : confirmButton;
|
||||
else if (e.key === 'Tab' && !e.shiftKey) { // Tab
|
||||
let nextButton = confirmButton;
|
||||
if (!options.hideExit) {
|
||||
nextButton = exitButton;
|
||||
}
|
||||
else if (!options.hideCancel) {
|
||||
nextButton = cancelButton;
|
||||
}
|
||||
flowTo(nextButton, e);
|
||||
}
|
||||
});
|
||||
@ -174,9 +180,13 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||
// Exit handler
|
||||
exitButton.addEventListener('click', dialogCanceled);
|
||||
exitButton.addEventListener('keydown', function (e) {
|
||||
if (e.which === 32) { // Space
|
||||
if (e.key === ' ') { // Space
|
||||
dialogCanceled(e);
|
||||
}
|
||||
else if (e.key === 'Tab' && !e.shiftKey) { // Tab
|
||||
const nextButton = options.hideCancel ? confirmButton : cancelButton;
|
||||
flowTo(nextButton, e);
|
||||
}
|
||||
});
|
||||
if (!options.hideExit) {
|
||||
popup.appendChild(exitButton);
|
||||
|
@ -160,7 +160,7 @@ H5P.ContentUpgradeProcess = (function (Version) {
|
||||
ContentUpgradeProcess.prototype.processField = function (field, params, done) {
|
||||
var self = this;
|
||||
|
||||
if (params === undefined) {
|
||||
if (params === undefined || params === null) {
|
||||
return done();
|
||||
}
|
||||
|
||||
|
217
h5p/h5plib/v124/joubel/core/js/h5p-tooltip.js
Normal file
217
h5p/h5plib/v124/joubel/core/js/h5p-tooltip.js
Normal file
@ -0,0 +1,217 @@
|
||||
/*global H5P*/
|
||||
H5P.Tooltip = (function () {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Create an accessible tooltip
|
||||
*
|
||||
* @param {HTMLElement} triggeringElement The element that should trigger the tooltip
|
||||
* @param {Object} options Options for tooltip
|
||||
* @param {String} options.text The text to be displayed in the tooltip
|
||||
* If not set, will attempt to set text = aria-label of triggeringElement
|
||||
* @param {String[]} options.classes Extra css classes for the tooltip
|
||||
* @param {Boolean} options.ariaHidden Whether the hover should be read by screen readers or not (default: true)
|
||||
* @param {String} options.position Where the tooltip should appear in relation to the
|
||||
* triggeringElement. Accepted positions are "top" (default), "left", "right" and "bottom"
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function Tooltip(triggeringElement, options) {
|
||||
|
||||
// Make sure tooltips have unique id
|
||||
H5P.Tooltip.uniqueId += 1;
|
||||
const tooltipId = 'h5p-tooltip-' + H5P.Tooltip.uniqueId;
|
||||
|
||||
// Default options
|
||||
options = options || {};
|
||||
options.classes = options.classes || [];
|
||||
options.ariaHidden = options.ariaHidden || true;
|
||||
|
||||
// Initiate state
|
||||
let hover = false;
|
||||
let focus = false;
|
||||
|
||||
// Function used by the escape listener
|
||||
const escapeFunction = function (e) {
|
||||
if (e.key === 'Escape') {
|
||||
tooltip.classList.remove('h5p-tooltip-visible');
|
||||
}
|
||||
}
|
||||
|
||||
// Create element
|
||||
const tooltip = document.createElement('div');
|
||||
|
||||
tooltip.classList.add('h5p-tooltip');
|
||||
tooltip.id = tooltipId;
|
||||
tooltip.role = 'tooltip';
|
||||
tooltip.innerHTML = options.text || triggeringElement.getAttribute('aria-label') || '';
|
||||
tooltip.setAttribute('aria-hidden', options.ariaHidden);
|
||||
tooltip.classList.add(...options.classes);
|
||||
|
||||
triggeringElement.appendChild(tooltip);
|
||||
|
||||
// Set the initial position based on options.position
|
||||
switch (options.position) {
|
||||
case 'left':
|
||||
tooltip.classList.add('h5p-tooltip-left');
|
||||
break;
|
||||
case 'right':
|
||||
tooltip.classList.add('h5p-tooltip-right');
|
||||
break;
|
||||
case 'bottom':
|
||||
tooltip.classList.add('h5p-tooltip-bottom');
|
||||
break;
|
||||
default:
|
||||
options.position = 'top';
|
||||
}
|
||||
|
||||
// Aria-describedby will override aria-hidden
|
||||
if (!options.ariaHidden) {
|
||||
triggeringElement.setAttribute('aria-describedby', tooltipId);
|
||||
}
|
||||
|
||||
// Add event listeners to triggeringElement
|
||||
triggeringElement.addEventListener('mouseenter', function () {
|
||||
showTooltip(true);
|
||||
});
|
||||
triggeringElement.addEventListener('mouseleave', function () {
|
||||
hideTooltip(true);
|
||||
});
|
||||
triggeringElement.addEventListener('focusin', function () {
|
||||
showTooltip(false);
|
||||
});
|
||||
triggeringElement.addEventListener('focusout', function () {
|
||||
hideTooltip(false);
|
||||
});
|
||||
|
||||
// Prevent clicks on the tooltip from triggering onClick listeners on the triggeringElement
|
||||
tooltip.addEventListener('click', function (event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
// Use a mutation observer to listen for aria-label being
|
||||
// changed for the triggering element. If so, update the tooltip.
|
||||
// Mutation observer will be used even if the original elements
|
||||
// doesn't have any aria-label.
|
||||
new MutationObserver(function (mutations) {
|
||||
const ariaLabel = mutations[0].target.getAttribute('aria-label');
|
||||
if (ariaLabel) {
|
||||
tooltip.innerHTML = options.text || ariaLabel;
|
||||
}
|
||||
}).observe(triggeringElement, {
|
||||
attributes: true,
|
||||
attributeFilter: ['aria-label'],
|
||||
});
|
||||
|
||||
// Use intersection observer to adjust the tooltip if it is not completely visible
|
||||
new IntersectionObserver(function (entries) {
|
||||
entries.forEach((entry) => {
|
||||
const target = entry.target;
|
||||
const positionClass = 'h5p-tooltip-' + options.position;
|
||||
|
||||
// Stop adjusting when hidden (to prevent a false positive next time)
|
||||
if (entry.intersectionRatio === 0) {
|
||||
['h5p-tooltip-down', 'h5p-tooltip-left', 'h5p-tooltip-right']
|
||||
.forEach(function (adjustmentClass) {
|
||||
if (adjustmentClass !== positionClass) {
|
||||
target.classList.remove(adjustmentClass);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Adjust if not completely visible when meant to be
|
||||
else if (entry.intersectionRatio < 1 && (hover || focus)) {
|
||||
const targetRect = entry.boundingClientRect;
|
||||
const intersectionRect = entry.intersectionRect;
|
||||
|
||||
// Going out of screen on left side
|
||||
if (intersectionRect.left > targetRect.left) {
|
||||
target.classList.add('h5p-tooltip-right');
|
||||
target.classList.remove(positionClass);
|
||||
}
|
||||
// Going out of screen on right side
|
||||
else if (intersectionRect.right < targetRect.right) {
|
||||
target.classList.add('h5p-tooltip-left');
|
||||
target.classList.remove(positionClass);
|
||||
}
|
||||
|
||||
// going out of top of screen
|
||||
if (intersectionRect.top > targetRect.top) {
|
||||
target.classList.add('h5p-tooltip-down');
|
||||
target.classList.remove(positionClass);
|
||||
}
|
||||
// going out of bottom of screen
|
||||
else if (intersectionRect.bottom < targetRect.bottom) {
|
||||
target.classList.add('h5p-tooltip-up');
|
||||
target.classList.remove(positionClass);
|
||||
}
|
||||
}
|
||||
});
|
||||
}).observe(tooltip);
|
||||
|
||||
/**
|
||||
* Makes the tooltip visible and activates it's functionality
|
||||
*
|
||||
* @param {Boolean} triggeredByHover True if triggered by mouse, false if triggered by focus
|
||||
*/
|
||||
const showTooltip = function (triggeredByHover) {
|
||||
if (triggeredByHover) {
|
||||
hover = true;
|
||||
}
|
||||
else {
|
||||
focus = true;
|
||||
}
|
||||
|
||||
tooltip.classList.add('h5p-tooltip-visible');
|
||||
|
||||
// Add listener to iframe body, as esc keypress would not be detected otherwise
|
||||
document.body.addEventListener('keydown', escapeFunction, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the tooltip and removes listeners
|
||||
*
|
||||
* @param {Boolean} triggeredByHover True if triggered by mouse, false if triggered by focus
|
||||
*/
|
||||
const hideTooltip = function (triggeredByHover) {
|
||||
if (triggeredByHover) {
|
||||
hover = false;
|
||||
}
|
||||
else {
|
||||
focus = false;
|
||||
}
|
||||
|
||||
// Only hide tooltip if neither hovered nor focused
|
||||
if (!hover && !focus) {
|
||||
tooltip.classList.remove('h5p-tooltip-visible');
|
||||
|
||||
// Remove iframe body listener
|
||||
document.body.removeEventListener('keydown', escapeFunction, true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the text displayed by the tooltip
|
||||
*
|
||||
* @param {String} text The new text to be displayed
|
||||
* Set to null to use aria-label of triggeringElement instead
|
||||
*/
|
||||
this.setText = function (text) {
|
||||
options.text = text;
|
||||
tooltip.innerHTML = options.text || triggeringElement.getAttribute('aria-label') || '';
|
||||
};
|
||||
|
||||
/**
|
||||
* Retrieve tooltip
|
||||
*
|
||||
* @return {HTMLElement}
|
||||
*/
|
||||
this.getElement = function () {
|
||||
return tooltip;
|
||||
};
|
||||
}
|
||||
|
||||
return Tooltip;
|
||||
|
||||
})();
|
||||
|
||||
H5P.Tooltip.uniqueId = -1;
|
@ -186,7 +186,7 @@ H5P.init = function (target) {
|
||||
instance.triggerXAPI('accessed-reuse');
|
||||
});
|
||||
actionBar.on('copyrights', function () {
|
||||
var dialog = new H5P.Dialog('copyrights', H5P.t('copyrightInformation'), copyrights, $container);
|
||||
var dialog = new H5P.Dialog('copyrights', H5P.t('copyrightInformation'), copyrights, $container, $actions.find('.h5p-copyrights')[0]);
|
||||
dialog.open(true);
|
||||
instance.triggerXAPI('accessed-copyright');
|
||||
});
|
||||
@ -349,13 +349,7 @@ H5P.init = function (target) {
|
||||
if (!H5P.isFramed || H5P.externalEmbed === false) {
|
||||
// Resize everything when window is resized.
|
||||
H5P.jQuery(window.parent).resize(function () {
|
||||
if (window.parent.H5P.isFullscreen) {
|
||||
// Use timeout to avoid bug in certain browsers when exiting fullscreen. Some browser will trigger resize before the fullscreenchange event.
|
||||
H5P.trigger(instance, 'resize');
|
||||
}
|
||||
else {
|
||||
H5P.trigger(instance, 'resize');
|
||||
}
|
||||
H5P.trigger(instance, 'resize');
|
||||
});
|
||||
}
|
||||
|
||||
@ -662,7 +656,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body, forceSemiFull
|
||||
|
||||
before('h5p-fullscreen');
|
||||
var first, eventName = (H5P.fullScreenBrowserPrefix === 'ms' ? 'MSFullscreenChange' : H5P.fullScreenBrowserPrefix + 'fullscreenchange');
|
||||
document.addEventListener(eventName, function () {
|
||||
document.addEventListener(eventName, function fullscreenCallback() {
|
||||
if (first === undefined) {
|
||||
// We are entering fullscreen mode
|
||||
first = false;
|
||||
@ -672,7 +666,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body, forceSemiFull
|
||||
|
||||
// We are exiting fullscreen
|
||||
done('h5p-fullscreen');
|
||||
document.removeEventListener(eventName, arguments.callee, false);
|
||||
document.removeEventListener(eventName, fullscreenCallback, false);
|
||||
});
|
||||
|
||||
if (H5P.fullScreenBrowserPrefix === '') {
|
||||
@ -1045,13 +1039,15 @@ H5P.t = function (key, vars, ns) {
|
||||
* Displayed inside the dialog.
|
||||
* @param {H5P.jQuery} $element
|
||||
* Which DOM element the dialog should be inserted after.
|
||||
* @param {H5P.jQuery} $returnElement
|
||||
* Which DOM element the focus should be moved to on close
|
||||
*/
|
||||
H5P.Dialog = function (name, title, content, $element) {
|
||||
H5P.Dialog = function (name, title, content, $element, $returnElement) {
|
||||
/** @alias H5P.Dialog# */
|
||||
var self = this;
|
||||
var $dialog = H5P.jQuery('<div class="h5p-popup-dialog h5p-' + name + '-dialog" role="dialog" tabindex="-1">\
|
||||
var $dialog = H5P.jQuery('<div class="h5p-popup-dialog h5p-' + name + '-dialog" aria-labelledby="' + name + '-dialog-header" aria-modal="true" role="dialog" tabindex="-1">\
|
||||
<div class="h5p-inner">\
|
||||
<h2>' + title + '</h2>\
|
||||
<h2 id="' + name + '-dialog-header">' + title + '</h2>\
|
||||
<div class="h5p-scroll-content">' + content + '</div>\
|
||||
<div class="h5p-close" role="button" tabindex="0" aria-label="' + H5P.t('close') + '" title="' + H5P.t('close') + '"></div>\
|
||||
</div>\
|
||||
@ -1110,7 +1106,12 @@ H5P.Dialog = function (name, title, content, $element) {
|
||||
$dialog.remove();
|
||||
H5P.jQuery(self).trigger('dialog-closed', [$dialog]);
|
||||
$element.attr('tabindex', '-1');
|
||||
$element.focus();
|
||||
if ($returnElement) {
|
||||
$returnElement.focus();
|
||||
}
|
||||
else {
|
||||
$element.focus();
|
||||
}
|
||||
}, 200);
|
||||
};
|
||||
};
|
||||
@ -1243,7 +1244,7 @@ H5P.findCopyrights = function (info, parameters, contentId, extras) {
|
||||
const path = data.params.file.path;
|
||||
const width = data.params.file.width;
|
||||
const height = data.params.file.height;
|
||||
metadataCopyrights.setThumbnail(new H5P.Thumbnail(H5P.getPath(path, contentId), width, height));
|
||||
metadataCopyrights.setThumbnail(new H5P.Thumbnail(H5P.getPath(path, contentId), width, height, data.params.alt));
|
||||
}
|
||||
info.addMedia(metadataCopyrights);
|
||||
}
|
||||
@ -1348,7 +1349,7 @@ H5P.openReuseDialog = function ($element, contentData, library, instance, conten
|
||||
*/
|
||||
H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size, instance) {
|
||||
var fullEmbedCode = embedCode + resizeCode;
|
||||
var dialog = new H5P.Dialog('embed', H5P.t('embed'), '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' + H5P.t('size') + ': <input type="text" value="' + Math.ceil(size.width) + '" class="h5p-embed-size"/> × <input type="text" value="' + Math.ceil(size.height) + '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' + H5P.t('showAdvanced') + '</div><div class="h5p-expander-content"><p>' + H5P.t('advancedHelp') + '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' + resizeCode + '</textarea></div>', $element);
|
||||
var dialog = new H5P.Dialog('embed', H5P.t('embed'), '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' + H5P.t('size') + ': <input aria-label="'+ H5P.t('width') +'" type="text" value="' + Math.ceil(size.width) + '" class="h5p-embed-size"/> × <input aria-label="'+ H5P.t('width') +'" type="text" value="' + Math.ceil(size.height) + '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' + H5P.t('showAdvanced') + '</div><div class="h5p-expander-content"><p>' + H5P.t('advancedHelp') + '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' + resizeCode + '</textarea></div>', $element);
|
||||
|
||||
// Selecting embed code when dialog is opened
|
||||
H5P.jQuery(dialog).on('dialog-opened', function (event, $dialog) {
|
||||
@ -1893,8 +1894,10 @@ H5P.MediaCopyright = function (copyright, labels, order, extraFields) {
|
||||
* @param {string} source
|
||||
* @param {number} width
|
||||
* @param {number} height
|
||||
* @param {string} alt
|
||||
* alternative text for the thumbnail
|
||||
*/
|
||||
H5P.Thumbnail = function (source, width, height) {
|
||||
H5P.Thumbnail = function (source, width, height, alt) {
|
||||
var thumbWidth, thumbHeight = 100;
|
||||
if (width !== undefined) {
|
||||
thumbWidth = Math.round(thumbHeight * (width / height));
|
||||
@ -1906,7 +1909,7 @@ H5P.Thumbnail = function (source, width, height) {
|
||||
* @returns {string} HTML.
|
||||
*/
|
||||
this.toString = function () {
|
||||
return '<img src="' + source + '" alt="' + H5P.t('thumbnail') + '" class="h5p-thumbnail" height="' + thumbHeight + '"' + (thumbWidth === undefined ? '' : ' width="' + thumbWidth + '"') + '/>';
|
||||
return '<img src="' + source + '" alt="' + (alt ? alt : '') + '" class="h5p-thumbnail" height="' + thumbHeight + '"' + (thumbWidth === undefined ? '' : ' width="' + thumbWidth + '"') + '/>';
|
||||
};
|
||||
};
|
||||
|
||||
@ -2673,15 +2676,18 @@ H5P.createTitle = function (rawTitle, maxLength) {
|
||||
if (!isTmpFile && clipboardData.contentId && !path.match(/^https?:\/\//i)) {
|
||||
// Comes from existing content
|
||||
|
||||
let prefix;
|
||||
if (H5PEditor.contentId) {
|
||||
// .. to existing content
|
||||
return '../' + clipboardData.contentId + '/' + path;
|
||||
prefix = '../' + clipboardData.contentId + '/';
|
||||
}
|
||||
else {
|
||||
// .. to new content
|
||||
return (H5PEditor.contentRelUrl ? H5PEditor.contentRelUrl : '../content/') + clipboardData.contentId + '/' + path;
|
||||
prefix = (H5PEditor.contentRelUrl ? H5PEditor.contentRelUrl : '../content/') + clipboardData.contentId + '/';
|
||||
}
|
||||
return path.substr(0, prefix.length) === prefix ? path : prefix + path;
|
||||
}
|
||||
|
||||
return path; // Will automatically be looked for in tmp folder
|
||||
});
|
||||
|
||||
|
494
h5p/h5plib/v124/joubel/core/styles/font-open-sans.css
Normal file
494
h5p/h5plib/v124/joubel/core/styles/font-open-sans.css
Normal file
@ -0,0 +1,494 @@
|
||||
/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-greek-ext.woff2') format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* hebrew */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-hebrew.woff2') format('woff2');
|
||||
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-greek-ext.woff2') format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* hebrew */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-hebrew.woff2') format('woff2');
|
||||
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-greek-ext.woff2') format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* hebrew */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-hebrew.woff2') format('woff2');
|
||||
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-italic-400-600-700-v28-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-greek-ext.woff2') format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* hebrew */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-hebrew.woff2') format('woff2');
|
||||
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-greek-ext.woff2') format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* hebrew */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-hebrew.woff2') format('woff2');
|
||||
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-greek-ext.woff2') format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* hebrew */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-hebrew.woff2') format('woff2');
|
||||
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('../fonts/open-sans/opensans-400-600-700-v28-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
|
||||
.h5p-hub-publish button,.h5p-hub-registration button{font-family:"Open Sans", sans-serif;font-size:0.75em;background:transparent;padding:0.75em 2em;color:#757575;border-radius:3em;border:1px solid #d6d6d6;cursor:pointer;font-weight:bold}.h5p-hub-publish button:before,.h5p-hub-registration button:before{font-weight:normal}.h5p-hub-publish button:hover,.h5p-hub-registration button:hover{color:#5f5f5f;border-color:#5f5f5f}.h5p-hub-publish button.h5p-hub-contained.h5p-hub-green,.h5p-hub-registration button.h5p-hub-contained.h5p-hub-green{background-color:#186df7;color:#fff;border-color:#186df7}.h5p-hub-publish button.h5p-hub-contained.h5p-hub-green:hover,.h5p-hub-registration button.h5p-hub-contained.h5p-hub-green:hover{background-color:#2e46a4;border-color:#2e46a4}.h5p-hub-publish button.h5p-hub-outlined.h5p-hub-green,.h5p-hub-registration button.h5p-hub-outlined.h5p-hub-green{border-width:0.125em;background-color:white;border-color:#186df7;color:#186df7}.h5p-hub-publish button.h5p-hub-outlined.h5p-hub-green:hover,.h5p-hub-registration button.h5p-hub-outlined.h5p-hub-green:hover{background-color:#186df7;border-color:#186df7;color:#ffffff}.h5p-hub-publish button.h5p-hub-outlined.h5p-hub-green[disabled],.h5p-hub-registration button.h5p-hub-outlined.h5p-hub-green[disabled]{color:#aac3ec;border-color:#aac3ec;background-color:white;pointer-events:none}.h5p-hub-publish .h5p-hub-navigation button{padding:0.833em;max-width:10.5em}
|
||||
|
||||
.h5p-hub-publish .h5p-hub-form-element,.h5p-hub-registration .h5p-hub-form-element{font-family:Nunito, sans-serif;font-size:16px;padding:1em 0}.h5p-hub-publish .h5p-hub-form-element label,.h5p-hub-registration .h5p-hub-form-element label{display:block;margin-bottom:0.4em;font-weight:bold}.h5p-hub-publish .h5p-hub-form-element.h5p-hub-mandatory label:after,.h5p-hub-registration .h5p-hub-form-element.h5p-hub-mandatory label:after{content:'*';color:#d11e15;position:relative;top:-0.2em}.h5p-hub-publish .h5p-hub-form-element input,.h5p-hub-registration .h5p-hub-form-element input{border-radius:0.208em;width:100%;box-sizing:border-box;line-height:normal}.h5p-hub-publish .h5p-hub-form-element input::placeholder,.h5p-hub-registration .h5p-hub-form-element input::placeholder{font-style:italic}.h5p-hub-publish .h5p-hub-form-element .h5p-hub-description,.h5p-hub-registration .h5p-hub-form-element .h5p-hub-description{font-size:0.833em;color:#707475;margin:0 0 1em 0}.h5p-hub-publish .h5p-hub-form-element textarea,.h5p-hub-registration .h5p-hub-form-element textarea{resize:none;width:100%;border-radius:0.208em;box-sizing:border-box;line-height:1.25em}.h5p-hub-publish .h5p-hub-form-element textarea::-webkit-scrollbar,.h5p-hub-registration .h5p-hub-form-element textarea::-webkit-scrollbar{background-color:rgba(105,117,133,0.25);width:0.333em;border-radius:5.45256em}.h5p-hub-publish .h5p-hub-form-element textarea::-webkit-scrollbar-thumb,.h5p-hub-registration .h5p-hub-form-element textarea::-webkit-scrollbar-thumb{background-color:#697585;background-size:24px 100%;border-radius:5.45256em}.h5p-hub-publish .h5p-hub-form-element textarea::placeholder,.h5p-hub-registration .h5p-hub-form-element textarea::placeholder{font-style:italic}.h5p-hub-publish .h5p-hub-form-element .h5p-hub-link-button,.h5p-hub-registration .h5p-hub-form-element .h5p-hub-link-button{border:none;text-decoration:underline;text-align:right;align-self:flex-start;color:#186df7;font-size:.917em;font-weight:normal;padding:0}.h5p-hub-publish .h5p-hub-form-element .h5p-hub-details-row,.h5p-hub-registration .h5p-hub-form-element .h5p-hub-details-row{display:flex;align-content:center;align-items:center;justify-content:space-between}.h5p-hub-publish .h5p-hub-form-element textarea,.h5p-hub-publish .h5p-hub-form-element input,.h5p-hub-publish .h5p-hub-form-element select,.h5p-hub-registration .h5p-hub-form-element textarea,.h5p-hub-registration .h5p-hub-form-element input,.h5p-hub-registration .h5p-hub-form-element select{padding:.958em;border:2px solid #e2e5ee;box-shadow:none;color:#3c4859;font-family:Nunito, sans-serif}.h5p-hub-publish .h5p-hub-form-element textarea:focus,.h5p-hub-publish .h5p-hub-form-element input:focus,.h5p-hub-publish .h5p-hub-form-element select:focus,.h5p-hub-registration .h5p-hub-form-element textarea:focus,.h5p-hub-registration .h5p-hub-form-element input:focus,.h5p-hub-registration .h5p-hub-form-element select:focus{border-color:#98cbe8;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(152,203,232,0.6);outline:none}.h5p-hub-publish .h5p-hub-step-content>.h5p-hub-form-element:first-child,.h5p-hub-registration .h5p-hub-step-content>.h5p-hub-form-element:first-child{padding-top:0}.h5p-hub-publish .h5p-hub-step-content>.h5p-hub-form-element:last-child,.h5p-hub-registration .h5p-hub-step-content>.h5p-hub-form-element:last-child{padding-bottom:0}
|
||||
|
@ -1,4 +1,3 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
|
||||
.h5p-hub-publish button,.h5p-hub-registration button{font-family:"Open Sans", sans-serif;font-size:0.75em;background:transparent;padding:0.75em 2em;color:#757575;border-radius:3em;border:1px solid #d6d6d6;cursor:pointer;font-weight:bold}.h5p-hub-publish button:before,.h5p-hub-registration button:before{font-weight:normal}.h5p-hub-publish button:hover,.h5p-hub-registration button:hover{color:#5f5f5f;border-color:#5f5f5f}.h5p-hub-publish button.h5p-hub-contained.h5p-hub-green,.h5p-hub-registration button.h5p-hub-contained.h5p-hub-green{background-color:#186df7;color:#fff;border-color:#186df7}.h5p-hub-publish button.h5p-hub-contained.h5p-hub-green:hover,.h5p-hub-registration button.h5p-hub-contained.h5p-hub-green:hover{background-color:#2e46a4;border-color:#2e46a4}.h5p-hub-publish button.h5p-hub-outlined.h5p-hub-green,.h5p-hub-registration button.h5p-hub-outlined.h5p-hub-green{border-width:0.125em;background-color:white;border-color:#186df7;color:#186df7}.h5p-hub-publish button.h5p-hub-outlined.h5p-hub-green:hover,.h5p-hub-registration button.h5p-hub-outlined.h5p-hub-green:hover{background-color:#186df7;border-color:#186df7;color:#ffffff}.h5p-hub-publish button.h5p-hub-outlined.h5p-hub-green[disabled],.h5p-hub-registration button.h5p-hub-outlined.h5p-hub-green[disabled]{color:#aac3ec;border-color:#aac3ec;background-color:white;pointer-events:none}.h5p-hub-publish .h5p-hub-navigation button{padding:0.833em;max-width:10.5em}
|
||||
|
||||
.h5p-hub-publish .h5p-hub-stepper{display:flex;width:100%;max-width:40em;align-items:center;flex-direction:row;margin:2em auto;padding:0 2em;box-sizing:border-box}.h5p-hub-publish .h5p-hub-step-connector{flex-grow:1;margin-left:-2em;margin-right:-2em;position:relative;top:-0.6em}.h5p-hub-publish .h5p-hub-step-connector-line{display:block;border-top-style:solid;border-top-width:1px;border-color:#d5d5d7}
|
||||
|
67
h5p/h5plib/v124/joubel/core/styles/h5p-tooltip.css
Normal file
67
h5p/h5plib/v124/joubel/core/styles/h5p-tooltip.css
Normal file
@ -0,0 +1,67 @@
|
||||
.h5p-tooltip {
|
||||
--translateX: -50%;
|
||||
--translateY: 0;
|
||||
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(var(--translateX)) translateY(var(--translateY));
|
||||
|
||||
z-index: 4;
|
||||
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5rem;
|
||||
|
||||
padding: 0 0.5rem;
|
||||
white-space: nowrap;
|
||||
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
|
||||
cursor: default;
|
||||
|
||||
/* To hide the position adjustments and to get a bit more
|
||||
pleasent popup effect */
|
||||
-webkit-animation: 800ms ease 0s normal forwards 1 fadein;
|
||||
animation: 800ms ease 0s normal forwards 1 fadein;
|
||||
}
|
||||
|
||||
@keyframes fadein{
|
||||
0% { opacity: 0; }
|
||||
80% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadein{
|
||||
0% { opacity: 0; }
|
||||
80% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
.h5p-tooltip-bottom {
|
||||
top: 100%;
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
.h5p-tooltip-left {
|
||||
--translateY: -50%;
|
||||
--translateX: 0;
|
||||
top: 50%;
|
||||
bottom: auto;
|
||||
left: auto;
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
.h5p-tooltip-right {
|
||||
--translateY: -50%;
|
||||
--translateX: 0;
|
||||
top: 50%;
|
||||
bottom: auto;
|
||||
left: 100%;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.h5p-tooltip-visible {
|
||||
display: block;
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
/* Import common fonts */
|
||||
@import 'font-open-sans.css';
|
||||
/* General CSS for H5P. Licensed under the MIT License.*/
|
||||
|
||||
/* Custom H5P font to use for icons. */
|
||||
@font-face {
|
||||
font-family: 'h5p';
|
||||
@ -55,6 +56,8 @@ html.h5p-iframe .h5p-content {
|
||||
line-height: 1.5em;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
-webkit-text-size-adjust: none;
|
||||
text-size-adjust: none;
|
||||
}
|
||||
html.h5p-iframe .h5p-fullscreen .h5p-content,
|
||||
html.h5p-iframe .h5p-semi-fullscreen .h5p-content {
|
||||
@ -189,7 +192,6 @@ div.h5p-fullscreen {
|
||||
.h5p-content ul.h5p-actions {
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
padding: 0px 10px;
|
||||
margin: 0;
|
||||
@ -216,36 +218,51 @@ div.h5p-fullscreen {
|
||||
outline: none;
|
||||
line-height: 22px;
|
||||
}
|
||||
.h5p-actions > .h5p-button:hover {
|
||||
.h5p-actions button:hover {
|
||||
color: #333;
|
||||
}
|
||||
.h5p-actions > .h5p-button:active,
|
||||
.h5p-actions > .h5p-button:focus,
|
||||
.h5p-actions button:active,
|
||||
.h5p-actions button:focus,
|
||||
.h5p-actions .h5p-link:active,
|
||||
.h5p-actions .h5p-link:focus {
|
||||
color: #666;
|
||||
}
|
||||
.h5p-actions > .h5p-button:focus,
|
||||
.h5p-actions button {
|
||||
display: inline-flex;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #6A6A6A;
|
||||
position: relative;
|
||||
|
||||
/* Disable default button style */
|
||||
background: none;
|
||||
border: none;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
|
||||
line-height: 2;
|
||||
}
|
||||
.h5p-actions button:focus,
|
||||
.h5p-actions .h5p-link:focus {
|
||||
outline-style: solid;
|
||||
outline-width: thin;
|
||||
outline-offset: -2px;
|
||||
outline-color: #9ecaed;
|
||||
outline-color: #5981A1;
|
||||
}
|
||||
.h5p-actions > .h5p-button:before {
|
||||
.h5p-actions button:before {
|
||||
font-family: 'H5P';
|
||||
font-size: 20px;
|
||||
line-height: 23px;
|
||||
vertical-align: bottom;
|
||||
padding-right: 0;
|
||||
}
|
||||
.h5p-actions > .h5p-button.h5p-export:before {
|
||||
.h5p-actions > .h5p-button.h5p-export > button:before {
|
||||
content: "\e90b";
|
||||
}
|
||||
.h5p-actions > .h5p-button.h5p-copyrights:before {
|
||||
.h5p-actions > .h5p-button.h5p-copyrights > button:before {
|
||||
content: "\e88f";
|
||||
}
|
||||
.h5p-actions > .h5p-button.h5p-embed:before {
|
||||
.h5p-actions > .h5p-button.h5p-embed > button:before {
|
||||
content: "\e892";
|
||||
}
|
||||
.h5p-actions .h5p-link {
|
||||
@ -253,8 +270,8 @@ div.h5p-fullscreen {
|
||||
margin-right: 0;
|
||||
font-size: 2.0em;
|
||||
line-height: 23px;
|
||||
overflow: hidden;
|
||||
color: #999;
|
||||
position: relative;
|
||||
color: #6a6a6a;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user