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/header/styles.css: Difference between revisions

Template page
Xeravax (talk | contribs)
No edit summary
Xeravax (talk | contribs)
No edit summary
Line 1: Line 1:
/* Main page header block */
.mp-top {
.resonite-main-header {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     /* row-reverse: when it wraps on smaller displays, the logo appears first */
     align-items: center;
     flex-flow: row-reverse wrap;
     justify-content: space-between;
     justify-content: center;
     gap: 1.5em;
     gap: 24px;
     margin-bottom: 2em;
     margin-bottom: 48px;
}
}


.resonite-main-header__text {
.mp-top .mp-header {
     flex: 1;
     flex: 1;
    flex-basis: 400px;
     min-width: 0;
     min-width: 0;
}
}


.resonite-main-header__title {
.mp-header-subtitle {
     font-size: 1.75rem;
     font-family: Poppins, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
     font-weight: bold;
     font-size: 24px;
     color: #fff;
     font-weight: 400;
    margin: 0 0 0.25em 0;
     line-height: 1.3;
     line-height: 1.3;
    color: #d7d9db;
    margin: 0;
}
.mp-header-subtitle b {
    font-weight: 700;
}
.mp-header-stats {
    display: flex;
    gap: 8px;
    align-items: center;
}
}


/* Bar: full-width gray divider below title */
/* Gray bars to the left and right of the stats */
.resonite-main-header__bar {
.mp-header-stats-sep {
    width: 100%;
     height: 0;
     height: 0.0625rem;
     border-top: 2px solid var(--color-surface-2, #8b949e);
     margin: 0.5em 0 0.75em 0;
     flex: 1;
     background: #8b949e;
}
}


.resonite-main-header__meta {
.mp-header-stats > ul {
     font-size: 0.9rem;
     text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
 
.mp-header-stats li {
    display: inline;
     color: #8b949e;
     color: #8b949e;
    margin: 0 0 0.5em 0;
    text-align: center;
}
}


.resonite-main-header__intro {
.mp-header-stats li:not(:last-child)::after {
    content: " · ";
    font-weight: bold;
}
 
.mp-header-stats a {
    color: #58a6ff;
}
 
/* Vertical spacing between header blocks */
.mp-header > * {
    margin: 12px 0;
}
 
.mp-header > :first-child {
    margin-top: 0;
}
 
.mp-header > :last-child {
    margin-bottom: 0;
}
 
.mp-header-intro {
     font-size: 0.95rem;
     font-size: 0.95rem;
     color: #8b949e;
     color: #8b949e;
Line 43: Line 80:
}
}


.resonite-main-header__intro a {
.mp-header-intro a {
     color: #58a6ff;
     color: #58a6ff;
}
}


/* Logo on the right: Resonite_Logo_Rainbow.png */
/* Logo: sized in template (x96px); ensure it doesn't overflow */
.resonite-main-header__logo {
.mp-top > a {
     flex-shrink: 0;
     flex-shrink: 0;
}
}


.resonite-main-header__logo .resonite-main-header__logo-img,
.mp-top img {
.resonite-main-header__logo img {
    height: 2.5rem;
    width: auto;
     vertical-align: middle;
     vertical-align: middle;
}
}

Revision as of 19:55, 3 February 2026

.mp-top {
    display: flex;
    /* row-reverse: when it wraps on smaller displays, the logo appears first */
    flex-flow: row-reverse wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.mp-top .mp-header {
    flex: 1;
    flex-basis: 400px;
    min-width: 0;
}

.mp-header-subtitle {
    font-family: Poppins, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #d7d9db;
    margin: 0;
}

.mp-header-subtitle b {
    font-weight: 700;
}

.mp-header-stats {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Gray bars to the left and right of the stats */
.mp-header-stats-sep {
    height: 0;
    border-top: 2px solid var(--color-surface-2, #8b949e);
    flex: 1;
}

.mp-header-stats > ul {
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-header-stats li {
    display: inline;
    color: #8b949e;
}

.mp-header-stats li:not(:last-child)::after {
    content: " · ";
    font-weight: bold;
}

.mp-header-stats a {
    color: #58a6ff;
}

/* Vertical spacing between header blocks */
.mp-header > * {
    margin: 12px 0;
}

.mp-header > :first-child {
    margin-top: 0;
}

.mp-header > :last-child {
    margin-bottom: 0;
}

.mp-header-intro {
    font-size: 0.95rem;
    color: #8b949e;
    margin: 0;
}

.mp-header-intro a {
    color: #58a6ff;
}

/* Logo: sized in template (x96px); ensure it doesn't overflow */
.mp-top > a {
    flex-shrink: 0;
}

.mp-top img {
    vertical-align: middle;
}