several small fixes

This commit is contained in:
Benedikt Rötsch
2017-10-04 13:05:18 +02:00
committed by Benedikt Rötsch
parent f014c76e81
commit 9d3c6753b6
4 changed files with 6 additions and 4 deletions

View File

@@ -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);

View File

@@ -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 <vast@whiteants.net>
-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 <vast@whiteants.net>
-webkit-box-flex: 0;
-ms-flex: 0 1 20vh;
flex: 0 1 20vh;
max-height: 180px;
overflow: hidden;
margin: 0 0 22px;

View File

@@ -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)

View File

@@ -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}