several small fixes
This commit is contained in:
committed by
Benedikt Rötsch
parent
f014c76e81
commit
9d3c6753b6
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
@element title {
|
@element title {
|
||||||
flex: 0 1 12vh;
|
flex: 0 1 12vh;
|
||||||
|
max-height: 120px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
|
|
||||||
@element description {
|
@element description {
|
||||||
flex: 0 1 20vh;
|
flex: 0 1 20vh;
|
||||||
|
max-height: 180px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 0 0 var(--grid-gutter);
|
margin: 0 0 var(--grid-gutter);
|
||||||
|
|
||||||
|
|||||||
@@ -813,7 +813,6 @@ input[type="reset"]:focus,
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
// flex-direction: column;
|
|
||||||
-ms-flex-item-align: stretch;
|
-ms-flex-item-align: stretch;
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
-webkit-box-align: stretch;
|
-webkit-box-align: stretch;
|
||||||
@@ -1500,6 +1499,7 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
|||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0 1 12vh;
|
-ms-flex: 0 1 12vh;
|
||||||
flex: 0 1 12vh;
|
flex: 0 1 12vh;
|
||||||
|
max-height: 120px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@@ -1517,6 +1517,7 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
|||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0 1 20vh;
|
-ms-flex: 0 1 20vh;
|
||||||
flex: 0 1 20vh;
|
flex: 0 1 20vh;
|
||||||
|
max-height: 180px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 0 0 22px;
|
margin: 0 0 22px;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ block content
|
|||||||
.table-of-contents
|
.table-of-contents
|
||||||
.table-of-contents__list
|
.table-of-contents__list
|
||||||
.table-of-contents__item
|
.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
|
each l in course.fields.lessons
|
||||||
if l.fields
|
if l.fields
|
||||||
.table-of-contents__item
|
.table-of-contents__item
|
||||||
@@ -38,4 +38,3 @@ block content
|
|||||||
.course__description !{helpers.markdown(course.fields.description)}
|
.course__description !{helpers.markdown(course.fields.description)}
|
||||||
.course__footer
|
.course__footer
|
||||||
a.course__cta.cta(href=`/courses/${course.fields.slug}/lessons/${course.fields.lessons[0].fields.slug}${queryString}`) Start course
|
a.course__cta.cta(href=`/courses/${course.fields.slug}/lessons/${course.fields.lessons[0].fields.slug}${queryString}`) Start course
|
||||||
//pre= helpers.dump(course)
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ block content
|
|||||||
.sidebar-menu
|
.sidebar-menu
|
||||||
ul.sidebar-menu__list
|
ul.sidebar-menu__list
|
||||||
li.sidebar-menu__item
|
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
|
each category in categories
|
||||||
li.sidebar-menu__item
|
li.sidebar-menu__item
|
||||||
a.sidebar-menu__link(href=`/courses/categories/${category.fields.slug}${queryString}`) #{category.fields.title}
|
a.sidebar-menu__link(href=`/courses/categories/${category.fields.slug}${queryString}`) #{category.fields.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user