Ikwipedia:Main Page/styles.css: Difference between revisions

From Ikwipedia
No edit summary
No edit summary
 
(50 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* General Settings */
body {
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  font-family: inherit; /* Ensure consistent font usage */
}
/* Top Banner */
/* Top Banner */
#mp-topbanner {
#mp-topbanner {
   background-color: #f9f9f9;
   background-color: #f9f9f9;
   border: 1px solid #ddd;
   border: 1px solid #ddd;
  padding: 1em;
   text-align: center;
   text-align: center;
   margin-bottom: 1em;
   margin-bottom: 0.3em;
  margin-top:0.3em;
  padding: 0.4em;
  font-family: inherit; /* Ensure fonts inherit globally */
}
}


#mp-topbanner h1 {
#mp-topbanner h1 {
   font-size: 1.8em;
   font-size: 1.8em;
   margin: 0;
   margin: 0 0 0.0em 0;
   border-bottom: none;  
   font-family: inherit; /* Ensure consistent font */
   font-family: inherit;
   border-bottom: none;
}
}


#mp-topbanner p {
#mp-topbanner p {
   margin: 0.5em 0;
   margin: 0.0em 0;
  font-family: inherit; /* Ensure consistent font */
}
}


/* Main Content Layout */
/* Main Layout */
#mp-upper {
#mp-upper {
   display: flex;
   display: flex;
   justify-content: space-between;
   justify-content: space-between;
   gap: 1em;
   gap: 0.4em;
   max-width: 1200px;
   max-width: 1200px;
   margin: 0 auto;
   margin: 0 auto;
  font-family: inherit; /* Ensure consistent font */
}
}


#mp-left,
#mp-left,
#mp-right
#mp-right,
{
#mp-lower,
   flex: 1;
#mp-bottom {
   padding: 0.8em; /* Match Wikipedia padding */
   padding: 0.5em;
   border: 1px solid #cedff2;
   background-color: #f5faff;
   background-color: #f5faff;
   border: 1px solid #cedff2;
   font-family: inherit; /* Ensure consistent font */
  margin-bottom: 0.3em; /* Add space between content boxes */
}
}


#mp-left {
#mp-left {
   background-color: #f5fffa; /* Light green for left column */
   background-color: #f5fffa;
   border-color: #cef2e0; /* Green border */
   border-color: #cef2e0;
}
}


#mp-right {
#mp-right {
   background-color: #f5faff; /* Light blue for right column */
   background-color: #f5faff;
   border-color: #cedff2; /* Blue border */
   border-color: #cedff2;
}
}


/* Headings */
/* Headings */
.mp-h2 {
.mp-h2 {
   font-size: 1.2em;
   font-size: 1.4em;
   font-weight: bold;
   font-weight: bold;
  font-family: inherit;
   background-color: #e6e6e6;
   background-color: #e6e6e6; /* Neutral heading background */
   padding: 0.2em 0.2em; /* Reduced top padding for smaller spacing */
   padding: 0.4em; /* Match Wikipedia's heading padding */
   padding-top: 0.1em;
   margin: 0.0em 0;
   margin-bottom: 0.3em;
   border: 1px solid #aaa; /* Border for headings */
   margin-top: 0.0em;
}
   font-family: inherit; /* Ensure consistent font */
 
   border-bottom: 0; /* Remove horizontal line */
/* Column-Specific Heading Colors */
   border: 1px solid #aaa; /* Default thin border for all headings */
#mp-left .mp-h2 {
  background-color: #cef2e0; /* Light green for left column headings */
   border-color: #a3bfb1;
}
 
#mp-right .mp-h2 {
   background-color: #cedff2; /* Light blue for right column headings */
   border-color: #a3b0bf;
}
 
/* Lower Section */
#mp-lower,
#mp-bottom {
  margin: 1em auto;
  max-width: 1200px;
  padding: 0.8em; /* Match Wikipedia padding */
  background-color: #faf5ff;
   border: 1px solid #ddcef2;
}
}


/* Lower Section Heading Borders (Refined Colors) */
#mp-lower .mp-h2,
#mp-lower .mp-h2,
#mp-bottom .mp-h2 {
#mp-bottom .mp-h2 {
   background-color: #ddcef2;
   background-color: #f5f2ff; /* Light purple closer to Wikipedia */
  border-color: #afa3bf;
   border-color: #d1c7e0;
}
 
/* Section Content */
.mp-contains-float {
   padding: 0.8em; /* Match Wikipedia padding */
}
 
