UNPKG

react-hartan

Version:

A simple components library for React

51 lines (44 loc) 1.12 kB
/* Card CSS Module */ /* Styling for full card */ .cardSection { display: flex; flex-direction: column; align-items: center; overflow: hidden; border: .15rem solid rgb(194, 191, 191); border-radius: .5rem; width: 29rem; gap: 1.5rem; box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; } /* Styling for full card when hovered */ .cardSection:hover { box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; } /* Styling for the container containing image inside the card */ .cardSection figure { display: flex; justify-content: center; align-items: center; } /* Styling for the image inside the card */ .cardSection figure img { height: 20rem; } /* Styling for content container inside the card */ .content { padding: .5rem 2rem 2rem 2rem; display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 2rem; } /* Styling for the heading inside the content container */ .content h1 { font-size: 3rem; } /* Styling for the paragraph text inside the content container */ .content div { font-size: 1.35rem; }