×
Create a new article
Write your page title here:
We currently have 133 articles on Open Eggbert. Type your article name above or click on one of the titles below and start writing!



Open Eggbert
133Articles

MediaWiki:Common.css: Difference between revisions

(Created page with "→‎CSS placed here will be applied to all skins: →‎Basic style for the entire page: body { padding: 20px; background-color: #fff9e6; →‎Light yellow background for the page: font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; →‎Modern and readable font: color: #333; →‎Dark gray text color for good contrast: line-height: 1.6; →‎Improved text readability: margin: 0; } →‎Style for the main banner: #main_banner { background-color:...")
 
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Basic style for the entire page */
/* Basic style for the entire page */
body {
body {
   padding: 20px;
   padding: 20px;
   background-color: #fff9e6; /* Light yellow background for the page */
   background-color: #faf8e4; /* Very light yellow background for the page */
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern and readable font */
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern and readable font */
   color: #333; /* Dark gray text color for good contrast */
   color: #333; /* Dark gray text color for good contrast */
Line 11: Line 13:


/* Style for the main banner */
/* Style for the main banner */
#main_banner {
#firstHeading {
   background-color: #ffeb3b; /* Light yellow for a prominent banner */
   background-color: #f7c87c; /* Soft yellow-orange for a prominent banner */
   margin: 0;
   margin: 0;
   padding: 20px; /* More space for better appearance */
   padding: 20px; /* More space for better appearance */
   text-align: center; /* Center text */
   text-align: center; /* Center text */
   border-radius: 12px; /* Rounded corners for a modern look */
   border-radius: 8px; /* Rounded corners for a modern look */
   box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Soft shadow for emphasis */
   box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for emphasis */
   font-size: 2em; /* Increased font size for importance */
   font-size: 2em; /* Increased font size for importance */
   font-weight: bold; /* Highlight text */
   font-weight: bold; /* Highlight text */
Line 24: Line 26:


/* Style for navigation menu */
/* Style for navigation menu */
nav {
#p-navigation {
   padding: 15px;
   padding: 15px;
   background-color: #fff3e0; /* Light orange background for navigation */
   background-color: #fef8e4; /* Very light yellow background for navigation */
   border-radius: 8px; /* Rounded corners for a modern look */
   border-radius: 8px; /* Rounded corners for a modern look */
   border-bottom: 3px solid #ffca28; /* Light yellow bottom border */
   border-bottom: 3px solid #f7c87c; /* Soft yellow-orange bottom border */
   margin-bottom: 20px; /* Space below navigation */
   margin-bottom: 20px; /* Space below navigation */
   box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for separation */
   box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Soft shadow for separation */
}
}


/* Navigation list style */
/* Navigation list style */
nav ul {
#p-navigation ul {
   list-style: none; /* Remove default bullet points */
   list-style: none; /* Remove default bullet points */
   padding: 0; /* Remove default padding */
   padding: 0; /* Remove default padding */
Line 43: Line 45:


/* Navigation link style */
/* Navigation link style */
nav li {
#p-navigation li {
   margin: 0 15px; /* Space between list items */
   margin: 0 10px; /* Space between list items */
}
}


/* Style for links in the navigation menu */
/* Style for links in the navigation menu */
nav a {
#p-navigation a {
   color: #ff6f00; /* Light orange color for links */
   color: #ff9800; /* Bright orange color for links */
   text-decoration: none; /* No underline for a modern look */
   text-decoration: none; /* No underline for a modern look */
   font-weight: bold; /* Highlight links */
   font-weight: bold; /* Highlight links */
}
}


nav a:hover {
#p-navigation a:hover {
   text-decoration: underline; /* Underline on hover */
   text-decoration: underline; /* Underline on hover */
   color: #e64a19; /* Darker orange color on hover */
   color: #e64a19; /* Darker orange color on hover */
Line 60: Line 62:


/* Style for main content area */
/* Style for main content area */
main {
#bodyContent {
   padding: 20px;
   padding: 20px;
   background-color: #ffffff; /* White background for contrasting content */
   background-color: #ffffff; /* White background for contrasting content */
   border-radius: 12px; /* Rounded corners for a modern look */
   border-radius: 8px; /* Rounded corners for a modern look */
   box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Soft shadow for emphasis */
   box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for emphasis */
}
}


Line 73: Line 75:


li {
li {
   margin-bottom: 12px; /* Space between list items */
   margin-bottom: 10px; /* Space between list items */
   font-size: 1.1em; /* Increased font size for better readability */
   font-size: 1.1em; /* Increased font size for better readability */
}
}


/* Style for the footer */
/* Style for the footer */
footer {
#footer {
   padding: 15px;
   padding: 15px;
   background-color: #ffeb3b; /* Light yellow for the footer */
   background-color: #f7c87c; /* Soft yellow-orange for the footer */
   text-align: center; /* Center text */
   text-align: center; /* Center text */
   border-top: 3px solid #ffca28; /* Light yellow top border */
   border-top: 3px solid #f7c87c; /* Soft yellow-orange top border */
   margin-top: 20px; /* Space above footer */
   margin-top: 20px; /* Space above footer */
   box-shadow: 0 -4px 8px rgba(0,0,0,0.1); /* Soft shadow for separation */
   box-shadow: 0 -2px 6px rgba(0,0,0,0.1); /* Soft shadow for separation */
   font-size: 0.9em; /* Smaller font size for the footer */
   font-size: 0.9em; /* Smaller font size for the footer */
   color: #333; /* Dark gray text color for contrast */
   color: #333; /* Dark gray text color for contrast */
Line 91: Line 93:
/* Responsive design for navigation menu on small screens */
/* Responsive design for navigation menu on small screens */
@media (max-width: 768px) {
@media (max-width: 768px) {
   nav ul {
   #p-navigation ul {
     flex-direction: column; /* Stack list items vertically on smaller screens */
     flex-direction: column; /* Stack list items vertically on smaller screens */
     align-items: center; /* Center align list items */
     align-items: center; /* Center align list items */
   }
   }


   nav li {
   #p-navigation li {
     margin: 10px 0; /* Space between list items when stacked */
     margin: 8px 0; /* Space between list items when stacked */
   }
   }
}
}

Revision as of 20:35, 29 August 2024

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


/* Basic style for the entire page */
body {
  padding: 20px;
  background-color: #faf8e4; /* Very light yellow background for the page */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern and readable font */
  color: #333; /* Dark gray text color for good contrast */
  line-height: 1.6; /* Improved text readability */
  margin: 0;
}

/* Style for the main banner */
#firstHeading {
  background-color: #f7c87c; /* Soft yellow-orange for a prominent banner */
  margin: 0;
  padding: 20px; /* More space for better appearance */
  text-align: center; /* Center text */
  border-radius: 8px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for emphasis */
  font-size: 2em; /* Increased font size for importance */
  font-weight: bold; /* Highlight text */
  color: #333; /* Dark gray text color for contrast */
}

/* Style for navigation menu */
#p-navigation {
  padding: 15px;
  background-color: #fef8e4; /* Very light yellow background for navigation */
  border-radius: 8px; /* Rounded corners for a modern look */
  border-bottom: 3px solid #f7c87c; /* Soft yellow-orange bottom border */
  margin-bottom: 20px; /* Space below navigation */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Soft shadow for separation */
}

/* Navigation list style */
#p-navigation ul {
  list-style: none; /* Remove default bullet points */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
  display: flex; /* Display list items in a row */
  justify-content: center; /* Center align list items */
}

/* Navigation link style */
#p-navigation li {
  margin: 0 10px; /* Space between list items */
}

/* Style for links in the navigation menu */
#p-navigation a {
  color: #ff9800; /* Bright orange color for links */
  text-decoration: none; /* No underline for a modern look */
  font-weight: bold; /* Highlight links */
}

#p-navigation a:hover {
  text-decoration: underline; /* Underline on hover */
  color: #e64a19; /* Darker orange color on hover */
}

/* Style for main content area */
#bodyContent {
  padding: 20px;
  background-color: #ffffff; /* White background for contrasting content */
  border-radius: 8px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for emphasis */
}

/* Style for lists */
ul {
  padding-left: 20px; /* Space on the left side of the list */
}

li {
  margin-bottom: 10px; /* Space between list items */
  font-size: 1.1em; /* Increased font size for better readability */
}

/* Style for the footer */
#footer {
  padding: 15px;
  background-color: #f7c87c; /* Soft yellow-orange for the footer */
  text-align: center; /* Center text */
  border-top: 3px solid #f7c87c; /* Soft yellow-orange top border */
  margin-top: 20px; /* Space above footer */
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1); /* Soft shadow for separation */
  font-size: 0.9em; /* Smaller font size for the footer */
  color: #333; /* Dark gray text color for contrast */
}

/* Responsive design for navigation menu on small screens */
@media (max-width: 768px) {
  #p-navigation ul {
    flex-direction: column; /* Stack list items vertically on smaller screens */
    align-items: center; /* Center align list items */
  }

  #p-navigation li {
    margin: 8px 0; /* Space between list items when stacked */
  }
}