🎨 Changement de style des valeurs dans la /doc
L'idée est de les extraire visuellement du reste, et de ne plus utiliser les parenthèses qui ne sont pas faites pour convoyer ce senspull/603/head
parent
9772429e61
commit
74310bd06d
|
@ -23,7 +23,18 @@ export let NodeValuePointer = ({ data, unit }) => (
|
|||
<span
|
||||
className={classnames('situationValue', {
|
||||
boolean: typeof data == 'boolean'
|
||||
})}>
|
||||
})}
|
||||
css={`
|
||||
background: white;
|
||||
border-bottom: 0 !important;
|
||||
padding: 0 0.2rem;
|
||||
text-decoration: none !important;
|
||||
margin: 0 0.3rem;
|
||||
font-size: 80%;
|
||||
box-shadow: 2px 2px 4px 1px #d9d9d9, 0 0 0 1px #d9d9d9;
|
||||
line-height: 1.6em;
|
||||
border-radius: 0.2rem;
|
||||
`}>
|
||||
<Value nodeValue={data} unit={unit} />
|
||||
</span>
|
||||
)
|
||||
|
@ -114,11 +125,9 @@ export const Leaf = compose(
|
|||
}>
|
||||
<span className="name">
|
||||
{rule.title || capitalise0(name)} {filter}
|
||||
{!isNil(value) && (
|
||||
<NodeValuePointer data={value} unit={unit} />
|
||||
)}
|
||||
</span>
|
||||
</Link>
|
||||
{!isNil(value) && <NodeValuePointer data={value} unit={unit} />}
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue