Template:Main Page/Sandbox/featured box/styles.css
Template page
More actions
/* Two columns: left (Did you know + Featured tutorial), right (Component + Node of the day).
Boxes with space above them move up within their column. */
.resonite-featured-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1em;
margin: 1.5em 0 2em 0;
}
.resonite-featured-grid__col {
display: flex;
flex-direction: column;
gap: 1em;
min-width: 0;
}
.resonite-featured-grid__col > .resonite-featured-box {
flex: 1;
}
@media (max-width: 600px) {
.resonite-featured-grid {
grid-template-columns: 1fr;
}
}
/* Single featured box: full color fill + brighter border (match cards), size to content */
.resonite-featured-box {
background: #161b22;
border-radius: 8px;
padding: 1.25em;
border: 2px solid #30363d;
height: fit-content;
}
.resonite-featured-box__header {
display: flex;
align-items: center;
gap: 0.5em;
margin-bottom: 0.5em;
}
.resonite-featured-box__icon {
font-size: 1.25rem;
line-height: 1;
flex-shrink: 0;
}
.resonite-featured-box__icon img {
max-height: 1.15em;
width: auto;
vertical-align: middle;
}
.resonite-featured-box__title {
font-size: 1.1rem;
font-weight: bold;
color: #fff;
margin: 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;
list-style-type: disc;
list-style-position: outside;
}
.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--orange {
background: #3b2e25;
border-color: #664c38;
}
.resonite-featured-box--teal {
background: #1a2d2f;
border-color: #39c5cf;
}
.resonite-featured-box--yellow {
background: #3d3520;
border-color: #d4a72c;
}