course detail styling and basic lesson module styling

This commit is contained in:
Benedikt Rötsch
2017-10-02 17:33:40 +02:00
committed by Benedikt Rötsch
parent 478633c398
commit 71c0c0e95a
13 changed files with 335 additions and 92 deletions

View File

@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g fill="none" fill-rule="evenodd">
<path fill="#A9B9C0" fill-rule="nonzero" d="M12 2C6.46 2 2 6.48 2 12s4.47 10 10 10c5.52 0 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
<path d="M0 0h24v24H0z"/>
<path fill="#A9B9C0" fill-rule="nonzero" d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 418 B

View File

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g fill="none" fill-rule="evenodd">
<path fill="#A9B9C0" fill-rule="nonzero" d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
<path d="M0 0h24v24H0z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 316 B

View File

@@ -793,7 +793,7 @@ input[type="reset"]:focus,
}
.layout-sidebar__sidebar-header {
padding: 1em 22px;
padding: 11px 22px;
border-bottom: 1px solid #eeeeee;
}
@@ -810,7 +810,16 @@ input[type="reset"]:focus,
}
.layout-sidebar__content {
padding: 22px 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-item-align: stretch;
align-self: stretch;
padding-top: 11px;
}
@media (min-width: 700px) {
@@ -1138,44 +1147,50 @@ display: flex;
height: auto;
}
.table-of-contents ul {
list-style: none;
margin: 22px 0;
padding: 0;
padding-left: 44px;
.table-of-contents {}
.table-of-contents__list {
list-style: none;
margin: 0;
padding: 0;
padding-left: 11px;
}
.table-of-contents ul li {
margin: 0 0 22px;
padding: 0;
.table-of-contents__item {
margin: 0 0 5.5px;
padding: 0;
font-size: 0.9em;
line-height: 1.8;
}
.table-of-contents ul a {
display: block;
.table-of-contents__link {
display: block;
color: #8091a5;
}
.table-of-contents ul a.active {
.table-of-contents__link.active {
position: relative;
font-weight: bold;
font-family: 'robotomedium', Helvetica, sans-serif;
color: #2a3039;
}
.table-of-contents ul a.active:before,
.table-of-contents ul a.active:after {
.table-of-contents__link.active:before,
.table-of-contents__link.active:after {
position: absolute;
top: 0;
}
.table-of-contents ul a.active:before {
.table-of-contents__link.active:before {
content: '';
left: -66px;
left: -33px;
bottom: 0;
width: 3px;
background: #536171;
}
.table-of-contents ul a.active:after {
.table-of-contents__link.active:after {
content: '👁';
left: -44px;
left: -22px;
}
.sidebar-menu {}
@@ -1475,6 +1490,91 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
letter-spacing: 2px;
}
.course {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.course__title {
margin-bottom: 22px;
}
.course__overview {
font-family: 'robotomedium', Helvetica, sans-serif;
}
@media (min-width: 700px) {
.course__overview {
float: right;
border-radius: 4px;
-webkit-box-shadow: 0 1px 3px 1px rgba(0, 0, 0, .1);
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, .1);
width: 228px;
margin: 0 0 22px 22px;
}
}
.course__overview-title {
border-bottom: 1px solid #eeeeee;
padding: 11px 0;
margin: 0;
line-height: 1.31;
font-weight: normal;
text-transform: uppercase;
text-align: center;
}
.course__overview-item {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 11px;
border-bottom: 1px solid #eeeeee;
line-height: 1.54;
font-size: 0.8em;
}
.course__overview-icon {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: 24px;
height: 24px;
padding-right: 11px;
}
.course__overview-value {
-webkit-box-flex: 1;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
.course__overview-cta-wrapper {
padding: 11px 0;
text-align: center;
}
.course__overview-cta {
margin: 0;
}
.course__cta {
margin-bottom: 0;
}
.module-hero-image {}
.module-hero-image__wrapper {
@@ -1646,10 +1746,31 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
}
.lesson-module {
margin-top: 66px
margin-top: 22px
}
.lesson-module img {
width: 100%;
height: auto;
}
.lesson {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.lesson__title {
margin-bottom: 22px;
}
.lesson__cta {
margin-bottom: 0;
}