Align Accordion desciption with filler div

This commit is contained in:
Aarni Halinen
2019-03-11 23:52:18 +02:00
parent 36680c5574
commit 38f901c0f2
3 changed files with 14 additions and 4 deletions
+13 -1
View File
@@ -18,6 +18,17 @@
&.open {
margin-top: 0;
}
div {
min-width: 40px;
max-width: 40px;
margin: 0.6em;
}
p {
padding-left: 1em;
margin: auto;
}
}
button {
@@ -26,13 +37,14 @@
background-color: $white;
width: 100%;
margin: 0;
padding: 0;
border: 0;
outline: none;
}
h5 {
display: flex;
flex: 9;
flex: 1;
text-align: center;
padding-left: 1em;
color: $blue;
+1 -1
View File
@@ -12,7 +12,7 @@ export interface AccordionState {
const Description = ({text, visible}) => (
<div className={`accordion__desc ${visible ? "open" : ""}`}>
<p>{text}</p>
<div/><p>{text}</p>
</div>
);
@@ -2,8 +2,6 @@
.accordion-icon {
display: flex;
flex: 1;
flex-grow: 1;
background-color: $blue;
color: $white;
align-items: center;