added a bunch more overall style
--HG-- branch : kf-refactor
This commit is contained in:
BIN
.sass-cache/47c2162753299d6160744ee2ad10f568b60c57a1/_base.scssc
Normal file
BIN
.sass-cache/47c2162753299d6160744ee2ad10f568b60c57a1/_base.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/d71392d31c3b10df78042d13a0384e71b83fa11e/_base.scssc
Normal file
BIN
.sass-cache/d71392d31c3b10df78042d13a0384e71b83fa11e/_base.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -24,12 +24,12 @@ $('#hide_acc').click(function() {
|
||||
|
||||
<%include file="navigation.html" />
|
||||
|
||||
<section>
|
||||
<section class="main-content">
|
||||
<div id="accordion">
|
||||
${accordion}
|
||||
</div>
|
||||
|
||||
<section class="main-content">
|
||||
<section class="course-content">
|
||||
${content}
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<header>
|
||||
<h1>Circuits and Electronics</h1>
|
||||
<div class="header-wrapper">
|
||||
<header>
|
||||
<h1>Circuits and Electronics</h1>
|
||||
|
||||
<nav>
|
||||
<ul class="coursenav">
|
||||
<li><a href="/courseware">Courseware</a></li>
|
||||
<li><a href="/book">Textbook</a></li>
|
||||
<li><a href="/discussion">Discussion</a></li>
|
||||
<li><a href="/wiki">Wiki</a></li>
|
||||
<li><a href="/profile">Profile</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<nav>
|
||||
<ul class="coursenav">
|
||||
<li><a href="/courseware">Courseware</a></li>
|
||||
<li><a href="/book">Textbook</a></li>
|
||||
<li><a href="/discussion">Discussion</a></li>
|
||||
<li><a href="/wiki">Wiki</a></li>
|
||||
<li><a href="/profile">Profile</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,7 @@ $(function() {
|
||||
|
||||
<%include file="navigation.html" />
|
||||
|
||||
<section class="profile-content">
|
||||
<section class="main-content">
|
||||
<section class="user-info">
|
||||
|
||||
<h1>${name}</h1>
|
||||
|
||||
@@ -16,3 +16,10 @@
|
||||
width: grid-width(8);
|
||||
float: left;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
margin: 0 auto;
|
||||
max-width: $max-width;
|
||||
width: grid-width(12);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ $body-line-height: golden-ratio($body-font-size, 1);
|
||||
// color
|
||||
$light-gray: #f3f3f3;
|
||||
$dark-gray: #333;
|
||||
$mit-red: #993333;
|
||||
|
||||
$text-color: $dark-gray;
|
||||
$border-color: $light-gray;
|
||||
|
||||
3
sass/_base.scss
Normal file
3
sass/_base.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
p {
|
||||
margin-bottom: $body-line-height;
|
||||
}
|
||||
@@ -1,7 +1,61 @@
|
||||
div#accordion {
|
||||
@extend .sidebar;
|
||||
@include box-shadow( inset -1px 0 0 #f6f6f6);
|
||||
background: #e3e3e3;
|
||||
border-right: 1px solid #d3d3d3;
|
||||
display: table-cell;
|
||||
font-family: $body-font-family;
|
||||
// padding: $body-line-height 0;
|
||||
text-shadow: 0 1px 0 #f6f6f6;
|
||||
vertical-align: top;
|
||||
width: 280px;
|
||||
|
||||
h3 {
|
||||
&.ui-accordion-header {
|
||||
color: #000;
|
||||
|
||||
a {
|
||||
font-size: $body-font-size;
|
||||
color: lighten($text-color, 10%);
|
||||
}
|
||||
|
||||
&.ui-state-default {
|
||||
background: none;
|
||||
font-weight: normal;
|
||||
border: none;
|
||||
border-bottom: 1px solid #d3d3d3;
|
||||
@include box-shadow(0 1px 0 #eee);
|
||||
}
|
||||
|
||||
&.ui-state-hover {
|
||||
border: none;
|
||||
border-bottom: 1px solid #d3d3d3;
|
||||
}
|
||||
|
||||
&.ui-state-active {
|
||||
background: none;
|
||||
border: 0;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
@include box-shadow(none);
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul.ui-accordion-content {
|
||||
background: #d6d6d6;
|
||||
border: none;
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
section.main-content {
|
||||
@extend .content;
|
||||
section.course-content {
|
||||
@include box-sizing(border-box);
|
||||
display: table-cell;
|
||||
padding: $gw-gutter 0 $gw-gutter $gw-gutter;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
@@ -1,63 +1,106 @@
|
||||
html {
|
||||
text-align: center;
|
||||
margin: 0 $gw-gutter;
|
||||
margin-top: 0;
|
||||
|
||||
body {
|
||||
color: $dark-gray;
|
||||
font: $body-font-size $body-font-family;
|
||||
margin: $body-line-height auto;
|
||||
max-width: $max-width;
|
||||
text-align: left;
|
||||
width: grid-width(12);
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
background: #f3f3f3;
|
||||
|
||||
header {
|
||||
@extend .clearfix;
|
||||
border-bottom: 1px solid $border-color;
|
||||
margin-bottom: $body-line-height;
|
||||
div.header-wrapper {
|
||||
@include box-shadow(inset 0 1px 0 lighten($mit-red, 10%), 0 1px 1px #ccc);
|
||||
@include linear-gradient(lighten($mit-red, 5%), darken($mit-red, 5%));
|
||||
border-bottom: 1px solid darken($mit-red, 10%);
|
||||
z-index: 99;
|
||||
|
||||
h1 {
|
||||
border-right: 1px solid $border-color;
|
||||
font-size: $body-font-size;
|
||||
font-weight: bold;
|
||||
margin: 0 $gw-gutter 0 0;
|
||||
padding: $body-line-height $gw-gutter $body-line-height 0;
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
header {
|
||||
@extend .clearfix;
|
||||
@extend .wrapper;
|
||||
@include box-sizing(border-box);
|
||||
padding: 0 $body-line-height;
|
||||
|
||||
nav {
|
||||
float: left;
|
||||
display: block;
|
||||
margin: 0;
|
||||
h1 {
|
||||
border-right: 1px solid $mit-red;
|
||||
font-size: $body-font-size;
|
||||
font-weight: bold;
|
||||
margin: 0 $gw-gutter 0 0;
|
||||
padding: 15px $gw-gutter 15px 0;
|
||||
display: block;
|
||||
float: left;
|
||||
text-shadow: 0 1px 0 lighten($mit-red, 10%);
|
||||
}
|
||||
|
||||
ul {
|
||||
@extend .clearfix;
|
||||
display: inline-block;
|
||||
padding: $body-line-height 0;
|
||||
nav {
|
||||
float: left;
|
||||
display: block;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
margin-right: $body-line-height;
|
||||
ul {
|
||||
@extend .clearfix;
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
padding: 15px 0;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
margin-right: $body-line-height;
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
text-shadow: 0 -1px 0 darken($mit-red, 10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
section.main-content {
|
||||
@extend .clearfix;
|
||||
@extend .wrapper;
|
||||
@include box-shadow(0 0px 1px #ccc);
|
||||
@include box-sizing(border-box);
|
||||
background: #fff;
|
||||
border-top: 0;
|
||||
border: 1px solid #ccc;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: $body-line-height 0;
|
||||
border-top: 1px solid $border-color;
|
||||
margin-top: $body-line-height;
|
||||
footer {
|
||||
@extend .clearfix;
|
||||
@extend .wrapper;
|
||||
@include box-sizing(border-box);
|
||||
color: #777;
|
||||
margin-top: $body-line-height;
|
||||
padding: 0 $body-line-height;
|
||||
|
||||
p {
|
||||
float: left;
|
||||
|
||||
a {
|
||||
color: #444;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
float: right;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
margin-right: 20px;
|
||||
|
||||
a {
|
||||
color: #444;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,17 @@
|
||||
section.profile-content {
|
||||
section.user-info {
|
||||
width: grid-width(6);
|
||||
float: left;
|
||||
margin-right: $gw-gutter;
|
||||
}
|
||||
|
||||
section.user-info {
|
||||
width: grid-width(6);
|
||||
float: left;
|
||||
margin-right: $gw-gutter;
|
||||
}
|
||||
section.course-info {
|
||||
width: grid-width(6);
|
||||
float: left;
|
||||
|
||||
section.course-info {
|
||||
width: grid-width(6);
|
||||
float: left;
|
||||
|
||||
ul {
|
||||
li {
|
||||
display: inline-block;
|
||||
padding-right: 1em;
|
||||
}
|
||||
ul {
|
||||
li {
|
||||
display: inline-block;
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@import "reset";
|
||||
|
||||
// Base layout
|
||||
@import "base-variables", "base-extends";
|
||||
@import "base-variables", "base-extends", "base";
|
||||
@import "layout";
|
||||
|
||||
// pages
|
||||
|
||||
@@ -36,7 +36,7 @@ function next_page() {
|
||||
|
||||
<%include file="navigation.html" />
|
||||
|
||||
<section class="book-container">
|
||||
<section class="main-content">
|
||||
<ul id="booknav" class="treeview-booknav">
|
||||
<%include file="book_toc.html" />
|
||||
</ul>
|
||||
|
||||
15
video.html
15
video.html
@@ -22,15 +22,14 @@
|
||||
</ol>
|
||||
|
||||
<section class="video-controls">
|
||||
<ul>
|
||||
<li><span class="ui-icon ui-icon-play" onclick="play();"></span></li>
|
||||
<li><span class="ui-icon ui-icon-pause" onclick="pause();"></span></li>
|
||||
</ul>
|
||||
|
||||
<div id=slider></div>
|
||||
<div id="vidtime">0:00/0:00</div>
|
||||
<div id="video_speeds"></div>
|
||||
<ul>
|
||||
<li><span class="ui-icon ui-icon-play" onclick="play();"></span></li>
|
||||
<li><span class="ui-icon ui-icon-pause" onclick="pause();"></span></li>
|
||||
</ul>
|
||||
|
||||
<div id=slider></div>
|
||||
<div id="vidtime">0:00/0:00</div>
|
||||
<div id="video_speeds"></div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user