Commit 74c9a33a authored by Paul Asmuth's avatar Paul Asmuth
Browse files

fnordmetric-ui: fixed timeseries css, swatches

parent 6f07c66a
Loading
Loading
Loading
Loading
+68 −123
Original line number Diff line number Diff line
@@ -11,12 +11,15 @@
  -o-transition: opacity 0.25s linear;
  -webkit-transition: opacity 0.25s linear;
}

.fnordmetric_graph .detail.inactive {
  opacity: 0;
}

.fnordmetric_graph .detail .item.active {
  opacity: 1;
}

.fnordmetric_graph .detail .x_label {
  font-family: "Gotham Narrow", Helvetica, Arial, sans-serif;
  border-radius: 3px;
@@ -28,6 +31,7 @@
  background: white;
  white-space: nowrap;
}

.fnordmetric_graph .detail .item {
  position: absolute;
  z-index: 2;
@@ -43,10 +47,12 @@
  margin-top: -1em;
  white-space: nowrap;
}

.fnordmetric_graph .detail .item.active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

.fnordmetric_graph .detail .item:before {
  content: "\25c2";
  position: absolute;
@@ -54,6 +60,7 @@
  color: rgba(0, 0, 0, 0.7);
  width: 0;
}

.fnordmetric_graph .detail .dot {
  width: 4px;
  height: 4px;
@@ -68,21 +75,20 @@
  display: none;
  background-clip: padding-box;
}

.fnordmetric_graph .detail .dot.active {
  display: block;
}
/* graph */

.fnordmetric_graph {
  position: relative;
}

.fnordmetric_graph svg {
  display: block;
  overflow: hidden;
}

/* ticks */

.fnordmetric_graph .x_tick {
  position: absolute;
  top: 0;
@@ -91,6 +97,7 @@
  border-left: 1px dotted rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.fnordmetric_graph .x_tick .title {
  position: absolute;
  font-size: 12px;
@@ -101,101 +108,40 @@
  bottom: 1px;
}

/* annotations */

.rickshaw_annotation_timeline {
  height: 1px;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
  position: relative;
}
.rickshaw_annotation_timeline .annotation {
  position: absolute;
  height: 6px;
  width: 6px;
  margin-left: -2px;
  top: -3px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.25);
}
.fnordmetric_graph .annotation_line {
  position: absolute;
  top: 0;
  bottom: -6px;
  width: 0px;
  border-left: 2px solid rgba(0, 0, 0, 0.3);
  display: none;
}
.fnordmetric_graph .annotation_line.active {
  display: block;
}
.rickshaw_annotation_timeline .annotation .content {
  background: white;
  color: black;
  opacity: 0.9;
  padding: 5px 5px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  position: relative;
  z-index: 20;
  font-size: 12px;
  padding: 6px 8px 8px;
  top: 18px;
  left: -11px;
  width: 160px;
  display: none;
  cursor: pointer;
}
.rickshaw_annotation_timeline .annotation .content:before {
  content: "\25b2";
  position: absolute;
  top: -11px;
  color: white;
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.8);
}
.rickshaw_annotation_timeline .annotation.active,
.rickshaw_annotation_timeline .annotation:hover {
  background-color: rgba(0, 0, 0, 0.8);
  cursor: none;
}
.rickshaw_annotation_timeline .annotation .content:hover {
  z-index: 50;
}
.rickshaw_annotation_timeline .annotation.active .content {
  display: block;
}
.rickshaw_annotation_timeline .annotation:hover .content {
  display: block;
  z-index: 50;
}
.fnordmetric_graph .y_axis {
  fill: none;
}

.fnordmetric_graph .y_ticks .tick {
  stroke: rgba(0, 0, 0, 0.16);
  stroke-width: 2px;
  shape-rendering: crisp-edges;
  pointer-events: none;
}

