Browse Source

Alteracoes card

MOODLE_37_STABLE
thiagourias 6 years ago
parent
commit
af72b75a97
  1. 5
      classes/output/core/course_renderer.php
  2. 20
      scss/courselist.scss

5
classes/output/core/course_renderer.php

@ -245,7 +245,11 @@ class course_renderer extends \core_course_renderer {
}
// Display course summary.
if ($course->has_summary()) {
$content .= html_writer::start_tag('div', array('class' => 'card-see-more text-center teste'));
$content .= html_writer::start_tag('div', array('class' => 'btn btn-inscrever'));
$content .= 'Inscrever';
$content .= html_writer::end_tag('div');
$content .= html_writer::start_tag('div', array('class' => 'btn btn-mais-info m-2',
'id' => "course-popover-{$course->id}", 'role' => 'button', 'data-region' => 'popover-region-toggle',
'data-toggle' => 'popover', 'data-placement' => 'right',
@ -253,6 +257,7 @@ class course_renderer extends \core_course_renderer {
array('noclean' => true, 'para' => false)), 'data-html' => 'true', 'tabindex' => '0', 'data-trigger' => 'focus'));
$content .= 'Mais informações';
$content .= html_writer::end_tag('div');
$content .= html_writer::end_tag('div'); // End summary.
}
return $content;

20
scss/courselist.scss

@ -89,7 +89,7 @@ body#page-enrol-index {
transition: box-shadow .3s;
border: 1px solid #ccc;
float: left;
max-height: 440px;
background: #fff; /* Old browsers */
background: -moz-radial-gradient(center, ellipse cover, #011c35 1%, #E0E0E0 100%); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(1%,#fff), color-stop(100%,#E0E0E0)); /* Chrome,Safari4+ */
@ -139,4 +139,22 @@ body#page-enrol-index {
.propertiesTextColor:hover{
color:#787878 !important;
text-decoration: none !important;
}
.btn-inscrever{
color: #fff;
background-color: #28a745;
border-color: #28a745;
border-radius: 5px;
margin-top: 10px;
}
.btn-inscrever:hover{
-webkit-box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.58);
-moz-box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.58);
box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.58);
}
.card-body{
margin-bottom: 10px;
}
Loading…
Cancel
Save