scorm.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. /*
  2. File used to display Learning Path item in student view
  3. If scorm.css file exists in theme folder, scorm.css file is used instead of this one
  4. See https://support.chamilo.org/issues/6976
  5. */
  6. /* LP SCORM */
  7. /* Default LP left column values */
  8. .lp_resource {
  9. list-style: none;
  10. margin: 0;
  11. float: left;
  12. width: 100%;
  13. }
  14. .lp_resource_element {
  15. border: 1px solid #DDDDDD;
  16. color: #444444;
  17. cursor: pointer;
  18. text-decoration: none;
  19. margin: 5px;
  20. padding: 5px 10px;
  21. list-style: none;
  22. border-radius: 5px;
  23. }
  24. .lp_resource_element:hover {
  25. background-color: #E6E6E6;
  26. }
  27. #lp_item_list {
  28. margin: 0;
  29. padding: 0;
  30. }
  31. #lp_item_list, #lp_item_list li {
  32. list-style-type: none;
  33. }
  34. #lp_item_list .active {
  35. border: 2px dotted #BDB76B;
  36. }
  37. #lp_item_list ul, #lp_item_list li {
  38. width: 100%;
  39. }
  40. #lp_item_list .item_data {
  41. padding: 0;
  42. }
  43. #lp_item_list .item_data span {
  44. margin-left: 5px;
  45. }
  46. #lp_item_list .item {
  47. border: none;
  48. }
  49. #lp_item_list .empty {
  50. height: 5px;
  51. }
  52. #lp_item_list .ui-state-highlight {
  53. height: 25px;
  54. background: #EEEEEE;
  55. border-radius: 5px;
  56. border: 1px dashed #B0B0B0
  57. }
  58. .audio-scorm #container {
  59. min-height: 45px;
  60. margin-bottom: 5px;
  61. }
  62. #author_image {
  63. border: 1px solid #CCCCCC;
  64. float: left;
  65. margin: 0;
  66. padding: 8px;
  67. position: relative;
  68. width: 100%;
  69. }
  70. #author_name {
  71. float: left;
  72. text-align: center;
  73. width: 100%;
  74. font-size: 11px;
  75. color: #888;
  76. margin-top: 2px;
  77. }
  78. #learning_path_left_zone #scorm-gamification {
  79. }
  80. #scorm-gamification .fa-star {
  81. font-size: 20px;
  82. color: #C2C2C2;
  83. }
  84. #scorm-gamification .fa-star.level {
  85. color: #D9534F;
  86. }
  87. #learning_path_left_zone .navegation-bar .buttons {
  88. padding-top: 5px;
  89. padding-bottom: 5px;
  90. }
  91. #learning_path_left_zone .description-autor {
  92. text-align: left;
  93. }
  94. .inner_lp_toc .scorm_item a {
  95. font-weight: bold;
  96. font-size: 14px;
  97. margin-right: 1px;
  98. padding-bottom: 2px;
  99. text-decoration: none;
  100. color: #2F3E46;
  101. }
  102. .inner_lp_toc .scorm_item a.chapter_module {
  103. font-weight: normal;
  104. margin-right: 10px;
  105. }
  106. .inner_lp_toc .scorm_item_highlight {
  107. border: 1px solid #999;
  108. background: #999;
  109. font-weight: bold;
  110. text-shadow: 0 -1px 1px #666;
  111. background-image: -webkit-gradient(linear, left top, left bottom, from(#666), to(#999));
  112. background-image: -webkit-linear-gradient(top, #666, #999);
  113. background-image: -moz-linear-gradient(top, #666, #999);
  114. background-image: -ms-linear-gradient(top, #666, #999);
  115. background-image: -o-linear-gradient(top, #666, #999);
  116. background-image: linear-gradient(top, #666, #999);
  117. margin-right: 0;
  118. padding: 10px 0 10px 0;
  119. text-decoration: none;
  120. }
  121. .inner_lp_toc .scorm_item_highlight a {
  122. color: #fff;
  123. margin-right: 1px;
  124. text-decoration: none;
  125. font-weight: bold;
  126. }
  127. .inner_lp_toc .scorm_item {
  128. font-size: 16px;
  129. margin-left: 10px;
  130. margin-right: 10px;
  131. text-decoration: none;
  132. border-color: rgba(255, 255, 255, 0.3);
  133. }
  134. .inner_lp_toc .scorm_item_section .scorm_item:before {
  135. content: url('#{$img-path}lp_section.png'); /* path from main/lp/lp_controller.php file */
  136. vertical-align: text-top;
  137. margin-right: 5px;
  138. }
  139. /* learning path's classes for section and item for 5 levels of depth */
  140. .scorm_section_level_0 {
  141. margin: 0 0 0 0;
  142. }
  143. .scorm_section_level_1 {
  144. margin: 0 0.5em 0 20px;
  145. }
  146. .scorm_section_level_2 {
  147. margin: 0 0.5em 0 40px;
  148. }
  149. .scorm_section_level_3 {
  150. margin: 0 0.5em 0 60px;
  151. }
  152. .scorm_section_level_4 {
  153. margin: 0 0.5em 0 70px;
  154. }
  155. .scorm_section_level_5 {
  156. margin: 0 0.5em 0 10em;
  157. }
  158. .scorm_item_normal {
  159. line-height: 25px;
  160. border-bottom: 1px solid #DDD;
  161. padding: 10px 0;
  162. }
  163. .level_0 {
  164. margin: 0;
  165. padding-left: 30px;
  166. }
  167. .level_1 {
  168. margin: 0 0.5em 0 20px;
  169. padding-left: 30px;
  170. }
  171. .level_2 {
  172. margin: 0 0.5em 0 40px;
  173. padding-left: 30px;
  174. }
  175. .level_3 {
  176. margin: 0 0.5em 0 60px;
  177. padding: 5px 5px 5px 30px;
  178. line-height: 14px;
  179. }
  180. .level_4 {
  181. margin: 0 0.5em 0 70px;
  182. padding-left: 30px;
  183. }
  184. .level_5 {
  185. margin: 0 0.5em 0 90px;
  186. padding-left: 30px;
  187. }
  188. #learning_path_breadcrumb_zone .breadcrumb {
  189. background-color: #2b3d53;
  190. border-radius: 0;
  191. -moz-border-radius: 0;
  192. -webkit-border-radius: 0;
  193. color: #ffffff;
  194. font-size: 12px;
  195. }
  196. #learning_path_breadcrumb_zone .breadcrumb a {
  197. color: #ffffff;
  198. text-decoration: none;
  199. }
  200. #learning_path_breadcrumb_zone .breadcrumb a:hover {
  201. color: #dddddd;
  202. }
  203. .total {
  204. width: 100%;
  205. }
  206. .view-options {
  207. padding-top: 3px;
  208. margin-right: 5px;
  209. }
  210. .panel-default .panel-heading .btn {
  211. top: -25px;
  212. }
  213. .panel-default .panel-heading .dropdown-menu {
  214. top: 30%;
  215. }
  216. #content-scorm .breadcrumb {
  217. padding: 5px;
  218. }
  219. .scorm-heading {
  220. font-size: 14px;
  221. padding-top: 5px;
  222. padding-bottom: 5px;
  223. }
  224. #control-bottom {
  225. position: fixed;
  226. bottom: 0;
  227. width: 100%;
  228. text-align: center;
  229. left: 0;
  230. }
  231. #control-bottom.well {
  232. margin-bottom: 0;
  233. }
  234. /*SCORM CSS BASE */
  235. #learning_path_left_zone .home {
  236. display: inline-block;
  237. width: 94%;
  238. margin-bottom: .5em;
  239. margin-top: .5em;
  240. font-size: 12px;
  241. }
  242. /* for section */
  243. .scorm_item_section {
  244. border-bottom: 1px solid #DDD;
  245. font-size: 14px;
  246. font-weight: bold;
  247. }
  248. .scorm_item_section .section {
  249. background: url("#{$img-path}scorm/folder-item-closed.png") no-repeat 10px center;
  250. padding: 10px 20px 10px 35px;
  251. }
  252. .scorm_item_section.scorm_completed .section {
  253. background: url("#{$img-path}scorm/folder-item-open.png") no-repeat 10px center;
  254. padding-right: 1.5em;
  255. }
  256. .scorm_item_normal a.items-list {
  257. color: #666666;
  258. display: inline-block;
  259. width: 100%;
  260. }
  261. .scorm_item_normal a:hover {
  262. text-decoration: none;
  263. }
  264. .scorm_item_normal.scorm_completed {
  265. background-color: #F5F5F5;
  266. }
  267. .scorm_item_section.scorm_completed {
  268. background-color: #F5F5F5;
  269. color: #000;
  270. }
  271. .scorm_completed .item {
  272. background: url("#{$img-path}scorm/scorm_completed.png") no-repeat 10px center;
  273. }
  274. .scorm_completed .item a {
  275. color: #000;
  276. }
  277. .scorm_failed .item {
  278. background: url("#{$img-path}scorm/scorm_failed.png") no-repeat 10px center;
  279. }
  280. .scorm_not_attempted .item {
  281. background: url("#{$img-path}scorm/scorm_not_attempted.png") no-repeat 10px center;
  282. }
  283. .scorm_highlight .item {
  284. background: url("#{$img-path}scorm/scorm_highlight.png") no-repeat 10px center !important;
  285. color: #009AB8;
  286. }
  287. .scorm_highlight.scorm_completed .item {
  288. background: url("#{$img-path}scorm/scorm_current.png") no-repeat 10px center !important;
  289. }
  290. .scorm_highlight.scorm_failed .item {
  291. background: url("#{$img-path}scorm/scorm_failed.png") no-repeat 10px center !important;
  292. }
  293. .scorm_highlight a {
  294. /* color: #FFFFFF !important;*/
  295. }
  296. .scorm_item_normal.scorm_highlight {
  297. background-color: #00829C;
  298. }
  299. .scorm_item_normal.scorm_highlight a {
  300. /* color: #FFFFFF; once again this make links invisible!! */
  301. }
  302. /* END SCORM CSS BASE*/
  303. #scorm-info {
  304. padding: 0;
  305. background-color: #EBF3F5;
  306. display: inline-block;
  307. width: 100%;
  308. }
  309. #scorm-info .description-autor p {
  310. font-size: 12px;
  311. line-height: 20px;
  312. color: #666666;
  313. }
  314. #scorm-info hr {
  315. width: 100%;
  316. border-top: 1px solid #d7d7d7;
  317. margin-top: 5px;
  318. margin-bottom: 10px;
  319. }
  320. #scorm-info #progress_bar .progress {
  321. margin-bottom: 5px;
  322. }
  323. .image-avatar .media-left img,
  324. .image-avatar img {
  325. border: 1px solid #DDD;
  326. border-radius: 5px;
  327. }
  328. .image-avatar {
  329. padding-top: 10px;
  330. padding-bottom: 10px;
  331. }
  332. .scorm-title {
  333. padding: 10px;
  334. display: inline-block;
  335. width: 100%;
  336. }
  337. .scorm-body{
  338. display: inline-block;
  339. width: 100%;
  340. }
  341. .scorm-title h4 {
  342. font-size: 18px;
  343. font-weight: bold;
  344. color: #686f7a;
  345. }
  346. #learning_path_right_zone .lp-view-tabs li a {
  347. padding: 5px 10px;
  348. }
  349. #learning_path_main {
  350. height: 100%;
  351. margin: 0;
  352. overflow: hidden;
  353. position: absolute;
  354. width: 100%;
  355. }
  356. #learning_path_left_zone,
  357. #learning_path_right_zone {
  358. bottom: 0;
  359. box-sizing: content-box;
  360. left: 0;
  361. margin: 0;
  362. padding: 0;
  363. position: absolute;
  364. right: 0;
  365. top: 0;
  366. transition-property: left, width;
  367. transition-duration: 0.5s;
  368. }
  369. #learning_path_right_zone #wrapper-iframe {
  370. height: 100%;
  371. width: 100%;
  372. }
  373. #learning_path_left_zone .lp-view-zone-container,
  374. #learning_path_right_zone .lp-view-zone-container {
  375. bottom: 0;
  376. left: 0;
  377. padding: 0;
  378. position: absolute;
  379. right: 0;
  380. top: 0;
  381. }
  382. #learning_path_toc {
  383. bottom: 0;
  384. left: 0;
  385. overflow: auto;
  386. position: absolute;
  387. right: 0;
  388. top: 100%;
  389. transition-property: top;
  390. transition-duration: 0.1s;
  391. }
  392. #learning_path_right_zone {
  393. left: 100%;
  394. width: 100%;
  395. }
  396. #learning_path_right_zone.no-right-col {
  397. left: 0;
  398. }
  399. #learning_path_right_zone .lp-view-tabs .tab-content {
  400. bottom: 5px;
  401. left: 5px;
  402. position: absolute;
  403. right: 5px;
  404. top: 60px;
  405. }
  406. #learning_path_right_zone .tab-pane {
  407. height: 100%;
  408. position: relative;
  409. }
  410. #learning_path_right_zone .tab-pane iframe {
  411. border: 0 none;
  412. height: 100%;
  413. width: 100%;
  414. }
  415. #learning_path_main.lp-view-collapsed #learning_path_left_zone {
  416. left: -100%;
  417. }
  418. #learning_path_main.lp-view-collapsed #learning_path_right_zone {
  419. left: 0;
  420. width: 100%;
  421. }
  422. .nav-tabs li.active a {
  423. color: #006A84;
  424. }
  425. .nav-tabs li a {
  426. color: #666666;
  427. }
  428. #lp-view-expand-button {
  429. border: none;
  430. background: none;
  431. padding: 0;
  432. margin: 0;
  433. }
  434. .icon-toolbar .fa {
  435. width: 35px;
  436. height: 35px;
  437. line-height: 35px;
  438. text-align: center;
  439. border-radius: 100%;
  440. background-color: #34495E;
  441. font-size: 20px;
  442. color: #FFF;
  443. }
  444. .icon-toolbar .fa:hover {
  445. background-color: #000;
  446. }
  447. .expand .fa {
  448. background-color: #00829C;
  449. }
  450. .expand .fa:hover {
  451. background-color: #006A84;
  452. color: #ffffff;
  453. }
  454. .expand .fa:active, .expand .fa:focus {
  455. color: #ffffff;
  456. }
  457. #scorm-info .progress-bar {
  458. line-height: 17px;
  459. }
  460. .actions_lp {
  461. display: inline-block;
  462. width: 100%;
  463. text-align: center;
  464. }
  465. .navegation-bar {
  466. display: block;
  467. padding: 5px 10px 5px 5px;
  468. right: 0;
  469. top: 0;
  470. position: absolute;
  471. z-index: 9999;
  472. }
  473. /* LP VIEW COLLAPSE */
  474. .scorm-collapse .panel:hover {
  475. box-shadow: 0 3px 1px 0 rgba(20, 23, 28, .1);
  476. }
  477. .scorm-collapse .panel-default .panel-heading {
  478. background: url(#{$img-path}icons/svg/arrow-down.svg) #FFF right center no-repeat;
  479. padding-top: 0;
  480. padding-bottom: 0;
  481. }
  482. .scorm-collapse a.item-header {
  483. padding-bottom: 4px;
  484. padding-top: 10px;
  485. }
  486. .scorm-collapse .panel-default .panel-heading h4 {
  487. font-size: 18px;
  488. font-weight: 600;
  489. }
  490. .scorm-collapse a {
  491. color: #686f7a;
  492. }
  493. .scorm-collapse a.item-action,
  494. .scorm-collapse a.item-header {
  495. width: 100%;
  496. display: inline-block;
  497. }
  498. .scorm-collapse .panel-body {
  499. padding: 0;
  500. }
  501. .scorm-collapse .panel-body .list {
  502. list-style: none;
  503. padding: 0;
  504. margin: 0;
  505. }
  506. .scorm-collapse .panel-body .list li {
  507. padding: 15px 30px 15px 20px;
  508. border-bottom: 1px solid #dddddd;
  509. margin-bottom: 0;
  510. }
  511. .scorm-collapse .panel-body .list li:last-child {
  512. border-bottom: none;
  513. }
  514. .scorm_item_normal.scorm_completed {
  515. background: url(#{$img-path}icons/svg/check-completed.svg) #F5F5F5 right center no-repeat;
  516. }
  517. .scorm_item_normal.scorm_not_attempted {
  518. background: url(#{$img-path}icons/svg/check-not-attempted.svg) #FFFFFF right center no-repeat;
  519. }
  520. .scorm_item_normal.scorm_highlight.scorm_not_attempted {
  521. background: url(#{$img-path}icons/svg/check-not-attempted.svg) #00829C right center no-repeat;
  522. }
  523. .scorm_item_normal.scorm_highlight.scorm_completed {
  524. background: url(#{$img-path}icons/svg/check-highlight.svg) #00829C right center no-repeat;
  525. }
  526. .sidebar-scorm {
  527. border-right: 1px solid #e6e6e6;
  528. }
  529. .scorm-collapse-list {
  530. padding: 0;
  531. margin: 0 0 10px 0;
  532. list-style: none;
  533. }
  534. .scorm-collapse-list li {
  535. margin-bottom: 0;
  536. padding-bottom: 10px;
  537. padding-top: 10px;
  538. }
  539. .scorm-collapse-list .sub-item {
  540. padding-left: 20px;
  541. }
  542. .scorm_item_normal.scorm_highlight a {
  543. color: #FFFFFF;
  544. }
  545. /* END LP VIEW COLLAPSE */
  546. /* Small devices (tablets, 768px and up) */
  547. @media (min-width: 768px) {
  548. #learning_path_left_zone {
  549. width: 250px;
  550. }
  551. #learning_path_right_zone {
  552. left: 250px;
  553. width: calc(100% - 250px);
  554. }
  555. #learning_path_right_zone.no-right-col {
  556. width: 100%;
  557. }
  558. #learning_path_main.lp-view-include-breadcrumb #learning_path_left_zone,
  559. #learning_path_main.lp-view-include-breadcrumb #learning_path_right_zone {
  560. top: 0;
  561. }
  562. #learning_path_right_zone .lp-view-tabs .tab-content {
  563. bottom: 10px;
  564. right: 10px;
  565. top: 60px;
  566. }
  567. #learning_path_right_zone .tab-pane {
  568. }
  569. #learning_path_right_zone .tab-pane iframe {
  570. }
  571. }
  572. /* Medium devices (desktops, 992px and up) */
  573. @media (min-width: 992px) {
  574. #learning_path_left_zone {
  575. width: 300px;
  576. }
  577. #learning_path_right_zone {
  578. left: 300px;
  579. width: calc(100% - 300px);
  580. }
  581. }
  582. /* Large devices (large desktops, 1200px and up) */
  583. @media (min-width: 1200px) {
  584. #learning_path_left_zone {
  585. width: 450px;
  586. }
  587. #learning_path_right_zone {
  588. left: 465px;
  589. width: calc(100% - 465px);
  590. }
  591. }
  592. @media (min-width: 979px) and (max-width: 1024px) {
  593. #panel-scorm .image-avatar {
  594. display: none;
  595. }
  596. }
  597. @media (min-width: 768px) and (max-width: 978px) {
  598. #panel-scorm .image-avatar {
  599. display: none;
  600. }
  601. }
  602. @media (min-width: 480px) and (max-width: 767px) {
  603. #panel-scorm .image-avatar {
  604. display: none;
  605. }
  606. #scorm-info {
  607. padding: 0;
  608. margin: 0;
  609. }
  610. #learning_path_left_zone .lp-view-zone-container,
  611. #learning_path_right_zone .lp-view-zone-container {
  612. padding: 0;
  613. }
  614. #scorm-info {
  615. padding: 30px 0 0 0;
  616. margin: 0;
  617. }
  618. .nav-tabs-bar {
  619. display: none;
  620. }
  621. }
  622. /* Landscape phones and down */
  623. @media (max-width: 480px) {
  624. .scorm-title {
  625. font-size: 14px;
  626. padding: 10px;
  627. }
  628. .movil-toolbar {
  629. width: 100%;
  630. height: auto;
  631. }
  632. .scorm_item_normal {
  633. padding: 10px 5px;
  634. }
  635. .icon-toolbar .fa {
  636. width: 35px;
  637. height: 35px;
  638. line-height: 35px;
  639. font-size: 22px;
  640. }
  641. .btn-movil {
  642. width: 130px;
  643. margin: auto;
  644. }
  645. #scorm-info {
  646. padding: 30px 0 0 0;
  647. margin: 0;
  648. }
  649. #learning_path_right_zone {
  650. left: 100%;
  651. width: auto;
  652. }
  653. #panel-scorm .image-avatar {
  654. display: none;
  655. }
  656. .navegation-bar {
  657. display: block;
  658. padding: 2px;
  659. position: fixed;
  660. top: 0;
  661. right: 0;
  662. z-index: 999;
  663. width: 100%;
  664. text-align: center;
  665. }
  666. .nav-tabs-bar {
  667. display: none;
  668. }
  669. #learning_path_left_zone .lp-view-zone-container,
  670. #learning_path_right_zone .lp-view-zone-container {
  671. padding: 0;
  672. }
  673. #scorm-info hr {
  674. display: none;
  675. }
  676. }