Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main Page/Sandbox/featured box/styles.css

Template page
Revision as of 18:43, 3 February 2026 by Xeravax (talk | contribs) (Created page with "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_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* 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;
}