Template:Main Page/Sandbox/featured box/styles.css
Template page
More actions
/* 2x2 grid for featured boxes (wrapper on Main_Page) */
.resonite-featured-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1em;
margin: 1.5em 0 2em 0;
}
@media (max-width: 600px) {
.resonite-featured-grid {
grid-template-columns: 1fr;
}
}
/* Single featured box */
.resonite-featured-box {
background: #161b22;
border-radius: 8px;
padding: 1.25em;
border-left: 4px solid #30363d;
}
.resonite-featured-box__icon {
width: 2.5em;
height: 2.5em;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.75em;
font-size: 1.25rem;
color: #fff;
line-height: 1;
}
.resonite-featured-box__title {
font-size: 1.1rem;
font-weight: bold;
color: #fff;
margin: 0 0 0.5em 0;
}
.resonite-featured-box__content {
font-size: 0.9rem;
color: #c9d1d9;
line-height: 1.5;
}
.resonite-featured-box__content ul {
margin: 0.5em 0 0 0;
padding-left: 1.25em;
}
.resonite-featured-box__content a {
color: #58a6ff;
}
/* Color variants */
.resonite-featured-box--green {
border-left-color: #3fb950;
}
.resonite-featured-box--green .resonite-featured-box__icon {
background: #3fb950;
}
.resonite-featured-box--orange {
border-left-color: #f0883e;
}
.resonite-featured-box--orange .resonite-featured-box__icon {
background: #f0883e;
}
.resonite-featured-box--teal {
border-left-color: #39c5cf;
}
.resonite-featured-box--teal .resonite-featured-box__icon {
background: #39c5cf;
}
.resonite-featured-box--yellow {
border-left-color: #d4a72c;
}
.resonite-featured-box--yellow .resonite-featured-box__icon {
background: #d4a72c;
}