.mp-contains-float::after {
  content: "";
  display: block;
  clear: both;
}
}


Line 112: Line 82:
}
}


/* Clearfix */
#mp-lower {
.clearfix::after {
   background-color: #fff5fa; /* Light pink for content box */
   content: "";
   border-color: #f2cedd; /* Pink border for content box */
   display: table;
  clear: both;
}
}


/* Specific for Mobile */
#mp-lower .mp-h2 {
@media screen and (max-width: 875px) {
   background-color: #f2cedd; /* Darker pink for heading */
  #mp-upper,
  border-color: #bfa3af; /* Pink border for heading */
  #mp-lower,
   #mp-bottom {
    margin: 0.5em;
    padding: 0.5em;
  }
}
}


/* Basic box styling */
#mp-bottom {
.test-box {
   background-color: #faf5ff; /* Light purple for content box */
  border: 1px solid #aaa;
   border-color: #ddcef2; /* Purple border for content box */
   background-color: #f8f9fa;
   padding: 1em;
  margin: 1em 0;
  font-size: 90%;
}
}


/* Title styling within the box */
#mp-bottom .mp-h2 {
.test-box .test-title {
   background-color: #ddcef2; /* Darker purple for heading */
  font-size: 120%;
   border-color: #afa3bf; /* Purple border for heading */
  font-weight: bold; /* Match bold headings */
   background-color: #cef2e0; /* Light green background */
   border-bottom: none; /* Remove horizontal line */
  margin: 0 0 0.5em;
  padding: 0.2em;
}
 
/* Sub-boxes */
.test-box .test-subbox {
  border: 1px solid #ccc;
  background-color: #ffffff;
  padding: 0.5em;
  margin-top: 0.5em;
}
}

Latest revision as of 03:30, 23 December 2024

/* Top Banner */
#mp-topbanner {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  text-align: center;
  margin-bottom: 0.3em;
  margin-top:0.3em;
  padding: 0.4em;
  font-family: inherit; /* Ensure fonts inherit globally */
}

#mp-topbanner h1 {
  font-size: 1.8em;
  margin: 0 0 0.0em 0;
  font-family: inherit; /* Ensure consistent font */
  border-bottom: none;
}


#mp-topbanner p {
  margin: 0.0em 0;
  font-family: inherit; /* Ensure consistent font */
}

/* Main Layout */
#mp-upper {
  display: flex;
  justify-content: space-between;
  gap: 0.4em;
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit; /* Ensure consistent font */
}

#mp-left,
#mp-right,
#mp-lower,
#mp-bottom {
  padding: 0.5em;
  border: 1px solid #cedff2;
  background-color: #f5faff;
  font-family: inherit; /* Ensure consistent font */
  margin-bottom: 0.3em; /* Add space between content boxes */
}

#mp-left {
  background-color: #f5fffa;
  border-color: #cef2e0;
}

#mp-right {
  background-color: #f5faff;
  border-color: #cedff2;
}

/* Headings */
.mp-h2 {
  font-size: 1.4em;
  font-weight: bold;
  background-color: #e6e6e6;
  padding: 0.2em 0.2em; /* Reduced top padding for smaller spacing */
  padding-top: 0.1em;
  margin-bottom: 0.3em;
  margin-top: 0.0em;
  font-family: inherit; /* Ensure consistent font */
  border-bottom: 0; /* Remove horizontal line */
  border: 1px solid #aaa; /* Default thin border for all headings */
}

/* Lower Section Heading Borders (Refined Colors) */
#mp-lower .mp-h2,
#mp-bottom .mp-h2 {
  background-color: #f5f2ff; /* Light purple closer to Wikipedia */
  border-color: #d1c7e0;
}

/* Responsive Design */
@media (max-width: 875px) {
  #mp-upper {
    flex-direction: column;
  }
}

#mp-lower {
  background-color: #fff5fa; /* Light pink for content box */
  border-color: #f2cedd; /* Pink border for content box */
}

#mp-lower .mp-h2 {
  background-color: #f2cedd; /* Darker pink for heading */
  border-color: #bfa3af; /* Pink border for heading */
}

#mp-bottom {
  background-color: #faf5ff; /* Light purple for content box */
  border-color: #ddcef2; /* Purple border for content box */
}

#mp-bottom .mp-h2 {
  background-color: #ddcef2; /* Darker purple for heading */
  border-color: #afa3bf; /* Purple border for heading */
}