An experiment in cleaning up CSS by just avoiding dis-features and focusing on flexbox and CSS grids.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
fsckcss/public/code/Cards.css

38 lines
490 B

content {
display: flex;
flex: flex-shrink;
flex-grow: 1;
justify-content: center;
}
card {
display: flex;
flex-direction: column;
border: 1px solid #eee;
width: min-content;
}
card top img {
padding: 0;
margin: 0;
}
card middle {
padding-left: 0.5rem;
padding-right: 0.5rem;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
card middle h4 {
margin: 0;
}
card bottom {
flex-shrink: 0;
}
card bottom button {
padding: 0.2rem;
}