Skip to content

Commit

Permalink
Merge pull request openedx#420 from MITx/feature/kfiedler/courseware-…
Browse files Browse the repository at this point in the history
…style

Added styles to grade out the top and bottom of the sidebar border and f...
  • Loading branch information
cpennington committed Aug 16, 2012
2 parents 8fd8605 + 6c8e1f2 commit 779f437
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/lib/xmodule/xmodule/css/sequence/display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nav.sequence-nav {
@extend .topbar;
border-bottom: 1px solid $border-color;
@include border-top-right-radius(4px);
margin: (-(lh())) (-(lh())) lh() (-(lh()));
margin: 0 0 lh() (-(lh()));
position: relative;

ol {
Expand Down
2 changes: 1 addition & 1 deletion common/lib/xmodule/xmodule/css/video/display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ div.video {
border-bottom: 1px solid #e1e1e1;
border-top: 1px solid #e1e1e1;
display: block;
margin: 0 (-(lh()));
margin: 0 0 0 (-(lh()));
padding: 6px lh();

article.video-wrapper {
Expand Down
7 changes: 6 additions & 1 deletion lms/static/sass/course/_info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ div.info-wrapper {
section.handouts {
@extend .sidebar;
border-left: 1px solid $border-color;
@include border-radius(0 4px 4px 0);
border-right: 0;
@include border-radius(0 4px 4px 0);
@include box-shadow(none);

&:after {
left: -1px;
right: auto;
}

h1 {
@extend .bottom-border;
margin-bottom: 0;
Expand Down
5 changes: 5 additions & 0 deletions lms/static/sass/course/_profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ div.profile-wrapper {
@include border-radius(0px 4px 4px 0);
border-right: 0;

&:after {
left: -1px;
right: auto;
}

header {
@extend .bottom-border;
margin: 0;
Expand Down
4 changes: 4 additions & 0 deletions lms/static/sass/course/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ img {
max-width: 100%;
}

.container {
padding: em(40) 0;
}

::selection, ::-moz-selection, ::-webkit-selection {
background:#444;
color:#fff;
Expand Down
14 changes: 13 additions & 1 deletion lms/static/sass/course/base/_extends.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ h1.top-header {
vertical-align: top;
width: flex-grid(3);

&:after {
width: 1px;
height: 100%;
@include position(absolute, 0px -1px 0px 0);
content: "";
@include background-image(linear-gradient(top, #fff, rgba(#fff, 0)), linear-gradient(top, rgba(#fff, 0), #fff));
background-position: top, bottom;
@include background-size(1px 20px);
background-repeat: no-repeat;
display: block;
}

h1, h2 {
font-size: em(20);
font-weight: 100;
Expand Down Expand Up @@ -137,7 +149,7 @@ h1.top-header {
position: absolute;
right: -1px;
text-indent: -9999px;
top: 6px;
top: 12px;
width: 16px;
z-index: 99;

Expand Down
5 changes: 5 additions & 0 deletions lms/static/sass/course/discussion/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ div.discussion-wrapper aside {
border-right: 0;
width: flex-grid(3);

&:after {
left: -1px;
right: auto;
}

&.main-sidebar {
min-width:200px;
}
Expand Down

0 comments on commit 779f437

Please sign in to comment.