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

From Ikwipedia
No edit summary
No edit summary
Line 1: Line 1:
/* Top Banner */
/* General Styling */
#mp-topbanner {
body {
   background-color: #f9f9f9;
   font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  text-align: center;
  margin-bottom: 1em;
}
 
#mp-topbanner h1 {
  font-size: 1.8em;
   margin: 0;
   margin: 0;
   border-bottom: none;
   padding: 0;
  font-family: inherit;
}
}


#mp-topbanner p {
.container {
  margin: 0 0;
}
 
/* Main Content Layout */
#mp-upper {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
   max-width: 1200px;
   max-width: 1200px;
   margin: 0 auto;
   margin: 0 auto;
  padding: 1em;
}
}


#mp-left,
h1, h2 {
#mp-right
   margin: 0 0 0.5em;
{
   font-family: inherit;
   flex: 1;
  padding: 0.4em; /* Match Wikipedia padding */
   background-color: #f5faff;
  border: 1px solid #cedff2;
}
}


#mp-left {
h1 {
   background-color: #f5fffa; /* Light green for left column */
   font-size: 1.8em;
   border-color: #cef2e0; /* Green border */
   text-align: center;
}
}


#mp-right {
h2 {
   background-color: #f5faff; /* Light blue for right column */
  font-size: 1.4em;
   border-color: #cedff2; /* Blue border */
  padding: 0.5em;
   background-color: #f0f0f0;
   border: 1px solid #ddd;
}
}


/* Headings */
/* Top Banner */
.mp-h2 {
#top-banner {
   font-size: 1.4em;
   text-align: center;
   font-weight: bold;
   padding: 1em;
  font-family: inherit;
   background-color: #f9f9f9;
   background-color: #e6e6e6; /* Neutral heading background */
   border: 1px solid #ddd;
   border: 1px solid #aaa; /* Border for headings */
  margin-bottom: 1em;
}
}


/* Column-Specific Heading Colors */
#top-banner p {
#mp-left .mp-h2 {
   margin: 0.5em 0;
   background-color: #cef2e0; /* Light green for left column headings */
  border-color: #a3bfb1;
}
}


#mp-right .mp-h2 {
/* Main Content Layout */
   background-color: #cedff2; /* Light blue for right column headings */
.flex-container {
   border-color: #a3b0bf;
   display: flex;
  flex-wrap: wrap;
   gap: 1em;
}
}


/* Lower Section */
.flex-item {
#mp-lower,
   flex: 1;
#mp-bottom {
   padding: 1em;
   max-width: 1200px;
   background-color: #f5f5f5;
   padding: 0.4em; /* Match Wikipedia padding */
   border: 1px solid #ddd;
   background-color: #faf5ff;
   border: 1px solid #ddcef2;
}
}


#mp-lower .mp-h2,
.flex-item.left {
#mp-bottom .mp-h2 {
   background-color: #f5fffa;
   background-color: #ddcef2;
  border-color: #afa3bf;
}
}


/* Section Content */
.flex-item.right {
.mp-contains-float {
   background-color: #f5faff;
   padding: 0.4em; /* Match Wikipedia padding */
}
}


.mp-contains-float::after {
/* Lower Section */
   content: "";
.lower-section {
   display: block;
  margin-top: 1em;
   clear: both;
   padding: 1em;
   background-color: #faf5ff;
   border: 1px solid #ddd;
}
}


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


/* Clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
/* Specific for Mobile */
@media screen and (max-width: 875px) {
  #mp-upper,
  #mp-lower,
  #mp-bottom {
    margin: 0.5em;
    padding: 0.5em;
  }
}


/* Basic box styling */
/* Basic box styling */

Revision as of 01:49, 23 December 2024

/* General Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
}

h1, h2 {
  margin: 0 0 0.5em;
  font-family: inherit;
}

h1 {
  font-size: 1.8em;
  text-align: center;
}

h2 {
  font-size: 1.4em;
  padding: 0.5em;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

/* Top Banner */
#top-banner {
  text-align: center;
  padding: 1em;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 1em;
}

#top-banner p {
  margin: 0.5em 0;
}

/* Main Content Layout */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.flex-item {
  flex: 1;
  padding: 1em;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
}

.flex-item.left {
  background-color: #f5fffa;
}

.flex-item.right {
  background-color: #f5faff;
}

/* Lower Section */
.lower-section {
  margin-top: 1em;
  padding: 1em;
  background-color: #faf5ff;
  border: 1px solid #ddd;
}

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


/* Basic box styling */
.test-box {
  border: 1px solid #aaa;
  background-color: #f8f9fa;
  font-size: 90%;
}

/* Title styling within the box */
.test-box .test-title {
  font-size: 120%;
  font-weight: bold; /* Match bold headings */
  background-color: #cef2e0; /* Light green background */
  border-bottom: none; /* Remove horizontal line */

}

/* Sub-boxes */
.test-box .test-subbox {
  border: 1px solid #ccc;
  background-color: #ffffff;

}