Jump to content

MediaWiki:Common.css: Difference between revisions

From Impact Evaluation Foundation
No edit summary
No edit summary
Line 44: Line 44:
}
}
}
}
.mw-logo-wordmark {
.mw-logo-wordmark {
        display: none;
    visibility: hidden;
    position: relative;
    width: 230px;
}
}


 
.mw-logo-wordmark::after {
    content: "Measure, Report, Verify, Repeat";
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Times New Roman", Times, serif;
}


  @media (max-width: 800px) {
  @media (max-width: 800px) {

Revision as of 06:53, 7 January 2025

/* Root color variables for light theme */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --background-color-base: #E6E6DD; /* Light Beige */
}

/* General light theme styling */
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color-base);
  color: var(--text-color-base);
}

/* Search bar styles to make it a bit wider to accomodate the longer title */
input.cdx-text-input__input {
    background-color: #f8f9fa !important;
}

/* Dark mode search bar */
.skin-theme-clientpref-night input.cdx-text-input__input {
    background-color: #202122 !important;
}

/* Light theme specific elements */
.vector-pinned-container {
  background-color: var(--background-color-base);
}

/* Dark theme styles */ 

.skin-theme-clientpref-night .mw-logo-icon {
  filter: invert(1) hue-rotate(180deg);
} 

.skin-theme-clientpref-night .card {
  background-color: #000000;
}

@media (min-width: 720px) {
    .mw-logo-wordmark {
    display: block;
    margin: 0 auto;
	}
}

.mw-logo-wordmark {
    visibility: hidden;
    position: relative;
    width: 230px;
}

.mw-logo-wordmark::after {
    content: "Measure, Report, Verify, Repeat";
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Times New Roman", Times, serif;
}

 @media (max-width: 800px) {
    .ief-landing-hero {
      flex-direction: column;
    }
    .ief-landing-hero-title {
    	font-size:18px;
    	text-align:center;
    }
  }
 .ief-landing-hero-title {
    	font-size:36px;
    	text-align: left !important;
}
@media (min-width: 800px) {
	.ief-landing-hero {
		display: flex !important; 
		align-items: flex-start !important;
		flex-direction: row !important;
		justify-content: start !important;
}
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background-color: transparent;
}

.card {
    width: calc(40%);
 background-color: #F5F5F5;
  border: 1px solid #CCCCCC;
  padding: 8px 5px;
  text-align: center;
   color: #000000;
 box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.card-container {
    	background-color: transparent !important;
}
@media (max-width: 768px) {
    .card {
        width: 100%; /* full width for smaller screens */
    }
}
.pl20 {
	padding-left: 20px !important;
}


/* Book Banner Popup */
.book-banner-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #f9f9f9, #e6ffe6);
  border: 2px solid black;
  color: #155724;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  width: 320px;
  max-width: 90%;
  font-family: Arial, sans-serif;
  z-index: 1000;
  box-sizing: border-box;
  text-align: center;
  display: none; /* Initially hidden until injected by JavaScript */
}

/* Headline Style */
.book-banner-popup h3 {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: bold;
  color: #154d2e;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Link Button Style */
.book-banner-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  background-color: #3cb371; /* Medium Sea Green */
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.book-banner-link:hover {
  background-color: #2e8b57; /* Sea Green */
  transform: scale(1.05);
}

/* Close Button Style */
.book-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: black;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.book-banner-close:hover {
  color: #8b0000; /* Dark Red */
  transform: scale(1.2);
}

/* Centered for Small Screens */
@media (max-width: 768px) {
  .book-banner-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
  }
}

/* Hide the fallback .book-banner element from the article */
.book-banner {
  display: none;
}

/* Custom styles for the dark mode version of the main page */
.skin-theme-clientpref-night .shaping {
  background-color: #000000 !important;
}

.skin-theme-clientpref-night .shaping div h3 {
  color: #fefefe !important;
}

.skin-theme-clientpref-night .shaping div p {
  color: #fefefe !important;
}

.skin-theme-clientpref-night .cards div {
  background-color: #000000 !important;
}

.skin-theme-clientpref-night .cards div h3 {
  color: #fefefe !important;
}

.skin-theme-clientpref-night .cards div p {
  color: #fefefe !important;
}

/* Move the main menu div (the one on the left of the article) down to make space for the logo */
.vector-sticky-pinned-container {
  position: absolute !important;
}

.infobox{
  background-color: #ffffff;
}

.skin-theme-clientpref-night .infobox{
  background-color: #000000;
}