2
0
Fork 0
inspin.io/assets/style/pages/projects/cards.css

72 lines
1.2 KiB
CSS

.projects .cards {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 4rem 2.75rem;
padding: 4rem 1rem;
margin: 0 auto;
.card {
img {
max-width: 100%;
}
h3 {
display: inline-block;
font-size: 1.75rem;
font-weight: 600;
margin: .5rem .25rem;
}
p {
font-size: 1.1rem;
line-height: 1.55rem;
margin: .25rem;
}
.primary,
.secondary {
display: inline-block;
color: var(--fs-color);
font-size: 1rem;
font-weight: 600;
padding: .35rem 1.15rem .50rem 1.15rem;
margin: 1rem .25rem;
}
.primary {
padding-right: 2.4rem;
border: .15rem solid var(--fs-color);
border-radius: .25rem;
span {
position: absolute;
margin: .3rem 0 0 .45rem;
}
&:hover { background: var(--btn-hover) }
}
.secondary:hover {
color: var(--f-color);
}
}
}
@media only screen and (--viewport-4) {
.projects .cards {
display: block;
padding: 4rem 2rem;
margin: 0;
.card {
margin: 0 0 2rem 0;
}
}
}
@media only screen and (--viewport-3) {
.projects .cards {
padding: 4rem 1.25rem;
}
}