From: Charles Holbrow Date: Mon, 18 Mar 2013 20:51:03 +0000 (-0400) Subject: converging on Nicks styling for course list X-Git-Tag: release-20150131~499 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=257360fe2ea9dfe83a2e7f17596d5f69f731d72f;p=oweals%2Fkarmaworld.git converging on Nicks styling for course list --- diff --git a/karmaworld/assets/css/course_list_table.css b/karmaworld/assets/css/course_list_table.css index 6f8fc21..3808576 100644 --- a/karmaworld/assets/css/course_list_table.css +++ b/karmaworld/assets/css/course_list_table.css @@ -3,20 +3,47 @@ table#course_list margin:14px auto; } +/*************** +Search Bar +***************/ +#course_list_filter input { + font-size: 22px; + margin-top: 20px; + margin-bottom: 20px; + border-style: solid; + border-color: black; + border-width: 1px; +} + + /*************** Table Headers ***************/ -table#course_list thead +table.dataTable thead th { + padding: 3px 18px 3px 10px; + cursor: pointer; + *cursor: hand; +} + +table.dataTable thead th.sort_by { + padding-right: 0px; +} + +table#course_list thead tr { - border-bottom: solid 1px black; + height: 50px; } table#course_list th { - float:right; - font-family: "MuseoSlab-500"; + float:left; + font-family: "MuseoSlab-300"; font-size: 12px; - margin-right: 25px; + font-weight: normal; +} + +th.sorting_asc, th.sorting_desc { + text-decoration: underline; } th.date { @@ -54,13 +81,13 @@ tr.course-row:hover { } table#course_list td { - font-family: "MuseoSlab-700"; + font-family: "MuseoSlab-300"; font-size: 18px; float:left; } table#course_list tbody tr td.slim { - font-family: "MuseoSlab-500"; + font-family: "MuseoSlab-300"; font-size: 12px; } @@ -80,6 +107,11 @@ table#course_list tbody tr { width: 840px; } +/* hack - Provide positioning for the "sort by text" */ +table.dataTable td.sort_by { + display:none; +} + td.date { font-size: 12px; width: 200px; diff --git a/karmaworld/assets/css/datatables-css/jquery.dataTables.css b/karmaworld/assets/css/datatables-css/jquery.dataTables.css index e26f67a..7e3e253 100644 --- a/karmaworld/assets/css/datatables-css/jquery.dataTables.css +++ b/karmaworld/assets/css/datatables-css/jquery.dataTables.css @@ -8,13 +8,6 @@ table.dataTable { width: 100%; } -table.dataTable thead th { - padding: 3px 18px 3px 10px; - border-bottom: 1px solid black; - cursor: pointer; - *cursor: hand; -} - table.dataTable tfoot th { padding: 3px 18px 3px 10px; border-top: 1px solid black; diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index 967208c..c21e904 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -539,20 +539,13 @@ ul#course_menu li a color: white; } -.subhead -{ - color: #F05A28; - font-family: "MuseoSlab-700"; - font-size: 38px; -} - /* New course-list homepage css */ -#subhead +div#subhead { padding: 15px; text-align: center; - font-family: "MuseoSlab-500"; - font-size: 24px; + font-family: "MuseoSlab-300"; + font-size: 22px; } .center @@ -667,3 +660,5 @@ p.text a { } + + diff --git a/karmaworld/templates/courses/course_list.html b/karmaworld/templates/courses/course_list.html index 1e9fd69..3e5be4b 100644 --- a/karmaworld/templates/courses/course_list.html +++ b/karmaworld/templates/courses/course_list.html @@ -32,18 +32,19 @@ $(document).ready(function() { 'sDom': '<"top"f>rt<"bottom"p><"clear">', // Specify options for each column 'aoColumns': [ + { "bSearchable": false, "bSortable":false, }, { "bSearchable": false }, { "bSearchable": false }, null, null, - null, + null, ], // Initial sorting - 'aaSorting': [[1,'desc']] + 'aaSorting': [[2,'desc']] // Use out Ajax endpoing to populate the list //'sAjaxSource': "{% url 'api_course_list' %}" }); -$('.dataTables_filter input').attr("placeholder", "Search for a class"); +$('.dataTables_filter input').attr("placeholder", "search courses"); }); {% endblock %} @@ -54,20 +55,13 @@ $('.dataTables_filter input').attr("placeholder", "Search for a class"); {% block content %}
- +
@@ -75,16 +69,14 @@ $('.dataTables_filter input').attr("placeholder", "Search for a class"); - - - - + - Last Updated - Notes - School + Sort by: + Date + #Notes + Institution Course Name Instructor @@ -92,6 +84,7 @@ $('.dataTables_filter input').attr("placeholder", "Search for a class"); {% for course in object_list %} + Updated on {{ course.updated_at|date:"M d o" }} {{ course.file_count }} {{ course.school.name }}