Commit 1bf1764a by Reda Lemeden

Merge pull request #16 from MITx/kf-tutorials

Added new styles for tutorials
parents 7c97e197 52a6f943
...@@ -134,7 +134,7 @@ input, select { ...@@ -134,7 +134,7 @@ input, select {
display: table; display: table;
width: 100%; } width: 100%; }
h1.top-header, div.course-wrapper section.course-content h1, div.info-wrapper section.updates > h1, div.profile-wrapper section.course-info header, div.gradebook-wrapper section.gradebook-content h1, div.question-list-header { h1.top-header, div.course-wrapper section.course-content ol.vert-mod > li header, div.info-wrapper section.updates > h1, div.profile-wrapper section.course-info header, div.gradebook-wrapper section.gradebook-content h1, div.question-list-header {
background: #f3f3f3; background: #f3f3f3;
border-bottom: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3;
margin: -22.652px -22.652px 22.652px; margin: -22.652px -22.652px 22.652px;
...@@ -466,8 +466,7 @@ a:visited { ...@@ -466,8 +466,7 @@ a:visited {
a:link, a:visited { a:link, a:visited {
text-decoration: none; } text-decoration: none; }
p a, li > a, span > a, a .inline { p a, li > a, span > a, a .inline {
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb; }
font-style: italic; }
a:hover, a:focus { a:hover, a:focus {
color: #000; } color: #000; }
...@@ -2660,6 +2659,10 @@ body.courseware { ...@@ -2660,6 +2659,10 @@ body.courseware {
div.course-wrapper ul, div.course-wrapper ol { div.course-wrapper ul, div.course-wrapper ol {
list-style: none; } list-style: none; }
div.course-wrapper section.course-content {
overflow: hidden; }
div.course-wrapper section.course-content h1 {
margin: 0 0 22.652px; }
div.course-wrapper section.course-content p { div.course-wrapper section.course-content p {
margin-bottom: 22.652px; } margin-bottom: 22.652px; }
div.course-wrapper section.course-content p:empty { div.course-wrapper section.course-content p:empty {
...@@ -2773,6 +2776,16 @@ div.course-wrapper section.course-content ol.vert-mod > li { ...@@ -2773,6 +2776,16 @@ div.course-wrapper section.course-content ol.vert-mod > li {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
margin-bottom: 15px; margin-bottom: 15px;
padding: 0 0 15px; } padding: 0 0 15px; }
div.course-wrapper section.course-content ol.vert-mod > li header {
margin-bottom: 0; }
div.course-wrapper section.course-content ol.vert-mod > li header h1 {
margin: 0; }
div.course-wrapper section.course-content ol.vert-mod > li header h2 {
float: right;
margin-right: 0;
margin-top: 8px;
text-align: right;
padding-right: 0; }
div.course-wrapper section.course-content ol.vert-mod > li:last-child { div.course-wrapper section.course-content ol.vert-mod > li:last-child {
border-bottom: none; border-bottom: none;
margin-bottom: 0; margin-bottom: 0;
...@@ -2780,9 +2793,27 @@ div.course-wrapper section.course-content ol.vert-mod > li:last-child { ...@@ -2780,9 +2793,27 @@ div.course-wrapper section.course-content ol.vert-mod > li:last-child {
div.course-wrapper section.course-content ol.vert-mod > li ul { div.course-wrapper section.course-content ol.vert-mod > li ul {
list-style: disc outside none; list-style: disc outside none;
padding-left: 1em; } padding-left: 1em; }
div.course-wrapper section.course-content section.tutorials h2 {
margin-bottom: 22.652px; }
div.course-wrapper section.course-content section.tutorials ul { div.course-wrapper section.course-content section.tutorials ul {
list-style: disc outside none; margin: 0;
margin-left: 22.652px; } zoom: 1; }
div.course-wrapper section.course-content section.tutorials ul:before, div.course-wrapper section.course-content section.tutorials ul:after {
content: "";
display: table; }
div.course-wrapper section.course-content section.tutorials ul:after {
clear: both; }
div.course-wrapper section.course-content section.tutorials ul li {
width: 31.522%;
float: left;
margin-right: 2.717%;
margin-bottom: 22.652px; }
div.course-wrapper section.course-content section.tutorials ul li:nth-child(3n) {
margin-right: 0; }
div.course-wrapper section.course-content section.tutorials ul li:nth-child(3n+1) {
clear: both; }
div.course-wrapper section.course-content section.tutorials ul li a {
font-weight: bold; }
div.course-wrapper section.course-content div.staff_info { div.course-wrapper section.course-content div.staff_info {
zoom: 1; zoom: 1;
white-space: pre-wrap; white-space: pre-wrap;
...@@ -3480,9 +3511,11 @@ nav.sequence-nav { ...@@ -3480,9 +3511,11 @@ nav.sequence-nav {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 22.652px; margin-bottom: 22.652px;
position: relative; } position: relative;
top: -1px; }
nav.sequence-nav ol { nav.sequence-nav ol {
border-bottom: 1px solid #e4d080; border-bottom: 1px solid #e4d080;
border-top: 1px solid #e4d080;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -63,7 +63,7 @@ a { ...@@ -63,7 +63,7 @@ a {
p &, li > &, span > &, .inline { p &, li > &, span > &, .inline {
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb;
font-style: italic; // font-style: italic;
} }
&:hover, &:focus { &:hover, &:focus {
......
...@@ -17,9 +17,10 @@ div.course-wrapper { ...@@ -17,9 +17,10 @@ div.course-wrapper {
section.course-content { section.course-content {
@extend .content; @extend .content;
overflow: hidden;
h1 { h1 {
@extend .top-header; margin: 0 0 lh();
} }
p { p {
...@@ -169,6 +170,23 @@ div.course-wrapper { ...@@ -169,6 +170,23 @@ div.course-wrapper {
margin-bottom: 15px; margin-bottom: 15px;
padding: 0 0 15px; padding: 0 0 15px;
header {
@extend h1.top-header;
margin-bottom: 0;
h1 {
margin: 0;
}
h2 {
float: right;
margin-right: 0;
margin-top: 8px;
text-align: right;
padding-right: 0;
}
}
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
margin-bottom: 0; margin-bottom: 0;
...@@ -183,9 +201,32 @@ div.course-wrapper { ...@@ -183,9 +201,32 @@ div.course-wrapper {
} }
section.tutorials { section.tutorials {
h2 {
margin-bottom: lh();
}
ul { ul {
list-style: disc outside none; margin: 0;
margin-left: lh(); @include clearfix();
li {
width: flex-grid(3, 9);
float: left;
margin-right: flex-gutter(9);
margin-bottom: lh();
&:nth-child(3n) {
margin-right: 0;
}
&:nth-child(3n+1) {
clear: both;
}
a {
font-weight: bold;
}
}
} }
} }
......
...@@ -3,9 +3,11 @@ nav.sequence-nav { ...@@ -3,9 +3,11 @@ nav.sequence-nav {
@include box-sizing(border-box); @include box-sizing(border-box);
margin-bottom: $body-line-height; margin-bottom: $body-line-height;
position: relative; position: relative;
top: -1px;
ol { ol {
border-bottom: 1px solid darken($cream, 20%); border-bottom: 1px solid darken($cream, 20%);
border-top: 1px solid darken($cream, 20%);
@include box-sizing(border-box); @include box-sizing(border-box);
display: table; display: table;
padding-right: flex-grid(1, 9); padding-right: flex-grid(1, 9);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment