Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved mod_hvp css into styles.css #509

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion review.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
$PAGE->set_url($pageurl);
$PAGE->set_title($hvp->title);
$PAGE->set_heading($COURSE->fullname);
$PAGE->requires->css(new moodle_url($basepath . '/mod/hvp/xapi-custom-report.css'));

// We have to get grades from gradebook as well.
$xapiresults = $DB->get_records_sql("
Expand Down
148 changes: 147 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,150 @@ body.h5p-embed .clearer,
body.h5p-embed #maincontent,
body.h5p-embed #user-notifications {
display: none;
}
}
.content-hub-icon {
font-family: h5p!important;
speak: none;
font-style: normal;
font-weight: 400;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.content-hub-icon:before {
content: "\e93b";
}
.content-hub-options {
font-size: 14px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: baseline;
color: #333333;
box-shadow: 0 4px 4px -4px #e0e0e0;
z-index: 1;
position: relative;
padding: 1em 0;
}
.content-hub-options > div {
margin-left: 2em;
white-space: nowrap;
}
.content-hub-options > div:first-child {
margin-left: 0;
font-weight: bold;
}
.content-hub-options > div.content-hub-share {
font-weight: normal;
}
.content-hub-options > div:first-child > i {
margin-right: 0.5em;
font-size: 1.25em;
vertical-align: middle;
display: inline-block;
}
.content-hub-options a {
color: #186df7;
}
.content-hub-options a span {
text-decoration: underline;
}
.content-hub-options form {
margin: 0;
}
.content-hub-options .content-hub-sharing {
font-size: 0.917em;
color: #186df7;
}
.content-hub-options .content-hub-sync a:before,
.content-hub-options .content-hub-unshare a:before,
.content-hub-options .content-hub-sharing:before {
font-family: "h5p";
margin-right: 0.5em;
font-size: 0.7em;
line-height: 1;
content: "\e917";
}
.content-hub-options .content-hub-unshare a:before {
content: "\e916";
}
.content-hub-options .content-hub-sharing:before {
content: "\e917";
display: inline-block;
animation: spin 2s linear infinite;
}
@keyframes spin {
from {transform:rotate(0deg);}
to {transform:rotate(360deg);}
}
body .h5p-result {
background: #FFF;
border: solid 1px #C9C9C9;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.12);
color: #5C5C5C;
font-size: 15px;
height: auto;
margin: 1em 0;
padding: 30px;
}

body .h5p-compound-container {
border: none;
box-shadow: none;
margin: 0;
padding: 0;
}

body .h5p-reporting-main-title {
display: inline-block;
font-size: 1.3em;
font-weight: 600;
}

body .h5p-reporting-main-container {
margin: 10px;
}

body .h5p-reporting-main-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;

background-color: #F3F3F3;
border-bottom: solid 1px #DFDFDF;
padding: 0.7em 2em;
}

body .h5p-reporting-main-score-wrapper {
display: inline-block;
font-size: 0.95em;
font-weight: bold;
text-align: right;
}

body .h5p-reporting-scaled-label,
body .h5p-reporting-main-score-label {
font-weight: normal;
}

/* Properly formats content after it has been cleaned */
body .h5p-reporting-main-score-container,
body .h5p-reporting-main-scaled-container {
display: block;
}

body .h5p-reporting-main-score-label,
body .h5p-reporting-main-score,
body .h5p-reporting-score-label,
body .h5p-reporting-score,
body .h5p-reporting-scaled-label,
body .h5p-reporting-scaled-score {
display: inline-block;
}

body .h5p-reporting-main-score {
margin-left: 0.4em;
}
77 changes: 0 additions & 77 deletions view.css

This file was deleted.

2 changes: 0 additions & 2 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
$view->addassetstopage();
$view->logviewed();

$PAGE->requires->css(new moodle_url(\mod_hvp\view_assets::getsiteroot() . '/mod/hvp/view.css'));

// Print page HTML.
echo $OUTPUT->header();
if ($CFG->branch < 400) {
Expand Down
69 changes: 0 additions & 69 deletions xapi-custom-report.css

This file was deleted.