Merge pull request #1 from mozilla/d3

front-end update with d3
This commit is contained in:
Christopher DeCairos 2016-09-23 17:22:48 -04:00 коммит произвёл GitHub
Родитель ff4a8e1169 92f65477c5
Коммит 8b8862c26b
7 изменённых файлов: 10391 добавлений и 26 удалений

Просмотреть файл

@ -4,47 +4,137 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Github issues Gantt</title>
<meta charset="utf-8">
<link rel="stylesheet" href="/lib/jQuery.Gantt/css/style.css">
<script src="lib/d3.v3.min.js"></script>
<link rel="stylesheet" href="/stylesheets/normalize.css">
<link rel="stylesheet" href="/stylesheets/foundation.min.css">
<link rel="stylesheet" href="/stylesheets/style.css">
</head>
<body>
<div class="contain">
<h1>GitHub issues Gantt</h1>
<!-- TITLE BAR -->
<header class="large-12 columns">
<h1>Mozilla Advocacy</h1>
</header>
<div id='refresh-button-container' class="button-group">
<button id="refresh-button" class='button tiny hollow secondary'>Refresh</button>
</div>
<div id='msg' class="alert alert-block"></div>
<div class="large-10 columns" id="errors" style="display:none;">
</div>
<div class="columns large-10">
<!-- SORTER/FILTER/COLOR BUTTONS -->
<div class="button-block small-12 large-5 columns" style="margin-left:0px">
<h6>SORT BY</h6>
<ul id="sorter" class="button-group radius">
<li class="hollow secondary button tiny" data-sorter="title">Issue</li>
<li class="hollow secondary button tiny" data-sorter="created_at">Start date</li>
<li class="hollow secondary button tiny" data-sorter="due_on">Due date</li>
</ul>
</div>
<div class="button-block small-12 large-5 columns" style="margin-left:0px">
<h6>FILTER BY PRIORITY</h6>
<ul id="priority" class="button-group radius filter">
<li class="hollow secondary button tiny" data-filter="All">All</li>
<li class="hollow secondary button tiny" data-filter="P1">P1</li>
<li class="hollow secondary button tiny" data-filter="P2">P2</li>
</ul>
</div>
</div>
<div id='refresh-button-container'>
<button id="refresh-button" class='btn'>Refresh</button>
</div>
<h2>By Milestone</h2>
<div class="gantt-milestone"></div>
<div class="large-10 columns">
<h6>FILTER BY</h6>
<h2>By Dev</h2>
<div class="gantt-dev"></div>
<div class="button-block large-4 columns">
<h7>Assignee</h7>
<select id="assignee" class="filter">
<option selected>All</option>
<option>KevZawacki</option>
<option>valianttry</option>
<option>damiankay</option>
<option>cadecairos</option>
<option>shaghdoosti</option>
<option>brettgaylor</option>
<option>lovegushwa</option>
<option>vojtechmzl</option>
<option>HPaulJohnson</option>
<option>ScottDowne</option>
<option>natalieworth</option>
<option>beccaklam</option>
<option>stephaniemcv</option>
</select>
</div>
<div class="button-block large-4 columns">
<h7>Milestone</h7><select id="milestone" class="filter">
<option>All</option>
</select>
</div>
<div class="button-block large-4 columns">
<h7>Label</h7><select id="label" class="filter">
<option>All</option>
</select>
</div>
</div>
<h2>By Milestone</h2>
<div class="gantt-milestone-only"></div>
<!-- LEGEND - TEAM -->
<div id="legend-2" class="legend-style">
<div class="legend-title">Team</div>
<div class="legend-scale">
<ul class="legend-labels">
<li class="KevZawacki"><span></span>Kevin</li>
<li class="valianttry"><span></span>Andrea</li>
<li class="damiankay"><span></span>Damian</li>
<li class="cadecairos"><span></span>Chris</li>
<li class="shaghdoosti"><span></span>Sara</li>
<li class="brettgaylor"><span></span>Brett</li>
<li class="lovegushwa"><span></span>Jordan</li>
<li class="vojtechmzl"><span></span>Vojtech</li>
<li class="HPaulJohnson"><span></span>Paul</li>
<li class="ScottDowne"><span></span>Scott</li>
<li class="natalieworth"><span></span>Natalie</li>
<li class="beccaklam"><span></span>Rebecca</li>
<li class="stephaniemcv"><span></span>Steph</li>
</ul>
</div>
</div>
</div>
<div class="large-12 columns">
<div id="chart-canvas" style="position:relative">
<div id="svg-canvas"></div>
<div id="gantt-bar-container"></div>
</div>
<!-- TOOLTIPS -->
<div id="tooltip"></div>
</div>
<script src="/lib/jquery-1.10.2.min.js"></script>
<script src="/lib/jQuery.Gantt/js/jquery.fn.gantt.min.js"></script>
<!--<script src="/lib/jQuery.Gantt/js/jquery.fn.gantt.min.js"></script>-->
<!-- From server -->
<script src="/config.js"></script>
<script src="/date-functions.js"></script>
<script src="/planning.js"></script>
<script src="/main.js"></script>
<script>
$(function() {
"use strict";
$.getJSON("/data.json", function(data) {
window.issues = data.issues;
window.milestones = data.milestones;
Planning.init();
window.events = data.events;
visualize();
});
});
$("#refresh-button").on("click", function () {
$.ajax('/trigger_refresh', {
success: function () { window.location.reload(); }
});
});
</script>
</body>
</html>

