update css lession scorm

1.9.x
Alex Aragon 12 years ago
parent e9f8653a1a
commit 1b276eeb3e
  1. 42
      main/css/chamilo/scorm.css
  2. 6
      main/document/create_document.php
  3. 4
      main/newscorm/learnpath.class.php

@ -25,7 +25,7 @@
.inner_lp_toc .scorm_item a {
font-weight: normal;
font-size: 14px;
font-size: 12px;
margin-right: 1px;
padding-bottom: 2px;
text-decoration: none;
@ -269,6 +269,12 @@ opacity: 0.7;
}
/*STYLES PROCESS LESSION*/
.inner_lp_toc .scrom_completed {
background-image: url("images/blue_arrow.png") !important;
background-position: 250px center !important;
background-repeat: no-repeat;
}
.inner_lp_toc .scorm_item_highlight {
background-color: #00aad4;
@ -276,4 +282,38 @@ opacity: 0.7;
background-position: 250px center !important;
background-repeat: no-repeat;
border: 1px solid #00aad4;
}
.inner_lp_toc .scorm_item_1 {
background-color: #d7eef4;
background-image: none;
border-bottom-color: #CCCCCC;
border-bottom-style: solid;
border-bottom-width: 1px;
color: #444444;
font-weight: normal;
margin-right: 1px;
padding-bottom: 10px;
padding-left: 0;
padding-right: 0;
padding-top: 10px;
text-shadow: 0 1px 1px #F6F6F6;
}
#learning_path_main #control {
background-image: none;
background-color: #d7eef4;
bottom: 0;
height: 34px;
margin-bottom: auto;
margin-left: auto;
margin-right: auto;
margin-top: auto;
padding-bottom: 8px;
padding-left: 0;
padding-right: 0;
padding-top: 8px;
position: absolute;
text-align: center;
width: 100%;
}

@ -494,9 +494,9 @@ if ($form->validate()) {
$extension = 'html';
$content = Security::remove_XSS($values['content'], COURSEMANAGERLOWSECURITY);
if (strpos($content, '/css/frames.css') === false) {
$content = str_replace('</head>', '<style> body{margin:10px;}</style><link rel="stylesheet" href="./css/frames.css" type="text/css" /></head>', $content);
if (strpos($content, '/css/frames.css') == false) {
$content = str_replace('</head>', '<link rel="stylesheet" href="./css/frames.css" type="text/css" /><style> body{margin:50px;}</style></head>', $content);
}
if ($fp = @fopen($filepath.$filename.'.'.$extension, 'w')) {
$content = str_replace(api_get_path(WEB_COURSE_PATH), $_configuration['url_append'].'/courses/', $content);

@ -2902,10 +2902,10 @@ class learnpath
// The anchor will let us center the TOC on the currently viewed item &^D
if ($item['type'] != 'dokeos_module' && $item['type'] != 'dokeos_chapter') {
$html .= '<div class="' . $style_item . '" style="padding-left: ' . ($item['level'] * 1.5) . 'em; padding-right:' . ($item['level'] / 2) . 'em" title="' . $item['description'] . '" >';
$html .= '<div class="' . $style_item . '" style="padding-left: ' . ($item['level'] * 1.5) . 'em; padding-right:' . ($item['level'] / 2) . 'em" title="' . $item['description'] . '" >';
$html .= '<a name="atoc_' . $item['id'] . '" />';
} else {
$html .= '<div class="' . $style_item . '" style="padding-left: ' . ($item['level'] * 2) . 'em; padding-right:' . ($item['level'] * 1.5) . 'em" title="' . $item['description'] . '" >';
$html .= '<div class="' . $style_item . '" style="padding-left: ' . ($item['level'] * 2) . 'em; padding-right:' . ($item['level'] * 1.5) . 'em" title="' . $item['description'] . '" >';
}
$title = $item['title'];
if (empty ($title)) {

Loading…
Cancel
Save