Jump to content

MediaWiki:Common.css: Difference between revisions

From Marspedia
Footer redesign: orange pillbox, logos, larger fonts
Add custom three-column community footer (CSS)
Line 313: Line 313:
@media ( max-width: 440px ) {
@media ( max-width: 440px ) {
.mp-fn-card { flex-basis: 100%; }
.mp-fn-card { flex-basis: 100%; }
}
/* =============================================
  MARSPEDIA CUSTOM FOOTER
  ============================================= */
/* Hide the native MW footer */
#footer {
  display: none !important;
}
/* Outer wrapper */
#mp-custom-footer {
  font-family: sans-serif;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
/* Rounded card */
#mp-custom-footer .mp-footer-card {
  background-color: #8c3a12;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px;
}
/* ---- CTA bar ---- */
#mp-custom-footer .mp-footer-cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 48px 28px;
}
#mp-custom-footer .mp-footer-cta-text h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #ffffff;
  margin: 0 0 4px 0;
  padding: 0;
  border: none;
}
#mp-custom-footer .mp-footer-cta-text p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.625;
  margin: 0;
}
#mp-custom-footer .mp-footer-cta-btn {
  flex-shrink: 0;
  margin-left: 32px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
#mp-custom-footer .mp-footer-cta-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
/* ---- Dividers ---- */
#mp-custom-footer .mp-footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}
/* ---- Three-column grid ---- */
#mp-custom-footer .mp-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 48px 32px;
}
#mp-custom-footer .mp-footer-col {
  box-sizing: border-box;
}
#mp-custom-footer .mp-footer-col + .mp-footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
#mp-custom-footer .mp-footer-col-left  { padding-right: 40px; }
#mp-custom-footer .mp-footer-col-mid  { padding: 0 40px; }
#mp-custom-footer .mp-footer-col-right { padding-left: 40px; }
/* Section labels (MARSPEDIA / SISTER WIKIS / PARTNERS & VOLUNTEERING) */
#mp-custom-footer .mp-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 4px 0;
}
/* Tagline beneath section label */
#mp-custom-footer .mp-col-tagline {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 20px 0;
}
/* Sub-headings (Lunarpedia, Spacepedia, The Mars Society, The Moon Society) */
#mp-custom-footer .mp-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2px 0;
}
/* Tagline beneath sub-heading */
#mp-custom-footer .mp-subhead-tagline {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 10px 0;
}
/* Sub-section spacing */
#mp-custom-footer .mp-subsection + .mp-subsection {
  margin-top: 24px;
}
/* Links */
#mp-custom-footer .mp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
#mp-custom-footer .mp-footer-links li {
  margin-bottom: 8px;
}
#mp-custom-footer .mp-footer-links li:last-child {
  margin-bottom: 0;
}
#mp-custom-footer .mp-footer-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: color 0.15s;
}
#mp-custom-footer .mp-footer-links a:hover {
  color: #ffffff !important;
  text-decoration: none;
}
/* ---- Bottom strip ---- */
#mp-custom-footer .mp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mp-custom-footer .mp-footer-bottom-timestamp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}
#mp-custom-footer .mp-footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#mp-custom-footer .mp-footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3) !important;
  text-decoration: none;
  transition: color 0.15s;
}
#mp-custom-footer .mp-footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
}
}

Revision as of 06:29, 2 July 2026

/* CSS placed here will be applied to all skins */


/* Begin James Gholston Test CSS */
/* @import "https://marspedia.org/MediaWiki:Exoproject.css&action=raw&ctype=text/css"; */
#wazootoo
  /* Testing $wgUseSiteCss */
  {
   color:      #FF007F;
   background: #00FFFF
   }
/* End James Gholston Test CSS */


@import url("https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif")

body {font-family: "Noto Sans", sans-serif}
/* changes the default font used for MediaWiki to Noto Sans (does not include headings or monospaced text) */

div#content h1, div#content h2 {font-family: "Noto Serif", serif}
/* changes the default font used for MediaWiki headings to Noto Serif */

/* Shrink images when on mobile (needs improvement) */
img {
  max-width: 100%;
  height:auto;
}

/* Main Page CSS from Mediawiki.org */

.mainpage_heybox {
  border:3px solid #9B301C; 
  background:#F97242; 
  padding:0.225em;
  text-align:center;
}

.mainpage_heybox a {
  color:#FFF;
}

