Commit 67061f1b by kylefiedler

Merge pull request #51 from MITx/el-courseware-bottom-border-alignment

changes the border and box-shadow of headings in courseware content so b...
parents cc6e0c55 cb8224cb
This source diff could not be displayed because it is too large. You can view the blob instead.
<h3><a href="#">Using the System</a></h3>
<div>
<ul>
<li> Lecture
<li> Homework
<li> Lab
</ul>
</div>
<h3><a href="#">Basic Circuit Analysis</a></h3>
<div>
<ul>
<li> Electronic Text
<li> Introduction <br><small>lecture, 50min, due Feb 1</small>
<li> KVL, KCL, and Resistive <br><small>lecture, 50min, due Feb 3</small>
<li> Nodal analysis <br><small>lecture, 50min, due Feb 5</small>
<li> <div style="background-color:#aed0ea;">Linearity, Superposition <br><small>lecture, 50min, due Feb 7</small></div>
<li> Homework 1 <br><small>due Feb 14</small>
<li> Lab 0 <br><small>due Feb 7</small>
</ul>
</div>
<h3><a href="#">Digital Systems</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Nonlinear Elements</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Analog Amplification</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Capacitors and Inductors</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Operational Amplifiers</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Applications</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
...@@ -124,10 +124,8 @@ h1.top-header { ...@@ -124,10 +124,8 @@ h1.top-header {
} }
h3 { h3 {
@extend .bottom-border;
background: none; background: none;
border: none; border: none;
border-bottom: 1px solid #d3d3d3;
color: #000; color: #000;
font-weight: normal; font-weight: normal;
margin: 0; margin: 0;
...@@ -140,11 +138,6 @@ h1.top-header { ...@@ -140,11 +138,6 @@ h1.top-header {
padding: 7px 7px 7px 30px; padding: 7px 7px 7px 30px;
text-decoration: none; text-decoration: none;
@include transition(); @include transition();
&:hover {
background: #efefef;
@include box-shadow(0 1px 0 #fff);
}
} }
span.ui-icon { span.ui-icon {
...@@ -153,9 +146,9 @@ h1.top-header { ...@@ -153,9 +146,9 @@ h1.top-header {
&.active { &.active {
background: none; background: none;
border: 0; @include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(225,225,225)));
border-bottom: 1px solid #bbb; border-bottom: 1px solid #d3d3d3;
@include box-shadow(none); @include box-shadow(inset 0 1px 0 0 #eee);
color: #000; color: #000;
font-weight: bold; font-weight: bold;
......
...@@ -5,11 +5,17 @@ section.course-index { ...@@ -5,11 +5,17 @@ section.course-index {
div#accordion { div#accordion {
h3 { h3 {
@include box-shadow(inset 0 1px 0 0 #eee);
border-top: 1px solid #d3d3d3;
overflow: hidden; overflow: hidden;
margin: 0; margin: 0;
&:last-child { &:first-child {
@include box-shadow(none); border: none;
}
&:hover {
@include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(225,225,225)));
} }
&.ui-accordion-header { &.ui-accordion-header {
...@@ -20,14 +26,10 @@ section.course-index { ...@@ -20,14 +26,10 @@ section.course-index {
color: lighten($text-color, 10%); color: lighten($text-color, 10%);
} }
&.ui-state-hover {
border: none;
border-bottom: 1px solid #d3d3d3;
}
&.ui-state-active { &.ui-state-active {
@include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(225,225,225))); @include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(225,225,225)));
@extend .active; @extend .active;
border-bottom: 1px solid #d3d3d3;
} }
} }
} }
...@@ -37,7 +39,6 @@ section.course-index { ...@@ -37,7 +39,6 @@ section.course-index {
@include box-shadow(inset -1px 0 0 #e6e6e6); @include box-shadow(inset -1px 0 0 #e6e6e6);
background: #dadada; background: #dadada;
border: none; border: none;
border-bottom: 1px solid #c3c3c3;
font-size: 12px; font-size: 12px;
margin: 0; margin: 0;
padding: 1em 1.5em; padding: 1em 1.5em;
......
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; } .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; } .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
.ui-accordion .ui-accordion-content-active { display: block; } .ui-accordion .ui-accordion-content-active { display: block; }
/* /*
* jQuery UI Autocomplete 1.8.16 * jQuery UI Autocomplete 1.8.16
...@@ -565,4 +565,4 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad ...@@ -565,4 +565,4 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://docs.jquery.com/UI/Progressbar#theming * http://docs.jquery.com/UI/Progressbar#theming
*/ */
.ui-progressbar { height:2em; text-align: left; } .ui-progressbar { height:2em; text-align: left; }
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file
...@@ -10,27 +10,35 @@ div#wiki_panel { ...@@ -10,27 +10,35 @@ div#wiki_panel {
} }
input[type="button"] { input[type="button"] {
@extend h3; background: transparent;
color: lighten($text-color, 10%); border: none;
font-size: $body-font-size; @include box-shadow(none);
margin: 0 !important; color: #666;
font-size: 14px;
font-weight: bold;
margin: 0px;
padding: 7px lh(); padding: 7px lh();
text-align: left; text-align: left;
@include transition(); @include transition();
width: 100%; width: 100%;
&:hover {
@include box-shadow(0 1px 0 #fff);
background: #efefef;
}
} }
ul { ul {
li { li {
@include box-shadow(inset 0 1px 0 0 #eee);
border-top: 1px solid #d3d3d3;
&:hover {
background: #efefef;
@include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(225,225,225)));
}
&:first-child {
border: none;
}
&.search { &.search {
border-bottom: 1px solid #d3d3d3; padding: 10px lh();
@include box-shadow(0 1px 0 #eee);
padding: 7px lh();
label { label {
display: none; display: none;
...@@ -39,18 +47,21 @@ div#wiki_panel { ...@@ -39,18 +47,21 @@ div#wiki_panel {
&.create-article { &.create-article {
h3 { h3 {
a {
padding: 7px lh();
}
} }
} }
a {
color: #666;
font-size: 14px;
padding: 7px lh();
}
} }
} }
div#wiki_create_form { div#wiki_create_form {
@extend .clearfix; @extend .clearfix;
background: #d6d6d6; background: #dadada;
border-bottom: 1px solid #bbb; border-bottom: 1px solid #d3d3d3;
padding: 15px; padding: 15px;
input[type="text"] { input[type="text"] {
......
...@@ -87,9 +87,11 @@ ...@@ -87,9 +87,11 @@
%> %>
<ul class="action"> <ul class="action">
<li> <li>
<input type="button" onclick="javascript:location.href='${reverse("wiki_list_articles", args=[])}'" value="All articles" class="button" /> <h3>
<a href="${reverse("wiki_list_articles", args=[])}">All Articles</a>
</h3>
</li> </li>
<li class="create-article"> <li class="create-article">
<h3> <h3>
<a href="#" id="create-article"/>Create Article</a> <a href="#" id="create-article"/>Create Article</a>
......
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