9274
public/lib/d3.v3.js поставляемый Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

5
public/lib/d3.v3.min.js поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

395
public/main.js Normal file
Просмотреть файл

@ -0,0 +1,395 @@
// (function() {
// Function global to uncomment when push into someone else code, keep my vars mine
'use strict';
/*
* SET VARS
*/
var canvas_width = d3.select('#chart-canvas').node().offsetWidth;
var xScale = d3.time.scale()
.rangeRound([165, canvas_width]);
var data = [];
var errors = [];
var number_of_bars, canvas_height;
// Compute the height our canvas needs to be once we get the data
var bar_height = 20;
var bar_margin_bottom = 10;
var container_top_padding = 30;
var container_bottom_padding = 40;
// Declare color/filter vars
var color_selector, filter_selector;
var today = new Date();
var ganttBarContainer;
/*
* LOAD AND TIDY DATA
*/
var dateFormat = d3.time.format("%Y-%m-%dT%H:%M:%SZ");
var milestonesDateFormat = d3.time.format("%B %d, %Y");
var titleFormat = d3.time.format("%B %d");
var dueFormat = d3.time.format(" %B %d");
function visualize() {
tidyData(issues);
initialRender();
render();
}
function tidyData(issues) {
issues.forEach(function(d,i) {
var object = [];
object.id = i;
object.title = d.title;
object.assignee = [];
if (d.assignees.length > 0) {
d.assignees.forEach(function(d,i) {
object.assignee.push(d.login);
});
} else {
object.assignee.push("unassigned");
}
if (d.milestone) {
object.milestone = d.milestone.title;
}
if (d.labels) {
object.label = [];
d.labels.forEach(function(d,i) {
if (d.name == "P1") {
object.priority = "P1";
} else if (d.name == "P2") {
object.priority = "P2";
} else {
object.label.push(d.name);
}
})
}
object.url = 'https://github.com/MozillaFoundation/Advocacy/issues/'+d.number;
var bda = d.body.split('*').forEach(function(d,i) {
var bdaS = d.split(':');
bdaS.forEach(function(d,i) {
if (d == "Start date") {
var start_temp = bdaS[i+1].trim();
object.valid = true;
try {
object.created_at = milestonesDateFormat.parse(start_temp);
} catch(err) {
errors.push(object.url);
}
}
if (d == "Due date") {
var end_temp = bdaS[i+1].trim();
object.valid = true;
try {
object.due_on = milestonesDateFormat.parse(end_temp);
} catch(err) {
errors.push(object.url);
}
}
});
});
if (object.created_at == null) {
try {
object.created_at = dateFormat.parse(d.created_at);
} catch(err) {
errors.push(object.url);
}
}
if (object.due_on == null && d.milestone && d.milestone.due_on !== null) {
try {
object.due_on = dateFormat.parse(d.milestone.due_on);
} catch(err) {
errors.push(object.url);
}
}
if (object.due_on && object.created_at) {
data.push(object);
} else {
errors.push(object);
}
})
if (errors.length > 0) {
errors.forEach(function(d,i) {
if (d.valid) {
console.log("Check <a href="+d.url+">"+d.url+"</a> for errors.");
}
});
}
milestones.forEach(function(d,i) {
d3.select("#milestone").append('option').text(d.title);
})
$.getJSON("https://api.github.com/repos/MozillaFoundation/Advocacy/labels", function(data) {
data.forEach(function(d,i) {
d3.select("#label").append('option').text(d.name);
})
});
data.sort(function(a,b) {
return a.due_on - b.due_on;
})
// Find min/max of our dates
var min = d3.min(data, function(d) { return d.created_at});
var max = d3.max(data, function(d) { return d.due_on });
xScale.domain([min, max]);
number_of_bars = data.length;
canvas_height = number_of_bars * (bar_height + bar_margin_bottom) + container_top_padding + container_bottom_padding;
}
/*
* DRAW WITH DATA
*/
function initialRender() {
// Create svg container
var svg = d3.select('#svg-canvas')
.append('svg')
.attr('width', canvas_width+50)
.attr('height', canvas_height);
// Create base axis; assign scale made up above
var xAxis = d3.svg.axis()
.scale(xScale)
.orient('bottom');
// Bottom Axis
var btmAxis = svg.append('g')
.attr('transform', 'translate(0,' + (canvas_height - 30) + ')')
.attr('class', 'axis')
.call(xAxis);
// Top Axis
var topAxis = svg.append('g')
.attr('transform', 'translate(0,10)')
.attr('class', 'axis')
.call(xAxis);
// Lines
var monthlyLines = svg.append('g')
.selectAll('line')
.data(xScale.ticks(20))
.enter()
.append('line')
.attr('x1', xScale)
.attr('x2', xScale)
.attr('y1', 30)
.attr('y2', canvas_height-25)
.style('stroke', '#ccc');
var todayline = svg.append('line')
.datum(today)
.attr('x1', xScale)
.attr('x2', xScale)
.attr('y1', 0)
.attr('y2', canvas_height - 25)
.style('stroke', '#c00');
d3.select('#chart-canvas').style('height', canvas_height + 'px');
ganttBarContainer = d3.select('#gantt-bar-container')
.on('mousemove', function(d, i) {
// Place mouse move on bar-container so the tooltip renders over the bars but sets to the xy of the bar it tips
var xy = d3.mouse(this);
// Update Tooltip Position & value
tooltip
.style('left', xy[0] + 'px')
.style('top', xy[1] + 'px');
});
ganttBarContainer.append('div')
.datum(today)
.text('Today')
.attr('class', 'todaymarker')
.style('position', 'absolute')
// height of "today" slightly higher so as not to interfere with milestones
.style('top', '-50px')
.style('left', function(d) { return (xScale(d) -1) + 'px' });
}
var tooltip = d3.select('#tooltip');
function render() {
var filteredData = data;
if (filter_selector) {
if (filter_selector[1] == "All") {
filteredData = data.filter(function(d) { return d});
} else if (filter_selector[0] == "label" ) {
filteredData = data.filter(function(d) {
if (d.label) {
var arr = d.label.indexOf(filter_selector[1]);
if (arr > -1) {
return d;
}
}
});
} else if (filter_selector[0] == "assignee" ) {
filteredData = data.filter(function(d) {
if (d.assignee) {
var arr = d.assignee.indexOf(filter_selector[1]);
if (arr > -1) {
return d;
}
}
});
} else {
filteredData = data.filter(function(d) { return d[filter_selector[0]] == filter_selector[1]});
}
}
var barWrappers = ganttBarContainer.selectAll('.bar-wrapper')
.data(filteredData, function(d,i) { return d.id});
var bwe = barWrappers
.enter()
.append('div')
.attr('class', function(d) { return 'bar-wrapper '+ d.assignee})
.on('mouseover', function(d, i) {
tooltip.append('p')
.attr('class','heading')
.text(d.title);
tooltip.append('p')
.attr('class','indent')
.text(d.assignee);
tooltip.append('p')
.attr('class','indent')
.text('Start date: '+ titleFormat(d.created_at));
tooltip.append('p')
.attr('class','indent')
.text('Due date: '+ titleFormat(d.due_on));
tooltip.style('display', 'block');
})
.on('mouseout', function(d, i) {
$("#tooltip").empty();
tooltip.style('display', 'none');
})
.on('click', function(d, i) {
window.open(d.url, '_blank');
});
var bars = bwe
.append('div')
.attr('class', 'bar')
.style('margin-left', function(d, i) { return xScale(d.created_at) + 'px' })
.style('width', function(d, i) { return xScale(d.due_on) - xScale(d.created_at) + 'px' })
bars
.append('div')
.attr('class', 'bar-name')
.text(function(d) {
if (d.title.length > 50) {
return d.title.substring(0,50)+'...';
} else {
return d.title;
}});
barWrappers.selectAll('.bar')
.style('background', function(d) {
if (color_selector == 'priority') {
return priorityScale(d.priority);
}
if (color_selector == 'team') {
return teamColorScale(d.team);
}
});
// Set transitions to replace isotope
barWrappers
.transition()
.duration(600)
.delay(function(d, i) { return i * 15 })
.style('display', 'block')
.style('opacity', 1)
.style('top', function(d, i) {
return i * (bar_height + bar_margin_bottom) + 'px';
});
barWrappers
.exit()
.transition()
.style('opacity', 1e-6)
.transition()
.style('display', 'none');
}
// SORTING BUTTONS
// So let's make a simple sort_ascending boolean variable and set it to true
var sort_ascending = true;
d3.selectAll('#sorter li')
.on('click', function() {
$(this).addClass('active');
$('#sorter li').not(this).removeClass('active');
// Set it to what it isn't, if it was true, make it false and vice versa
// When you click a button twice, it will flop its sort order; a simple toggle
sort_ascending = !sort_ascending;
var sorter_selector = d3.select(this).attr('data-sorter');
data.sort(function(a, b) {
if (sort_ascending) {
return d3.ascending(a[sorter_selector], b[sorter_selector]);
} else {
return d3.descending(a[sorter_selector], b[sorter_selector]);
}
});
render(data);
});
// FILTER BUTTONS
d3.selectAll('.filter li').on('click', function() {
filter_selector = [];
filter_selector.push('priority');
filter_selector.push($(this).attr('data-filter'));
$(this).addClass('active');
$('.filter li').not(this).removeClass('active');
$('.filter').not(this).removeClass('active');
render();
});
d3.selectAll('.filter').on('change', function() {
filter_selector = [];
filter_selector.push($(this).attr('id'));
filter_selector.push($(this).find('option:selected').text());
$(this).addClass('active');
$('.filter').not(this).removeClass('active');
$('.filter li').not(this).removeClass('active');
render();
});
// COLOR BUTTONS
d3.selectAll('#color li').on('click', function() {
color_selector = d3.select(this).attr('data-filter');
render(data);
});
// })();

