Template:Main Page/Sandbox/featured box/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* 2x2 grid for featured boxes (wrapper on Main_Page) */ | ||
.resonite-featured-grid { | .resonite-featured-grid { | ||
display: | display: grid; | ||
grid-template-columns: repeat(2, 1fr); | |||
gap: 1em; | gap: 1em; | ||
margin: 1.5em 0 2em 0; | margin: 1.5em 0 2em 0; | ||
align-items: start; | |||
} | } | ||
.resonite-featured-grid > * { | .resonite-featured-grid > * { | ||
min-width: 0; /* allow shrinking in grid */ | |||
} | } | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.resonite-featured-grid | .resonite-featured-grid { | ||
grid-template-columns: 1fr; | |||
} | } | ||
} | } | ||
/* Single featured box: full color fill + brighter border (match cards) */ | /* Single featured box: full color fill + brighter border (match cards), size to content */ | ||
.resonite-featured-box { | .resonite-featured-box { | ||
background: #161b22; | background: #161b22; | ||
| Line 23: | Line 24: | ||
padding: 1.25em; | padding: 1.25em; | ||
border: 2px solid #30363d; | border: 2px solid #30363d; | ||
height: fit-content; | |||
} | } | ||
| Line 54: | Line 56: | ||
margin: 0.5em 0 0 0; | margin: 0.5em 0 0 0; | ||
padding-left: 1.25em; | padding-left: 1.25em; | ||
list-style-type: disc; | |||
list-style-position: outside; | |||
} | } | ||
Revision as of 20:13, 3 February 2026
/* 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;
align-items: start;
}
.resonite-featured-grid > * {
min-width: 0; /* allow shrinking in grid */
}
@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__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;
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--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;
}