Skip to content

Commit

Permalink
Add bower.json + dc.css into the main of dc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
milroc committed Jul 10, 2013
1 parent 37a0be0 commit 22789a0
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "dcjs",
"version": "1.4.0",
"main": ["dc.js", "dc.css"],
"ignore": [
".gitignore",
".travis.yml",
"build.xml",
"globals.js",
"index.js",
"make",
"package.json",
"test",
"src",
"wiki"
],
"dependencies": {
"d3": "~3.2.3",
"crossfilter": "~1.2.0"
}
}
245 changes: 245 additions & 0 deletions dc.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
.dc-chart {
float: left;
}

.dc-chart rect.bar {
stroke: none;
fill: steelblue;
cursor: pointer;
}

.dc-chart rect.bar:hover {
fill-opacity: .5;
}

.dc-chart rect.stack1 {
stroke: none;
fill: red;
}

.dc-chart rect.stack2 {
stroke: none;
fill: green;
}

.dc-chart rect.deselected {
stroke: none;
fill: #ccc;
}

.dc-chart .sub .bar {
stroke: none;
fill: #ccc;
}

.dc-chart .pie-slice {
fill: white;
font-size: 12px;
cursor: pointer;
}

.dc-chart .pie-slice :hover {
fill-opacity: .8;
}

.dc-chart .selected path {
stroke-width: 3;
stroke: #ccc;
fill-opacity: 1;
}

.dc-chart .deselected path {
strok: none;
fill-opacity: .5;
fill: #ccc;
}

.dc-chart .axis path, .axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}

.dc-chart .axis text {
font: 10px sans-serif;
}

.dc-chart .grid-line {
fill: none;
stroke: #ccc;
opacity: .5;
shape-rendering: crispEdges;
}

.dc-chart .grid-line line {
fill: none;
stroke: #ccc;
opacity: .5;
shape-rendering: crispEdges;
}

.dc-chart .brush rect.background {
z-index: -999;
}

.dc-chart .brush rect.extent {
fill: steelblue;
fill-opacity: .125;
}

.dc-chart .brush .resize path {
fill: #eee;
stroke: #666;
}

.dc-chart path.line {
fill: none;
stroke: steelblue;
stroke-width: 1.5px;
}

.dc-chart circle.dot {
fill: steelblue;
}

.dc-chart g.stack1 path.line {
stroke: green;
}

.dc-chart g.stack1 circle.dot {
fill: green;
}

.dc-chart g.stack2 path.line {
stroke: red;
}

.dc-chart g.stack2 circle.dot {
fill: red;
}

.dc-chart g.dc-tooltip path {
fill: none;
stroke: grey;
stroke-opacity: .8;
}

.dc-chart path.area {
fill: steelblue;
fill-opacity: .3;
stroke: none;
}

.dc-chart g.stack1 path.area {
fill: green;
}

.dc-chart g.stack2 path.area {
fill: red;
}

.dc-chart .node {
font-size: 0.7em;
cursor: pointer;
}

.dc-chart .node :hover {
fill-opacity: .8;
}

.dc-chart .selected circle {
stroke-width: 3;
stroke: #ccc;
fill-opacity: 1;
}

.dc-chart .deselected circle {
strok: none;
fill-opacity: .5;
fill: #ccc;
}

.dc-chart .bubble {
stroke: none;
fill-opacity: 0.6;
}

.dc-data-count {
float: right;
margin-top: 15px;
margin-right: 15px;
}

.dc-data-count .filter-count {
color: #3182bd;
font-weight: bold;
}

.dc-data-count .total-count {
color: #3182bd;
font-weight: bold;
}

.dc-data-table {
}

.dc-chart g.state {
cursor: pointer;
}

.dc-chart g.state :hover {
fill-opacity: .8;
}

.dc-chart g.state path {
stroke: white;
}

.dc-chart g.selected path {
}

.dc-chart g.deselected path {
fill: grey;
}

.dc-chart g.selected text {
}

.dc-chart g.deselected text {
display: none;
}

.dc-chart g.county path {
stroke: white;
fill: none;
}

.dc-chart g.debug rect {
fill: blue;
fill-opacity: .2;
}

.dc-chart g.row rect {
fill-opacity: 0.8;
cursor: pointer;
}

.dc-chart g.row rect:hover {
fill-opacity: 0.6;
}

.dc-chart g.row text {
fill: white;
font-size: 12px;
cursor: pointer;
}

.dc-chart g text {
/* Makes it so the user can't accidentally click and select text that is meant as a label only */
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10 */
-o-user-select: none;
user-select: none;
pointer-events: none;
}

0 comments on commit 22789a0

Please sign in to comment.