From b49dd3ac032ea4cce17b32726d3a2537a4eac07a Mon Sep 17 00:00:00 2001 From: thiagourias Date: Mon, 17 Jun 2019 16:00:59 -0300 Subject: [PATCH] =?UTF-8?q?Inclus=C3=A3o=20de=20hover=20nas=20boxes=20curs?= =?UTF-8?q?os?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/output/core/course_renderer.php | 2 +- scss/courselist.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/classes/output/core/course_renderer.php b/classes/output/core/course_renderer.php index 47197b6..bf6b606 100644 --- a/classes/output/core/course_renderer.php +++ b/classes/output/core/course_renderer.php @@ -125,7 +125,7 @@ class course_renderer extends \core_course_renderer { $coursecount = 1; $content .= html_writer::start_tag('div', array('class' => ' row card-deck my-4')); foreach ($courses as $course) { - $content .= $this->coursecat_coursebox($chelper, $course, 'card mb-3 course-card-view'); + $content .= $this->coursecat_coursebox($chelper, $course, 'card mb-3 course-card-view boxCursos'); $coursecount ++; } $content .= html_writer::end_tag('div'); diff --git a/scss/courselist.scss b/scss/courselist.scss index 2c76dc8..7cf8263 100644 --- a/scss/courselist.scss +++ b/scss/courselist.scss @@ -68,4 +68,16 @@ body#page-enrol-index { .minheight{ background-position: top center !important; +} + +.boxCursos { + transition: box-shadow .3s; + border: 1px solid #ccc; + float: left; + +} +.boxCursos:hover { + -webkit-box-shadow: 0px 0px 14px -2px rgba(0,0,0,1); + -moz-box-shadow: 0px 0px 14px -2px rgba(0,0,0,1); + box-shadow: 0px 0px 14px -2px rgba(0,0,0,1); } \ No newline at end of file