From af72b75a97d1119fdfa29893b7cc21f0a14cf081 Mon Sep 17 00:00:00 2001 From: thiagourias Date: Tue, 18 Jun 2019 15:11:14 -0300 Subject: [PATCH] Alteracoes card --- classes/output/core/course_renderer.php | 5 +++++ scss/courselist.scss | 20 +++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/classes/output/core/course_renderer.php b/classes/output/core/course_renderer.php index 60184a0..bad9e2b 100644 --- a/classes/output/core/course_renderer.php +++ b/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; diff --git a/scss/courselist.scss b/scss/courselist.scss index ae99eef..39efb4b 100644 --- a/scss/courselist.scss +++ b/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; } \ No newline at end of file