diff --git a/assets/stylesheets/course/card.css b/assets/stylesheets/course/card.css index 9ad8dda..3af27a8 100644 --- a/assets/stylesheets/course/card.css +++ b/assets/stylesheets/course/card.css @@ -31,6 +31,7 @@ @element title { flex: 0 1 12vh; + max-height: 120px; margin: 0; overflow: hidden; @@ -46,6 +47,7 @@ @element description { flex: 0 1 20vh; + max-height: 180px; overflow: hidden; margin: 0 0 var(--grid-gutter); diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 23a6844..ae6adbd 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -813,7 +813,6 @@ input[type="reset"]:focus, display: -webkit-box; display: -ms-flexbox; display: flex; - // flex-direction: column; -ms-flex-item-align: stretch; align-self: stretch; -webkit-box-align: stretch; @@ -1500,6 +1499,7 @@ github.com style (c) Vasily Polovnyov -webkit-box-flex: 0; -ms-flex: 0 1 12vh; flex: 0 1 12vh; + max-height: 120px; margin: 0; overflow: hidden; @@ -1517,6 +1517,7 @@ github.com style (c) Vasily Polovnyov -webkit-box-flex: 0; -ms-flex: 0 1 20vh; flex: 0 1 20vh; + max-height: 180px; overflow: hidden; margin: 0 0 22px; diff --git a/views/course.pug b/views/course.pug index bc386dd..edf9684 100644 --- a/views/course.pug +++ b/views/course.pug @@ -11,7 +11,7 @@ block content .table-of-contents .table-of-contents__list .table-of-contents__item - a.table-of-contents__link(href=`/courses/${course.fields.slug}` class=(currentPath.endsWith(course.fields.slug) ? 'active' : '') class=(visitedLessons.includes(course.sys.id) ? 'visited' : '')) Course overview + a.table-of-contents__link(href=`/courses/${course.fields.slug}${queryString}` class=(currentPath.endsWith(course.fields.slug) ? 'active' : '') class=(visitedLessons.includes(course.sys.id) ? 'visited' : '')) Course overview each l in course.fields.lessons if l.fields .table-of-contents__item @@ -38,4 +38,3 @@ block content .course__description !{helpers.markdown(course.fields.description)} .course__footer a.course__cta.cta(href=`/courses/${course.fields.slug}/lessons/${course.fields.lessons[0].fields.slug}${queryString}`) Start course - //pre= helpers.dump(course) diff --git a/views/courses.pug b/views/courses.pug index 2789924..2db918e 100644 --- a/views/courses.pug +++ b/views/courses.pug @@ -11,7 +11,7 @@ block content .sidebar-menu ul.sidebar-menu__list li.sidebar-menu__item - a.sidebar-menu__link.active(href=`/courses`) All courses + a.sidebar-menu__link.active(href=`/courses${queryString}`) All courses each category in categories li.sidebar-menu__item a.sidebar-menu__link(href=`/courses/categories/${category.fields.slug}${queryString}`) #{category.fields.title}