Jump to content

User:Krishj4/common.css: Difference between revisions

From RPI Wiki
Created page with "@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap'); :root { --rpi-red: #d6001c; --rpi-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans- --rpi-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; } Geist across the Vector 2022 surface: .skin-vector-2022, .skin-vector-2022 .mw-body, .skin-vector-2022 .mw-body-cont..."
 
No edit summary
Tag: Manual revert
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Source+Serif+4:wght@500;600;700&display=swap');


:root {
:root {
      --rpi-red: #d6001c;
--rpi-red: #d6001c;
      --rpi-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-
--rpi-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
      --rpi-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
--rpi-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
--rpi-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
}


/* Geist across the Vector 2022 surface */
.skin-vector-2022,
.skin-vector-2022,
.skin-vector-2022 .mw-body,
.skin-vector-2022 .mw-body,
Line 14: Line 14:
.skin-vector-2022 .vector-header-container,
.skin-vector-2022 .vector-header-container,
.skin-vector-2022 .mw-footer {
.skin-vector-2022 .mw-footer {
      font-family: var(--rpi-font);
font-family: var(--rpi-font);
}
}


/* Override Vector's serif heading
.skin-vector-2022 .mw-body h1,
.skin-vector-2022 .mw-body h1,
.skin-vector-2022 .mw-body h2,
.skin-vector-2022 .mw-body h2,
Line 25: Line 24:
.skin-vector-2022 .mw-body h6,
.skin-vector-2022 .mw-body h6,
.skin-vector-2022 .mw-first-heading {
.skin-vector-2022 .mw-first-heading {
      font-family: var(--rpi-font)
font-family: var(--rpi-serif);
}
}


/* Geist Mono: code + infobox detail values */
.skin-vector-2022 code,
.skin-vector-2022 code,
.skin-vector-2022 pre,
.skin-vector-2022 pre,
Line 36: Line 34:
.skin-vector-2022 .mw-code,
.skin-vector-2022 .mw-code,
.skin-vector-2022 .infobox td {
.skin-vector-2022 .infobox td {
      font-family: var(--rpi-mono);
font-family: var(--rpi-font);
}
}


/* Red wordmark */
.skin-vector-2022 .mw-logo-wordmark {
.skin-vector-2022 .mw-logo-wordmark {
      color: var(--rpi-red);
color: var(--rpi-red);
}
}


/* Thin red rule under page title + section headings */
/* Full-width grey rule under headings, with a red segment the width of the text */
.skin-vector-2022 .mw-body h1.firs
.skin-vector-2022 .mw-body .mw-first-heading,
.skin-vector-2022 .mw-body .mw-first-heading,
.skin-vector-2022 .mw-body h2 {
.skin-vector-2022 .mw-heading.mw-heading2 {
      border-bottom: 1px solid var(--rpi-red);
position: relative;
      padding-bottom: 0.25em;
border-bottom: 2px solid #c8ccd1;
padding-bottom: 0.25em;
}
 
/* Keep the heading text and its edit links bottom-aligned so the bar lands true */
.skin-vector-2022 .mw-heading.mw-heading2 {
align-items: flex-end;
}
 
/* Anchor the red bar to each text element so it spans only the text width */
.skin-vector-2022 .mw-body .mw-first-heading .mw-page-title-main,
.skin-vector-2022 .mw-heading.mw-heading2 h2 {
position: relative;
}
 
.skin-vector-2022 .mw-body .mw-first-heading .mw-page-title-main::after,
.skin-vector-2022 .mw-heading.mw-heading2 h2::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -0.355em;            /* drop down onto the grey rule */
height: 2px;
background-color: var(--rpi-red);
}
}


/* Infobox accent */
.skin-vector-2022 .infobox {
.skin-vector-2022 .infobox {
      border-top: 3px solid var(--rpi-red);
border-top: 3px solid var(--rpi-red);
}
}
.skin-vector-2022 .infobox-title,
.skin-vector-2022 .infobox-title,
.skin-vector-2022 .infobox > tbodyan] {
.skin-vector-2022 .infobox > tbody > tr:first-child > th[colspan] {
      color: var(--rpi-red);
color: var(--rpi-red);
}
}

Latest revision as of 16:18, 30 June 2026

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Source+Serif+4:wght@500;600;700&display=swap');

:root {
	--rpi-red: #d6001c;
	--rpi-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--rpi-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--rpi-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.skin-vector-2022,
.skin-vector-2022 .mw-body,
.skin-vector-2022 .mw-body-content,
.skin-vector-2022 .vector-menu,
.skin-vector-2022 .vector-header-container,
.skin-vector-2022 .mw-footer {
	font-family: var(--rpi-font);
}

.skin-vector-2022 .mw-body h1,
.skin-vector-2022 .mw-body h2,
.skin-vector-2022 .mw-body h3,
.skin-vector-2022 .mw-body h4,
.skin-vector-2022 .mw-body h5,
.skin-vector-2022 .mw-body h6,
.skin-vector-2022 .mw-first-heading {
	font-family: var(--rpi-serif);
}

.skin-vector-2022 code,
.skin-vector-2022 pre,
.skin-vector-2022 kbd,
.skin-vector-2022 samp,
.skin-vector-2022 tt,
.skin-vector-2022 .mw-code,
.skin-vector-2022 .infobox td {
	font-family: var(--rpi-font);
}

.skin-vector-2022 .mw-logo-wordmark {
	color: var(--rpi-red);
}

/* Full-width grey rule under headings, with a red segment the width of the text */
.skin-vector-2022 .mw-body .mw-first-heading,
.skin-vector-2022 .mw-heading.mw-heading2 {
	position: relative;
	border-bottom: 2px solid #c8ccd1;
	padding-bottom: 0.25em;
}

/* Keep the heading text and its edit links bottom-aligned so the bar lands true */
.skin-vector-2022 .mw-heading.mw-heading2 {
	align-items: flex-end;
}

/* Anchor the red bar to each text element so it spans only the text width */
.skin-vector-2022 .mw-body .mw-first-heading .mw-page-title-main,
.skin-vector-2022 .mw-heading.mw-heading2 h2 {
	position: relative;
}

.skin-vector-2022 .mw-body .mw-first-heading .mw-page-title-main::after,
.skin-vector-2022 .mw-heading.mw-heading2 h2::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.355em;            /* drop down onto the grey rule */
	height: 2px;
	background-color: var(--rpi-red);
}

.skin-vector-2022 .infobox {
	border-top: 3px solid var(--rpi-red);
}

.skin-vector-2022 .infobox-title,
.skin-vector-2022 .infobox > tbody > tr:first-child > th[colspan] {
	color: var(--rpi-red);
}