🎨 Style des boutons de défilement (réponses et comprendre)

pull/138/head
mama 2017-12-05 17:17:57 +01:00
parent 768809aa52
commit b9f347d3fa
6 changed files with 19 additions and 16 deletions

View File

@ -20,9 +20,6 @@
}
#results button {
display: block;
margin: .5em auto 0;
transition: 1s opacity;
}
#results-actions {

View File

@ -63,7 +63,7 @@ export default class Results extends Component {
))}
</ul>
</div>
<button style={{opacity: done ? 1 : 0}}>Comprendre mes résultats</button>
<button className="scrollButton down" style={{opacity: done ? 1 : 0}}> Comprendre mes résultats</button>
</section>
</div>
)

View File

@ -1,3 +1,3 @@
.resultsGrid {
margin-top: 6em;
margin: 6em 0;
}

View File

@ -74,3 +74,17 @@
box-shadow: none;
opacity: 1;
}
.scrollButton {
display: block;
margin: .8em auto;
transition: 1s opacity;
color: #4A89DC;
border: none;
}
.scrollButton.up {
margin-top: 0;
}
.scrollButton.down {
margin-bottom: 0;
}

View File

@ -52,7 +52,7 @@ export default class Conversation extends Component {
</div>
)}
<Element name="myScrollToElement" id="myScrollToElement">
<button style={{opacity: foldedSteps.length != 0 ? 1 : 0}}> Modifier mes réponses</button>
<button className="scrollButton up" style={{opacity: foldedSteps.length != 0 ? 1 : 0}}> Modifier mes réponses</button>
<div id="currentQuestion">
{currentQuestion || <Satisfaction simu={this.props.simu} />}
</div>

View File

@ -2,20 +2,12 @@
#myScrollToElement {
height: 55%;
padding: 1em;
}
#myScrollToElement button {
display: block;
margin: 0 auto 1em;
transition: 1s opacity;
}
#myScrollToElement, #foldedSteps {
padding: 1em 1em;
}
#foldedSteps {
padding: 1em;
margin-bottom: 6em;
}