I can't make the checkbox div take up 100% height as seen with the code/fiddle below. As you can see from the second child, the height is at 100% (hover doesn't take up 100% of the height), but I'd also like the first child to be at 100% height. How do I achieve this?
jsfiddle: https://jsfiddle.net/s3hdx14u/
Code for future reference (not usable due to scss)
ul {
&.content {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
align-items: center;
display: flex;
flex-direction: row;
overflow: auto;
& + li {
border-top: 5px solid black;
}
div.checkbox {
height: 100%;
flex: 1;
align-items: stretch;
flex-shrink: 0;
&:hover {
background-color: green;
}
input[type=checkbox] {
}
}
div.container {
padding: 10px;
width: 100%;
&:hover {
background-color: lighten(lightblue, 10%);
cursor: pointer;
}
}
header {
font-size: 125%;
font-weight: bold;
.small {
font-size: 80%;
font-weight: normal;
}
}
}
}
<ul class="content">
<li
v-for="(result, key) in results"
:key="key"
>
<div class="checkbox">
<input
type="checkbox"
/>
</div>
<div>
content<br>
content<br>
content<br>
content<br>
</div>
</li>
</ul>