.fnordmetric_graph .y_grid .tick {
  z-index: -1;
  stroke: rgba(0, 0, 0, 0.20);
  stroke-width: 1px;
  stroke-dasharray: 1 1;
}

.fnordmetric_graph .y_grid path {
  fill: none;
  stroke: none;
}

.fnordmetric_graph .y_ticks path {
  fill: none;
  stroke: #808080;
}

.fnordmetric_graph .y_ticks text {
  opacity: 0.5;
  font-size: 12px;
  pointer-events: none;
}

.fnordmetric_graph .x_tick.glow .title,
.fnordmetric_graph .y_ticks.glow text {
  fill: black;
@@ -210,6 +156,7 @@
    -1px 0px 0 rgba(255, 255, 255, 0.1),
    -1px -1px 0 rgba(255, 255, 255, 0.1);
}

.fnordmetric_graph .x_tick.inverse .title,
.fnordmetric_graph .y_ticks.inverse text {
  fill: white;
@@ -224,16 +171,55 @@
    -1px 0px 0 rgba(0, 0, 0, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.8);
}

.fnordmetric_graph .y_ticks path { stroke:none; }
.fnordmetric_graph .y_grid .tick { stroke:rgba(0,0,0,.1); }

.fnordmetric_graph .x_tick {
  border-left: none;
}

.fnordmetric_graph .x_tick.glow .title, .rickshaw_graph .y_ticks.glow text{
  font-size:14px;
}

.fnordmetric_graph .y_grid .tick { stroke:rgba(0,0,0,.15); stroke-dasharray:0; }
.fnordmetric_graph .y_ticks text { fill:#333333; }

.fnordmetric_legend {
  font-family: "Gotham Narrow", Helvetica, Arial;
  font-size: 12px;
  color: white;
  background: #404040;
  color: #333;
  display: inline-block;
  padding: 12px 5px;
  padding: 0;
  border-radius: 2px;
  position: relative;
}

.fnordmetric_legend .ui-sortable {
  margin-left:-10px;
}

.fnordmetric_legend li.line{
   float:left;
   clear:none;
   padding-right:0;
}

.fnordmetric_legend a.action{
  margin-right:5px;
  display:none;
}


.fnordmetric_legend li.line .label{
  font.size:14px;
  margin-left:5px;
  color:#333;
  position:relative;
  top:-1px;
}

.fnordmetric_legend:hover {
  z-index: 10;
}
@@ -242,7 +228,16 @@
  line-height: 140%;
  padding-right: 15px;
}

.fnordmetric_legend li {
  margin-right:10px;
}

.fnordmetric_legend .line .swatch {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius:2px;
  display: inline-block;
  margin-right: 3px;
  border-radius: 2px;
@@ -284,53 +279,3 @@
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.fnordmetric_graph .y_ticks path { stroke:none; }
.fnordmetric_graph .y_grid .tick { stroke:rgba(0,0,0,.1); }

.fnordmetric_graph .x_tick {
  border-left: none;
}

.fnordmetric_graph .x_tick.glow .title, .rickshaw_graph .y_ticks.glow text{
  font-size:14px;
}

.fnordmetric_legend {
font-family: "Gotham Narrow", Helvetica, sans-serif;
font-size: 12px;
color: #333;
background: none;
display: inline-block;
padding: 12px 5px;
border-radius: 2px;
position: relative;
}

.fnordmetric_legend .ui-sortable {
  margin-left:-10px;
}

.fnordmetric_legend li.line{
   float:left;
   clear:none;
   padding-right:0;
}

.fnordmetric_legend a.action{
  margin-right:5px;
  display:none;
}


.fnordmetric_legend li.line .label{
  font.size:14px;
  margin-left:5px;
  color:#333;
  position:relative;
  top:-1px;
}


.fnordmetric_graph .y_grid .tick { stroke:rgba(0,0,0,.15); stroke-dasharray:0; }
.fnordmetric_graph .y_ticks text { fill:#333333; }