diff --git a/source/components/CDD.css b/source/components/CDD.css index bcf400160..109c2c734 100644 --- a/source/components/CDD.css +++ b/source/components/CDD.css @@ -8,7 +8,6 @@ #sim #introduction { margin-left: 1.2em; - margin-top: 2em; font-size: 110%; padding-top: 0; width: 60%; @@ -121,26 +120,27 @@ font-size: 300%; } -#results li:hover .explore { +#results li:hover .understand { display: inline; } -#results li .explore { +#results li .understand { display: none; } -#results .explore button { +#results .understand button { background: #4A89DC; color: white; font-weight: 600; border: none; + padding: .3em .8em; } -#results .explore i { +#results .understand i { display: inline-block; font-size: 190%; line-height: .2em; opacity: .8 } -#results .explore:hover i { +#results .understand:hover i { opacity: 1 } diff --git a/source/components/IntroCDD.js b/source/components/IntroCDD.js index 5056ca2a2..729ba6fc5 100644 --- a/source/components/IntroCDD.js +++ b/source/components/IntroCDD.js @@ -1,8 +1,10 @@ import React from 'react' import colours from './themeColours' +import PageType from './PageType' export default () =>
diff --git a/source/components/PageType.js b/source/components/PageType.js new file mode 100644 index 000000000..de988c7bf --- /dev/null +++ b/source/components/PageType.js @@ -0,0 +1,6 @@ +import React from 'react' + +export default ({type}) => + + {type} + diff --git a/source/components/Results.js b/source/components/Results.js index 5cc40f709..abe0c45de 100644 --- a/source/components/Results.js +++ b/source/components/Results.js @@ -25,9 +25,9 @@ export default class Results extends Component { :computedValue + '€' }
- + diff --git a/source/components/Rule.css b/source/components/Rule.css index 0471dd26a..e98896b26 100644 --- a/source/components/Rule.css +++ b/source/components/Rule.css @@ -21,6 +21,7 @@ } #rule h1 { + margin-bottom: 1%; color: #4B4B66; display: flex; align-items: center; @@ -45,7 +46,7 @@ } #meta-paragraph { - background: #4B4B661A; + background: rgba(51, 51, 80, 0.03); margin: 0 3em; padding: 1em; } diff --git a/source/components/Rule.js b/source/components/Rule.js index 3cc8cf00f..627abb862 100644 --- a/source/components/Rule.js +++ b/source/components/Rule.js @@ -3,7 +3,7 @@ import {findRuleByName} from '../engine/rules.js' import './Rule.css' import JSONTree from 'react-json-tree' import R from 'ramda' - +import PageType from './PageType' export default class Rule extends Component { render() { @@ -14,6 +14,7 @@ export default class Rule extends Component { return (