Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Style tweaks. Made default tables button show/hide. Closes #120.

  • Loading branch information...
commit 9a820afad14f7bd11c54a416baba1b4eaa6e78d2 1 parent 05937c4
cgroskopf authored
View
4 censusweb/api/templates/data.html
@@ -8,7 +8,7 @@
<script type="text/javascript" src="{{ MEDIA_URL }}js/data.js"></script>
<span class="button" id="toggle-browser">Hide table browser</span>
-<span class="button" id="default-tables">Show default tables</span>
+<span class="button" id="default-tables">Reset to default tables</span>
<script id="browser-template" type="x-js-template">
<div>
@@ -39,7 +39,7 @@
<colgroup></colgroup><colgroup></colgroup><colgroup></colgroup><colgroup></colgroup>
<% }); %>
<tr>
- <th rowspan="2" class="labeldef"><%= table %><br /><span class="universe">Universe: <%= universe %></span></th>
+ <th rowspan="2" class="labeldef"><strong><%=key %>.</strong> <%= name %><br /><span class="universe">Universe: <%= universe %></span></th>
<% _.each(columns, function(c) { %>
<th colspan="4" class="locationdef">
<%= c.name %>
View
29 censusweb/media/css/census.css
@@ -83,22 +83,35 @@ aside {
position:relative;
height:550px;
overflow:auto;
+ background-color:#E9F6FE;
+ line-height:1.3em;
}
aside h2 {
font-size: 20px;
- margin-bottom: 10px;
+ margin-bottom: 15px;
}
aside li {
- margin-bottom: 6px;
- font-size: 12px;
+ margin-bottom: 8px;
+ font-size: 13px;
+ font-variant:small-caps;
+}
+
+aside input {
+ float: left;
+ margin-top: 2px;
}
aside strong {
font-weight: bold;
}
+aside label {
+ display: block;
+ margin-left: 18px;
+}
+
#container {
margin: 40px 50px;
}
@@ -167,7 +180,6 @@ nav {
.report th {
font-size: 22px;
- font-weight: bold;
border: 1px solid #ccc; border-bottom-color: #ccc;
padding: 12px;
color: #333;
@@ -176,11 +188,13 @@ nav {
.report th .universe {
font-weight: normal;
font-size: 18px;
+ display: block;
+ line-height: 1.2em;
+ margin-top: 5px;
}
.report th.subhead {
font-size: 14px;
- font-weight: bold;
border: 1px solid #ccc; border-bottom-color: #ccc;
padding: 6px;
color: #333;
@@ -209,10 +223,15 @@ nav {
.report th.labeldef {
width: 375px !important;
+ vertical-align: top;
+}
+.report th.labeldef strong {
+ font-weight: bold;
}
.report th.locationdef {
background-color: #fff !important;
width: 300px !important;
+ font-weight: bold;
}
.report td.data-cell {
width: 75px !important;
View
6 censusweb/media/js/browser.js
@@ -23,6 +23,12 @@ $(function(){
var show_ids = window.DEFAULT_TABLES.split(',');
}
+ if (show_ids == window.DEFAULT_TABLES) {
+ $("#default-tables").hide();
+ } else {
+ $("#default-tables").show();
+ }
+
$("#ajax-loader").show();
$("table.report").hide()
Please sign in to comment.
Something went wrong with that request. Please try again.