@springernature/nn-charts
Version:
Visualization for DAS products
508 lines (482 loc) • 11 kB
CSS
.tick {
pointer-events: none;
}
.tick__tick-line {
fill: #bcbcbc;
stroke-width: 0.5;
shape-rendering: crispEdges;
stroke-linecap: butt;
}
.tick__grid-line {
fill: #bcbcbc;
stroke: #565656;
opacity: 0.5;
stroke-width: 0.5;
shape-rendering: crispEdges;
stroke-linecap: butt;
}
.tick__label {
font-size: 12px;
}
.legend-group__label {
font-size: 1rem;
}
.legend-group__shape--highlighted {
fill: #f6ac59 ;
opacity: 1;
}
.tooltip-container__background--sticky, .tooltip-container__background, .tooltip-container {
padding: 15px;
fill: #ffffff;
stroke: #ffffff;
stroke-width: 0.5px;
z-index: 1;
pointer-events: none;
}
.tooltip-container__pointer {
transform: rotate(45deg);
fill: #ffffff;
stroke: #ffffff;
stroke-width: 0.5px;
z-index: 1;
pointer-events: none;
}
.tooltip-container__text {
font-size: 0.75rem;
fill: #333333;
stroke: #333333;
stroke-width: 0;
}
.tooltip-container__text--highlighted {
fill: #f6ac59 ;
opacity: 1;
}
.title {
font-size: 14px;
font-weight: 600;
text-anchor: middle;
}
.title__x-axis {
transform: rotate(0deg);
}
.title__y-axis {
transform: rotate(270deg);
}
.bold {
font-weight: bold;
}
.italic {
font-style: italic;
}
/**
* Util for generating texts of different font sizes.
* Usage - .text-small, .text-medium, .text-base
*/
.text-x-small {
font-size: 0.25rem;
}
.text-small {
font-size: 0.5rem;
}
.text-medium {
font-size: 0.75rem;
}
.text-base {
font-size: 1rem;
}
.text-large {
font-size: 1.25rem;
}
.text-x-large {
font-size: 1.5rem;
}
.chakra-ui-dark .pearl-svg {
background-color: get("dark.backgroundColor");
}
.chakra-ui-dark text {
fill: get("dark.legendTextolor");
}
.chakra-ui-dark .axis path {
stroke: get("dark.tickLineColor");
opacity: 0.9;
}
.chakra-ui-dark .tick line {
stroke: get("dark.tickLineColor");
}
.chakra-ui-dark .tooltip-item.hovered {
background-color: get("dark.hoverTooltipColor");
}
.chakra-ui-dark .tooltip-group {
background-color: get("light.backgroundColor");
}
.chakra-ui-dark .tooltip-group .tooltip-heading {
color: get("light.labelTextColor");
}
.chakra-ui-dark .tooltip-group .tt-category,
.chakra-ui-dark .tooltip-group .tt-value {
color: get("light.labelTextColor");
}
.chakra-ui-dark .tooltip-frame,
.chakra-ui-dark .tooltip-pointer {
fill: get("light.backgroundColor");
}
.chakra-ui-dark .tooltip-frame__text {
fill: get("light.labelTextColor");
}
.chakra-ui-dark .collaboration-network-svg-Legend-Background {
fill: get("dark.backgroundColor");
stroke: get("dark.legendTextolor");
}
.chakra-ui-dark .legend-group__label {
fill: get("dark.legendTextolor");
}
.chakra-ui-dark .base-panel {
background-color: get("dark.backgroundColor");
}
.chakra-ui-dark .tooltip-container__pointer,
.chakra-ui-dark .tooltip-container__background {
fill: get("dark.backgroundColor");
}
.chakra-ui-dark .tooltip-container__background--sticky {
fill: get("dark.backgroundColor");
}
.chakra-ui-dark .node__label {
fill: get("dark.labelTextColor");
}
.chakra-ui-dark .node__circle.node {
fill: get("dark.nodeColor");
stroke: get("dark.nodeBorderColor");
}
.chakra-ui-dark .node__background-rect {
fill: get("dark.labelRectangleBgColor");
}
.chakra-ui-dark .legend__background-rect {
stroke: get("dark.legendRectangleBorderColor");
fill: get("dark.legendRectangleBgColor");
}
.chakra-ui-dark .zoom-controls-container {
fill: get("dark.zoomCtrlContainerBgColor");
stroke: get("dark.zoomCtrlContainerBorderColor");
box-shadow: 0px 4px 16px 0px rgba(20, 20, 20, 0.1215686275);
}
.chakra-ui-dark .zoom-controls-container .zoom-controls {
fill: get("dark.zoomCtrlBgColor");
stroke: none;
}
.chakra-ui-dark .zoom-controls-container .zoom-controls .line,
.chakra-ui-dark .zoom-controls-container .zoom-controls .circle {
stroke: #ffffff;
}
.chakra-ui-dark .toggle-icon {
fill: #ffffff;
}
.chakra-ui-dark .node__circle.node.node__circle--selected,
.chakra-ui-dark .link.link--highlighted {
stroke: get("dark.edgeHighlightColor");
}
.chakra-ui-dark .line-container .legend-item__label {
color: get("dark.legendChipLabelColor");
}
.chakra-ui-dark .line-container .legend-item {
border-color: get("dark.legendChipBorderColor");
}
.chakra-ui-light .pearl-svg {
background-color: get("light.backgroundColor");
}
.chakra-ui-light .base-panel {
background-color: get("light.backgroundColor");
}
.chakra-ui-light text {
fill: get("light.legendTextolor");
}
.chakra-ui-light .axis path {
stroke: get("light.tickLineColor");
}
.chakra-ui-light .tick line {
stroke: get("light.tickLineColor");
}
.chakra-ui-light .tooltip-frame,
.chakra-ui-light .tooltip-pointer {
fill: get("dark.backgroundColor");
}
.chakra-ui-light .tooltip-frame__text {
fill: get("dark.labelTextColor");
}
.chakra-ui-light .collaboration-network-svg-Legend-Background {
fill: get("light.backgroundColor");
stroke: get("light.legendTextolor");
}
.chakra-ui-light .legend-group__label {
fill: get("light.legendTextolor");
}
.chakra-ui-light .tooltip-container__pointer,
.chakra-ui-light .tooltip-container__background {
fill: get("light.backgroundColor");
}
.chakra-ui-light .tooltip-container__background--sticky {
fill: get("dark.backgroundColor");
}
.chakra-ui-light .node__label {
fill: get("light.labelTextColor");
}
.chakra-ui-light .node__circle.node {
fill: get("light.nodeColor");
stroke: get("light.nodeBorderColor");
}
.chakra-ui-light .node__background-rect {
fill: get("light.labelRectangleBgColor");
}
.chakra-ui-light .legend__background-rect {
stroke: get("light.legendRectangleBorderColor");
fill: get("light.legendRectangleBgColor");
box-shadow: get("light.legendRectangleBoxShadow");
}
.chakra-ui-light .tooltip-item.hovered {
background-color: get("light.hoverTooltipColor");
}
.chakra-ui-light .tooltip-group {
background-color: get("dark.backgroundColor");
}
.chakra-ui-light .tooltip-group text {
fill: get("dark.labelTextColor");
}
.chakra-ui-light .tooltip-group .tooltip-heading {
color: get("dark.labelTextColor");
}
.chakra-ui-light .tooltip-group .tt-category,
.chakra-ui-light .tooltip-group .tt-value {
color: get("dark.labelTextColor");
}
.chakra-ui-light .zoom-controls-container {
fill: get("light.zoomCtrlContainerBgColor");
stroke: get("light.zoomCtrlContainerBorderColor");
}
.chakra-ui-light .zoom-controls-container .zoom-controls {
fill: get("light.zoomCtrlBgColor");
stroke: none;
}
.chakra-ui-light .zoom-controls-container .zoom-controls .line,
.chakra-ui-light .zoom-controls-container .zoom-controls .circle {
stroke: black;
}
.chakra-ui-light .toggle-icon {
fill: #272727;
}
.chakra-ui-light .node__circle.node.node__circle--selected,
.chakra-ui-light .link.link--highlighted {
stroke: get("light.edgeHighlightColor");
}
.chakra-ui-light .line-container .legend-item__label {
color: get("light.legendChipLabelColor");
}
.chakra-ui-light .line-container .legend-item {
border-color: get("light.legendChipBorderColor");
}
.chart__rectangle--highlighted {
opacity: 0.75;
}
.column-chart {
position: relative;
padding-bottom: 20px;
overflow-y: auto;
}
.column-chart .legend-container {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: row;
}
.column-chart .legend-container.horizontal {
flex-direction: column;
}
@media (min-width: 601px) {
.column-chart .legend-container.horizontal {
flex-direction: row;
}
}
.column-chart .legend-container.vertical {
flex-direction: column;
}
.column-chart .legend-container .legend-item {
padding-right: 20px;
}
.column-chart .legend-container.center {
justify-content: center;
}
.column-chart .legend-container.left {
justify-content: left;
}
.column-chart .legend-container.right {
align-content: end;
flex-wrap: wrap;
}
.column-chart .legend-shape {
width: 15px;
height: 15px;
display: inline-block;
margin-right: 5px;
top: 2px;
position: relative;
}
.column-chart .legend-shape__rect {
height: 10px;
}
.column-chart .legend-shape__circle {
border-radius: 50%;
}
.column-chart .horizon .rectangle {
cursor: pointer;
}
.tooltip-group {
position: absolute;
width: 245px;
border-radius: 10px;
list-style-type: none;
margin: 0;
padding: 12px;
z-index: 999;
}
.tooltip-group ul,
.tooltip-group li {
margin: 0;
padding: 0;
}
.tooltip-group .tooltip-heading {
font-weight: bold;
font-size: 1.2rem;
margin: 0;
}
.tooltip-group .tt-shape {
width: 15px;
height: 15px;
display: inline-block;
margin-right: 5px;
top: 2px;
position: relative;
}
.tooltip-group .tt-shape__rect {
height: 10px;
}
.tooltip-group .tt-shape__circle {
border-radius: 50%;
}
.tooltip-group .tt-category,
.tooltip-group .tt-value {
font-size: 0.9rem;
font-weight: 500;
}
.tooltip-group .tooltip-item {
margin-top: 5px;
padding: 3px 5px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.tooltip-group .tooltip-item.hovered .tt-shape {
border: thin double transparent;
}
.tooltip-group .tooltip-item.hovered span {
font-weight: bold;
}
.tooltip-group .tooltip-footer {
border-top: 1px dashed #d4d4d4;
margin-top: 15px;
padding: 3px 5px;
padding-top: 15px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.tooltip-group .tooltip-footer .tt-category,
.tooltip-group .tooltip-footer .tt-value {
font-size: 0.9rem;
font-weight: 500;
}
.lineChart.axis.axis--y .domain,
.lineChart.context.axis.axis--x .domain {
display: none;
}
.axis-title {
fill: #FFFFFF;
font-size: 1rem;
text-anchor: start;
}
.line-container .legend-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
padding-top: 1rem;
}
.line-container .legend-item {
display: flex;
align-items: center;
padding: 0.25rem 0.5rem;
border: 1px solid #525151;
border-radius: 1rem;
gap: 0.5rem;
}
.line-container .legend-item__shape {
width: 1rem;
height: 1rem;
}
.line-container .legend-item__label {
font-size: 14px;
line-height: 1.25rem;
}
.chart--pan {
cursor: grab;
}
.node:hover {
cursor: pointer;
}
.node__text {
font: 10px sans-serif;
}
.node__background-rect {
fill: #272727;
stroke: #FFFFFF;
stroke-width: 0;
}
.node__label {
fill: #fff;
font-size: 14px;
font-weight: 500;
}
.node__label:hover {
cursor: pointer;
}
.node circle {
fill: #d9d9d9;
}
.chart-container {
position: relative;
}
.link {
fill: none;
stroke: #ccc;
stroke-width: 1.5px;
opacity: 1;
}
.link--highlighted {
stroke: #f00;
stroke-width: 3px;
}
.node__circle.node.node__circle--selected,
.link.link--highlighted {
stroke-width: 3px;
}
.zoom-controls-container {
stroke-width: 1;
stroke: #404040;
fill: rgba(0, 0, 0, 0.5);
}
.zoom-controls-container .zoom-controls {
cursor: pointer;
}
.zoom-controls-container .zoom-controls .line,
.zoom-controls-container .zoom-controls .circle {
stroke: #ffffff;
}
/*# sourceMappingURL=styles.css.map */