82 lines
1.7 KiB
CSS
82 lines
1.7 KiB
CSS
.simple-grid {
|
|
display: grid;
|
|
gap: 2rem;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
margin-right: 5rem;
|
|
padding-bottom: 4rem;
|
|
}
|
|
|
|
.simple-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
background: white;
|
|
font-size: 1rem;
|
|
color: darkslategray;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 10px;
|
|
transition: all 500ms;
|
|
overflow: hidden;
|
|
padding: .5rem;
|
|
margin: 2rem;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
box-shadow: rgba(2, 8, 20, 0.3) 0.4rem 0.8rem 1.6rem, rgba(2, 8, 20, 0.1) 0rem 0.4rem 3px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.simple-card:hover {
|
|
box-shadow: rgba(2, 8, 20, 0.25) 0.5rem 2.5rem 5rem, rgba(2, 8, 20, 0.35) 0rem 1.5rem 1.65rem;
|
|
}
|
|
|
|
.simple-card:hover .header {
|
|
color: steelblue;
|
|
}
|
|
|
|
.simple-card .header {
|
|
text-align: left;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin: 2rem;
|
|
margin-top: 3rem;
|
|
position: relative;
|
|
height: calc(5rem + 1.2em);
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.simple-card .header-with-image {
|
|
text-align: left;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin: 1rem 2rem;
|
|
position: relative;
|
|
height: calc(5rem + 1.2em);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.simple-card a {
|
|
display: block;
|
|
height: 100%;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
position: relative;
|
|
}
|
|
|
|
.simple-card a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.simple-card p {
|
|
color: darkslategrey;
|
|
font-size: 1rem;
|
|
margin: 1rem 2rem;
|
|
text-align: left;
|
|
}
|