taucharts
Version:
Data-focused charting library based on D3
575 lines (573 loc) • 12.6 kB
CSS
/*!
* /*
* taucharts@2.8.0 (2020-02-26)
* Copyright 2020 Targetprocess, Inc.
* Licensed under Apache License 2.0
* * /
*
*/
.tau-chart__layout {
line-height: 1;
font-family: Helvetica Neue, Segoe UI, Open Sans, Ubuntu, sans-serif;
}
.tau-chart__layout text {
font: normal 13px Helvetica Neue, Segoe UI, Open Sans, Ubuntu, sans-serif;
}
.tau-chart__chart {
font-family: Helvetica Neue, Segoe UI, Open Sans, Ubuntu, sans-serif;
position: absolute;
height: 100%;
width: 100%;
overflow: auto;
}
.tau-chart__layout {
display: -webkit-box;
display: -webkit-flexbox;
display: -ms-flexbox;
display: flex;
-ms-flex-align: stretch;
-webkit-align-items: stretch;
align-items: stretch;
-ms-flex-direction: column;
-webkit-box-orient: vertical;
flex-direction: column;
height: 100%;
width: 100%;
overflow: auto;
background: transparent;
color: #fff;
}
.tau-chart__layout__header {
-ms-flex: 0 0.1 auto;
-webkit-box-flex: 0 0.1 auto;
flex: 0 0.1 auto;
position: relative;
}
.tau-chart__layout__container {
display: -webkit-box;
display: -webkit-flexbox;
display: -ms-flexbox;
display: flex;
-ms-flex: 1 1 auto;
-webkit-box-flex: 1 1 auto;
flex: 1 1 auto;
height: 100%;
}
.tau-chart__layout__footer {
-ms-flex: 0 1 auto;
-webkit-box-flex: 0 1 auto;
flex: 0 1 auto;
}
.tau-chart__layout__sidebar {
-ms-flex: 0 1 auto;
-webkit-box-flex: 0 1 auto;
flex: 0 1 auto;
}
.tau-chart__layout__content {
-ms-flex: 1 1 auto;
-webkit-box-flex: 1 1 auto;
flex: 1 1 auto;
overflow: hidden;
}
.tau-chart__layout__sidebar-right {
position: relative;
overflow: hidden;
-ms-flex: 0 0 auto;
-webkit-box-flex: 0 0 auto;
flex: 0 0 auto;
}
.tau-chart__layout__sidebar-right__wrap {
max-height: 100%;
box-sizing: border-box;
}
.tau-chart__layout text {
fill: #fff;
}
.tau-chart__layout.tau-chart__layout_rendering-error {
opacity: 0.75;
}
.tau-chart__rendering-timeout-warning {
align-items: center;
background: rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
height: 100%;
position: absolute;
top: 0;
width: 100%;
}
.tau-chart__rendering-timeout-warning svg {
height: 100%;
max-width: 32em;
width: 100%;
}
.tau-chart__rendering-timeout-warning text {
font-weight: 300;
}
.tau-chart__progress {
box-sizing: border-box;
height: 0.25em;
opacity: 0;
overflow: hidden;
pointer-events: none;
position: absolute;
top: 0;
transition: opacity 1s 0.75s;
width: 100%;
}
.tau-chart__progress_active {
opacity: 1;
}
.tau-chart__progress__value {
background: rgba(255, 255, 255, 0.25);
height: 100%;
transition: width 0.75s;
}
.tau-chart {
/* region Select --------------------------------------------------*/
}
.tau-chart__checkbox {
position: relative;
display: block;
}
.tau-chart__checkbox__input {
position: absolute;
z-index: -1;
opacity: 0;
}
.tau-chart__checkbox__icon {
position: relative;
width: 14px;
height: 14px;
top: 3px;
display: inline-block;
border: 1px solid #999;
border-radius: 2px;
background: #777;
}
.tau-chart__checkbox__icon:before {
display: none;
content: '';
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAPFBMVEX///////////////////////////////////////////////////////////////////////////////8gsV51AAAAE3RSTlMAHB0eHyAhIiNAv8Dc3d7f4eLjyWil2QAAAD1JREFUeAFjoApg5WZF4rEJCHNBxbmYGdgFhflZIFxuYV5OIWE+ZpguAWFhYV4mmDaQSh4mJHM4uBjJcAsAoZwBrNc0BKUAAAAASUVORK5CYII=);
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.tau-chart__checkbox__text {
margin-left: 5px;
}
.tau-chart__checkbox__input ~ .tau-chart__checkbox__text {
cursor: pointer;
}
.tau-chart__checkbox__input:disabled ~ .tau-chart__checkbox__text {
cursor: default;
opacity: 0.3;
}
.tau-chart__checkbox__input:not(:disabled):focus + .tau-chart__checkbox__icon {
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 7px 0 #52a8ec;
outline: none;
}
.tau-chart__checkbox:hover .tau-chart__checkbox__input:not(:disabled) ~ .tau-chart__checkbox__icon {
border-color: #c3c3c3;
}
.tau-chart__checkbox__input:checked + .tau-chart__checkbox__icon {
background: #777;
}
.tau-chart__checkbox__input:checked + .tau-chart__checkbox__icon:before {
display: block;
}
.tau-chart__select {
font-size: 13px;
font-family: inherit;
display: inline-block;
height: 24px;
line-height: 24px;
vertical-align: middle;
padding: 2px;
background-color: #777;
border: 1px solid #999;
border-radius: 2px;
color: #fff;
}
.tau-chart__select:focus {
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 7px 0 #52a8ec;
outline: none;
}
.tau-chart__select[disabled] {
opacity: 0.3;
cursor: default;
}
.tau-chart__select[multiple] {
height: auto;
}
.tau-chart__select option[disabled] {
opacity: 0.6;
}
.tau-chart__button {
background-color: rgba(0, 0, 0, 0.9);
border: 1px solid currentColor;
border-radius: 4px;
box-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
box-sizing: border-box;
color: #606060;
cursor: pointer;
font-size: 13px;
padding: 0 6px;
line-height: 1.5em;
height: calc(1.5em + 2px);
}
.tau-chart__button:hover {
border-color: #808080;
color: #fff;
}
/* region Generate .color@{n}-@{i} function */
.tau-chart__svg .color20-1 {
stroke: #6FA1D9;
fill: #6FA1D9;
}
.tau-chart__svg .color20-2 {
stroke: #DF2B59;
fill: #DF2B59;
}
.tau-chart__svg .color20-3 {
stroke: #66DA26;
fill: #66DA26;
}
.tau-chart__svg .color20-4 {
stroke: #755797;
fill: #755797;
}
.tau-chart__svg .color20-5 {
stroke: #E5B011;
fill: #E5B011;
}
.tau-chart__svg .color20-6 {
stroke: #746650;
fill: #746650;
}
.tau-chart__svg .color20-7 {
stroke: #CB461A;
fill: #CB461A;
}
.tau-chart__svg .color20-8 {
stroke: #C7CE23;
fill: #C7CE23;
}
.tau-chart__svg .color20-9 {
stroke: #7FCDC2;
fill: #7FCDC2;
}
.tau-chart__svg .color20-10 {
stroke: #CCA1C8;
fill: #CCA1C8;
}
.tau-chart__svg .color20-11 {
stroke: #C84CCE;
fill: #C84CCE;
}
.tau-chart__svg .color20-12 {
stroke: #54762E;
fill: #54762E;
}
.tau-chart__svg .color20-13 {
stroke: #746BC9;
fill: #746BC9;
}
.tau-chart__svg .color20-14 {
stroke: #A43B49;
fill: #A43B49;
}
.tau-chart__svg .color20-15 {
stroke: #5C7A76;
fill: #5C7A76;
}
.tau-chart__svg .color20-16 {
stroke: #C8BF87;
fill: #C8BF87;
}
.tau-chart__svg .color20-17 {
stroke: #BFC1C3;
fill: #BFC1C3;
}
.tau-chart__svg .color20-18 {
stroke: #AA7243;
fill: #AA7243;
}
.tau-chart__svg .color20-19 {
stroke: #71CE7B;
fill: #71CE7B;
}
.tau-chart__svg .color20-20 {
stroke: #BE478B;
fill: #BE478B;
}
.tau-chart__svg .color-default {
stroke: #6FA1D9;
fill: #6FA1D9;
}
/* endregion */
/* region Generate .line-params-@{n} function */
/* Generate .line-size-@{n} */
.tau-chart__line-width-1 {
stroke-width: 1px;
}
.tau-chart__line-width-2 {
stroke-width: 1.5px;
}
.tau-chart__line-width-3 {
stroke-width: 2px;
}
.tau-chart__line-width-4 {
stroke-width: 2.5px;
}
.tau-chart__line-width-5 {
stroke-width: 3px;
}
/* Generate .line-opacity-@{n} */
.tau-chart__line-opacity-1 {
stroke-opacity: 1;
}
.tau-chart__line-opacity-2 {
stroke-opacity: 0.95;
}
.tau-chart__line-opacity-3 {
stroke-opacity: 0.9;
}
.tau-chart__line-opacity-4 {
stroke-opacity: 0.85;
}
.tau-chart__line-opacity-5 {
stroke-opacity: 0.8;
}
/* endregion */
/* endregion */
.tau-chart {
/* Links */
/* Axises and Grid */
/* Scatterplot */
/* Linechart */
/* Bar */
/* TODO: fix to avoid conflict on "stroke" with color brewer */
/* TODO: remove this when CSS for color brewer is fixed */
/* PLUGINS */
/* Highlighter */
}
.tau-chart a {
color: #3962FF;
border-bottom: 1px solid rgba(57, 98, 255, 0.3);
text-decoration: none;
}
.tau-chart a:hover {
color: #E17152;
border-bottom: 1px solid rgba(225, 113, 82, 0.3);
}
.tau-chart__time-axis-overflow .tick:nth-child(even) {
display: none;
}
.tau-chart__svg {
display: block;
overflow: hidden;
}
.tau-chart__svg .place {
fill: #fff;
stroke: #000;
stroke-opacity: 0.7;
stroke-width: 0.5;
}
.tau-chart__svg .place-label {
opacity: 0.7;
font-size: 11px;
color: #000000;
line-height: 13px;
text-anchor: start;
}
.tau-chart__svg .place-label-countries,
.tau-chart__svg .place-label-subunits,
.tau-chart__svg .place-label-states {
text-anchor: middle;
font-size: 10px;
fill: rgba(255, 255, 255, 0.5);
line-height: 10px;
text-transform: capitalize;
}
.tau-chart__svg .map-contour-level path {
stroke-opacity: 0.5;
stroke-linejoin: 'round';
}
.tau-chart__svg .map-contour-level-0 path {
stroke: rgba(255, 255, 255, 0.2);
}
.tau-chart__svg .map-contour-level-1 path {
stroke: rgba(255, 255, 255, 0.15);
}
.tau-chart__svg .map-contour-level-2 path {
stroke: rgba(255, 255, 255, 0.09);
}
.tau-chart__svg .map-contour-level-3 path {
stroke: rgba(255, 255, 255, 0.06);
}
.tau-chart__svg .map-contour-level-4 path {
stroke: rgba(255, 255, 255, 0.03);
}
.tau-chart__svg .map-contour-highlighted,
.tau-chart__svg .map-contour:hover {
fill: rgba(255, 191, 0, 0.15);
}
.tau-chart__svg .map-contour-highlighted path,
.tau-chart__svg .map-contour:hover path {
stroke: #FFBF00;
}
.tau-chart__svg .map-contour-highlighted text,
.tau-chart__svg .map-contour:hover text {
fill: #FFBF00;
}
.tau-chart__svg .axis line,
.tau-chart__svg .axis path {
stroke-width: 1;
fill: none;
stroke: rgba(255, 255, 255, 0.2);
shape-rendering: crispEdges;
}
.tau-chart__svg .axis.facet-axis .tick line {
opacity: 0;
}
.tau-chart__svg .axis.facet-axis .tick line.label-ref {
opacity: 1;
}
.tau-chart__svg .axis.facet-axis .tick text {
font-size: 12px;
font-weight: 600;
}
.tau-chart__svg .axis.facet-axis path.domain {
opacity: 0;
}
.tau-chart__svg .axis.facet-axis.compact .tick text {
font-weight: normal;
}
.tau-chart__svg .axis.facet-axis.compact .label {
font-weight: normal;
}
.tau-chart__svg .axis.facet-axis.compact .label .label-token {
font-weight: normal;
}
.tau-chart__svg .tick text {
font-size: 11px;
}
.tau-chart__svg .grid .grid-lines path {
shape-rendering: crispEdges;
}
.tau-chart__svg .grid .line path,
.tau-chart__svg .grid path.line,
.tau-chart__svg .grid path.domain {
fill: none;
}
.tau-chart__svg .grid .tick > line,
.tau-chart__svg .grid .extra-tick-line {
fill: none;
stroke: rgba(255, 255, 255, 0.2);
stroke-width: 1px;
shape-rendering: crispEdges;
}
.tau-chart__svg .grid .tick.zero-tick > line {
stroke: rgba(255, 255, 255, 0.34);
}
.tau-chart__svg .grid .line path {
shape-rendering: auto;
}
.tau-chart__svg .grid .cursor-line {
shape-rendering: crispEdges;
stroke: #666666;
stroke-width: 1px;
}
.tau-chart__svg .label {
font-size: 12px;
font-weight: 600;
}
.tau-chart__svg .label .label-token {
font-size: 12px;
font-weight: 600;
text-transform: capitalize;
}
.tau-chart__svg .label .label-token-1,
.tau-chart__svg .label .label-token-2 {
font-weight: normal;
}
.tau-chart__svg .label .label-token-2 {
fill: gray;
}
.tau-chart__svg .label .label-token-delimiter {
font-weight: normal;
fill: gray;
}
.tau-chart__svg .label.inline .label-token {
font-weight: normal;
fill: gray;
text-transform: none;
}
.tau-chart__svg .brush .selection {
fill-opacity: 0.3;
stroke: #fff;
shape-rendering: crispEdges;
}
.tau-chart__svg .background {
stroke: #262626;
}
.tau-chart__dot {
opacity: 0.9;
stroke-width: 0;
transition: stroke-width 0.1s ease, opacity 0.2s ease;
}
.tau-chart__line {
fill: none;
transition: stroke-opacity 0.2s ease, stroke-width 0.2s ease;
}
.tau-chart__dot-line {
opacity: 1;
transition: stroke-opacity 0.2s ease;
}
.tau-chart__bar {
opacity: 0.7;
shape-rendering: geometricPrecision;
stroke-opacity: 0.5;
stroke-width: 1;
stroke: #fff;
transition: opacity 0.2s ease;
}
.tau-chart__area {
transition: opacity 0.2s ease;
}
.tau-chart__area path:not(.i-data-anchor),
.tau-chart__area polygon {
opacity: 0.6;
transition: stroke-opacity 0.2s ease, stroke-width 0.2s ease;
}
.tau-chart__svg .tau-chart__bar {
stroke: #fff;
}
.tau-chart__dot.tau-chart__highlighted {
stroke-width: 1;
opacity: 1;
}
.tau-chart__dot.tau-chart__dimmed {
opacity: 0.2;
}
.tau-chart__line.tau-chart__highlighted {
stroke-opacity: 1;
stroke-width: 3;
}
.tau-chart__line.tau-chart__dimmed {
stroke-opacity: 0.2;
}
.i-role-label.tau-chart__highlighted,
.tau-chart__area.tau-chart__highlighted,
.tau-chart__bar.tau-chart__highlighted {
stroke-opacity: 1;
opacity: 1;
}
.i-role-label.tau-chart__dimmed,
.tau-chart__area.tau-chart__dimmed,
.tau-chart__bar.tau-chart__dimmed {
opacity: 0.2;
}