Commit 0bed1347 by thomasxiii

Merge pull request #371 from MITx/feature/kfiedler/courseware-style

A bunch of minor changes and bug fixes for the courseware
parents 5d9ffdd5 4d5a9769
...@@ -3,9 +3,9 @@ nav.sequence-nav { ...@@ -3,9 +3,9 @@ nav.sequence-nav {
// import from external sources. // import from external sources.
@extend .topbar; @extend .topbar;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
@include border-top-right-radius(4px);
margin: (-(lh())) (-(lh())) lh() (-(lh())); margin: (-(lh())) (-(lh())) lh() (-(lh()));
position: relative; position: relative;
@include border-top-right-radius(4px);
ol { ol {
@include box-sizing(border-box); @include box-sizing(border-box);
...@@ -242,9 +242,11 @@ nav.sequence-bottom { ...@@ -242,9 +242,11 @@ nav.sequence-bottom {
border: 1px solid $border-color; border: 1px solid $border-color;
@include border-radius(3px); @include border-radius(3px);
@include inline-block(); @include inline-block();
width: 100px;
li { li {
float: left; float: left;
width: 50%;
&.prev, &.next { &.prev, &.next {
margin-bottom: 0; margin-bottom: 0;
...@@ -252,12 +254,11 @@ nav.sequence-bottom { ...@@ -252,12 +254,11 @@ nav.sequence-bottom {
a { a {
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
border-bottom: none; border: none;
display: block; display: block;
padding: lh(.5) 4px; padding: lh(.5) 4px;
text-indent: -9999px; text-indent: -9999px;
@include transition(all, .2s, $ease-in-out-quad); @include transition(all, .2s, $ease-in-out-quad);
width: 45px;
&:hover { &:hover {
background-color: #ddd; background-color: #ddd;
...@@ -275,7 +276,7 @@ nav.sequence-bottom { ...@@ -275,7 +276,7 @@ nav.sequence-bottom {
&.prev { &.prev {
a { a {
background-image: url('../images/sequence-nav/previous-icon.png'); background-image: url('../images/sequence-nav/previous-icon.png');
border-right: 1px solid lighten($border-color, 10%); border-right: 1px solid lighten(#c6c6c6, 10%);
&:hover { &:hover {
background-color: none; background-color: none;
......
...@@ -16,7 +16,6 @@ div.video { ...@@ -16,7 +16,6 @@ div.video {
height: 0; height: 0;
overflow: hidden; overflow: hidden;
padding-bottom: 56.25%; padding-bottom: 56.25%;
padding-top: 30px;
position: relative; position: relative;
object, iframe { object, iframe {
...@@ -463,7 +462,8 @@ div.video { ...@@ -463,7 +462,8 @@ div.video {
} }
ol.subtitles { ol.subtitles {
width: 0px; width: 0;
height: 0;
} }
} }
......
common/static/images/sequence-nav/edit.png

168 Bytes | W: | H:

common/static/images/sequence-nav/edit.png

171 Bytes | W: | H:

common/static/images/sequence-nav/edit.png
common/static/images/sequence-nav/edit.png
common/static/images/sequence-nav/edit.png
common/static/images/sequence-nav/edit.png
  • 2-up
  • Swipe
  • Onion skin
common/static/images/sequence-nav/history.png

276 Bytes | W: | H:

common/static/images/sequence-nav/history.png

292 Bytes | W: | H:

common/static/images/sequence-nav/history.png
common/static/images/sequence-nav/history.png
common/static/images/sequence-nav/history.png
common/static/images/sequence-nav/history.png
  • 2-up
  • Swipe
  • Onion skin
common/static/images/sequence-nav/view.png

229 Bytes | W: | H:

common/static/images/sequence-nav/view.png

234 Bytes | W: | H:

common/static/images/sequence-nav/view.png
common/static/images/sequence-nav/view.png
common/static/images/sequence-nav/view.png
common/static/images/sequence-nav/view.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -80,38 +80,54 @@ div.info-wrapper { ...@@ -80,38 +80,54 @@ div.info-wrapper {
} }
ol { ol {
background: none;
list-style: none;
padding-left: 0;
margin: 0;
li { li {
@extend .clearfix; a {
background: none; display: block;
border-bottom: 1px solid $border-color; padding-left: lh(.5);
@include box-sizing(border-box); padding-right: 0;
padding: em(7) lh(.75); }
position: relative;
font-size: 1em;
&.expandable, &.expandable,
&.collapsable { &.collapsable {
h4 { h4 {
font-weight: normal; font-weight: normal;
font-size: 1em; font-size: 1em;
padding-left: 18px; padding: lh(.25) 0 lh(.25) lh(1.5);
}
}
&.multiple {
padding: lh(.5) 0 lh(.5) lh(.5);
a {
@include inline-block;
padding: 0;
&:hover {
background: transparent;
}
} }
} }
ul { ul {
background: none; background: none;
margin: em(7) (-(lh(.75))) 0; margin: 0;
li { li {
border-bottom: 0; border-bottom: 0;
border-top: 1px solid $border-color; border-top: 1px solid $border-color;
@include box-shadow(inset 0 1px 0 #eee); @include box-shadow(inset 0 1px 0 #eee);
font-size: 1em; font-size: 1em;
padding: lh(.5) 0 lh(.5) lh(.5);
a {
@include inline-block;
padding: 0;
&:hover {
background: transparent;
}
}
} }
} }
...@@ -119,23 +135,26 @@ div.info-wrapper { ...@@ -119,23 +135,26 @@ div.info-wrapper {
background-image: url('../images/treeview-default.gif'); background-image: url('../images/treeview-default.gif');
display: block; display: block;
height: 100%; height: 100%;
left: lh(.75);
margin-left: 0; margin-left: 0;
max-height: 20px; max-height: 30px;
position: absolute; position: absolute;
width: 100%; width: 100%;
&:hover { &:hover {
opacity: 0.6; opacity: 0.6;
filter: alpha(opacity=60); filter: alpha(opacity=60);
+ h4 {
background-color: #e3e3e3;
}
} }
&.expandable-hitarea { &.expandable-hitarea {
background-position: -80px 1px; background-position: -72px 7px;
} }
&.collapsable-hitarea { &.collapsable-hitarea {
background-position: -64px -21px; background-position: -55px -15px;
} }
} }
...@@ -170,11 +189,6 @@ div.info-wrapper { ...@@ -170,11 +189,6 @@ div.info-wrapper {
} }
} }
} }
a {
@include inline-block();
line-height: lh();
}
} }
} }
} }
......
...@@ -7,19 +7,20 @@ div.book-wrapper { ...@@ -7,19 +7,20 @@ div.book-wrapper {
@include box-sizing(border-box); @include box-sizing(border-box);
ul#booknav { ul#booknav {
font-size: $body-font-size; font-size: em(14);
a {
color: #000;
&:hover {
color: #666;
}
}
li { li {
background: none; background: none;
padding-left: 30px; border-bottom: 0;
padding-left: lh();
a {
padding: 0;
&:hover {
background-color: transparent;
}
}
div.hitarea { div.hitarea {
background-image: url('../images/treeview-default.gif'); background-image: url('../images/treeview-default.gif');
...@@ -35,6 +36,13 @@ div.book-wrapper { ...@@ -35,6 +36,13 @@ div.book-wrapper {
ul { ul {
background: none; background: none;
margin-top: lh(.25);
border-top: 1px solid $border-color;
padding-top: lh(.25);
li {
padding-bottom: lh(.25);
}
} }
} }
...@@ -47,8 +55,8 @@ div.book-wrapper { ...@@ -47,8 +55,8 @@ div.book-wrapper {
section.book { section.book {
@extend .content; @extend .content;
padding-right: 0;
padding-bottom: 0; padding-bottom: 0;
padding-right: 0;
padding-top: 0; padding-top: 0;
nav { nav {
...@@ -68,28 +76,22 @@ div.book-wrapper { ...@@ -68,28 +76,22 @@ div.book-wrapper {
width: flex-grid(2, 8); width: flex-grid(2, 8);
a { a {
display: table;
@include box-sizing(border-box);
height: 100%;
width: 100%;
vertical-align: middle;
@include transition;
background-color: rgba(#000, .7); background-color: rgba(#000, .7);
background-repeat: no-repeat;
background-position: center; background-position: center;
background-repeat: no-repeat;
@include box-sizing(border-box);
display: table;
height: 100%;
opacity: 0; opacity: 0;
filter: alpha(opacity=0); filter: alpha(opacity=0);
text-indent: -9999px; text-indent: -9999px;
@include transition;
vertical-align: middle;
width: 100%;
&:hover { &:hover {
opacity: 1; opacity: 1;
filter: alpha(opacity=100); filter: alpha(opacity=100);
&.last {
}
&.next {
}
} }
} }
...@@ -120,9 +122,9 @@ div.book-wrapper { ...@@ -120,9 +122,9 @@ div.book-wrapper {
} }
section.page { section.page {
text-align: center;
position: relative;
border: 1px solid $border-color; border: 1px solid $border-color;
position: relative;
text-align: center;
img { img {
max-width: 100%; max-width: 100%;
......
...@@ -21,3 +21,8 @@ form { ...@@ -21,3 +21,8 @@ form {
display: block; display: block;
} }
} }
::selection, ::-moz-selection, ::-webkit-selection {
background:#444;
color:#fff;
}
...@@ -59,7 +59,7 @@ h1.top-header { ...@@ -59,7 +59,7 @@ h1.top-header {
width: flex-grid(3); width: flex-grid(3);
h1, h2 { h1, h2 {
font-size: em(18); font-size: em(20);
font-weight: 100; font-weight: 100;
letter-spacing: 0; letter-spacing: 0;
text-transform: none; text-transform: none;
...@@ -88,22 +88,16 @@ h1.top-header { ...@@ -88,22 +88,16 @@ h1.top-header {
font-weight: normal; font-weight: normal;
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
font-size: 1em;
a { a {
color: lighten($text-color, 10%);
display: block; display: block;
font-size: $body-font-size;
padding: 7px 7px 7px 30px;
text-decoration: none; text-decoration: none;
@include transition(); @include transition();
} }
// span.ui-icon {
// background-image: url(../images/ui-icons_454545_256x240.png);
// }
&.active { &.active {
border-bottom: 1px solid #d3d3d3; @extend .bottom-border;
color: #000; color: #000;
font-weight: bold; font-weight: bold;
...@@ -113,6 +107,33 @@ h1.top-header { ...@@ -113,6 +107,33 @@ h1.top-header {
} }
} }
ul, ol {
list-style: none;
margin: 0;
padding-left: 0;
li {
@extend .bottom-border;
@extend .clearfix;
background: none;
position: relative;
padding: 0;
a {
display: block;
line-height: lh();
font-size: 1em;
@include box-sizing(border-box);
padding: lh(.25) lh(.5) lh(.25) 0;
&:hover {
color: #666;
background: #f6f6f6;
}
}
}
}
header#open_close_accordion { header#open_close_accordion {
position: relative; position: relative;
......
...@@ -105,12 +105,14 @@ div.course-wrapper { ...@@ -105,12 +105,14 @@ div.course-wrapper {
ul { ul {
margin: 0; margin: 0;
@include clearfix(); @include clearfix();
padding: 0;
li { li {
width: flex-grid(3, 9); width: flex-grid(3, 9);
float: left; float: left;
margin-right: flex-gutter(9); margin-right: flex-gutter(9);
margin-bottom: lh(); margin-bottom: lh();
line-height: lh();
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;
......
...@@ -11,10 +11,10 @@ section.course-index { ...@@ -11,10 +11,10 @@ section.course-index {
} }
div#accordion { div#accordion {
h3 { h3 {
@include border-radius(0); @include border-radius(0);
border-top: 1px solid #e3e3e3; border-top: 1px solid #e3e3e3;
font-size: em(16, 18);
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
...@@ -23,8 +23,14 @@ section.course-index { ...@@ -23,8 +23,14 @@ section.course-index {
} }
&:hover { &:hover {
color: #666;
background: #f6f6f6; background: #f6f6f6;
text-decoration: none; }
&.ui-state-hover {
a {
color: #666;
}
} }
&.ui-accordion-header { &.ui-accordion-header {
...@@ -33,8 +39,6 @@ section.course-index { ...@@ -33,8 +39,6 @@ section.course-index {
a { a {
@include border-radius(0); @include border-radius(0);
@include box-shadow(none); @include box-shadow(none);
color: lighten($text-color, 10%);
font-size: $body-font-size;
} }
&.ui-state-active { &.ui-state-active {
...@@ -45,30 +49,35 @@ section.course-index { ...@@ -45,30 +49,35 @@ section.course-index {
background: none; background: none;
} }
} }
span.ui-icon {
background-image: url("/static/images/ui-icons_222222_256x240.png");
opacity: .3;
}
} }
} }
ul.ui-accordion-content { ul.ui-accordion-content {
@include border-radius(0);
background: transparent; background: transparent;
border: none; border: none;
font-size: 12px; @include border-radius(0);
font-size: em(14, 18);
margin: 0; margin: 0;
padding: 1em 1.5em; padding: 1em 1.5em;
li { li {
border-bottom: 0;
@include border-radius(0); @include border-radius(0);
margin-bottom: lh(.5); margin-bottom: lh(.5);
a { a {
border: 1px solid transparent;
background: transparent; background: transparent;
border: 1px solid transparent;
@include border-radius(4px); @include border-radius(4px);
position: relative; display: block;
padding: 5px 36px 5px 10px; padding: 5px 36px 5px 10px;
position: relative;
text-decoration: none; text-decoration: none;
display: block;
color: #666;
p { p {
font-weight: bold; font-weight: bold;
...@@ -84,16 +93,16 @@ section.course-index { ...@@ -84,16 +93,16 @@ section.course-index {
&:after { &:after {
background: transparent; background: transparent;
border-top: 1px solid rgb(180,180,180);
border-right: 1px solid rgb(180,180,180); border-right: 1px solid rgb(180,180,180);
border-top: 1px solid rgb(180,180,180);
content: ""; content: "";
display: block; display: block;
height: 12px; height: 12px;
margin-top: -6px; margin-top: -6px;
opacity: 0; opacity: 0;
position: absolute; position: absolute;
top: 50%;
right: 30px; right: 30px;
top: 50%;
@include transform(rotate(45deg)); @include transform(rotate(45deg));
width: 12px; width: 12px;
} }
...@@ -142,7 +151,6 @@ section.course-index { ...@@ -142,7 +151,6 @@ section.course-index {
span.subtitle { span.subtitle {
font-weight: normal; font-weight: normal;
} }
} }
} }
} }
......
...@@ -2,20 +2,8 @@ div#wiki_panel { ...@@ -2,20 +2,8 @@ div#wiki_panel {
@extend .sidebar; @extend .sidebar;
overflow: auto; overflow: auto;
h2 {
@extend .bottom-border;
margin: 0 ;
padding: lh(.5) lh() lh(.5) 0;
color: #000;
}
ul { ul {
padding-left: 0;
margin: 0;
li { li {
@extend .bottom-border;
&.search { &.search {
padding: 10px lh() 10px 0; padding: 10px lh() 10px 0;
...@@ -23,25 +11,14 @@ div#wiki_panel { ...@@ -23,25 +11,14 @@ div#wiki_panel {
display: none; display: none;
} }
} }
a {
color: #666;
font-size: 14px;
padding: 7px lh() 7px 0;
&:hover {
background: #efefef;
}
}
} }
}
form { form {
input[type="submit"]{ input[type="submit"]{
@extend .light-button; @extend .light-button;
text-transform: none; text-transform: none;
text-shadow: none; text-shadow: none;
}
} }
} }
......
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