🎨 Alignement des valeurs des expressions dans /doc

pull/603/head
Mael 2019-07-22 11:57:27 +02:00
parent 60a8558daf
commit adf556c36f
4 changed files with 7 additions and 12 deletions

View File

@ -23,24 +23,22 @@
display: inline-block;
}
.node.inlineExpression:not(.comparison):not(.negation) {
.node.inlineExpression:not(.comparison) {
padding-left: 0;
display: flex;
align-items: baseline;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
.nodeContent {
margin-right: 0.3em;
}
#rule-rules
.inlineExpression:not(.comparison):not(.negation)
> .situationValue {
#rule-rules .inlineExpression:not(.comparison) > .situationValue {
margin-left: 0.3em;
margin-bottom: 0.6em;
margin-top: 0.3em;
align-items: flex-end;
flex: 1;
text-align: right;
}
@ -210,8 +208,7 @@
.mecanism.cond *:not(.nodeContent) > .variable .name,
.mecanism.variations *:not(.nodeContent) > .variable .name,
.inlineExpression.comparison,
.inlineExpression.negation {
.inlineExpression.comparison {
display: flex;
align-items: baseline;
}
@ -223,8 +220,7 @@
> .variable
.name
.situationValue,
.inlineExpression.comparison > .situationValue,
.inlineExpression.negation > .situationValue {
.inlineExpression.comparison > .situationValue {
order: -1;
}

View File

@ -46,7 +46,7 @@ let Comp = withLanguage(function Variations({
}}>
{!satisfied && showValues && (
<>
non applicable{' '}
<em>non applicable </em>
{expandedVariation !== i ? (
<button
className="ui__ link-button"

View File

@ -255,7 +255,7 @@ export let mecanismNumericalSwitch = (recurse, k, v) => {
// la conséquence peut être un 'string' ou un autre aiguillage numérique
let parseCondition = ([condition, consequence]) => {
let conditionNode = recurse(condition), // can be a 'comparison', a 'variable', TODO a 'negation'
let conditionNode = recurse(condition), // can be a 'comparison', a 'variable'
consequenceNode = mecanismNumericalSwitch(recurse, condition, consequence)
let evaluate = (cache, situationGate, parsedRules, node) => {

View File

@ -28,7 +28,6 @@ radio_Non: No
radio_Aucun: None
oui: yes
non: no
inlineExpressionNegation: Not
déplier: show more
replier: show less
Salaire brut: Gross salary