Template:Main Page/Sandbox/featured box/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
gap: 1em; | gap: 1em; | ||
min-width: 0; | min-width: 0; | ||
} | |||
.resonite-featured-grid__col > .resonite-featured-box { | |||
flex: 1; | |||
} | } | ||
| Line 30: | Line 34: | ||
} | } | ||
.resonite-featured- | .resonite-featured-box__header { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 0.5em; | |||
margin-bottom: 0. | margin-bottom: 0.5em; | ||
} | |||
.resonite-featured-box__icon { | |||
font-size: 1.25rem; | font-size: 1.25rem; | ||
line-height: 1; | line-height: 1; | ||
flex-shrink: 0; | |||
} | } | ||
| Line 47: | Line 51: | ||
font-weight: bold; | font-weight: bold; | ||
color: #fff; | color: #fff; | ||
margin: | margin: 0; | ||
} | } | ||
| Line 71: | Line 75: | ||
background: #1a2e1a; | background: #1a2e1a; | ||
border-color: #3fb950; | border-color: #3fb950; | ||
} | } | ||
| Line 79: | Line 80: | ||
background: #3b2e25; | background: #3b2e25; | ||
border-color: #664c38; | border-color: #664c38; | ||
} | } | ||
| Line 87: | Line 85: | ||
background: #1a2d2f; | background: #1a2d2f; | ||
border-color: #39c5cf; | border-color: #39c5cf; | ||
} | } | ||
| Line 95: | Line 90: | ||
background: #3d3520; | background: #3d3520; | ||
border-color: #d4a72c; | border-color: #d4a72c; | ||
} | } | ||
Revision as of 20:23, 3 February 2026
/* 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__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;
}