Commit 4fcc76c2 by Rocky Duan

Merge branch 'discussion_ui' of github.com:dementrock/mitx

parents d15d2c55 65730c22
This source diff could not be displayed because it is too large. You can view the blob instead.
body {
margin: 0;
padding: 0; }
.wrapper, .subpage, section.copyright, section.tos, section.privacy-policy, section.honor-code, header.announcement div, section.index-content, footer {
margin: 0;
overflow: hidden; }
div#enroll form {
display: none; }
...@@ -6,7 +6,7 @@ $comment_info_size: 0.75em; ...@@ -6,7 +6,7 @@ $comment_info_size: 0.75em;
$discussion_input_width: 60%; $discussion_input_width: 60%;
@mixin discussion-font { @mixin discussion-font {
font-family: "Comic Sans MS", cursive, sans-serif !important; font-family: inherit;
} }
@mixin discussion-clickable { @mixin discussion-clickable {
......
@mixin news-font { @mixin news-font {
font-family: "Comic Sans MS", cursive, sans-serif !important; font-family: inherit;
} }
.notifications { .notifications {
......
...@@ -23,9 +23,8 @@ ...@@ -23,9 +23,8 @@
}); });
</script> </script>
<!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates. ## This must appear after all mathjax-config blocks, so it is after the imports from the other templates.
It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of ## It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of MathJax extension libraries
MathJax extension libraries -->
<script type="text/javascript" src="/static/js/vendor/mathjax-MathJax-c9db6ac/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"></script> <script type="text/javascript" src="/static/js/vendor/mathjax-MathJax-c9db6ac/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"></script>
<script type="text/javascript" src="${static.url('js/vendor/split.js')}"></script> <script type="text/javascript" src="${static.url('js/vendor/split.js')}"></script>
<script type="text/javascript" src="${static.url('js/vendor/jquery.ajaxfileupload.js')}"></script> <script type="text/javascript" src="${static.url('js/vendor/jquery.ajaxfileupload.js')}"></script>
...@@ -47,12 +46,12 @@ ...@@ -47,12 +46,12 @@
<h2>Discussion Boards</h2> <h2>Discussion Boards</h2>
<a href="#">close</a> <a href="#">close</a>
</header> </header>
<div id="accordion" style="display:none"> <div id="accordion" style="display:none">
<nav> <nav>
${accordion} ${accordion}
</nav> </nav>
</div> </div>
</section> </section>
<section class="course-content"> <section class="course-content">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</div> </div>
${search_bar} ${search_bar}
<form class="new-post-form" _id="${discussion_id}"> <form class="new-post-form" _id="${discussion_id}">
<input type="text" class="new-post-title" placeholder="Title"/> <input type="text" class="new-post-title" placeholder="Title"/>
<div class="new-post-body"></div> <div class="new-post-body"></div>
<input class="new-post-tags" placeholder="Tags"/> <input class="new-post-tags" placeholder="Tags"/>
<a class="discussion-new-post" href="javascript:void(0)">New Post</a> <a class="discussion-new-post" href="javascript:void(0)">New Post</a>
......
...@@ -6,8 +6,8 @@ def url_for_search(): ...@@ -6,8 +6,8 @@ def url_for_search():
%> %>
<form action="${url_for_search()}" method="get" class="discussion-search-form"> <form action="${url_for_search()}" method="get" class="discussion-search-form">
<input type="text" class="discussion-search-text" value="${text}"/> <input class="searchInput" type="text" value="${text}" id="keywords" autocomplete="off"/>
<label for="discussion-search-within-board-${discussion_id}">search within board</label>
<input type="checkbox" id="discussion-search-within-board-${discussion_id}" class="discussion-search-within-board" checked/>
<a class="discussion-link discussion-search" href="javascript:void(0)">Search</a> <a class="discussion-link discussion-search" href="javascript:void(0)">Search</a>
<input type="checkbox" id="discussion-search-within-board-${discussion_id}" class="discussion-search-within-board" checked/>
<label for="discussion-search-within-board-${discussion_id}">Search within board</label>
</form> </form>
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
%> %>
<div class="discussion-votes" title="Current votes: ${content['votes']['point']}"> <div class="discussion-votes" title="Current votes: ${content['votes']['point']}">
<a class="discussion-vote discussion-vote-up" href="javascript:void(0)" title="Current votes: ${content['votes']['point']}">${upvote}</a> <a class="discussion-vote discussion-vote-up" href="javascript:void(0)" title="Current votes: ${content['votes']['point']}">${upvote}</a>
${content['votes']['point']}
<a class="discussion-vote discussion-vote-down" href="javascript:void(0)" title="Current votes: ${content['votes']['point']}">${downvote}</a> <a class="discussion-vote discussion-vote-down" href="javascript:void(0)" title="Current votes: ${content['votes']['point']}">${downvote}</a>
</div> </div>
</%def> </%def>
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