Template:Main Page/Sandbox/header/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
font-weight: 400; | font-weight: 400; | ||
line-height: 1.3; | line-height: 1.3; | ||
color: #d7d9db; | color: var(--mp-header-text, #d7d9db); | ||
margin: 0; | margin: 0; | ||
} | } | ||
| Line 36: | Line 36: | ||
.mp-header-stats-sep { | .mp-header-stats-sep { | ||
height: 0; | height: 0; | ||
border-top: 2px solid var(--color-surface-2, #8b949e); | border-top: 2px solid var(--mp-header-sep, var(--color-surface-2, #8b949e)); | ||
flex: 1; | flex: 1; | ||
} | } | ||
| Line 49: | Line 49: | ||
.mp-header-stats li { | .mp-header-stats li { | ||
display: inline; | display: inline; | ||
color: #8b949e; | color: var(--mp-header-muted, #8b949e); | ||
} | } | ||
| Line 58: | Line 58: | ||
.mp-header-stats a { | .mp-header-stats a { | ||
color: #58a6ff; | color: var(--mp-header-link, #58a6ff); | ||
} | } | ||
| Line 76: | Line 76: | ||
.mp-header-intro { | .mp-header-intro { | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
color: #8b949e; | color: var(--mp-header-muted, #8b949e); | ||
margin: 0; | margin: 0; | ||
} | } | ||
.mp-header-intro a { | .mp-header-intro a { | ||
color: #58a6ff; | color: var(--mp-header-link, #58a6ff); | ||
} | } | ||
| Line 91: | Line 91: | ||
.mp-top img { | .mp-top img { | ||
vertical-align: middle; | vertical-align: middle; | ||
} | |||
/* Light mode: readable text and links on light background */ | |||
.skin-theme-clientpref-day .mp-header-subtitle, | |||
.skin-theme-clientpref-day .mp-header-intro { | |||
--mp-header-text: #24292f; | |||
--mp-header-muted: #57606a; | |||
--mp-header-link: #0969da; | |||
} | |||
.skin-theme-clientpref-day .mp-header-stats-sep { | |||
--mp-header-sep: #d0d7de; | |||
} | |||
.skin-theme-clientpref-day .mp-header-stats li { | |||
--mp-header-muted: #57606a; | |||
} | |||
.skin-theme-clientpref-day .mp-header-stats a, | |||
.skin-theme-clientpref-day .mp-header-intro a { | |||
--mp-header-link: #0969da; | |||
} | } | ||
Revision as of 22:46, 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: 0;
}
.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: var(--mp-header-text, #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(--mp-header-sep, 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: var(--mp-header-muted, #8b949e);
}
.mp-header-stats li:not(:last-child)::after {
content: " · ";
font-weight: bold;
}
.mp-header-stats a {
color: var(--mp-header-link, #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: var(--mp-header-muted, #8b949e);
margin: 0;
}
.mp-header-intro a {
color: var(--mp-header-link, #58a6ff);
}
/* Logo: sized in template (x96px); ensure it doesn't overflow */
.mp-top > a {
flex-shrink: 0;
}
.mp-top img {
vertical-align: middle;
}
/* Light mode: readable text and links on light background */
.skin-theme-clientpref-day .mp-header-subtitle,
.skin-theme-clientpref-day .mp-header-intro {
--mp-header-text: #24292f;
--mp-header-muted: #57606a;
--mp-header-link: #0969da;
}
.skin-theme-clientpref-day .mp-header-stats-sep {
--mp-header-sep: #d0d7de;
}
.skin-theme-clientpref-day .mp-header-stats li {
--mp-header-muted: #57606a;
}
.skin-theme-clientpref-day .mp-header-stats a,
.skin-theme-clientpref-day .mp-header-intro a {
--mp-header-link: #0969da;
}