.mainpage_topbox {
	background: #f9f9f9;
	margin: 1em 0;
}

.mainpage_layouttable {
	border: 0;
	margin: 0;
	width: 100%;
	border-spacing: 10px;
}
.mainpage_layouttable * > tr > td {
	vertical-align: top;
}

.mainpage_boxtitle {
    font-size: 105%;
    padding: 0.4em;
    background-color: #eeeeee;
    font-weight: bold;
    min-height: 2em;
    vertical-align: middle;
}

.mainpage_hubbox mainpage_featuredcell {
    padding-left:5px;
  img {
    padding-left:0;
  }
}


.mainpage_pagetitle {
    color: #cf7606;
    font-size: 200%;
    padding: 0.2em 0.4em;
}

.mainpage_sitelinks {
    padding: 0.2em;
    text-align: center;
    background-color: white;
    font-weight: bold;
}

.mainpage_hubtitle {
    text-align: center;
}

.mainpage_boxcontents {
    background: #ffffff;
    padding: 0.2em 0.4em;
}

.mainpage_boxcontents_small {
    font-size: 95%;
}

.mainpage_boxcontents_title {
    display: block;
    border-bottom: 1px solid #AAA;
    margin-bottom: 0.5em;
    text-align: center;
    font-weight: bold;
    font-size: larger;
}

.mainpage_middleblock .mainpage_hubbox {
    width: 50%;
}

.mainpage_hubbox, .mainpage_topbox {
    padding: 0;
    border: 1px solid #aaaaaa;
}

.mainpage_mwtitle {
    color: #9b301c;
}

.mainpage_languages {
	margin: 0.5em 10px;
}

.mainpage_row2,
.mainpage_row3 {
	/*display: -webkit-box;*/
	/*display: -moz-box;*/
	/*display: -ms-flexbox;*/
	/*display: -webkit-flex;*/
	display: flex;

	flex-flow: row wrap;
  
  	justify-content: space-between;
  	margin: 1em 0;
}
@media screen and (min-width: 45em) {
	.mainpage_row2 .mainpage_hubbox {
		box-sizing: border-box;
		float: left;
		width:50%;
	}
	.mainpage_row2 .mainpage_featuredcell {
		flex:1 0;
		margin-right:5px;
	}
	.mainpage_row2 .mainpage_helpcell {
		flex:1 0;
		margin-left:5px;
	}
}
@media screen and (max-width: 45em) {
	.mainpage_row2 .mainpage_hubbox {
		box-sizing: border-box;
		flex: 1 0 100%;
		width: 100%;
		margin: 0.5em 0;
	}
}
@media screen and (min-width: 45em) {
	.mainpage_row3 .mainpage_hubbox {
		box-sizing: border-box;
		float: left;
	}
	.mainpage_row3 .mainpage_newscell {
		flex: 2 0 20em;
		margin-right:5px;
	}
	.mainpage_row3 .mainpage_aboutcell {
		flex: 1 2 15em;
		margin-left:5px;
	}
}
@media screen and (max-width: 45em) {
	.mainpage_row3 .mainpage_hubbox {
		box-sizing: border-box;
		flex: 1 0 100%;
		width: 100%;
		margin: 0.5em 0;
	}
}
@media screen and (max-width: 55em) {
	.mainpage_row3 .mainpage_newscell {
		order: -1;
		flex: 1 0 100%;
		width: 100%;
		margin: 0 0 0.5em 0;
	}
}


/* ===== Marspedia footer network pillbox (v2, 2026-07-01) ===== */
/* Marspedia footer "network" pillbox — paste into MediaWiki:Common.css.
   Pairs with footer-network.php (SkinAddFooterLinks hook). Vector 2022. */

/* The injected item sits in the #footer-places <ul>; make it full-width, no bullet. */
#footer-places li:has(.mp-footer-network),
.mw-footer-places li:has(.mp-footer-network) {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	flex-basis: 100%;
}

/* The orange rounded pillbox — nearly full width within the footer container. */
.mp-footer-network {
	box-sizing: border-box;
	width: calc(100% - 1em);
	max-width: 1400px;
	margin: 1.5em auto 0.75em;
	padding: 1.6em 2.2em 1.8em;
	background: linear-gradient(180deg, #ea7b34 0%, #db6a24 100%);
	border-radius: 22px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
	color: #fff;
}

.mp-fn-heading {
	text-align: center;
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	margin-bottom: 1.1em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.mp-fn-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1.4em 2em;
	align-items: stretch;
	justify-content: space-around;
}

.mp-fn-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55em;
	flex: 1 1 190px;
	min-width: 160px;
}

