diff --git a/src/explorer/pagerankTable/TableRow.js b/src/explorer/pagerankTable/TableRow.js index 2c87dda..1833825 100644 --- a/src/explorer/pagerankTable/TableRow.js +++ b/src/explorer/pagerankTable/TableRow.js @@ -1,6 +1,7 @@ // @flow import React, {type Node as ReactNode} from "react"; +import {StyleSheet, css} from "aphrodite/no-important"; type TableRowProps = {| // How many layers of nested scope we're in (changes the color) @@ -49,10 +50,20 @@ export class TableRow extends React.PureComponent< ? "" : (connectionProportion * 100).toFixed(2) + "%"; const backgroundColor = `hsla(150,100%,28%,${1 - 0.9 ** depth})`; + const makeGradient = (color) => + `linear-gradient(to top, ${color}, ${color})`; + const normalBackground = makeGradient(backgroundColor); + const highlightBackground = makeGradient("#D8E1E8"); + const backgroundImage = `${normalBackground}, ${highlightBackground}`; + return ( {showPadding && } - +