Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Entity pages #9

Merged
merged 5 commits into from
Dec 10, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
470 changes: 470 additions & 0 deletions static/candidates.html

Large diffs are not rendered by default.

427 changes: 427 additions & 0 deletions static/committees.html

Large diffs are not rendered by default.

Binary file added static/img/barchart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/barchart@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/report@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/slider@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/support-oppose--big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/support-oppose--big@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/support-oppose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/support-oppose@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/time@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tree@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions static/js/modules/tablist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/* Accessible tab interface
/* Courtesy of http://heydonworks.com/practical_aria_examples/
-----------------------------------------------------------------------------------------
*/

// The class for the container div

var $container = '.tab-interface';

// Change focus between tabs with arrow keys

$('[role="tab"]').on('keydown', function(e) {

// define current, previous and next (possible) tabs

var $original = $(this);
var $prev = $(this).parents('li').prev().children('[role="tab"]');
var $next = $(this).parents('li').next().children('[role="tab"]');
var $target;

// find the direction (prev or next)

switch (e.keyCode) {
case 37:
$target = $prev;
break;
case 39:
$target = $next;
break;
default:
$target = false
break;
}

if ($target.length) {
$original.attr({
'tabindex' : '-1',
'aria-selected' : null
});
$target.attr({
'tabindex' : '0',
'aria-selected' : true
}).focus();
}

// Hide panels

$($container +' [role="tabpanel"]')
.attr('aria-hidden', 'true');

// Show panel which corresponds to target

$('#' + $(document.activeElement).attr('href').substring(1))
.attr('aria-hidden', null);

});

// Handle click on tab to show + focus tabpanel

$('[role="tab"]').on('click', function(e) {

e.preventDefault();

// remove focusability [sic] and aria-selected

$('[role="tab"]').attr({
'tabindex': '-1',
'aria-selected' : null
});

// replace above on clicked tab

$(this).attr({
'aria-selected' : true,
'tabindex' : '0'
});

// Hide panels

$($container +' [role="tabpanel"]').attr('aria-hidden', 'true');

// show corresponding panel

$('#' + $(this).attr('href').substring(1))
.attr('aria-hidden', null);

});
10 changes: 10 additions & 0 deletions static/js/vendor/retina.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions static/styles/_base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ h1 {
h2 {
@include font-size(3.6);
font-weight: 300;
margin-bottom: 1rem;
}

h3 {
Expand All @@ -37,18 +36,20 @@ h3 {
h4 {
@include font-size(2.4);
font-weight: 400;
margin-bottom: 1em;
}

h5 {
@include font-size(2.0);
@include font-size(1.8);
}

h6 {
@include font-size(1.8);
@include font-size(1.6);
}

p {
margin: 0 0 ($base-line-height * .5);
-webkit-margin-before: 0;
}

a {
Expand Down Expand Up @@ -99,8 +100,13 @@ cite {

.lead-text {
@include font-size(1.8);
margin-top: 0;
}

.query {
border-bottom: 1px solid $dark-gray;
}

.text-note {
font-style: italic;
}
5 changes: 3 additions & 2 deletions static/styles/_base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ $base-border-radius: em(4);

// Colors
$dark-gray: #515A61;
$medium-gray: #D7D7D7;
$light-gray: #F6F6F6;
$medium-gray: #979797;
$light-gray: #EFEFEF;
$light-red: #FBE3E4;
$light-yellow: #FFF6BF;
$light-green: #E6EFC2;
Expand All @@ -38,6 +38,7 @@ $data-disbursement: #DB4857; // Salmon

// UI Colors
$meta-box-color: #FBFBFD;
$committee-bg: #DCDCE0;

// Background Color
$base-background-color: white;
Expand Down
20 changes: 20 additions & 0 deletions static/styles/_base/mixins/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,23 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}


// Dividers
// Primary dividers are more divisive... secondar, less so

@mixin primary-divider() {
border-bottom: 1px solid $dark-gray;

&:last-child {
border-bottom: none;
}
}

@mixin secondary-divider() {
border-bottom: 1px dashed $medium-gray;

&:last-child {
border-bottom: none;
}
}
Loading