Commit eedf62a1 by David Ormsbee

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

Strip down sequence nav, start to use ems for font size instead of pixels and started to strip down the info page
parents 0e7ce4a6 b90aa2e2
...@@ -2,6 +2,7 @@ $fg-column: 70px; ...@@ -2,6 +2,7 @@ $fg-column: 70px;
$fg-gutter: 26px; $fg-gutter: 26px;
$fg-max-columns: 12; $fg-max-columns: 12;
$body-font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; $body-font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
$sans-serif: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
$body-font-size: 14px; $body-font-size: 14px;
$body-line-height: 20px; $body-line-height: 20px;
...@@ -12,6 +13,7 @@ $orange: #f96e5b; ...@@ -12,6 +13,7 @@ $orange: #f96e5b;
$yellow: #fff8af; $yellow: #fff8af;
$cream: #F6EFD4; $cream: #F6EFD4;
$mit-red: #933; $mit-red: #933;
$border-color: #ddd;
@mixin hide-text { @mixin hide-text {
background-color: transparent; background-color: transparent;
......
...@@ -2,10 +2,8 @@ nav.sequence-nav { ...@@ -2,10 +2,8 @@ nav.sequence-nav {
// TODO (cpennington): This doesn't work anymore. XModules aren't able to // TODO (cpennington): This doesn't work anymore. XModules aren't able to
// import from external sources. // import from external sources.
@extend .topbar; @extend .topbar;
border-bottom: 1px solid $border-color;
border-bottom: 1px solid #ddd;
margin: (-(lh())) (-(lh())) lh() (-(lh())); margin: (-(lh())) (-(lh())) lh() (-(lh()));
background: #eee;
position: relative; position: relative;
@include border-top-right-radius(4px); @include border-top-right-radius(4px);
...@@ -14,7 +12,7 @@ nav.sequence-nav { ...@@ -14,7 +12,7 @@ nav.sequence-nav {
display: table; display: table;
height: 100%; height: 100%;
margin: 0; margin: 0;
padding-left: 0; padding-left: 3px;
padding-right: flex-grid(1, 9); padding-right: flex-grid(1, 9);
width: 100%; width: 100%;
...@@ -23,133 +21,104 @@ nav.sequence-nav { ...@@ -23,133 +21,104 @@ nav.sequence-nav {
} }
li { li {
border-left: 1px solid #eee;
display: table-cell; display: table-cell;
min-width: 20px; min-width: 20px;
&:first-child { a {
border-left: none; background-position: center;
}
.inactive {
background-repeat: no-repeat; background-repeat: no-repeat;
border: 1px solid transparent;
border-bottom: none;
@include border-radius(3px 3px 0 0);
cursor: pointer;
display: block;
height: 10px;
padding: 15px 0 14px;
position: relative;
@include transition();
width: 100%;
&:hover { &:hover {
background-color: #eee; background-repeat: no-repeat;
background-position: center;
background-color: #F6F6F6;
} }
}
.visited { &.visited {
background-color: #ddd; background-color: #F6F6F6;
background-repeat: no-repeat;
&:hover { &:hover {
background-position: center center; background-position: center center;
}
} }
}
.active { &.active {
background-color: #fff; border-color: $border-color;
background-repeat: no-repeat; @include box-shadow(0 2px 0 #fff);
@include box-shadow(0 1px 0 #fff);
&:hover {
background-color: #fff; background-color: #fff;
background-position: center; z-index: 9;
}
}
a { &:hover {
background-position: center center; background-position: center;
border: none; background-color: #fff;
cursor: pointer; }
display: block;
height: 17px;
padding: 15px 0 14px;
position: relative;
@include transition(all, .4s, $ease-in-out-quad);
width: 100%;
&.progress {
border-bottom-style: solid;
border-bottom-width: 4px;
} }
&.progress-none { &.progress-none {
@extend .progress; background-color: lighten(red, 50%);
border-bottom-color: red;
} }
&.progress-some { &.progress-some {
@extend .progress; background-color: yellow;
border-bottom-color: yellow;
} }
&.progress-done { &.progress-done {
@extend .progress; background-color: green;
border-bottom-color: green;
} }
//video //video
&.seq_video { &.seq_video {
&.inactive { &.inactive {
@extend .inactive;
background-image: url('../images/sequence-nav/video-icon-normal.png'); background-image: url('../images/sequence-nav/video-icon-normal.png');
background-position: center;
} }
&.visited { &.visited {
@extend .visited;
background-image: url('../images/sequence-nav/video-icon-visited.png'); background-image: url('../images/sequence-nav/video-icon-visited.png');
background-position: center;
} }
&.active { &.active {
@extend .active; @extend .active;
background-image: url('../images/sequence-nav/video-icon-current.png'); background-image: url('../images/sequence-nav/video-icon-current.png');
background-position: center;
} }
} }
//other //other
&.seq_other { &.seq_other {
&.inactive { &.inactive {
@extend .inactive;
background-image: url('../images/sequence-nav/document-icon-normal.png'); background-image: url('../images/sequence-nav/document-icon-normal.png');
background-position: center;
} }
&.visited { &.visited {
@extend .visited;
background-image: url('../images/sequence-nav/document-icon-visited.png'); background-image: url('../images/sequence-nav/document-icon-visited.png');
background-position: center;
} }
&.active { &.active {
@extend .active;
background-image: url('../images/sequence-nav/document-icon-current.png'); background-image: url('../images/sequence-nav/document-icon-current.png');
background-position: center;
} }
} }
//vertical & problems //vertical & problems
&.seq_vertical, &.seq_problem { &.seq_vertical, &.seq_problem {
&.inactive { &.inactive {
@extend .inactive;
background-image: url('../images/sequence-nav/list-icon-normal.png'); background-image: url('../images/sequence-nav/list-icon-normal.png');
background-position: center;
} }
&.visited { &.visited {
@extend .visited;
background-image: url('../images/sequence-nav/list-icon-visited.png'); background-image: url('../images/sequence-nav/list-icon-visited.png');
background-position: center;
} }
&.active { &.active {
@extend .active;
background-image: url('../images/sequence-nav/list-icon-current.png'); background-image: url('../images/sequence-nav/list-icon-current.png');
background-position: center;
} }
} }
...@@ -157,6 +126,7 @@ nav.sequence-nav { ...@@ -157,6 +126,7 @@ nav.sequence-nav {
background: #333; background: #333;
color: #fff; color: #fff;
display: none; display: none;
font-family: $sans-serif;
line-height: lh(); line-height: lh();
left: 0px; left: 0px;
opacity: 0; opacity: 0;
...@@ -207,27 +177,29 @@ nav.sequence-nav { ...@@ -207,27 +177,29 @@ nav.sequence-nav {
right: 0; right: 0;
top: 0; top: 0;
width: flex-grid(1, 9); width: flex-grid(1, 9);
border: 1px solid $border-color;
border-bottom: 0;
@include border-radius(3px 3px 0 0);
li { li {
float: left; float: left;
margin-bottom: 0;
width: 50%; width: 50%;
&.prev, &.next { &.prev, &.next {
a { a {
// background-color: darken($cream, 5%); background-position: center;
background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
border-left: 1px solid darken(#f6efd4, 20%);
@include box-shadow(inset 1px 0 0 lighten(#f6efd4, 5%));
@include box-sizing(border-box);
cursor: pointer;
display: block; display: block;
height: 10px;
padding: 15px 0 14px;
text-indent: -9999px; text-indent: -9999px;
@include transition(all, .2s, $ease-in-out-quad); @include transition(all, .2s, $ease-in-out-quad);
&:hover { &:hover {
opacity: .5; opacity: .5;
background-color: #f4f4f4;
} }
&.disabled { &.disabled {
...@@ -240,20 +212,13 @@ nav.sequence-nav { ...@@ -240,20 +212,13 @@ nav.sequence-nav {
&.prev { &.prev {
a { a {
background-image: url('../images/sequence-nav/previous-icon.png'); background-image: url('../images/sequence-nav/previous-icon.png');
&:hover {
// background-color: $cream;
}
} }
} }
&.next { &.next {
a { a {
border-left: 1px solid lighten($border-color, 10%);
background-image: url('../images/sequence-nav/next-icon.png'); background-image: url('../images/sequence-nav/next-icon.png');
&:hover {
// background-color: $cream;
}
} }
} }
} }
...@@ -274,10 +239,8 @@ nav.sequence-bottom { ...@@ -274,10 +239,8 @@ nav.sequence-bottom {
ul { ul {
@extend .clearfix; @extend .clearfix;
background-color: #eee; border: 1px solid $border-color;
border: 1px solid #ddd;
@include border-radius(3px); @include border-radius(3px);
@include box-shadow(inset 0 0 0 1px lighten(#f6efd4, 5%));
@include inline-block(); @include inline-block();
li { li {
...@@ -312,7 +275,7 @@ nav.sequence-bottom { ...@@ -312,7 +275,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 darken(#f6efd4, 20%); border-right: 1px solid lighten($border-color, 10%);
&:hover { &:hover {
background-color: none; background-color: none;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
@import 'base/reset'; @import 'base/reset';
@import 'base/font_face'; @import 'base/font_face';
@import 'base/mixins';
@import 'base/variables'; @import 'base/variables';
@import 'base/base'; @import 'base/base';
@import 'base/mixins';
@import 'base/extends'; @import 'base/extends';
@import 'base/animations'; @import 'base/animations';
......
@function em($pxval, $base: 16) {
@return #{$pxval / $base}em;
}
// Line-height // Line-height
@function lh($amount: 1) { @function lh($amount: 1) {
@return $body-line-height * $amount; @return $body-line-height * $amount;
......
...@@ -4,10 +4,15 @@ $gw-gutter: 20px; ...@@ -4,10 +4,15 @@ $gw-gutter: 20px;
$fg-column: $gw-column; $fg-column: $gw-column;
$fg-gutter: $gw-gutter; $fg-gutter: $gw-gutter;
$fg-max-columns: 12; $fg-max-columns: 12;
$fg-max-width: 1400px;
$fg-min-width: 810px;
$sans-serif: 'Open Sans', $verdana; $sans-serif: 'Open Sans', $verdana;
$body-font-family: $sans-serif;
$serif: $georgia; $serif: $georgia;
$body-font-size: em(14);
$body-line-height: golden-ratio(.875em, 1);
$base-font-color: rgb(60,60,60); $base-font-color: rgb(60,60,60);
$lighter-base-font-color: rgb(160,160,160); $lighter-base-font-color: rgb(160,160,160);
...@@ -15,18 +20,11 @@ $blue: rgb(29,157,217); ...@@ -15,18 +20,11 @@ $blue: rgb(29,157,217);
$pink: rgb(182,37,104); $pink: rgb(182,37,104);
$yellow: rgb(255, 252, 221); $yellow: rgb(255, 252, 221);
$error-red: rgb(253, 87, 87); $error-red: rgb(253, 87, 87);
$border-color: #C8C8C8;
// old variables // old variables
$body-font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
$body-font-size: 14px;
$body-line-height: golden-ratio($body-font-size, 1);
$fg-max-width: 1400px;
$fg-min-width: 810px;
$light-gray: #ddd; $light-gray: #ddd;
$dark-gray: #333; $dark-gray: #333;
$mit-red: #993333; $mit-red: #993333;
$cream: #F6EFD4;
$text-color: $dark-gray; $text-color: $dark-gray;
$border-color: $light-gray;
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
@import 'base/reset'; @import 'base/reset';
@import 'base/font_face'; @import 'base/font_face';
@import 'base/mixins';
@import 'base/variables'; @import 'base/variables';
@import 'base/base'; @import 'base/base';
@import 'base/mixins';
@import 'base/extends'; @import 'base/extends';
@import 'base/animations'; @import 'base/animations';
......
...@@ -3,6 +3,7 @@ div.info-wrapper { ...@@ -3,6 +3,7 @@ div.info-wrapper {
section.updates { section.updates {
@extend .content; @extend .content;
line-height: lh();
> h1 { > h1 {
@extend .top-header; @extend .top-header;
...@@ -15,30 +16,35 @@ div.info-wrapper { ...@@ -15,30 +16,35 @@ div.info-wrapper {
> ol { > ol {
list-style: none; list-style: none;
padding-left: 0; padding-left: 0;
margin-bottom: lh();
> li { > li {
@extend .clearfix; @extend .clearfix;
border-bottom: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3;
margin-bottom: lh(.5); margin-bottom: lh();
padding-bottom: lh(.5); padding-bottom: lh(.5);
list-style-type: disk; list-style-type: disk;
&:first-child { &:first-child {
background: $cream;
border-bottom: 1px solid darken($cream, 10%);
margin: 0 (-(lh(.5))) lh(); margin: 0 (-(lh(.5))) lh();
padding: lh(.5); padding: lh(.5);
} }
ol, ul { ol, ul {
margin: lh() 0 0 lh(); margin: 0;
list-style-type: circle; list-style-type: disk;
ol,ul {
list-style-type: circle;
}
} }
h2 { h2 {
float: left; float: left;
margin: 0 flex-gutter() 0 0; margin: 0 flex-gutter() 0 0;
width: flex-grid(2, 9); width: flex-grid(2, 9);
font-size: $body-font-size;
font-weight: bold;
} }
section.update-description { section.update-description {
...@@ -64,16 +70,20 @@ div.info-wrapper { ...@@ -64,16 +70,20 @@ div.info-wrapper {
@extend .sidebar; @extend .sidebar;
border-left: 1px solid #d3d3d3; border-left: 1px solid #d3d3d3;
@include border-radius(0 4px 4px 0); @include border-radius(0 4px 4px 0);
@include box-shadow(none);
border-right: 0; border-right: 0;
header { h1 {
@extend .bottom-border; @extend .bottom-border;
padding: lh(.5) lh(.75); padding: lh(.5) lh(.5);
}
h1 { header {
font-size: 18px;
margin: 0 ; // h1 {
} // font-weight: 100;
// font-style: italic;
// }
p { p {
color: #666; color: #666;
...@@ -94,7 +104,7 @@ div.info-wrapper { ...@@ -94,7 +104,7 @@ div.info-wrapper {
border-bottom: 1px solid #d3d3d3; border-bottom: 1px solid #d3d3d3;
@include box-shadow(0 1px 0 #eee); @include box-shadow(0 1px 0 #eee);
@include box-sizing(border-box); @include box-sizing(border-box);
padding: 7px lh(.75); padding: em(7) lh(.75);
position: relative; position: relative;
&.expandable, &.expandable,
...@@ -108,13 +118,13 @@ div.info-wrapper { ...@@ -108,13 +118,13 @@ div.info-wrapper {
ul { ul {
background: none; background: none;
margin: 7px (-(lh(.75))) 0; margin: em(7) (-(lh(.75))) 0;
li { li {
border-bottom: 0; border-bottom: 0;
border-top: 1px solid #d3d3d3; border-top: 1px solid #d3d3d3;
@include box-shadow(inset 0 1px 0 #eee); @include box-shadow(inset 0 1px 0 #eee);
padding-left: 18px + lh(.75); padding-left: lh(1.5);
} }
} }
...@@ -150,7 +160,7 @@ div.info-wrapper { ...@@ -150,7 +160,7 @@ div.info-wrapper {
border-bottom: 0; border-bottom: 0;
@include box-shadow(none); @include box-shadow(none);
color: #999; color: #999;
font-size: 12px; font-size: $body-font-size;
font-weight: bold; font-weight: bold;
text-transform: uppercase; text-transform: uppercase;
} }
......
...@@ -62,7 +62,6 @@ div.book-wrapper { ...@@ -62,7 +62,6 @@ div.book-wrapper {
@extend .clearfix; @extend .clearfix;
li { li {
background-color: darken($cream, 4%);
&.last { &.last {
display: block; display: block;
......
...@@ -12,4 +12,10 @@ table { ...@@ -12,4 +12,10 @@ table {
.container { .container {
padding: lh(2); padding: lh(2);
> div {
display: table;
width: 100%;
table-layout: fixed;
}
} }
.wrapper {
margin: 0 auto;
max-width: $fg-max-width;
min-width: $fg-min-width;
text-align: left;
width: flex-grid(12);
div.table-wrapper {
display: table;
width: flex-grid(12);
overflow: hidden;
}
}
h1.top-header { h1.top-header {
background: #f3f3f3;
border-bottom: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3;
margin: (-(lh())) (-(lh())) lh();
padding: lh();
text-align: left; text-align: left;
} font-size: 24px;
font-weight: 100;
.button { padding-bottom: lh();
border: 1px solid darken(#888, 10%);
@include border-radius(3px);
@include box-shadow(inset 0 1px 0 lighten(#888, 10%), 0 0 3px #ccc);
color: #fff;
cursor: pointer;
font: bold $body-font-size $body-font-family;
@include linear-gradient(lighten(#888, 5%), darken(#888, 5%));
padding: 4px 8px;
text-decoration: none;
text-shadow: none;
-webkit-font-smoothing: antialiased;
&:hover, &:focus {
border: 1px solid darken(#888, 20%);
@include box-shadow(inset 0 1px 0 lighten(#888, 20%), 0 0 3px #ccc);
@include linear-gradient(lighten(#888, 10%), darken(#888, 5%));
}
} }
.light-button, a.light-button { .light-button, a.light-button {
...@@ -94,11 +60,13 @@ h1.top-header { ...@@ -94,11 +60,13 @@ h1.top-header {
width: flex-grid(3); width: flex-grid(3);
h1, h2 { h1, h2 {
font-size: 18px; font-size: em(18);
font-weight: bold; font-weight: 100;
letter-spacing: 0; letter-spacing: 0;
text-transform: none; text-transform: none;
font-family: $sans-serif; font-family: $sans-serif;
text-align: left;
font-style: italic;
} }
a { a {
...@@ -147,27 +115,20 @@ h1.top-header { ...@@ -147,27 +115,20 @@ h1.top-header {
} }
header#open_close_accordion { header#open_close_accordion {
border-bottom: 1px solid #d3d3d3;
@include box-shadow(0 1px 0 #eee);
padding: lh(.5) lh();
position: relative; position: relative;
h2 {
margin: 0;
padding-right: 20px;
}
a { a {
background: #eee url('../images/slide-left-icon.png') center center no-repeat; background: #f6f6f6 url('../images/slide-left-icon.png') center center no-repeat;
border: 1px solid #D3D3D3; border: 1px solid #D3D3D3;
@include border-radius(3px 0 0 3px); @include border-radius(3px 0 0 3px);
height: 16px; height: 16px;
padding: 8px; padding: 6px;
position: absolute; position: absolute;
right: -1px; right: -1px;
text-indent: -9999px; text-indent: -9999px;
top: 6px; top: 6px;
width: 16px; width: 16px;
z-index: 99;
&:hover { &:hover {
background-color: white; background-color: white;
...@@ -182,32 +143,17 @@ h1.top-header { ...@@ -182,32 +143,17 @@ h1.top-header {
.topbar { .topbar {
@extend .clearfix; @extend .clearfix;
border-bottom: 1px solid darken($cream, 10%); border-bottom: 1px solid $border-color;
border-top: 1px solid #fff; font-size: 14px;
font-size: 12px;
line-height: 46px;
text-shadow: 0 1px 0 #fff;
@media print { @media print {
display: none; display: none;
} }
a { a {
line-height: 46px;
border-bottom: 0;
color: darken($cream, 80%);
&:hover {
color: darken($cream, 60%);
text-decoration: none;
}
&.block-link { &.block-link {
// background: darken($cream, 5%); border-left: 1px solid lighten($border-color, 10%);
border-left: 1px solid darken($cream, 20%);
@include box-shadow(inset 1px 0 0 lighten($cream, 5%));
display: block; display: block;
text-transform: uppercase;
&:hover { &:hover {
background: none; background: none;
...@@ -219,12 +165,3 @@ h1.top-header { ...@@ -219,12 +165,3 @@ h1.top-header {
.tran { .tran {
@include transition( all, .2s, $ease-in-out-quad); @include transition( all, .2s, $ease-in-out-quad);
} }
p.ie-warning {
background: yellow;
display: block !important;
line-height: 1.3em;
margin-bottom: 0;
padding: lh();
text-align: left;
}
...@@ -181,17 +181,9 @@ div.course-wrapper { ...@@ -181,17 +181,9 @@ div.course-wrapper {
overflow: hidden; overflow: hidden;
header#open_close_accordion { header#open_close_accordion {
padding: 0;
min-height: 47px;
a { a {
background-image: url('../images/slide-right-icon.png'); background-image: url('../images/slide-right-icon.png');
} }
h2 {
visibility: hidden;
width: 10px;
}
} }
div#accordion { div#accordion {
......
...@@ -23,7 +23,8 @@ section.course-index { ...@@ -23,7 +23,8 @@ section.course-index {
} }
&:hover { &:hover {
background: #eee; background: #f6f6f6;
text-decoration: none;
} }
&.ui-accordion-header { &.ui-accordion-header {
...@@ -49,7 +50,7 @@ section.course-index { ...@@ -49,7 +50,7 @@ section.course-index {
ul.ui-accordion-content { ul.ui-accordion-content {
@include border-radius(0); @include border-radius(0);
background: #FFF; background: transparent;
border: none; border: none;
font-size: 12px; font-size: 12px;
margin: 0; margin: 0;
...@@ -104,7 +105,7 @@ section.course-index { ...@@ -104,7 +105,7 @@ section.course-index {
&:after { &:after {
opacity: 1; opacity: 1;
right: 15px; right: 15px;
@include transition(all, 0.2s, linear); @include transition();
} }
> a p { > a p {
......
...@@ -72,7 +72,6 @@ body.user-profile-page { ...@@ -72,7 +72,6 @@ body.user-profile-page {
margin-bottom: 30px; margin-bottom: 30px;
li { li {
background-color: lighten($cream, 3%);
background-position: 10px center; background-position: 10px center;
background-repeat: no-repeat; background-repeat: no-repeat;
@include border-radius(4px); @include border-radius(4px);
......
...@@ -32,8 +32,6 @@ div.question-header { ...@@ -32,8 +32,6 @@ div.question-header {
&.post-vote { &.post-vote {
@include border-radius(4px); @include border-radius(4px);
background-color: lighten($cream, 5%);
border: 1px solid darken( $cream, 10% );
@include box-shadow(inset 0 1px 0px #fff); @include box-shadow(inset 0 1px 0px #fff);
} }
...@@ -149,7 +147,7 @@ div.question-header { ...@@ -149,7 +147,7 @@ div.question-header {
&.revision { &.revision {
text-align: center; text-align: center;
background:lighten($cream, 7%); // background:lighten($cream, 7%);
a { a {
color: black; color: black;
...@@ -313,7 +311,6 @@ div.question-header { ...@@ -313,7 +311,6 @@ div.question-header {
} }
a.edit { a.edit {
@extend .button;
font-size: 12px; font-size: 12px;
padding: 2px 10px; padding: 2px 10px;
} }
......
...@@ -24,7 +24,6 @@ div.wiki-wrapper { ...@@ -24,7 +24,6 @@ div.wiki-wrapper {
} }
p { p {
color: darken($cream, 55%);
float: left; float: left;
line-height: 46px; line-height: 46px;
margin-bottom: 0; margin-bottom: 0;
...@@ -40,14 +39,12 @@ div.wiki-wrapper { ...@@ -40,14 +39,12 @@ div.wiki-wrapper {
input[type="button"] { input[type="button"] {
@extend .block-link; @extend .block-link;
background-color: darken($cream, 5%);
background-position: 12px center; background-position: 12px center;
background-repeat: no-repeat; background-repeat: no-repeat;
border: 0; border: 0;
border-left: 1px solid darken(#f6efd4, 20%); border-left: 1px solid darken(#f6efd4, 20%);
@include border-radius(0); @include border-radius(0);
@include box-shadow(inset 1px 0 0 lighten(#f6efd4, 5%)); @include box-shadow(inset 1px 0 0 lighten(#f6efd4, 5%));
color: darken($cream, 80%);
display: block; display: block;
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
......
...@@ -20,23 +20,25 @@ $(document).ready(function(){ ...@@ -20,23 +20,25 @@ $(document).ready(function(){
</%block> </%block>
<section class="container"> <section class="container">
<section class="courseware"> <div class="info-wrapper">
<div class="info-wrapper"> % if user.is_authenticated():
% if user.is_authenticated(): <section class="updates">
<section class="updates"> <h1>Course Updates &amp; News</h1>
${get_course_info_section(course, 'updates')} ${get_course_info_section(course, 'updates')}
</section> </section>
<section aria-label="Handout Navigation" class="handouts"> <section aria-label="Handout Navigation" class="handouts">
${get_course_info_section(course, 'handouts')} <h1>Course Handouts</h1>
</section> ${get_course_info_section(course, 'handouts')}
% else: </section>
<section class="updates"> % else:
${get_course_info_section(course, 'guest_updates')} <section class="updates">
</section> <h1>Course Updates &amp; News</h1>
<section aria-label="Handout Navigation" class="handouts"> ${get_course_info_section(course, 'guest_updates')}
${get_course_info_section(course, 'guest_handouts')} </section>
</section> <section aria-label="Handout Navigation" class="handouts">
% endif <h1>Course Handouts</h1>
</div> ${get_course_info_section(course, 'guest_handouts')}
</section> </section>
% endif
</div>
</section> </section>
...@@ -67,7 +67,6 @@ $("#open_close_accordion a").click(function(){ ...@@ -67,7 +67,6 @@ $("#open_close_accordion a").click(function(){
<section aria-label="Textbook Navigation" class="book-sidebar"> <section aria-label="Textbook Navigation" class="book-sidebar">
<header id="open_close_accordion"> <header id="open_close_accordion">
<h2>Table of Contents</h2>
<a href="#">close</a> <a href="#">close</a>
</header> </header>
......
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