margin-left: 1.705%;
margin-right: 1.705%; }
-.grid-5, #g-nav-main, #pg_courses .main-content, #pg_lectures .main-content {
+.grid-5, #g-nav-main, #pg_courses .main-content, #pg_lectures .main-content, #pg_notes .main-content {
float: left;
width: 59.091%;
padding: 0;
body {
background-position: 20% 0; }
+.sidebar form {
+ margin-left: 1.5em; }
+
/* a.`header
-------------------------- */
#g-masthead {
color: #333; }
.breadcrumb {
- border-bottom: 1px solid #f5f5f5;
+ position: relative;
+ border-bottom: 1px solid #f7f7f7;
background-color: #fafafa; }
.breadcrumb a {
display: block;
padding: 1.5em 0 2.25em;
margin-bottom: 1.5em;
border-top: 1px solid #fff;
- border-bottom: 1px solid #f8f8f8;
- background-color: #fcfcfc; }
+ border-bottom: 1px solid #f7f7f7;
+ background-color: #fbfbfb; }
.subheader h1, .subheader h3 {
margin: 0; }
.subheader h1 {
form .row {
margin-bottom: 0.75em; }
+ form .row button {
+ margin-top: 0.75em; }
/* 3.`Extensible Classes
---------------------------------------------- */
2.Schools
3.Courses
4.Course
+ 5.Notes
----------------------------------------------------------------*/
/* 0.`General
---------------------------------------------- */
#pg_home .subheader {
text-align: center;
- padding: 3em 0; }
+ padding: 3em 0;
+ border: 0;
+ background: none; }
#pg_home .section-home {
margin-bottom: 1.5em; }
#pg_lectures .lecture-name:hover {
color: #e8a200; }
+/* 5.`Notes
+---------------------------------------------- */
.link-bar {
margin-left: -0.375em; }
.link-bar li {
2.Schools
3.Courses
4.Course
+ 5.Notes
----------------------------------------------------------------*/
.subheader {
text-align: center;
padding: $base*2 0;
+ border: 0;
+ background: none;
}
h1 {
#pg_lectures {
- .main-content {
+ .main-content {
@extend .grid-5;
}
}
}
}
+
+/* 5.`Notes
+---------------------------------------------- */
+
+#pg_notes {
+
+ .main-content {
+ @extend .grid-5;
+ }
+}
.sidebar {
@extend .grid-3;
+
+ form {
+ margin-left: $base;
+ }
}
}
.page {
- display: none;
- @extend .group;
- margin-bottom: $base;
- margin-top: 3px;
- color: #333;
+ display: none;
+ @extend .group;
+ margin-bottom: $base;
+ margin-top: 3px;
+ color: #333;
}
.breadcrumb {
- @extend .grid-8;
- @extend .big;
- @extend .group;
- border-bottom: 1px solid #f5f5f5;
- background-color: #fafafa;
-
- a {
- display: block;
- float: left;
- padding: $base/4;
- opacity: 0.7;
- @include transition( opacity );
-
- .action {
- color: $mustard;
- }
-
- .location {
- color: #666;
- }
-
- &:hover {
- opacity: 1;
- }
-
- span {
- @include transition( color );
- }
- }
+ position: relative;
+ @extend .grid-8;
+ @extend .big;
+ @extend .group;
+ border-bottom: 1px solid #f7f7f7;
+ background-color: #fafafa;
+
+ a {
+ display: block;
+ float: left;
+ padding: $base/4;
+ opacity: 0.7;
+ @include transition( opacity );
+
+ .action {
+ color: $mustard;
+ }
+
+ .location {
+ color: #666;
+ }
+
+ &:hover {
+ opacity: 1;
+ }
+
+ span {
+ @include transition( color );
+ }
+ }
- .action {
- color: #666;
- }
+ .action {
+ color: #666;
+ }
- .location {
- @extend .futura-oblique;
- color: #bbb;
- }
+ .location {
+ @extend .futura-oblique;
+ color: #bbb;
+ }
}
.subheader {
padding: $base 0 $base*1.5;
margin-bottom: $base;
border-top: 1px solid #fff;
- border-bottom: 1px solid #f8f8f8;
- background-color: #fcfcfc;
+ border-bottom: 1px solid #f7f7f7;
+ background-color: #fbfbfb;
h1, h3 {
margin: 0;
}
.form-header {
+
p {
@extend .small;
}
.row {
margin-bottom: $base/2;
+
+ button {
+ margin-top: $base/2;
+ }
}
}
</div>
</div>
<div class="row">
- <div class="label"> </div>
<div class="field">
<button>Create Course</button>
</div>
</div>
</div>
<div class="sidebar">
- <span class="sub_menu" style="display:none;">
- <a href="" id="new_lecture">New Lecture</a>
- </span>
- <form method="POST" id="form_lecture" style="display:none;">
- <h4>Create New Lecture</h4>
- <p>Use this form to create a new lecture. After creating the lecture, you can then create a notes-taking session within it.</p>
+ <form method="POST" id="form_lecture">
+ <header class="form-header">
+ <h4>Create New Lecture</h4>
+ <p>Use this form to create a new lecture. After creating the lecture, you can then create a notes-taking session within it.</p>
+ </header>
<div class="row">
<div class="label">Lecture Name</div>
<div class="field">
</div>
</div>
<div class="row">
- <div class="label"> </div>
<div class="field">
<button>Create Lecture</button>
</div>
<div class="proto notes_instructor" id=PROTO_notes_instructor>
<h4> Instructor: <span class="italic futura"> __name__ <a href="mailto:__email__" class="instructor_email">(__email__)</a></span></h4>
</div>
+ </header>
+ <div class="main-content">
<div class="proto note" id=PROTO_note>
<div class=name>
<a href="/note/___id__">__name__</a> Visits: __visits__
</div>
</div>
- <div>
- <span class="sub_menu" style="display:none;">
- <a href="" id="new_note">New Note Pad</a>
- </span>
- <form method="POST" id="form_note" style="display:none;">
- <h1>Create New Note Pad</h1>
- <p>Use this form to create a new note pad. You can then use this as a notes-taking session.</p>
- <div class="row">
- <div class="label">Note Pad Name</div>
- <div class="field">
- <input type="text" class="text" name="name">
- </div>
- </div>
- <div class="row">
- <div class="label">Private</div>
- <div class="field">
- <input type="checkbox" name="private" value="true">
- </div>
- </div>
- <div class="row">
- <div class="label"> </div>
- <div class="field">
- <button>Create Note Pad</button>
- </div>
- </div>
- </form>
- </div>
+ </div>
+ <div class="sidebar">
+ <span class="sub_menu" style="display:none;">
+ <a href="" id="new_note">New Note Pad</a>
+ </span>
+ <form method="POST" id="form_note" style="display:none;">
+ <header class="form-header">
+ <h4>Create Note Pad</h4>
+ <p>Use this form to create a new note pad. You can then use this as a notes-taking session.</p>
+ </header>
+ <div class="row">
+ <div class="label">Note Pad Name</div>
+ <div class="field">
+ <input type="text" class="text" name="name">
+ </div>
+ </div>
+ <div class="row">
+ <div class="label">Private</div>
+ <div class="field">
+ <input type="checkbox" name="private" value="true">
+ </div>
+ </div>
+ <div class="row">
+ <div class="field">
+ <button>Create Note Pad</button>
+ </div>
+ </div>
+ </form>
+ </div>
</div>
<!--================================================================= -->
<div class=page id=pg_archive_subjects>
$('#school_link').addClass('active');
$('.sub_menu').hide();
$('#new_lecture').unbind();
- $('#form_lecture').hide().unbind();;
var response = [];
if (data.course.authorized) {
$('.sub_menu').show();
- $('#new_lecture').click(function(e) {
- e.preventDefault();
-
- var form = $('#form_lecture');
-
- form.toggle();
-
- form.submit(function(e) {
- e.preventDefault();
-
- $.post(window.location.pathname, form.serialize(), function(data) {
- if (data.status === 'error') {
- message('error', data.message);
- } else if (data.status === 'ok') {
- form.hide();
- goPage(window.location.pathname);
- message('info', data.message);
- }
- });
- })
- });
+ var form = $('#form_lecture');
+
+ form.show();
+
+ form.submit(function(e) {
+ e.preventDefault();
+
+ $.post(window.location.pathname, form.serialize(), function(data) {
+ if (data.status === 'error') {
+ message('error', data.message);
+ } else if (data.status === 'ok') {
+ form.hide();
+ goPage(window.location.pathname);
+ message('info', data.message);
+ }
+ });
+ })
}
});
}
if (data.lecture.authorized) {
- $('.sub_menu').show();
- $('#new_note').click(function(e) {
- e.preventDefault();
-
- var form = $('#form_note');
-
- form.toggle();
- form.submit(function(e) {
- e.preventDefault();
-
- $.post(window.location.pathname, form.serialize(), function(data) {
- if (data.status === 'error') {
- message('error', data.message);
- } else if (data.status === 'ok') {
- form.hide();
- goPage(window.location.pathname);
- message('info', data.message);
- }
- });
- })
- });
+ var form = $('#form_note').show();
+
+ form.submit(function(e) {
+ e.preventDefault();
+
+ $.post(window.location.pathname, form.serialize(), function(data) {
+ if (data.status === 'error') {
+ message('error', data.message);
+ } else if (data.status === 'ok') {
+ form.hide();
+ goPage(window.location.pathname);
+ message('info', data.message);
+ }
+ });
+ })
}
});