2
public/stylesheets/foundation.min.css поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

410
public/stylesheets/normalize.css поставляемый Normal file
Просмотреть файл

@ -0,0 +1,410 @@
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
/**
* Correct `inline-block` display not defined in IE 8/9.
*/
audio,
canvas,
video {
display: inline-block;
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9.
* Hide the `template` element in IE, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
script {
display: none !important;
}
/* ==========================================================================
Base
========================================================================== */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* ==========================================================================
Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background: transparent;
}
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari 5, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Correct font family set oddly in Safari 5 and Chrome.
*/
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
/**
* Improve readability of pre-formatted text in all browsers.
*/
pre {
white-space: pre-wrap;
}
/**
* Set consistent quote types.
*/
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* ==========================================================================
Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9.
*/
img {
border: 0;
}
/**
* Correct overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
/* ==========================================================================
Figures
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Correct font family not being inherited in all browsers.
* 2. Correct font size not being inherited in all browsers.
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
*/
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
* Correct `select` style inheritance in Firefox 4+ and Opera.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* 1. Address box sizing set to `content-box` in IE 8/9.
* 2. Remove excess padding in IE 8/9.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* 1. Remove default vertical scrollbar in IE 8/9.
* 2. Improve readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* ==========================================================================
Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}

Просмотреть файл

