🎨 Sur /regle toutes les sections sont empilées verticalement

pull/97/head
mama 2017-10-13 16:59:56 +02:00
parent b6a76572bc
commit ec9fd6fd62
5 changed files with 8 additions and 18 deletions

View File

@ -3,11 +3,6 @@
Règles CSS d'affichage des algorithmes
*/
#rule-rules {
display: inline-flex;
justify-content: start;
min-height: 5em;
}
#rule-rules .situationValue {
display: none;
@ -21,11 +16,10 @@
}
#algorithm {
margin-right: 10em;
}
#rule-rules section {
margin: 1em 0 1em 3em;
margin: 1em 0 1em 0;
font-weight: 500;
color: #444
}
@ -209,9 +203,6 @@
#rule-calc {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
#rule-content {
margin-left: 2em;
}

View File

@ -1,5 +1,4 @@
#examples {
min-width: 30%;
}
#examples h2.subtitled {

View File

@ -26,7 +26,7 @@ export default class References extends React.Component {
<li id="complementary" key="compl">
<span className="meta" />
<a
href="#"
href="#/"
onClick={() => this.setState({ showComplementary: true })}
>
sources complémentaires

View File

@ -4,9 +4,9 @@
padding-bottom: 10%;
}
@media screen and (min-width:800px) {
@media screen and (min-width:860px) {
#rule {
width: 800px;
width: 860px;
margin: 0 auto;
}
}

View File

@ -79,7 +79,7 @@ export default class Rule extends Component {
</section>
<div
id="ruleValue"
style={{ visibility: situationExists ? "visible" : "hidden" }}
style={{ display: situationExists ? "block" : "none" }}
>
<h2>Résultat</h2>
<p>
@ -91,7 +91,7 @@ export default class Rule extends Component {
</p>
</div>
<section id="rule-calc">
<section id="rule-content">
<Algorithm
traversedRule={situationOrExampleRule}
showValues={situationExists}