106 lines
2 KiB
SCSS
106 lines
2 KiB
SCSS
|
.card-grid {
|
||
|
display: grid;
|
||
|
grid-column-gap: 15px;
|
||
|
grid-row-gap: 15px;
|
||
|
grid-auto-flow: dense;
|
||
|
}
|
||
|
|
||
|
.card-grid-3 {
|
||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||
|
}
|
||
|
.card-grid-4 {
|
||
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||
|
}
|
||
|
.discord-banner {
|
||
|
grid-column: 1 / -1;
|
||
|
border: 1px solid #2e2077;
|
||
|
background-color: #545eec;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
font-size: 16px;
|
||
|
color: white;
|
||
|
font-weight: 500;
|
||
|
padding: 1.25rem;
|
||
|
margin: 1.5rem 0 1rem;
|
||
|
background: #545eec;
|
||
|
box-shadow: 6px 6px 20px #4750c966, -6px -6px 20px #616cff66;
|
||
|
}
|
||
|
.discord-banner > * {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
@media (max-width: 700px) {
|
||
|
.discord-banner {
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
.discord-banner > div {
|
||
|
margin-top: 1rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.card {
|
||
|
display: flex;
|
||
|
grid-column: span 1;
|
||
|
overflow: hidden;
|
||
|
font-family: Open Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI,
|
||
|
Roboto, sans-serif;
|
||
|
color: #1a202c;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
box-sizing: border-box;
|
||
|
border: 1px solid #e2e8f0;
|
||
|
}
|
||
|
.card:hover {
|
||
|
border-color: #2a85ca;
|
||
|
box-shadow: 0 2px 2px 0 rgba(46, 94, 130, 0.4);
|
||
|
}
|
||
|
.card:hover .card-image {
|
||
|
opacity: 0.9;
|
||
|
}
|
||
|
|
||
|
.card-image {
|
||
|
width: 100%;
|
||
|
object-fit: cover;
|
||
|
opacity: 0.8;
|
||
|
}
|
||
|
|
||
|
|
||
|
.card-image-small {
|
||
|
flex-grow: 1;
|
||
|
height: 120px;
|
||
|
}
|
||
|
|
||
|
.card-image-large {
|
||
|
height: 200px;
|
||
|
}
|
||
|
.card-text {
|
||
|
padding: 1rem;
|
||
|
}
|
||
|
.card-title {
|
||
|
margin: 0 0 0.25rem 0;
|
||
|
font-weight: 600;
|
||
|
font-size: 20px;
|
||
|
font-family: 'Overpass';
|
||
|
line-height: 1.1;
|
||
|
}
|
||
|
.content-title {
|
||
|
font-family: 'Overpass';
|
||
|
}
|
||
|
|
||
|
.card:nth-child(4n + 0) .card-image {
|
||
|
background: #f2709c;
|
||
|
background: linear-gradient(30deg, #ff9472, #f2709c);
|
||
|
}
|
||
|
.card:nth-child(4n + 1) .card-image {
|
||
|
background: #fbd3e9;
|
||
|
background: linear-gradient(30deg, #bb377d, #fbd3e9);
|
||
|
}
|
||
|
.card:nth-child(4n + 2) .card-image {
|
||
|
background: #b993d6;
|
||
|
background: linear-gradient(30deg, #8ca6db, #b993d6);
|
||
|
}
|
||
|
|
||
|
.card:nth-child(4n + 3) .card-image {
|
||
|
background: #00d2ff;
|
||
|
background: linear-gradient(30deg, #3a7bd5, #00d2ff);
|
||
|
}
|