@ -1,14 +1,203 @@
// Personal styles
body { font-family: Helvetica, Arial, sans-serif; font-size: 13px; padding: 0 0 50px 0; }
html,body,h1,h2,h4,h6,li,a {
font-family: "Proxima Nova",Helvetica,Arial,sans-serif !important;
}
h4 {
float: left;
width: 200px;
text-align: right;
padding-right: 10px;
}
.contain { width: 1400px; margin: 0 auto;}
.header{
margin-bottom: 20px;
}
.fn-gantt .leftPanel .fn-label, .fn-gantt .leftPanel .name { width: 190px; }
.fn-gantt .leftPanel .desc { width: 195px; }
.fn-gantt .leftPanel { width: 385px; }
.button-block.last{
margin-bottom: 20px;
}
.fn-gantt .ganttYellow { background-color: #FEEA77; }
.axis path,
.axis line {
fill: none;
stroke: none;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 11px;
}
.bar{
background-color:#9ebcda;
height: 20px;
line-height:1;
margin-bottom: 10px;
-webkit-transition: background-color .2s;
}
.bar-wrapper {
width: 100%;
position: absolute;
}
.bar-wrapper:hover .bar {
opacity: .75;
-moz-opacity: .75;
-webkit-opacity: .75;
}
.bar-wrapper:hover .bar-name {
text-decoration: underline;
}
.bar-name {
font-size: 11px;
font-weight: 300;
position: absolute;
left: 0;
padding-top: 4px;
width: 160px;
}
.bar-name:hover {
cursor: default;
}
#svg-canvas {
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
}
#gantt-bar-container {
position:absolute;
top:30px;
bottom:0;
left:0;
right:0;
padding-top:30px
}
#legend {
width: 320px;
position: fixed;
top: 10px;
right: 30px;
padding: 5px;
padding-bottom: 0px;
z-index:9999999;
background: rgba(250, 250, 250, .5);
}
#legend-2{
width: 260px;
position: fixed;
top: 10px;
right: 30px;
padding: 5px;
padding-bottom: 0px;
z-index:9999999;
background: rgba(250, 250, 250, .5);
}
.legend-style .legend-title {
text-align:left;
margin-bottom: 3px;
font-family: "Proxima Nova",Helvetica,Arial,sans-serif !important;
font-weight: bold;
font-size: 90%;
}
.legend-style .legend-scale ul {
margin: 0;
padding: 0;
float: left;
list-style: none;
}
.legend-style .legend-scale ul li {
display: block;
float: left;
width: 50px;
margin-bottom: 6px;
text-align: center;
font-size: 75%;
list-style: none;
}
.legend-style ul.legend-labels li span {
display: block;
float: left;
height: 15px;
width: 50px;
}
.legend-style a {
color: #777;
}
#tooltip {
display: none;
position: absolute;
margin: 125px 16px;
width: 200px;
padding: 10px;
background-color: white;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
pointer-events: none;
z-index: 10;
}
#tooltip p {
margin: 0;
font-family: sans-serif;
font-size: 12px;
line-height: 16px;
}
.todaymarker {
background-color: #c00;
padding: 2px 6px;
font-family: "Proxima Nova",Helvetica,Arial,sans-serif !important;
font-size: 12px;
color: #fff;
}
.milestone {
background-color: #636363;
padding: 2px 6px;
font-family:"Proxima Nova",Helvetica,Arial,sans-serif !important;
font-size: 12px;
color: #fff;
}
#chart-canvas {
margin-top:50px;
}
#refresh-button-container {
margin-left:2.25rem;
padding-top:.9375rem;
}
#errors {
background:rgba(255,0,0,0.1);
border:1px solid rgba(255,0,0,0.4);
}
svg {
overflow:scroll !important;
}
.heading {
font-weight:bold;
}
.active {background:#9ebcda !important;color:#fff !important;}
.button-group .button:not(:last-child) {border-right:0px !important;}
.KevZawacki span, .KevZawacki .bar {background-color: #cfcfc4}
.valianttry span, .valianttry .bar {background-color: #cb99c9}
.damiankay span, .damiankay .bar {background-color: #dea5a4}
.cadecairos span, .cadecairos .bar {background-color: #aec6cf}
.shaghdoosti span, .shaghdoosti .bar {background-color: #ffb347}
.brettgaylor span, .brettgaylor .bar {background-color: #fdfd96}
.lovegushwa span, .lovegushwa .bar {background-color: #779ecb}
.vojtechmzl span, .vojtechmzl .bar {background-color: #836953}
.HPaulJohnson span, .HPaulJohnson .bar {background-color: #ff6961}
.ScottDowne span, .ScottDowne .bar {background-color: #b19cd9}
.natalieworth span, .natalieworth .bar {background-color: #77DD77}
.beccaklam span, .beccaklam .bar {background-color: #98d2eb}
.stephaniemcv span, .stephaniemcv .bar {background-color: #c23b22}
.fn-gantt .ganttPurple { background-color: #DCBFEE; }
.fn-gantt .ganttPurple .fn-label { color: #4F1D6B; }