/* White chip behind each logo so transparent/dark logos read on orange. */
.mp-fn-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 78px;
	padding: 0.55em 1em;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.mp-fn-logo img {
	height: 56px;
	width: auto;
	max-width: 190px;
	display: block;
}

.mp-fn-logo-text {
	font-weight: 700;
	color: #db6a24;
	font-size: 1.1em;
}

.mp-fn-name {
	font-weight: 700;
	font-size: 1.2em;
	line-height: 1.2;
}

.mp-fn-links {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	font-size: 1.02em;
}

/* Links: white, larger, readable. */
.mp-footer-network a {
	color: #fff;
	text-decoration: none;
}

.mp-footer-network .mp-fn-name a {
	font-size: 1em;
}

.mp-footer-network a:hover,
.mp-footer-network a:focus {
	text-decoration: underline;
}

.mp-footer-network .mp-fn-links a::before {
	content: "\203A\00a0"; /* › */
	font-weight: 700;
}

/* Stack on narrow screens. */
@media ( max-width: 720px ) {
	.mp-footer-network { padding: 1.2em 1.2em 1.4em; }
	.mp-fn-cards { gap: 1.2em; }
	.mp-fn-card { flex-basis: 45%; }
}
@media ( max-width: 440px ) {
	.mp-fn-card { flex-basis: 100%; }
}

/* =============================================
   MARSPEDIA CUSTOM FOOTER
   ============================================= */
/* Hide the native MW footer */
#footer {
  display: none !important;
}
/* Outer wrapper */
#mp-custom-footer {
  font-family: sans-serif;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
/* Rounded card */
#mp-custom-footer .mp-footer-card {
  background-color: #8c3a12;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px;
}
/* ---- CTA bar ---- */
#mp-custom-footer .mp-footer-cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 48px 28px;
}
#mp-custom-footer .mp-footer-cta-text h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #ffffff;
  margin: 0 0 4px 0;
  padding: 0;
  border: none;
}
#mp-custom-footer .mp-footer-cta-text p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.625;
  margin: 0;
}
#mp-custom-footer .mp-footer-cta-btn {
  flex-shrink: 0;
  margin-left: 32px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
#mp-custom-footer .mp-footer-cta-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
/* ---- Dividers ---- */
#mp-custom-footer .mp-footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}
/* ---- Three-column grid ---- */
#mp-custom-footer .mp-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 48px 32px;
}
#mp-custom-footer .mp-footer-col {
  box-sizing: border-box;
}
#mp-custom-footer .mp-footer-col + .mp-footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
#mp-custom-footer .mp-footer-col-left  { padding-right: 40px; }
#mp-custom-footer .mp-footer-col-mid   { padding: 0 40px; }
#mp-custom-footer .mp-footer-col-right { padding-left: 40px; }
/* Section labels (MARSPEDIA / SISTER WIKIS / PARTNERS & VOLUNTEERING) */
#mp-custom-footer .mp-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 4px 0;
}
/* Tagline beneath section label */
#mp-custom-footer .mp-col-tagline {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 20px 0;
}
/* Sub-headings (Lunarpedia, Spacepedia, The Mars Society, The Moon Society) */
#mp-custom-footer .mp-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2px 0;
}
/* Tagline beneath sub-heading */
#mp-custom-footer .mp-subhead-tagline {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 10px 0;
}
/* Sub-section spacing */
#mp-custom-footer .mp-subsection + .mp-subsection {
  margin-top: 24px;
}
/* Links */
#mp-custom-footer .mp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
#mp-custom-footer .mp-footer-links li {
  margin-bottom: 8px;
}
#mp-custom-footer .mp-footer-links li:last-child {
  margin-bottom: 0;
}
#mp-custom-footer .mp-footer-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: color 0.15s;
}
#mp-custom-footer .mp-footer-links a:hover {
  color: #ffffff !important;
  text-decoration: none;
}
/* ---- Bottom strip ---- */
#mp-custom-footer .mp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mp-custom-footer .mp-footer-bottom-timestamp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}
#mp-custom-footer .mp-footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#mp-custom-footer .mp-footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3) !important;
  text-decoration: none;
  transition: color 0.15s;
}
#mp-custom-footer .mp-footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
}