Template:Main Page/Sandbox/featured box/styles.css
Template page
More actions
/* 2 flex columns for featured boxes (wrapper on Main_Page) */
.resonite-featured-grid {
display: flex;
flex-wrap: wrap;
gap: 1em;
margin: 1.5em 0 2em 0;
}
.resonite-featured-grid > * {
flex: 1 1 calc(50% - 0.5em);
}
@media (max-width: 600px) {
.resonite-featured-grid > * {
flex: 1 1 100%;
}
}
/* Single featured box: full color fill + brighter border (match cards) */
.resonite-featured-box {
background: #161b22;
border-radius: 8px;
padding: 1.25em;
border: 2px 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: full fill + brighter border */
.resonite-featured-box--green {
background: #1a2e1a;
border-color: #3fb950;
}
.resonite-featured-box--green .resonite-featured-box__icon {
background: #3fb950;
}
.resonite-featured-box--orange {
background: #3b2e25;
border-color: #664c38;
}
.resonite-featured-box--orange .resonite-featured-box__icon {
background: #f0883e;
}
.resonite-featured-box--teal {
background: #1a2d2f;
border-color: #39c5cf;
}
.resonite-featured-box--teal .resonite-featured-box__icon {
background: #39c5cf;
}
.resonite-featured-box--yellow {
background: #3d3520;
border-color: #d4a72c;
}
.resonite-featured-box--yellow .resonite-featured-box__icon {
background: #d4a72c;
}