@springernature/nn-charts
Version:
Visualization for DAS products
755 lines (718 loc) • 18.8 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-container {
display: flex;
list-style: none;
}
.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;
}
.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);
}
.zoom-controls-container {
display: flex;
flex-direction: row;
border: 1.5px solid;
border-radius: 4px;
box-shadow: 0px 4px 16px 0px rgba(20, 20, 20, 0.08);
width: 6rem;
height: 2rem;
margin-left: -0.75rem;
top: 0;
left: 0;
position: relative;
stroke-width: 0.5;
}
.zoom-controls-container .zoom-control {
width: 2rem;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.zoom-controls-container .zoom-control:last-child {
border-right: none;
}
/**
* 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;
}
.font-normal {
font-style: normal;
}
.font-italic {
font-style: italic;
}
.font-oblique {
font-style: oblique;
}
.d-none {
display: none ;
}
.d-inline {
display: inline ;
}
.d-inline-block {
display: inline-block ;
}
.d-block {
display: block ;
}
.d-flex {
display: flex ;
}
.d-grid {
display: grid ;
}
.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 .zoom-controls-container {
background-color: get("dark.controlsBackgroundColor");
}
.chakra-ui-dark .zoom-controls-container {
border: 1.5px solid get("dark.zoomControlBorderColor");
}
.chakra-ui-dark .zoom-controls-container .zoom-control {
border-right: 1.5px solid get("dark.zoomControlBorderColor");
}
.chakra-ui-dark .zoom-controls-container .zoom-control.zoom-in, .chakra-ui-dark .zoom-controls-container .zoom-control.zoom-out, .chakra-ui-dark .zoom-controls-container .zoom-control.zoom-centre {
fill: get("dark.controlsFillColor");
stroke: get("dark.controlsFillColor");
}
.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 .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-dark .knowledge-graph-container .links .link {
stroke: get("dark.kgEdgeStrokeColor");
}
.chakra-ui-dark .knowledge-graph-container .links .link--highlighted {
stroke: get("dark.kgEdgeHighlightColor");
}
.chakra-ui-dark .knowledge-graph-container .links .link--hovered {
stroke: get("dark.kgEdgeHoveredStrokeColor");
}
.chakra-ui-dark .knowledge-graph-container .nodes .node {
fill: get("dark.kgNodeBgColor");
stroke: get("dark.kgNodeBgColor");
/** INFO - country_array is a key name which is coming from data
and hence the class name is not following BEM convention **/
}
.chakra-ui-dark .knowledge-graph-container .nodes .node--root {
fill: get("dark.kgRootNodeBgColor");
stroke: get("dark.kgNodeHighlightColor");
}
.chakra-ui-dark .knowledge-graph-container .nodes .node--highlighted {
fill: get("dark.kgRootNodeBgColor");
stroke: get("dark.kgNodeHighlightColor");
filter: drop-shadow(0px 0px 4px get("dark.kgNodeHoveredDropShadowColor"));
}
.chakra-ui-dark .knowledge-graph-container .nodes .node--adjacent-highlighted {
fill: get("dark.kgNodeBgColor");
stroke: get("dark.kgNodeHighlightColor");
}
.chakra-ui-dark .knowledge-graph-container .nodes .node--highlighted-country_array {
fill: get("dark.kgNodeBgHighlightCountryColor");
}
.chakra-ui-dark .knowledge-graph-container .nodes .node--hovered {
stroke-width: 0.188rem;
stroke: get("dark.kgRootNodeBgColor");
filter: drop-shadow(0px 0px 4px get("dark.kgNodeHoveredDropShadowColor"));
fill: get("dark.kgNodeHoveredBgColor");
}
.chakra-ui-dark .knowledge-graph-container .nodes .node--root-hovered {
stroke-width: 0.188rem;
stroke: get("dark.kgRootNodeBgColor");
filter: drop-shadow(0px 0px 4px get("dark.kgNodeHoveredDropShadowColor"));
fill: get("dark.kgRootNodeBgColor");
stroke: get("dark.kgNodeHighlightColor");
}
.chakra-ui-dark .knowledge-graph-container .legend-container {
background-color: get("dark.controlsBackgroundColor");
border: 1px solid get("dark.zoomControlBorderColor");
}
.chakra-ui-dark .tooltip-container {
background-color: get("dark.tooltipBgColor");
border-color: get("dark.tooltipBorderColor");
}
.chakra-ui-dark .tooltip-container .tooltip-header {
color: get("dark.tooltipTextColor");
}
.chakra-ui-dark .tooltip-container .tooltip-footer button {
color: get("dark.tooltipFooterBtnColor");
}
.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 .zoom-controls-container {
background-color: get("light.controlsBackgroundColor");
}
.chakra-ui-light .zoom-controls-container {
border: 1.5px solid get("light.zoomControlBorderColor");
}
.chakra-ui-light .zoom-controls-container .zoom-control {
border-right: 1.5px solid get("light.zoomControlBorderColor");
}
.chakra-ui-light .zoom-controls-container .zoom-control.zoom-in, .chakra-ui-light .zoom-controls-container .zoom-control.zoom-out, .chakra-ui-light .zoom-controls-container .zoom-control.zoom-centre {
fill: get("light.controlsFillColor");
stroke: get("light.controlsFillColor");
}
.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 .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");
}
.chakra-ui-light .knowledge-graph-container .links .link {
stroke: get("light.kgEdgeStrokeColor");
}
.chakra-ui-light .knowledge-graph-container .links .link--highlighted {
stroke: get("light.kgEdgeHighlightColor");
}
.chakra-ui-light .knowledge-graph-container .links .link--hovered {
stroke-width: 3px;
stroke: get("light.kgEdgeHoveredStrokeColor");
}
.chakra-ui-light .knowledge-graph-container .nodes .node {
fill: get("light.kgNodeBgColor");
stroke: get("light.kgNodeBgColor");
/** INFO - country_array is a key name which is coming from data
and hence the class name is not following BEM convention **/
}
.chakra-ui-light .knowledge-graph-container .nodes .node--root {
fill: get("light.kgRootNodeBgColor");
stroke: get("light.kgNodeHighlightColor");
}
.chakra-ui-light .knowledge-graph-container .nodes .node--highlighted {
fill: get("light.kgRootNodeBgColor");
stroke: get("light.kgNodeHighlightColor");
filter: drop-shadow(0px 0px 4px get("light.kgNodeHoveredDropShadowColor"));
}
.chakra-ui-light .knowledge-graph-container .nodes .node--adjacent-highlighted {
fill: get("light.kgNodeBgColor");
stroke: get("light.kgNodeHighlightColor");
}
.chakra-ui-light .knowledge-graph-container .nodes .node--highlighted-country_array {
fill: get("light.kgNodeBgHighlightCountryColor");
}
.chakra-ui-light .knowledge-graph-container .nodes .node--hovered {
stroke-width: 0.188rem;
stroke: get("light.kgNodeHoveredStrokeColor");
filter: drop-shadow(0px 0px 4px get("light.kgNodeHoveredDropShadowColor"));
fill: get("light.kgNodeHoveredBgColor");
}
.chakra-ui-light .knowledge-graph-container .nodes .node--root-hovered {
stroke-width: 0.188rem;
stroke: get("light.kgNodeHoveredStrokeColor");
filter: drop-shadow(0px 0px 4px get("light.kgNodeHoveredDropShadowColor"));
fill: get("light.kgRootNodeBgColor");
stroke: get("light.kgNodeHighlightColor");
}
.chakra-ui-light .knowledge-graph-container .legend-container {
background-color: get("light.controlsBackgroundColor");
border: 1px solid get("light.zoomControlBorderColor");
}
.chakra-ui-light .tooltip-container {
background-color: get("light.tooltipBgColor");
border-color: get("light.tooltipBorderColor");
}
.chakra-ui-light .tooltip-container .tooltip-header {
color: get("light.tooltipTextColor");
}
.chakra-ui-light .tooltip-container .tooltip-footer button {
color: get("light.tooltipFooterBtnColor");
}
.chart__rectangle--highlighted {
opacity: 0.75;
}
.column-chart {
position: relative;
padding-bottom: 20px;
overflow-y: auto;
}
.column-chart .legend-container {
padding: 0;
margin: 0;
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 {
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;
}
.knowledge-graph-container .nodes .node {
stroke-width: 0;
/** INFO - country_array is a key name which is coming from data
and hence the class name is not following BEM convention **/
}
.knowledge-graph-container .nodes .node--highlighted, .knowledge-graph-container .nodes .node--adjacent-highlighted, .knowledge-graph-container .nodes .node--root {
stroke-width: 3px;
}
.knowledge-graph-container .nodes .node--highlighted-country_array {
fill: #7681FC;
}
.knowledge-graph-container .legend-container {
flex-direction: column;
justify-content: flex-end;
width: 20rem;
border-radius: 0.5rem;
padding: 0.75rem;
gap: 0.5rem;
position: relative;
bottom: 9.25rem;
margin-left: auto;
margin-right: -0.75rem;
box-shadow: 0px 4px 16px 0px rgba(20, 20, 20, 0.08);
}
.knowledge-graph-container .legend-container .legend-header--uppercase {
text-transform: uppercase;
color: #A3A3A2;
}
.knowledge-graph-container .legend-container .legend-body ul {
list-style: none;
}
.knowledge-graph-container .legend-container .legend-body ul .legend-item {
display: flex;
align-items: center;
}
.knowledge-graph-container .legend-container .legend-body ul .legend-item .swatch {
width: 1rem;
margin-right: 0.75rem;
display: inline-block;
border-width: 1px;
flex-shrink: 0;
}
.tooltip-container {
box-shadow: 0px 4px 24px 0px rgba(20, 20, 20, 0.8);
background-color: white;
border: 1px solid black;
border-radius: 0.25rem;
padding: 0.5rem;
width: 15rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
position: absolute;
}
.tooltip-container .tooltip-header {
gap: 2px;
display: flex;
flex-direction: column;
color: #272727;
}
.tooltip-container .tooltip-header__title {
font-weight: 600;
font-size: 14px;
line-height: 1.25rem;
}
.tooltip-container .tooltip-header__subtitle {
font-weight: 400;
font-size: 12px;
line-height: 1rem;
}
.tooltip-container .tooltip-footer button {
display: flex;
align-items: center;
padding: 2px 0;
width: 5.5rem;
height: 1.25rem;
font-weight: 600;
font-size: 12px;
line-height: 1rem;
color: #BF4815;
pointer-events: auto;
}
.semi-transparent {
opacity: 0.1;
}
/*# sourceMappingURL=styles.css.map */